/* VCB Shortcodes Modern Design System */

/* CSS Variables for Consistent Theming */
:root {
  --vcb-checkout-primary: #fa5250;
  --vcb-checkout-primary-hover: #fa5250;
  --vcb-checkout-success: #fa5250;
  --vcb-checkout-danger: #f56565;
  --vcb-checkout-warning: #ed8936;
  --vcb-checkout-info: #4299e1;

  --vcb-checkout-text: #2d3748;
  --vcb-checkout-text-light: #718096;
  --vcb-checkout-text-muted: #a0aec0;

  --vcb-checkout-bg: #f7fafc;
  --vcb-checkout-bg-white: #ffffff;
  --vcb-checkout-border: #e2e8f0;
  --vcb-checkout-border-light: #edf2f7;

  --vcb-checkout-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --vcb-checkout-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --vcb-checkout-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --vcb-checkout-radius: 12px;
  --vcb-checkout-radius-sm: 8px;
  --vcb-checkout-radius-lg: 16px;

  --vcb-checkout-transition: all 0.3s ease;
}

/* Checkout Form Container */
.vcb-checkout-form {
  max-width: 1200px;
}

/* 현재 HTML 구조에서는 그리드 레이아웃 사용하지 않음 */
.checkout.woocommerce-checkout {
  background: transparent;
}

/* Form Section Base Styles */
.vcb-form-section,
.vcb-billing-fields-section,
.vcb-shipping-fields-section {
  background: var(--vcb-checkout-bg-white);
  border-radius: var(--vcb-checkout-radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--vcb-checkout-border-light);
  transition: var(--vcb-checkout-transition);
}

.vcb-form-section:hover,
.vcb-billing-fields-section:hover,
.vcb-shipping-fields-section:hover {
}

.vcb-form-section h3,
.vcb-billing-fields-section h3,
.vcb-shipping-fields-section h3,
.vcb-order-fields-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--vcb-checkout-text);
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--vcb-checkout-border);
}

/* Ship to different address toggle */
.vcb-ship-to-different-address-toggle {
  display: flex;
  margin-top: 24px;
  padding: 16px;
  background: var(--vcb-checkout-bg);
  border-radius: var(--vcb-checkout-radius-sm);
}

.vcb-ship-to-different-address-toggle label {
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.vcb-ship-to-different-address-toggle input[type="checkbox"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Form Fields Grid */
.vcb-form-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.vcb-form-fields .form-row {
  margin-bottom: 0;
}

.vcb-form-fields .form-row.form-row-wide {
  grid-column: 1 / -1;
}

/* Input Styling */
.vcb-form-section input[type="text"],
.vcb-form-section input[type="email"],
.vcb-form-section input[type="tel"],
.vcb-form-section input[type="password"],
.vcb-form-section textarea,
.vcb-form-section select,
.vcb-billing-fields-section input[type="text"],
.vcb-billing-fields-section input[type="email"],
.vcb-billing-fields-section input[type="tel"],
.vcb-billing-fields-section input[type="password"],
.vcb-billing-fields-section textarea,
.vcb-billing-fields-section select,
.vcb-shipping-fields-section input[type="text"],
.vcb-shipping-fields-section input[type="email"],
.vcb-shipping-fields-section input[type="tel"],
.vcb-shipping-fields-section input[type="password"],
.vcb-shipping-fields-section textarea,
.vcb-shipping-fields-section select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--vcb-checkout-border);
  border-radius: var(--vcb-checkout-radius-sm);
  font-size: 16px;
  transition: var(--vcb-checkout-transition);
  background: var(--vcb-checkout-bg-white);
  color: var(--vcb-checkout-text);
}

.vcb-form-section input:focus,
.vcb-form-section textarea:focus,
.vcb-form-section select:focus,
.vcb-billing-fields-section input:focus,
.vcb-billing-fields-section textarea:focus,
.vcb-billing-fields-section select:focus,
.vcb-shipping-fields-section input:focus,
.vcb-shipping-fields-section textarea:focus,
.vcb-shipping-fields-section select:focus {
  outline: none;
  border-color: var(--vcb-checkout-primary);
  box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.vcb-form-section label,
.vcb-billing-fields-section label,
.vcb-shipping-fields-section label {
  font-size: 14px;
  font-weight: 600;
  color: var(--vcb-checkout-text);
}

.vcb-form-section label .required,
.vcb-billing-fields-section label .required,
.vcb-shipping-fields-section label .required {
  color: var(--vcb-checkout-danger);
}

/* MShop Address Fields */
#mshop_billing_address-postnum_field,
#mshop_shipping_address-postnum_field {
  display: flex;
  align-items: center;
  gap: 12px;
}

#mshop_billing_address-postnum_field input[type="text"],
#mshop_shipping_address-postnum_field input[type="text"] {
  width: 120px !important;
  flex-shrink: 0;
}

.ms_addr_1 {
  display: inline-block;
  padding: 12px 24px !important;
  background: var(--vcb-checkout-primary) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--vcb-checkout-radius-sm) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: var(--vcb-checkout-transition) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  height: auto !important;
}

.ms_addr_1:hover {
  background: var(--vcb-checkout-primary-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--vcb-checkout-shadow) !important;
}

/* Order Summary Modern Design */
.vcb-order-summary-wrapper {
  background: var(--vcb-checkout-bg-white);
  border-radius: var(--vcb-checkout-radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--vcb-checkout-border-light);
}

.vcb-order-summary-wrapper h3 {
  font-size: 20px !important;
  font-weight: 700;
  color: var(--vcb-checkout-text) !important;
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--vcb-checkout-border);
}

/* Order Review Table */
.vcb-table.shop_table.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--vcb-checkout-bg-white);
  border: 1px solid var(--vcb-checkout-border);
  border-radius: var(--vcb-checkout-radius);
  overflow: hidden;
}

.vcb-table thead th {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vcb-checkout-text-light);
  text-align: center;
  border-bottom: 2px solid var(--vcb-checkout-border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vcb-table tbody tr {
  border-bottom: 1px solid var(--vcb-checkout-border-light);
}

.vcb-table tbody td {
  padding: 20px;
  text-align: center;
  vertical-align: top;
  background: var(--vcb-checkout-bg-white);
}

.cart-discount td {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.vcb-table tbody td > span:first-child,
.vcb-table tbody td > p.price {
  font-size: 18px;
  font-weight: 700;
  color: var(--vcb-checkout-text);
  display: block;
  margin: 0;
}

.vcb-table tbody td.product-sale > p.price .woocommerce-Price-amount {
  color: var(--vcb-checkout-success);
}

.vcb-table tbody td.product-total strong .woocommerce-Price-amount {
  font-size: 28px;
  color: var(--vcb-checkout-primary);
  font-weight: 700;
}

/* Inner Table */
.vcb-inner-table {
  width: 100%;
  margin-top: 12px;
  border-top: 1px solid var(--vcb-checkout-border-light);
}

.vcb-inner-table tbody {
  display: block;
}

.vcb-inner-table tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vcb-inner-table tr:last-child {
  margin-bottom: 0;
}

.vcb-inner-table th,
.vcb-inner-table td {
  padding: 0;
  font-size: 12px;
  color: var(--vcb-checkout-text-light);
  border: none;
  background: none;
}

.vcb-inner-table th {
  font-weight: 500;
  text-align: left;
}

.vcb-inner-table td {
  text-align: right;
  font-weight: 600;
}

.vcb-inner-table .woocommerce-Price-amount {
  font-size: 12px;
  color: var(--vcb-checkout-text);
}

.vcb-inner-table a {
  color: var(--vcb-checkout-danger);
  text-decoration: none;
  font-size: 10px;
  margin-left: 6px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.vcb-inner-table a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Free shipping */
.free-fee {
  color: var(--vcb-checkout-success);
  font-weight: 600;
}

/* Shipping Selector */
.vcb-shipping-selector {
  background: var(--vcb-checkout-bg);
  border-radius: var(--vcb-checkout-radius);
  padding: 20px;
}

.vcb-shipping-option {
  display: flex;
  align-items: center;
  background: var(--vcb-checkout-bg-white);
  cursor: pointer;
  transition: var(--vcb-checkout-transition);
}

.vcb-shipping-option:hover {
  border-color: var(--vcb-checkout-primary);
  transform: translateY(-2px);
  box-shadow: var(--vcb-checkout-shadow);
}

.vcb-shipping-option.selected {
  border-color: var(--vcb-checkout-primary);
  background: linear-gradient(
    to right,
    rgba(90, 103, 216, 0.05),
    rgba(90, 103, 216, 0.02)
  );
}

.vcb-shipping-option input[type="radio"] {
  margin-right: 12px;
}

.vcb-shipping-option-info {
  flex: 1;
}

.vcb-shipping-option-name {
  font-weight: 600;
  color: var(--vcb-checkout-text);
  margin-bottom: 4px;
}

.vcb-shipping-option-description {
  font-size: 14px;
  color: var(--vcb-checkout-text-light);
}

.vcb-shipping-option-price {
  font-weight: 600;
  color: var(--vcb-checkout-primary);
}

/* Coupon Section */
.vcb-mshop-coupon-section-wrapper {
  background: var(--vcb-checkout-bg-white);
  border-radius: var(--vcb-checkout-radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--vcb-checkout-border-light);
  transition: var(--vcb-checkout-transition);
}

.vcb-mshop-coupon-section-wrapper h4 {
  font-size: 20px !important;
  font-weight: 700;
  color: var(--vcb-checkout-text) !important;
  margin: 0 0 0px 0;
}

.vcb-mshop-coupon-section-wrapper p {
  color: var(--vcb-checkout-text-light);
  margin-bottom: 16px;
  margin-top: 10px;
}

.vcb-coupon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--vcb-checkout-primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--vcb-checkout-transition);
}

.vcb-coupon-toggle:hover {
  color: var(--vcb-checkout-primary-hover);
}

.vcb-coupon-form {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.vcb-coupon-form input {
  flex: 1;
}

.vcb-coupon-form button,
.vcb-coupon-actions button,
.vcb-point-actions button,
.vcb-btn {
  padding: 12px 24px;
  background: var(--vcb-checkout-primary);
  color: white;
  border: none;
  border-radius: var(--vcb-checkout-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--vcb-checkout-transition);
  font-size: 16px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.vcb-coupon-form button:hover,
.vcb-coupon-actions button:hover,
.vcb-point-actions button:hover,
.vcb-btn:hover {
  background: var(--vcb-checkout-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--vcb-checkout-shadow);
}

.vcb-btn-secondary {
  background: var(--vcb-checkout-secondary);
}

.vcb-btn-secondary:hover {
  background: #5a6268;
}

/* Points Section */
.vcb-point-section-wrapper {
  background: var(--vcb-checkout-bg-white);
  border-radius: var(--vcb-checkout-radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--vcb-checkout-border-light);
  transition: var(--vcb-checkout-transition);
}

.vcb-point-section-wrapper h4 {
  font-size: 20px !important;
  font-weight: 700;
  color: var(--vcb-checkout-text);
  margin: 0 0 20px 0;
}

.vcb-point-available {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--vcb-checkout-bg);
  border-radius: var(--vcb-checkout-radius-sm);
  margin-bottom: 20px;
}

.vcb-point-available span {
  font-weight: 600;
  color: var(--vcb-checkout-text);
}

.vcb-point-available strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--vcb-checkout-primary);
}

.vcb-point-input-group {
  margin-bottom: 16px;
}

.vcb-point-input-group input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--vcb-checkout-border);
  border-radius: var(--vcb-checkout-radius-sm);
  font-size: 16px;
  transition: var(--vcb-checkout-transition);
}

.vcb-point-input-group input[type="number"]:focus {
  outline: none;
  border-color: var(--vcb-checkout-primary);
  box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.vcb-point-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.vcb-point-actions button {
  flex: 1;
}

.vcb-point-info {
  padding: 16px;
  background: var(--vcb-checkout-bg);
  border-radius: var(--vcb-checkout-radius-sm);
}

.vcb-point-info p {
  margin: 0;
  font-size: 14px;
  color: var(--vcb-checkout-text-light);
}

/* Gift Section */
.vcb-gift-section-wrapper {
  background: var(--vcb-checkout-bg-white);
  border-radius: var(--vcb-checkout-radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--vcb-checkout-border-light);
  transition: var(--vcb-checkout-transition);
}

.vcb-gift-section-wrapper h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--vcb-checkout-text);
  margin: 0 0 20px 0;
}

.vcb-gift-rule-wrapper {
  margin-bottom: 20px;
}

.vcb-gift-rule-wrapper .item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--vcb-checkout-text);
  margin-bottom: 16px !important;
}

/* List-based gift layout */
.vcb-gift-product-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vcb-gift-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--vcb-checkout-bg-white);
  border: 1px solid #f8f8f8;
  border-radius: var(--vcb-checkout-radius);
  cursor: pointer;
  transition: var(--vcb-checkout-transition);
}

.vcb-gift-item:hover {
  border-color: var(--vcb-checkout-primary);
  transform: translateX(4px);
  box-shadow: var(--vcb-checkout-shadow-md);
  background: var(--vcb-checkout-bg);
}

.vcb-gift-item.vcb-item-selected {
  border-color: var(--vcb-checkout-success);
  background: linear-gradient(
    to right,
    rgba(250, 82, 80, 0.08),
    rgba(250, 82, 80, 0.02)
  );
}

.vcb-gift-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Larger image for list layout */
.vcb-gift-item-thumbnail {
  width: 100px;
  height: 100px;
  margin-right: 20px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.vcb-gift-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #4b4b4b;
  margin: 0 15px 0 0;
  flex: 1;
  line-height: 1.4;
}

/* Selected state indicator */
.vcb-gift-item.vcb-item-selected::after {
  content: "✓";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: var(--vcb-checkout-success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  animation: checkmark 0.3s ease;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Payment Methods */
#payment {
  background: var(--vcb-checkout-bg-white);
  border-radius: var(--vcb-checkout-radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--vcb-checkout-border-light);
}

.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.wc_payment_method {
  margin-bottom: 16px;
  padding: 20px;
  border-radius: var(--vcb-checkout-radius);
  transition: var(--vcb-checkout-transition);
}

.wc_payment_method:hover {
  transform: translateY(-1px);
}

/* Payment Box - Payment method description box */
.payment_box {
  background: var(--vcb-checkout-bg);
  padding: 11px;
  margin: 16px 0 0 0;
  border-radius: var(--vcb-checkout-radius-sm);
  border: 1px solid var(--vcb-checkout-border);
  font-size: 14px;
  line-height: 1.6;
  color: var(--vcb-checkout-text-light);
}

.payment_box p {
  margin: 0 0 12px 0;
  color: var(--vcb-checkout-text-light);
}

.payment_box p:last-child {
  margin-bottom: 0;
}

/* Enhanced BACS Receipt Issue Y/N */
.pafw_bacs_receipt_issue_yn {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--vcb-checkout-border);
}

.pafw_bacs_receipt_issue_yn span {
  width: 100%;
  font-weight: 600;
  color: var(--vcb-checkout-text);
  font-size: 15px;
}

.pafw_bacs_receipt_issue_yn label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--vcb-checkout-text);
  transition: var(--vcb-checkout-transition);
}

.pafw_bacs_receipt_issue_yn label:hover {
  color: var(--vcb-checkout-primary);
}

.pafw_bacs_receipt_issue_yn input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Enhanced BACS Receipt Type */
.pafw_bacs_receipt_type {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 20px;
  align-items: center;
}

.pafw_bacs_receipt_type span {
  font-weight: 600;
  color: var(--vcb-checkout-text);
  font-size: 15px;
  min-width: 120px;
}

.pafw_bacs_receipt_type label {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--vcb-checkout-text);
}

.pafw_bacs_receipt_type input[type="radio"] {
  margin: 0;
}

/* Enhanced Receipt Usage */
.receipt_usage {
  margin-bottom: 20px;
}

.receipt_usage label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  color: var(--vcb-checkout-text);
  font-size: 15px;
}

.receipt_usage input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--vcb-checkout-border);
  border-radius: var(--vcb-checkout-radius-sm);
  font-size: 16px;
  transition: var(--vcb-checkout-transition);
  background: var(--vcb-checkout-bg-white);
  color: var(--vcb-checkout-text);
}

.receipt_usage input[type="text"]:focus {
  outline: none;
  border-color: var(--vcb-checkout-primary);
  box-shadow: 0 0 0 3px rgba(250, 82, 80, 0.1);
}

.receipt_usage input[type="text"]::placeholder {
  color: var(--vcb-checkout-text-muted);
  font-size: 14px;
}

/* Enhanced Save BACS Receipt Info */
.pafw_save_bacs_receipt_info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(
    to right,
    rgba(250, 82, 80, 0.05),
    rgba(250, 82, 80, 0.02)
  );
  border: 1px solid rgba(250, 82, 80, 0.2);
  border-radius: var(--vcb-checkout-radius-sm);
  margin-top: 20px;
}

.pafw_save_bacs_receipt_info input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.pafw_save_bacs_receipt_info label {
  cursor: pointer;
  font-size: 14px;
  color: var(--vcb-checkout-text);
  line-height: 1.5;
}

.pafw_save_bacs_receipt_info label:hover {
  color: var(--vcb-checkout-primary);
}

/* Existing BACS Receipt styles (keeping for compatibility) */
.pafw_bacs_receipt {
  background: var(--vcb-checkout-bg);
  border-radius: var(--vcb-checkout-radius-sm);
}

/* Responsive styles for BACS Receipt */
@media (max-width: 600px) {
  .pafw_bacs_receipt_issue_yn {
    gap: 6px;
  }

  .pafw_bacs_receipt_issue_yn span {
    margin-bottom: 4px;
  }

  .vcb-mshop-coupon-section-wrapper {
    padding: 24px 20px;
  }

  .vcb-point-section-wrapper {
    padding: 24px 20px;
  }

  .vcb-shipping-section-wrapper {
    padding: 24px 20px;
  }

  .vcb-point-section-wrapper {
    padding: 24px 20px;
  }

  .vcb-gift-section-wrapper {
    padding: 24px 20px !important;
  }

  #payment.woocommerce-checkout-payment {
    padding: 24px 20px;
  }
}
/* Place Order Button */
.place-order {
  margin-top: 24px;
}

#place_order {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(
    135deg,
    var(--vcb-checkout-primary) 0%,
    var(--vcb-checkout-primary-hover) 100%
  );
  color: white;
  border: none;
  border-radius: var(--vcb-checkout-radius);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--vcb-checkout-transition);
  position: relative;
  overflow: hidden;
}

#place_order::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

/* Terms Checkbox */
.vcb-terms-checkbox {
  margin-bottom: 20px;
}

.vcb-terms-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--vcb-checkout-text-light);
  cursor: pointer;
}

.vcb-terms-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

/* Error Messages */
.vcb-error,
.woocommerce-error {
  padding: 16px 20px;
  background: linear-gradient(135deg, #fee 0%, #fdd 100%);
  border: 1px solid #fcc;
  border-radius: var(--vcb-checkout-radius-sm);
  color: var(--vcb-checkout-danger);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vcb-error::before,
.woocommerce-error::before {
  content: "⚠️";
  font-size: 20px;
}

/* Success Messages */
.vcb-success,
.woocommerce-message {
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--vcb-checkout-radius-sm);
  color: var(--vcb-checkout-success);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vcb-success::before,
.woocommerce-message::before {
  content: "✅";
  font-size: 20px;
}

/* Loading State */
.vcb-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.vcb-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid var(--vcb-checkout-border);
  border-top-color: var(--vcb-checkout-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .vcb-checkout-form {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .vcb-checkout-sidebar {
    position: static;
    order: -1;
  }

  .vcb-form-fields {
    grid-template-columns: 1fr;
  }

  .vcb-form-section {
    padding: 24px 20px;
  }

  /* Order Summary Responsive */
  .vcb-order-summary-wrapper {
    padding: 24px 20px;
  }

  .vcb-table thead {
    display: none;
  }

  .vcb-table tbody tr {
    display: block;
    padding: 0;
  }

  .vcb-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--vcb-checkout-border);
  }

  .vcb-table tbody td:last-child {
    border-bottom: none;
  }

  .vcb-table tbody td::before {
    content: attr(data-title);
    font-weight: 600;
    font-size: 14px;
    color: var(--vcb-checkout-text-light);
    flex-shrink: 0;
    margin-right: 16px;
  }

  .vcb-table tbody td.product-name,
  .vcb-table tbody td.product-fee,
  .vcb-table tbody td.product-sale,
  .vcb-table tbody td.product-total {
    flex-direction: row;
  }

  .vcb-table tbody td .woocommerce-Price-amount {
    font-size: 16px;
  }

  .vcb-table tbody td.product-total {
    background: var(--vcb-checkout-bg);
    padding: 20px;
    margin-top: 8px;
  }

  .vcb-table tbody td.product-total strong .woocommerce-Price-amount {
    font-size: 24px;
  }

  .vcb-inner-table {
    margin-top: 12px;
    width: 100%;
    padding: 8px;
  }

  .vcb-table tbody td.product-sale p.price {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .vcb-form-section {
    padding: 20px 16px;
    margin-bottom: 16px;
  }

  .vcb-form-section h3 {
    font-size: 18px;
  }

  .vcb-gift-item {
    padding: 12px;
  }

  .vcb-gift-item-thumbnail {
    width: 80px;
    height: 80px;
    margin-right: 16px;
  }

  .vcb-gift-item-name {
    font-size: 13px;
  }

  /* Order Summary Mobile */
  .vcb-order-summary-wrapper {
    padding: 20px 16px;
  }

  .vcb-mshop-coupon-section-wrapper {
    padding: 20px 16px;
  }

  .vcb-point-section-wrapper {
    padding: 20px 16px;
  }

  .vcb-shipping-section-wrapper {
    padding: 20px 16px;
  }

  .vcb-point-section-wrapper {
    padding: 20px 16px;
  }

  .vcb-gift-section-wrapper {
    padding: 20px 16px !important;
  }

  #payment.woocommerce-checkout-payment {
    padding: 20px 16px;
  }

  .vcb-order-summary-wrapper h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .vcb-table tbody td {
    justify-content: end;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 8px;
  }

  .vcb-table tbody td::before {
    margin: 0;
    font-size: 13px;
  }

  .vcb-table tbody td .woocommerce-Price-amount {
    font-size: 18px;
  }

  .vcb-table tbody td.product-total {
    justify-content: space-between;
    align-items: center;
    padding: 16px;
  }

  .vcb-table tbody td.product-total strong .woocommerce-Price-amount {
    font-size: 22px;
  }

  .vcb-inner-table {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    font-size: 12px;
  }

  .vcb-inner-table th,
  .vcb-inner-table td {
    padding: 4px 0;
    font-size: 12px;
  }

  .vcb-inner-table a {
    font-size: 10px;
  }

  /* 할인 섹션 특별 처리 */
  .vcb-table tbody td.product-fee,
  .vcb-table tbody td.product-sale {
    flex-direction: column;
  }

  .vcb-table tbody td.product-fee > span:first-child,
  .vcb-table tbody td.product-sale > p.price {
    align-self: flex-end;
    margin-top: -24px;
  }
}

/* Order Summary New Layout Styles */
.vcb-order-summary-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vcb-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
}

.vcb-summary-label {
  color: var(--vcb-checkout-text);
}

.vcb-summary-value {
  font-weight: 500;
  color: var(--vcb-checkout-text);
  text-align: right;
}

.vcb-discount-amount {
  color: #ff4757;
}

.vcb-summary-sub-items {
  margin-left: 20px;
  font-size: 14px;
}

.vcb-summary-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  color: var(--vcb-checkout-text-light);
}

.vcb-sub-label {
  color: var(--vcb-checkout-text-light);
  font-size: 14px;
}

.vcb-sub-value {
  font-size: 14px;
}

.vcb-summary-divider {
  height: 1px;
  background: var(--vcb-checkout-border);
  margin: 12px 0;
}

.vcb-summary-total {
  padding: 12px 0;
  font-weight: 700;
}

.vcb-summary-total .vcb-summary-label {
  font-size: 17px;
  font-weight: 700;
}

.vcb-summary-total .vcb-summary-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--vcb-checkout-text);
}

/* Hide old table on all screens */
.vcb-order-summary-wrapper .vcb-table {
  display: none;
}

/* Installment Button */
.vcb-installment-button-wrapper {
  text-align: right;
  margin-top: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--vcb-checkout-border-light);
}

.vcb-installment-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fa5250;
  border: none;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.vcb-installment-button:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.vcb-installment-button:active {
  transform: translateY(0);
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .vcb-order-summary-content {
    gap: 5px;
  }

  .vcb-summary-row {
    font-size: 14px;
    padding: 6px 0;
  }

  .vcb-summary-sub-items {
    margin-left: 16px;
  }

  .vcb-summary-total .vcb-summary-label {
    font-size: 16px;
  }

  .vcb-summary-total .vcb-summary-value {
    font-size: 18px;
  }

  /* 모바일 무이자 할부 버튼 */
  .vcb-installment-button-wrapper {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
  }

  .vcb-installment-button {
    width: 100%;
    justify-content: center;
  }
}

/* Print Styles */
@media print {
  .vcb-checkout-form {
    display: block;
  }

  .vcb-form-section {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }

  .vcb-place-order,
  .vcb-coupon-section,
  .vcb-gift-section {
    display: none;
  }
}
