/* ==========================================================
   ROYAL HELMET — CHECKOUT PAGE STYLES
   Endpoint: /thanh-toan
   ========================================================== */

/* Apply brand font and variables */
.woocommerce-checkout {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--rha-ink);
}

.woocommerce-checkout * {
  box-sizing: border-box;
}

/* ----------------------------------------------------------
   1. HERO BANNER & CHECKOUT STEPPER
   ---------------------------------------------------------- */

.woocommerce-billing-fields .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    right: 40px;
}

.rha-checkout-header-wrap {
  margin-bottom: 28px;
}

.rha-co-hero {
  background: linear-gradient(135deg, #14171B 0%, #1E2229 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}

.woocommerce-form-coupon .flex-row.medium-flex-wrap {
    gap: 10px;
}

.rha-co-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 28, 36, 0.28) 0%, rgba(237, 28, 36, 0) 70%);
  pointer-events: none;
}

.rha-co-hero-content {
  flex: 1;
  z-index: 1;
}

.rha-co-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(237, 28, 36, 0.15);
  border: 1px solid rgba(237, 28, 36, 0.35);
  color: #FF6B70;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.rha-coupon-suggestions .rha-cs-list {
    display: flex !important;
}

.rha-co-hero h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.rha-co-hero p {
  font-size: 13px;
  color: #B9C0C8;
  margin: 0;
  line-height: 1.5;
  max-width: 560px;
}

/* Stepper */
.rha-co-hero-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 18px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  z-index: 1;
  flex-shrink: 0;
}

.rha-co-step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rha-co-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #9CA3AF;
}

.rha-co-step-text {
  font-size: 12px;
  font-weight: 600;
  color: #9CA3AF;
}

.rha-co-step.is-done .rha-co-step-num {
  background: #059669;
  color: #fff;
}

.rha-co-step.is-done .rha-co-step-text {
  color: #D1D5DB;
}

.rha-co-step.is-active .rha-co-step-num {
  background: var(--rha-red);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.25);
}

.rha-co-step.is-active .rha-co-step-text {
  color: #fff;
  font-weight: 700;
}

.woocommerce-cart-form .cart-wrapper td.product-remove a {
    top: 43% !important;
    left: 7px;
}

.rha-co-step-line {
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.rha-co-step-line.is-done {
  background: #059669;
}

/* ----------------------------------------------------------
   2. TRUST ASSURANCE STRIP
   ---------------------------------------------------------- */
.rha-co-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.rha-co-trust-item {
  background: #fff;
  border: 1px solid var(--rha-line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.rha-co-trust-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.rha-co-trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--rha-red-soft);
  display: grid;
  place-items: center;
  color: var(--rha-red);
  flex-shrink: 0;
}

.rha-co-trust-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.rha-co-trust-info strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--rha-ink);
}

.rha-co-trust-info span {
  font-size: 11px;
  color: #717A88;
}

/* ----------------------------------------------------------
   3. COUPON NOTICE REFINEMENT
   ---------------------------------------------------------- */
.woocommerce-form-coupon-toggle .woocommerce-info {
  background: #fff !important;
  border: 1px dashed #CBD0D7 !important;
  border-left: 4px solid var(--rha-red) !important;
  border-radius: 10px !important;
  padding: 12px 18px !important;
  font-size: 13.5px !important;
  color: #374151 !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info a {
  color: var(--rha-red) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

.checkout_coupon.woocommerce-form-coupon {
  background: #fff !important;
  border: 1px solid var(--rha-line) !important;
  border-radius: 12px !important;
  padding: 18px 20px !important;
  margin-bottom: 24px !important;
}

.checkout_coupon button.button {
  background: var(--rha-red) !important;  
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 4px 18px !important;
  transition: all 0.2s !important;
}

.checkout_coupon button.button:hover {
  background: var(--rha-red) !important;
}

.woocommerce-checkout .rha-coupon-suggestions .rha-cs-list {
    display: grid !important;
}
/* ----------------------------------------------------------
   3b. COUPON SUGGESTION BOX (RHA Wallet)
   ---------------------------------------------------------- */
.rha-coupon-suggestions {
  background: #F9FAFB !important;
  border: 1px solid #E5E7EB !important;
  border-left: 4px solid var(--rha-red) !important;
  border-radius: 10px !important;
  padding: 14px 16px 16px !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Header row */
.rha-cs-header {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1F2937 !important;
  margin-bottom: 12px !important;
}

.rha-cs-header svg {
  color: var(--rha-red) !important;
  flex-shrink: 0 !important;
}

.rha-cs-count {
  margin-left: auto !important;
  background: var(--rha-red) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  padding: 1px 7px !important;
  border-radius: 999px !important;
}

/* Scrollable list */
.rha-cs-list {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  flex-direction: column !important;
  gap: 8px !important;
  max-height: 260px !important;
  overflow-y: auto !important;
  padding-right: 2px !important;
}

/* Single item row */
.rha-cs-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #fff !important;
  border: 1px dashed #F87171 !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  transition: opacity .25s !important;
}

.rha-cs-item.rha-cs-used {
  opacity: .45 !important;
  pointer-events: none !important;
}

/* Colored badge showing discount value */
.rha-cs-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--rha-red) !important;
  color: #fff !important;
  border-radius: 6px !important;
  min-width: 62px !important;
  padding: 6px 8px !important;
  flex-shrink: 0 !important;
}

.rha-cs-amount {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  color: #fff !important;
}

/* Textual info next to badge */
.rha-cs-item-body {
  flex: 1 !important;
  min-width: 0 !important;
}

.rha-cs-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1F2937 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.rha-cs-min {
  font-size: 11px !important;
  color: #6B7280 !important;
  margin-top: 2px !important;
}

.rha-cs-expire {
  font-size: 11px !important;
  color: #6B7280 !important;
  margin-top: 2px !important;
}

.rha-cs-expire.is-warn {
  color: #D97706 !important;
  font-weight: 600 !important;
}

/* Apply button */
.rha-cs-apply-btn {
  flex-shrink: 0 !important;
  background: var(--rha-red) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  padding: 7px 14px !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 5px rgba(237, 28, 36, 0.25) !important;
  margin-bottom: 0px;
  margin-right: 0px;
}

.rha-cs-apply-btn:hover:not(:disabled) {
  background: #C41B22 !important;
  box-shadow: 0 4px 8px rgba(237, 28, 36, 0.35) !important;
}

.rha-cs-apply-btn:disabled {
  background: #9CA3AF !important;
  color: #fff !important;
  cursor: default !important;
  box-shadow: none !important;
}

/* Cart Sidebar Integration for Coupon Suggestions */
.woocommerce-cart .rha-coupon-suggestions {
  margin-top: 14px !important;
  padding: 12px 14px !important;
  background: #F9FAFB !important;
  border: 1px solid #E5E7EB !important;
  border-left: 4px solid var(--rha-red) !important;
  border-radius: 10px !important;
}

.woocommerce-cart .rha-cs-item {
  padding: 8px 10px !important;
  gap: 8px !important;
}

.woocommerce-cart .rha-cs-badge {
  min-width: 52px !important;
  padding: 5px 6px !important;
}

.woocommerce-cart .rha-cs-amount {
  font-size: 13.5px !important;
}

.woocommerce-cart .rha-cs-title {
  font-size: 12px !important;
}

.woocommerce-cart .rha-cs-expire {
  font-size: 10.5px !important;
}

.woocommerce-cart .rha-cs-apply-btn {
  font-size: 10.5px !important;
  padding: 6px 10px !important;
}

.cart-wrapper .quantity .button.minus, .cart-wrapper .quantity .button.plus {
    border: 0;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 480px) {
  .rha-coupon-suggestions {
    padding: 10px 10px 12px !important;
  }

  .rha-cs-badge {
    min-width: 50px !important;
    padding: 5px 6px !important;
  }

  .rha-cs-amount {
    font-size: 13.5px !important;
  }

  .rha-cs-apply-btn {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }
}

/* ----------------------------------------------------------
   4. CUSTOMER DETAILS & BILLING FORM CARDS
   ---------------------------------------------------------- */
#customer_details {
  background: #fff;
  border: 1px solid var(--rha-line);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.woocommerce-billing-fields > h3,
.woocommerce-additional-fields > h3 {
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  color: var(--rha-ink) !important;
  margin: 0 0 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1.5px solid var(--rha-line) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.woocommerce-billing-fields > h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--rha-red);
  border-radius: 2px;
}

.woocommerce-additional-fields > h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #717A88;
  border-radius: 2px;
}

/* Form inputs styling */
.woocommerce-checkout .form-row {
  margin-bottom: 16px;
}

.woocommerce-checkout .form-row label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1F2937 !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
}

.woocommerce-checkout .form-row label .required {
  color: var(--rha-red) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout textarea {
  width: 100% !important;
  height: 46px !important;
  padding: 10px 14px !important;
  border: 1.5px solid #ccc !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-size: 14px !important;
  color: var(--rha-ink) !important;
  box-shadow: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.woocommerce-checkout textarea {
  height: auto !important;
  min-height: 90px !important;
}

.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="email"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout textarea:focus {
  border-color: var(--rha-red) !important;
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.12) !important;
  outline: none !important;
}

/* Select2 dropdowns (DevVN Vietnam Checkout integration) */
.woocommerce-checkout .select2-container--default .select2-selection--single {
  height: 46px !important;
  border: 1.5px solid #ccc !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  display: flex !important;
  align-items: center !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px !important;
  /* padding-left: 14px !important; */
  font-size: 14px !important;
  color: var(--rha-ink) !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
  right: 10px !important;
}

.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--rha-red) !important;
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.12) !important;
  outline: none !important;
}

.select2-dropdown {
  border-radius: 10px !important;
  border: 1.5px solid var(--rha-line) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden !important;
  font-family: inherit !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--rha-red) !important;
  color: #fff !important;
}

/* ----------------------------------------------------------
   5. ORDER REVIEW & SIDEBAR CARD
   ---------------------------------------------------------- */
.woocommerce-checkout .col-inner.has-border {
  border: 1px solid var(--rha-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  padding: 24px 26px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

#order_review_heading {
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  color: var(--rha-ink) !important;
  margin: 0 0 18px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--rha-ink) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#order_review_heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--rha-red);
  border-radius: 2px;
}

/* Order Review Table */
.woocommerce-checkout-review-order-table {
  border: none !important;
  width: 100% !important;
  margin-bottom: 18px !important;
}

.woocommerce-checkout-review-order-table thead th {
  background: var(--rha-bg-light) !important;
  color: #4B5563 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 10px 12px !important;
  border: none !important;
}

.woocommerce-checkout-review-order-table tbody tr.cart_item td {
  padding: 14px 8px !important;
  border-top: none !important;
  border-bottom: 1px dashed var(--rha-line) !important;
  vertical-align: middle !important;
}

/* Product row thumbnail & title */
.woocommerce-checkout-review-order-table td.product-name {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--rha-ink) !important;
  line-height: 1.35 !important;
}

.rha-co-thumb {
  display: inline-block;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: var(--rha-bg-light);
  border: 1px solid #ECEEF2;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 12px;
  float: left;
}

.rha-co-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rha-co-thumb svg {
  width: 26px;
  height: 26px;
  fill: #B6BCC4;
  margin: 14px auto;
  display: block;
}

.rha-co-title {
  display: inline;
  font-weight: 700;
  color: var(--rha-ink);
}

.rha-co-qty-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #4B5563;
  background: #ECEEF2;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.woocommerce-checkout-review-order-table .variation {
  display: block !important;
  margin-top: 4px !important;
  font-size: 11px !important;
  color: #6B7280 !important;
  clear: none !important;
}

.woocommerce-checkout-review-order-table .variation dt,
.woocommerce-checkout-review-order-table .variation dd {
  display: inline-block !important;
  margin: 0 4px 0 0 !important;
  font-weight: normal !important;
}

.woocommerce-checkout-review-order-table .variation dt {
  font-weight: 700 !important;
}

.woocommerce-checkout-review-order-table td.product-total {
  text-align: right !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: var(--rha-ink) !important;
  white-space: nowrap !important;
}

/* Totals rows */
.woocommerce-checkout-review-order-table tfoot tr th,
.woocommerce-checkout-review-order-table tfoot tr td {
  padding: 10px 8px !important;
  border-top: none !important;
  border-bottom: 1px dashed #ECEEF2 !important;
  font-size: 13.5px !important;
  color: #4B5563 !important;
}

.woocommerce-checkout-review-order-table tfoot tr td {
  text-align: right !important;
  font-weight: 700 !important;
  color: var(--rha-ink) !important;
}

.woocommerce-checkout-review-order-table tfoot tr.shipping th,
.woocommerce-checkout-review-order-table tfoot tr.shipping td {
  color: var(--rha-green) !important;
}

.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
  border-top: 2px solid var(--rha-line) !important;
  border-bottom: none !important;
  padding-top: 14px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--rha-ink) !important;
}

.woocommerce-checkout-review-order-table tfoot tr.order-total td span.amount {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--rha-red) !important;
}

/* ----------------------------------------------------------
   6. PAYMENT METHODS ACCORDION
   ---------------------------------------------------------- */
#payment {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

#payment ul.payment_methods {
  border: none !important;
  padding: 0 !important;
  margin: 18px 0 !important;
}

#payment ul.payment_methods li.wc_payment_method {
  background: #FAFBFD !important;
  border: 1.5px solid var(--rha-line) !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  margin-bottom: 10px !important;
  transition: all 0.2s ease !important;
}

#payment ul.payment_methods li.wc_payment_method:hover {
  background: #fff !important;
  border-color: #CBD0D7 !important;
}

#payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked + label {
  color: var(--rha-ink) !important;
  font-weight: 700 !important;
}

#payment ul.payment_methods li.wc_payment_method label {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  cursor: pointer !important;
  display: inline !important;
  margin-left: 6px !important;
}

#payment div.payment_box {
  background: #F3F4F6 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 12.5px !important;
  color: #4B5563 !important;
  line-height: 1.45 !important;
  margin-top: 10px !important;
  border: none !important;
}

#payment div.payment_box::before {
  display: none !important;
}

/* Terms & Conditions */
.woocommerce-terms-and-conditions-wrapper {
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px dashed var(--rha-line) !important;
}

.woocommerce-terms-and-conditions-checkbox-text {
  font-size: 12.5px !important;
  color: #4B5563 !important;
}

/* ----------------------------------------------------------
   7. PLACE ORDER BUTTON (ROYAL ACCENT CTA)
   ---------------------------------------------------------- */
#place_order {
  width: 100% !important;
  height: 52px !important;
  background: linear-gradient(135deg, #ED1C24 0%, #D4141B 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  margin-top: 16px !important;
  box-shadow: 0 4px 16px rgba(237, 28, 36, 0.35) !important;
  transition: all 0.2s ease !important;
}

#place_order:hover {
  background: linear-gradient(135deg, #FF2B33 0%, #B3121A 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(237, 28, 36, 0.45) !important;
}

.woocommerce-privacy-policy-text {
  font-size: 11.5px !important;
  color: #8B929B !important;
  line-height: 1.45 !important;
  margin-top: 14px !important;
}

/* ----------------------------------------------------------
   8. WARRANTY REASSURANCE CARD UNDER PAYMENT
   ---------------------------------------------------------- */
.rha-co-guarantee-card {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border: 1.5px solid #A7F3D0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.04);
}

.rha-co-gc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #DCFCE7;
  display: grid;
  place-items: center;
  color: #059669;
  flex-shrink: 0;
}

.rha-co-gc-body {
  flex: 1;
  min-width: 0;
}

.rha-co-gc-body strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #065F46;
  margin-bottom: 2px;
  letter-spacing: 0.03em;
}

.rha-co-gc-body p {
  font-size: 11.5px;
  color: #374151;
  margin: 0 0 6px;
  line-height: 1.35;
}

.rha-co-gc-hotline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6B7280;
}

.rha-co-gc-hotline svg {
  color: var(--rha-red);
}

.rha-co-gc-hotline strong {
  display: inline;
  color: var(--rha-red);
  font-weight: 800;
}

/* ----------------------------------------------------------
   9. RESPONSIVE OPTIMIZATIONS (MOBILE & TABLET)
   ---------------------------------------------------------- */
@media (max-width: 992px) {
  .rha-co-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .rha-co-hero-stepper {
    width: 100%;
    justify-content: space-between;
  }

  .rha-co-trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rha-co-hero {
    padding: 18px 16px;
  }

  .rha-co-hero h2 {
    font-size: 20px;
  }

  .rha-co-hero-stepper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .rha-co-step-line {
    display: none;
  }

  .rha-co-trust-strip {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  span.rha-ty-item-counter {
    display: block;
    width: max-content;
    min-width: max-content;
  }

  #customer_details {
    padding: 18px 16px;
  }

  .woocommerce-checkout .col-inner.has-border {
    padding: 18px 16px !important;
  }

  .rha-co-thumb {
    width: 44px;
    height: 44px;
    margin-right: 8px;
  }
}

/* ==========================================================
   9. THANK YOU / ORDER RECEIVED PAGE (.rha-thankyou-wrap)
   ========================================================== */
.woocommerce-order {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: var(--rha-ink, #14171B) !important;
}

.woocommerce-order > .row,
.woocommerce-order.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
}

.rha-thankyou-wrap {
  width: 100%;
  margin: 0 auto 40px auto;
}

/* Hide default Flatsome entry-content styling when using custom template */
.woocommerce-order .is-well {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* --- HERO CELEBRATION BANNER --- */
.rha-ty-hero {
  background: linear-gradient(135deg, #14171B 0%, #1A1E24 50%, #1E2229 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 32px 36px 28px 36px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 40px rgba(237, 28, 36, 0.08);
  position: relative;
  overflow: hidden;
}

.rha-ty-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(237, 28, 36, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.rha-ty-hero-content {
  position: relative;
  z-index: 1;
}

.rha-ty-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #FFA4A6;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.rha-ty-hero-main-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.rha-ty-success-icon-wrap {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2), 0 8px 16px rgba(16, 185, 129, 0.35);
}

.rha-ty-hero-main-title h2 {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.3px;
}

.rha-ty-hero-main-title p {
  color: #D1D5DB;
  font-size: 14.5px;
  margin: 0;
  line-height: 1.5;
}

.rha-ty-hero-main-title p strong {
  color: #FFFFFF;
}

/* Stepper on Thank You page (All steps done) */
.rha-ty-stepper {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rha-ty-stepper .rha-co-step.is-done .rha-co-step-num {
  background: #10B981 !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
}

.rha-ty-stepper .rha-co-step-line.is-done {
  background: #10B981 !important;
}

/* --- KEY HIGHLIGHT BAR --- */
.rha-ty-hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 20px;
  margin-top: 22px;
}

.rha-ty-hb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.rha-ty-hb-label {
  color: #9CA3AF;
}

.rha-ty-hb-val {
  color: #FFFFFF;
  font-weight: 700;
}

.rha-ty-hb-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
}

/* --- TRUST STRIP ON THANK YOU --- */
.rha-ty-trust-strip {
  margin-bottom: 24px;
}

/* --- ELECTRONIC WARRANTY BANNER --- */
.rha-ty-warranty-banner {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1.5px solid #86EFAC;
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}

.rha-ty-wb-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rha-ty-wb-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 10px;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.rha-ty-wb-text h4 {
  font-size: 15px;
  font-weight: 800;
  color: #065F46;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rha-ty-wb-text p {
  font-size: 13.5px;
  color: #047857;
  margin: 0;
  line-height: 1.45;
}

.rha-ty-wb-hotline {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  border: 1px solid #A7F3D0;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #065F46;
  white-space: nowrap;
  font-weight: 500;
}

.rha-ty-wb-hotline strong {
  color: var(--rha-red, #ED1C24);
  font-weight: 800;
}

/* --- 2-COLUMN CONTENT GRID --- */
.rha-ty-layout-grid {
  display: grid;
  grid-template-columns: 63% 35%;
  gap: 2%;
  align-items: start;
}

/* --- CARDS COMMON STYLES --- */
.rha-ty-card {
  background: #FFFFFF;
  border: 1px solid var(--rha-line, #E5E7EB);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  overflow: hidden;
}

.rha-ty-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: #FAFBFD;
  border-bottom: 1px solid var(--rha-line, #E5E7EB);
}

.rha-ty-card-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rha-ink, #14171B);
  margin: 0;
}

.rha-ty-card-header h3 svg {
  color: var(--rha-red, #ED1C24);
}

.rha-ty-item-counter {
  font-size: 12px;
  font-weight: 700;
  color: #6B7280;
  background: #ECEEF2;
  padding: 3px 10px;
  border-radius: 12px;
  min-width: max-content;
}

/* --- PRODUCTS LIST --- */
.rha-ty-products-list {
  padding: 8px 22px;
}

.rha-ty-item-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--rha-line, #E5E7EB);
}

.rha-ty-item-card:last-child {
  border-bottom: none;
}

.rha-ty-item-thumb {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 10px;
  background: #F4F5F7;
  border: 1px solid var(--rha-line, #E5E7EB);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rha-ty-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rha-ty-item-thumb svg {
  width: 30px;
  height: 30px;
  color: #9CA3AF;
}

.rha-ty-item-details {
  flex-grow: 1;
}

.rha-ty-item-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--rha-ink, #14171B);
  line-height: 1.4;
}

.rha-ty-item-name a {
  color: var(--rha-ink, #14171B);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rha-ty-item-name a:hover {
  color: var(--rha-red, #ED1C24);
}

.rha-ty-item-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rha-ty-sku-tag {
  font-size: 11.5px;
  background: #F3F4F6;
  color: #4B5563;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #E5E7EB;
}

.rha-ty-variations-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rha-ty-attr-pill {
  font-size: 11.5px;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FEE2E2;
  padding: 2px 8px;
  border-radius: 4px;
  display: flex;
  gap: 5px;
}

.rha-ty-attr-pill p {
    margin-bottom: 0;
}

.rha-ty-item-qty-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 90px;
}

.rha-ty-qty-badge {
  font-size: 12px;
  font-weight: 700;
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #DBEAFE;
  padding: 2px 8px;
  border-radius: 12px;
}

.rha-ty-price-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--rha-ink, #14171B);
}

/* --- RECIPIENT & DELIVERY ADDRESS --- */
.rha-ty-address-body {
  padding: 20px 22px;
}

.rha-ty-recipient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--rha-line, #E5E7EB);
}

.rha-ty-bacs-body {
    padding: 10px;
}

button#rha-btn-zoom-qr {
    margin-bottom: 0px;
}

.rha-btn-qr-action span {
    font-size: 12px;
    text-transform: math-auto;
}



.rha-ty-rc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rha-ty-rc-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: #F4F5F7;
  color: #4B5563;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rha-ty-rc-content {
  display: flex;
  flex-direction: column;
}

.rha-ty-rc-sub {
  font-size: 11.5px;
  color: #6B7280;
}

.rha-ty-rc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--rha-ink, #14171B);
}

.rha-ty-rc-phone {
  font-size: 14px;
  font-weight: 700;
  color: var(--rha-ink, #14171B);
  text-decoration: none;
}

.rha-ty-rc-email {
  font-size: 13px;
  color: #4B5563;
  word-break: break-all;
}

.rha-ty-address-text {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.6;
}

.rha-ty-address-label {
  font-weight: 700;
  color: #1F2937;
  display: block;
  margin-bottom: 4px;
}

.rha-ty-address-text p {
  margin: 0;
  color: #4B5563;
}

.rha-ty-customer-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  font-size: 13px;
}

.rha-ty-note-label {
  font-weight: 700;
  color: #92400E;
  display: block;
  margin-bottom: 4px;
}

.rha-ty-customer-note p {
  margin: 0;
  color: #78350F;
}

/* --- PAYMENT INSTRUCTIONS CARD --- */
.rha-ty-payment-instructions .rha-ty-pi-body {
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.rha-ty-payment-instructions .rha-ty-pi-body p {
  margin: 0 0 10px 0;
}

.rha-ty-payment-instructions ul.wc-bacs-bank-details {
  list-style: none !important;
  padding: 0 !important;
  margin: 12px 0 0 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.rha-ty-payment-instructions ul.wc-bacs-bank-details li {
  background: #FAFBFD;
  border: 1px solid var(--rha-line, #E5E7EB);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
}

.rha-ty-payment-instructions ul.wc-bacs-bank-details li strong {
  color: var(--rha-ink, #14171B);
}

/* --- FINANCIAL SUMMARY CARD (SIDEBAR) --- */
.rha-ty-summary-body {
  padding: 16px 22px;
}

.rha-ty-sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rha-line, #E5E7EB);
  font-size: 13.5px;
  color: #4B5563;
}

.rha-ty-sum-row:last-child {
  border-bottom: none;
}

.rha-ty-sum-label {
  color: #4B5563;
}

.rha-ty-sum-val {
  font-weight: 700;
  color: var(--rha-ink, #14171B);
}

.rha-ty-sum-grand-total {
  border-top: 2px solid var(--rha-line, #E5E7EB) !important;
  border-bottom: none !important;
  padding-top: 14px !important;
  margin-top: 6px !important;
}

.rha-ty-sum-grand-total .rha-ty-sum-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--rha-ink, #14171B);
}

.rha-ty-sum-grand-total .rha-ty-sum-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--rha-red, #ED1C24);
}

/* --- ACTIONS & SUPPORT CARD --- */
.rha-ty-actions-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rha-btn-ty-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ED1C24 0%, #C00A11 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(237, 28, 36, 0.35);
  transition: all 0.2s ease;
}

.rha-btn-ty-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 28, 36, 0.5);
  color: #FFFFFF !important;
}

.rha-btn-ty-view-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F3F4F6;
  color: #374151 !important;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rha-btn-ty-view-order:hover {
  background: #E5E7EB;
  color: #111827 !important;
}

.rha-btn-ty-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #6B7280 !important;
  font-weight: 500;
  font-size: 13px;
  padding: 6px 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rha-btn-ty-profile:hover {
  color: var(--rha-red, #ED1C24) !important;
}

.rha-ty-support-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: #FAFBFD;
  border-top: 1px solid var(--rha-line, #E5E7EB);
  font-size: 13px;
}

.rha-ty-sp-label {
  color: #6B7280;
}

.rha-ty-sp-hotline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rha-red, #ED1C24);
  font-weight: 700;
  text-decoration: none;
}

/* --- FAILED ORDER HERO --- */
.rha-ty-hero--failed {
  background: linear-gradient(135deg, #7F1D1D 0%, #450A0A 100%) !important;
  text-align: center;
  padding: 48px 24px;
}

.rha-ty-hero-icon-failed {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.25);
  color: #F87171;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rha-ty-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.rha-btn-ty-primary {
  background: var(--rha-red, #ED1C24);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.rha-btn-ty-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 900px) {
  .rha-ty-layout-grid {
    grid-template-columns: 1fr;
  }

  .rha-ty-warranty-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .rha-ty-wb-hotline {
    width: 100%;
    justify-content: center;
  }

  .rha-ty-hero-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .rha-ty-hb-divider {
    display: none;
  }
}

@media (max-width: 600px) {
  .rha-ty-hero {
    padding: 24px 18px;
  }

  .rha-ty-hero-main-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rha-ty-hero-main-title h2 {
    font-size: 17px;
  }

  .rha-ty-item-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .rha-ty-item-qty-price {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
  }
}

/* --- PREVENT FLATSOME BROKEN QR CODE OVERFLOW --- */
.ge_qr_code {
  display: none !important;
  position: static !important;
  right: auto !important;
  top: auto !important;
}

/* --- ROYAL HELMET BACS & VIETQR PAYMENT CARD --- */
.rha-ty-bacs-card {
  margin-top: 24px;
}

.rha-ty-bacs-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #166534;
  margin-bottom: 20px;
}

.rha-ty-bacs-notice svg {
  flex-shrink: 0;
  color: #16A34A;
}

.rha-ty-bacs-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}

.rha-ty-bacs-fields-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rha-ty-bacs-item {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 11px 14px;
  transition: all 0.2s ease;
}

.rha-ty-bacs-item:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.rha-ty-bacs-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.rha-ty-bacs-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rha-ty-bacs-main-val {
  display: flex;
  flex-direction: column;
}

.rha-bank-highlight {
  font-size: 15.5px;
  font-weight: 700;
  color: #111827;
}

.rha-bank-full {
  font-size: 12px;
  color: #4B5563;
  margin-top: 1px;
}

.rha-ty-bacs-num {
  font-size: 17px;
  font-weight: 800;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  letter-spacing: 0.5px;
}

.rha-ty-bacs-text-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  word-break: break-word;
}

.rha-ty-bacs-money .amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--rha-red, #ED1C24);
}

.rha-ty-bacs-item--memo {
  background: #FEF2F2;
  border-color: #FEE2E2;
}

.rha-ty-bacs-item--memo:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
}

.rha-ty-bacs-item--memo .rha-ty-bacs-label {
  color: #991B1B;
}

.rha-ty-bacs-memo-code {
  font-size: 13px;
  font-weight: 800;
  color: var(--rha-red, #ED1C24);
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px dashed #FCA5A5;
  letter-spacing: 0.5px;
}

/* Copy Button */
.rha-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.rha-btn-copy:hover {
  background: var(--rha-red, #ED1C24);
  color: #FFFFFF;
  border-color: var(--rha-red, #ED1C24);
}

.rha-btn-copy:hover svg {
  stroke: #FFFFFF;
}

.rha-btn-copy.is-copied {
  background: #10B981 !important;
  color: #FFFFFF !important;
  border-color: #10B981 !important;
}

.rha-btn-copy.is-copied svg {
  stroke: #FFFFFF;
}

.rha-btn-copy--memo {
  border-color: #FCA5A5;
  color: #991B1B;
}

/* Warning alert */
.rha-ty-bacs-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #92400E;
  line-height: 1.45;
  margin-top: 4px;
}

.rha-ty-bacs-warning svg {
  flex-shrink: 0;
  color: #D97706;
  margin-top: 2px;
}

/* QR Code Box */
.rha-ty-bacs-qr-box {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.rha-ty-bacs-qr-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.rha-ty-bacs-qr-title svg {
  color: var(--rha-red, #ED1C24);
}

.rha-ty-bacs-qr-frame {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
  width: 100%;
  max-width: 260px;
}

.rha-ty-bacs-qr-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #D1D5DB;
}

.rha-ty-qr-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.rha-qr-zoom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 23, 27, 0.75);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rha-ty-bacs-qr-frame:hover .rha-qr-zoom-hint {
  opacity: 1;
}

.rha-ty-bacs-qr-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 260px;
  margin-top: 12px;
}

.rha-btn-qr-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  color: #374151;
}

.rha-btn-qr-action:hover {
  background: #F3F4F6;
  color: #111827;
}

.rha-btn-qr-action--primary {
  background: var(--rha-red, #ED1C24);
  border-color: var(--rha-red, #ED1C24);
  color: #FFFFFF !important;
}

.rha-btn-qr-action--primary:hover {
  background: #C41219;
  border-color: #C41219;
  color: #FFFFFF !important;
}

.rha-btn-qr-action--primary svg {
  stroke: #FFFFFF;
}

.rha-ty-bacs-qr-desc {
  font-size: 11px;
  color: #6B7280;
  line-height: 1.4;
  margin-top: 10px;
  margin-bottom: 0;
}

/* --- QR POPUP MODAL --- */
.rha-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rha-qr-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.rha-qr-modal-content {
  position: relative;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  z-index: 1;
  text-align: center;
  animation: rhaModalFadeIn 0.25s ease-out;
}

@keyframes rhaModalFadeIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.rha-qr-modal-close {
    position: absolute;
    top: -5px;
    right: -20px;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #6B7280;
    transition: all 0.2s ease;
}

.rha-qr-modal-close:hover {
  color: #ED1C24;
  background: transparent;
}

.rha-qr-modal-header {
  margin-bottom: 16px;
}

.rha-qr-modal-header h4 {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
  letter-spacing: 0.3px;
}

.rha-qr-modal-header p {
  font-size: 13px;
  color: #4B5563;
  margin: 0;
}

.rha-qr-modal-body {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.rha-qr-modal-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 8px;
}

.rha-btn-modal-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: var(--rha-red, #ED1C24);
  color: #FFFFFF !important;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.rha-btn-modal-download:hover {
  background: #C41219;
  color: #FFFFFF !important;
}

.rha-btn-modal-download svg {
  stroke: #FFFFFF;
}

/* Responsive for BACS card */
@media (max-width: 820px) {
  .rha-ty-bacs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rha-ty-bacs-qr-col {
    order: -1;
  }

  .rha-ty-bacs-qr-box {
    max-width: 100%;
  }

  .rha-ty-bacs-qr-frame {
    max-width: 240px;
  }

  .rha-ty-bacs-qr-actions {
    max-width: 240px;
  }
}

/* ==========================================================
   ROYAL HELMET — CART PAGE REFINEMENTS
   ========================================================== */
.woocommerce-cart {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--rha-ink, #1F2937);
}

.woocommerce-cart * {
  box-sizing: border-box;
}

/* Cart Header / Stepper adjustment */
.rha-cart-header-wrap {
  margin-top: 10px;
  margin-bottom: 28px;
}

/* Cart Table Styling */
.woocommerce-cart table.shop_table.cart,
.woocommerce-cart .woocommerce-cart-form table.cart {
  border: 1px solid var(--rha-line, #E5E7EB) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin-bottom: 24px !important;
}

.woocommerce-cart table.shop_table.cart thead th {
  background: #F9FAFB !important;
  color: #374151 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 14px 18px !important;
  border-bottom: 1.5px solid var(--rha-line, #E5E7EB) !important;
  border-top: none !important;
}

.woocommerce-cart table.shop_table.cart tbody td {
  padding: 18px 16px !important;
  border-bottom: 1px solid #F3F4F6 !important;
  vertical-align: middle !important;
  color: #1F2937 !important;
}

.woocommerce-cart table.shop_table.cart tbody tr:last-child td {
  border-bottom: none !important;
  display: table-cell !important;
}

.woocommerce-cart table.shop_table.cart .product-name a {
  font-weight: 700 !important;
  color: #111827 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.woocommerce-cart table.shop_table.cart .product-name a:hover {
  color: var(--rha-red, #ED1C24) !important;
}

.woocommerce-cart table.shop_table.cart .product-price,
.woocommerce-cart table.shop_table.cart .product-subtotal {
  font-weight: 700 !important;
  color: #111827 !important;
  font-size: 14.5px !important;
}

.woocommerce-cart table.shop_table.cart .product-subtotal {
  color: var(--rha-red, #ED1C24) !important;
}

.woocommerce-cart table.shop_table.cart .product-thumbnail img {
  border-radius: 8px !important;
  border: 1px solid #E5E7EB !important;
  max-width: 65px !important;
  height: auto !important;
  display: block !important;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove {
  color: #9CA3AF !important;
  font-size: 20px !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  padding-bottom: 2px !important;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover {
  color: #FFFFFF !important;
  background: var(--rha-red, #ED1C24) !important;
}

/* Quantity input */
.woocommerce-cart .quantity .qty {
  border: 1.5px solid #D1D5DB !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  height: 38px !important;
  background: #FFFFFF !important;
  padding: 0 8px !important;
}

/* Cart Form Actions & Buttons */
.woocommerce-cart .woocommerce-cart-form .actions {
  padding: 14px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.woocommerce-cart .woocommerce-cart-form .actions .button,
.woocommerce-cart .cart-actions .button {
  background: #F3F4F6 !important;
  color: #374151 !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  padding: 10px 18px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  transition: all 0.2s ease !important;
}

.woocommerce-cart .woocommerce-cart-form .actions .button:hover,
.woocommerce-cart .cart-actions .button:hover {
  background: #111827 !important;
  color: #FFFFFF !important;
  border-color: #111827 !important;
}

/* Cart Collaterals / Totals Box */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals {
  background: #FFFFFF !important;
  border: 1px solid var(--rha-line, #E5E7EB) !important;
  border-radius: 14px !important;
  padding: 24px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.woocommerce-cart .cart_totals h2 {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #111827 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin: 0 0 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1.5px solid #F3F4F6 !important;
}

.woocommerce-cart .cart_totals table.shop_table {
  border: none !important;
  margin-bottom: 20px !important;
  width: 100% !important;
}

.woocommerce-cart .cart_totals table.shop_table th {
  font-size: 13.5px !important;
  color: #4B5563 !important;
  font-weight: 600 !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #F3F4F6 !important;
  border-top: none !important;
  background: transparent !important;
}

.woocommerce-cart .cart_totals table.shop_table td {
  text-align: right !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #F3F4F6 !important;
  border-top: none !important;
  color: #111827 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  background: transparent !important;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  font-size: 16px !important;
  color: #111827 !important;
  font-weight: 800 !important;
  border-bottom: none !important;
  padding-top: 16px !important;
}

.woocommerce-cart .cart_totals .order-total td strong {
  color: var(--rha-red, #ED1C24) !important;
  font-size: 18px !important;
}

/* Coupon Discount Row Highlight */
.woocommerce-cart .cart_totals .cart-discount th,
.woocommerce-cart .cart_totals .cart-discount td {
  color: #059669 !important;
  font-weight: 700 !important;
}

.woocommerce-cart .cart_totals .woocommerce-remove-coupon {
  color: #DC2626 !important;
  font-size: 11.5px !important;
  margin-left: 6px !important;
  text-decoration: underline !important;
}

.woocommerce-cart table.shop_table.cart th.product-subtotal {
    min-width: max-content;
    width: 100%;
    display: block;
}

/* Proceed to Checkout Button — Royal Red Primary */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout .button.checkout,
.woocommerce-cart a.checkout-button,
.woocommerce-cart .checkout-button {
  background: var(--rha-red, #ED1C24) !important;
  color: #FFFFFF !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 15px 24px !important;
  border-radius: 10px !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  box-shadow: 0 4px 16px rgba(237, 28, 36, 0.3) !important;
  transition: all 0.25s ease !important;
  border: none !important;
  text-decoration: none !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .checkout-button:hover {
  background: #C41219 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(237, 28, 36, 0.45) !important;
  color: #FFFFFF !important;
}

/* Coupon Box in Cart Sidebar / Bottom */
.woocommerce-cart .cart-sidebar .coupon,
.woocommerce-cart .coupon {
  margin-top: 18px !important;
}

.woocommerce-cart .coupon h3,
.woocommerce-cart .coupon-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #374151 !important;
  margin-bottom: 8px !important;
}

.woocommerce-cart .coupon input.input-text {
  border: 1.5px solid #D1D5DB !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  height: 42px !important;
  background: #FAFAFA !important;
}

.woocommerce-cart .coupon input.input-text:focus {
  border-color: var(--rha-red, #ED1C24) !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.15) !important;
}

.woocommerce-cart .coupon button.button,
.woocommerce-cart .coupon input[type="submit"] {
  background: #111827 !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
  text-transform: uppercase !important;
  font-size: 12.5px !important;
  letter-spacing: 0.04em !important;
  transition: background 0.2s ease !important;
}

.woocommerce-cart .coupon button.button:hover,
.woocommerce-cart .coupon input[type="submit"]:hover {
  background: var(--rha-red, #ED1C24) !important;
}
