/* ==========================================================================
   THE BESTOWALS - CHECKOUT PAGE STYLESHEET (css/checkout.css)
   Pixel-accurate reproduction of Desktop and Mobile reference screenshots
   Supporting both Guest and Logged-In Checkout States
   ========================================================================== */

/* --- 1. Page Root & General Layout --- */
body.checkout-page {
  background-color: var(--color-bg-body, #faf5ee);
  color: var(--color-text-dark, #1f2937);
  font-family: var(--font-sans, 'Plus Jakarta Sans', -apple-system, sans-serif);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.checkout-main-content {
  padding: 24px 0 64px 0;
  background-color: var(--color-bg-body, #faf5ee);
}

.checkout-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* --- Breadcrumb Navigation --- */
.cart-breadcrumb-nav {
  margin-bottom: 18px;
}

.cart-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  font-size: 13.5px;
}

.cart-breadcrumb-list .breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.cart-breadcrumb-list .breadcrumb-item a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-breadcrumb-list .breadcrumb-item a:hover {
  color: #214b0f;
}

.cart-breadcrumb-list .breadcrumb-separator {
  color: #9ca3af;
  font-size: 13px;
  user-select: none;
}

.cart-breadcrumb-list .breadcrumb-item.active {
  color: #1f2937;
  font-weight: 600;
}

/* Coupon Section */
.desktop-coupon-section {
  margin: 16px 0;
  padding: 14px;
  background-color: #f8faf7;
  border: 1px solid #e5ede3;
  border-radius: 10px;
}

.coupon-section-header {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.coupon-tag-icon {
  width: 16px;
  height: 16px;
  color: #214b0f;
}

.coupon-input-group {
  display: flex;
  gap: 8px;
}

.coupon-input {
  flex: 1;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  font-family: inherit;
  text-transform: uppercase;
  color: #1f2937;
  background-color: #ffffff;
  box-sizing: border-box;
}

.coupon-input:focus {
  outline: none;
  border-color: #214b0f;
  box-shadow: 0 0 0 2px rgba(33, 75, 15, 0.1);
}

.btn-apply-coupon {
  height: 40px;
  padding: 0 18px;
  background-color: #1c3814;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-apply-coupon:hover {
  background-color: #142a0e;
}

.btn-proceed-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: #1c3814;
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.6px;
  padding: 13px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(28, 56, 20, 0.2);
  margin-top: 14px;
}

.btn-proceed-checkout:hover {
  background-color: #142a0e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 56, 20, 0.3);
}

.giftbox-inner-list {
  background-color: #faf8f5;
  border: 1px solid #f0ebe1;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 8px;
}

/* --- 2. Checkout Page Top Header --- */
.checkout-top-header {
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.checkout-header-guest {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.checkout-header-loggedin {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loggedin-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}

.checkout-main-title {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.2;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.checkout-main-title .guest-badge {
  font-size: 18px;
  font-weight: 500;
  color: #2e7d32;
}

.checkout-main-title .loggedin-badge {
  font-size: 18px;
  font-weight: 600;
  color: #214b0f;
}

.checkout-auth-link {
  font-size: 13.5px;
  color: #6b7280;
  font-weight: 500;
}

.loggedin-logout-wrap {
  font-size: 13.5px;
  color: #6b7280;
  font-weight: 500;
}

.login-action-btn {
  color: #15803d;
  font-weight: 700;
  text-decoration: none;
  margin-left: 3px;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.login-action-btn:hover {
  color: #166534;
  text-decoration: underline;
}

.btn-checkout-logout {
  background: none;
  border: none;
  padding: 0;
  margin-left: 3px;
  color: #214b0f;
  font-weight: 700;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-checkout-logout:hover {
  color: #142e09;
  text-decoration: underline;
}

.checkout-subtitle {
  font-size: 13.5px;
  color: #4b5563;
  margin: 0;
  line-height: 1.4;
}

/* --- 3. Two-Column Grid (Desktop) --- */
.checkout-grid-container {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

/* --- 4. Left Column Sections --- */
.checkout-left-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-card-section {
  background-color: transparent;
}

.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.section-edit-btn {
  background: none;
  border: none;
  color: #15803d;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.section-edit-btn:hover {
  background-color: rgba(21, 128, 61, 0.08);
}

.chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

/* --- 5. Delivery Address Management (Logged-in State) --- */
.btn-add-new-address {
  background: none;
  border: none;
  color: #214b0f;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-add-new-address:hover {
  background-color: rgba(33, 75, 15, 0.08);
}

.saved-address-card {
  background-color: #ffffff;
  border: 1.5px solid #214b0f;
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.saved-address-card.selected .custom-radio-mark {
  border-color: #214b0f;
}

.saved-address-card.selected .custom-radio-mark::after {
  display: block !important;
  background-color: #214b0f;
}

.saved-address-card.unselected {
  border-color: #e5e7eb;
  background-color: #ffffff;
}

.saved-address-card.unselected .custom-radio-mark::after {
  display: none !important;
}

.saved-address-card.unselected:hover {
  border-color: #c4d7c0;
}

.address-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.address-radio-tag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.address-tag-text {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
}

.address-tag-text .default-pill-text {
  color: #214b0f;
  font-weight: 600;
  margin-left: 4px;
}

.btn-address-edit {
  background: none;
  border: none;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.btn-address-edit:hover {
  color: #214b0f;
}

.btn-address-edit .edit-icon-svg {
  width: 14px;
  height: 14px;
}

.address-card-body {
  padding-left: 28px;
}

.address-recipient-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.address-lines-text {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 8px;
}

.address-phone-number {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
}

/* Other Saved Addresses Accordion */
.other-addresses-accordion {
  margin-top: 14px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.accordion-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #214b0f;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.accordion-toggle-btn:hover {
  background-color: #f8faf7;
}

.accordion-chevron {
  width: 16px;
  height: 16px;
  color: #214b0f;
  transition: transform 0.25s ease;
}

.accordion-toggle-btn.expanded .accordion-chevron {
  transform: rotate(180deg);
}

.other-addresses-list {
  padding: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Inline Address Editor Card */
.address-editor-card {
  margin-top: 16px;
  background: #ffffff;
  border: 1.5px solid #214b0f;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(33, 75, 15, 0.08);
}

.address-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.address-editor-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.address-editor-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #9ca3af;
  cursor: pointer;
}

.address-editor-close:hover {
  color: #111827;
}

.address-editor-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.address-editor-checkbox-row {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.custom-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.custom-checkbox-input {
  display: none;
}

.custom-checkbox-mark {
  width: 16px;
  height: 16px;
  border: 1.5px solid #9ca3af;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.custom-checkbox-input:checked + .custom-checkbox-mark {
  background-color: #214b0f;
  border-color: #214b0f;
}

.custom-checkbox-input:checked + .custom-checkbox-mark::after {
  content: '✓';
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.address-editor-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.btn-save-address {
  background-color: #1c3814;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-save-address:hover {
  background-color: #142a0e;
}

.btn-cancel-address {
  background-color: #f3f4f6;
  color: #4b5563;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-cancel-address:hover {
  background-color: #e5e7eb;
}

/* --- 6. Form Rows & Input Field Cards (Shared Guest & Editor) --- */
.shipping-form-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  gap: 14px;
  width: 100%;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.field-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.field-card:focus-within {
  border-color: #214b0f;
  box-shadow: 0 0 0 3px rgba(33, 75, 15, 0.1);
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: capitalize;
  margin: 0;
  line-height: 1.2;
}

.required-star {
  color: #dc2626;
}

.field-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.field-icon {
  width: 16px;
  height: 16px;
  color: #6b7280;
  flex-shrink: 0;
}

.field-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #111827;
  padding: 2px 0;
}

.field-input.no-left-icon {
  padding-left: 0;
}

.field-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.field-textarea {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #111827;
  resize: none;
  padding: 2px 0;
  line-height: 1.4;
}

.field-textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Select Dropdown Wrap */
.select-wrap {
  position: relative;
}

.field-select {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #111827;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding: 2px 20px 2px 0;
}

.select-chevron {
  position: absolute;
  right: 0;
  width: 14px;
  height: 14px;
  color: #6b7280;
  pointer-events: none;
}

/* Mobile Field & Verified Badge */
.mobile-verified-card {
  border-color: #214b0f;
}

.mobile-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.verified-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #15803d;
}

.badge-check-icon {
  width: 13px;
  height: 13px;
  fill: #15803d;
}

.country-prefix {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  padding-right: 4px;
  border-right: 1px solid #e5e7eb;
}

.mobile-field-input {
  padding-left: 6px;
}

/* Nested OTP Verification Box */
.otp-box {
  margin-top: 10px;
  padding: 10px 12px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px dashed #d1d5db;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.otp-label-text {
  font-size: 11.5px;
  color: #4b5563;
}

.otp-target-number {
  font-weight: 700;
  color: #111827;
}

.otp-input-row {
  display: flex;
  gap: 8px;
}

.otp-code-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  outline: none;
}

.otp-code-input:focus {
  border-color: #214b0f;
}

.btn-verify-otp {
  background-color: #ffffff;
  border: 1px solid #214b0f;
  color: #214b0f;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-verify-otp:hover {
  background-color: #214b0f;
  color: #ffffff;
}

.otp-timer-row {
  display: flex;
  justify-content: flex-start;
  font-size: 11px;
}

.otp-timer-text {
  color: #15803d;
  font-weight: 600;
}

.btn-resend-otp {
  background: none;
  border: none;
  padding: 0;
  color: #15803d;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
}

/* Shipping Review Summary (Mobile Guest Review) */
.shipping-review-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #374151;
}

.review-icon {
  width: 15px;
  height: 15px;
  color: #6b7280;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  color: #111827;
}

.review-phone {
  font-weight: 600;
}

.review-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: #15803d;
  font-weight: 600;
  background-color: #ecfdf5;
  padding: 1px 6px;
  border-radius: 10px;
}

.review-check-svg {
  width: 10px;
  height: 10px;
}

.review-email,
.review-address {
  color: #4b5563;
}

/* --- 7. Choose Payment Method Section (Shared) --- */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.payment-option-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.payment-option-card:hover {
  border-color: #cbd5e1;
}

.payment-option-card.selected {
  border: 1.5px solid #214b0f;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(33, 75, 15, 0.05);
}

.payment-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Custom Radio Button */
.custom-radio-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  cursor: pointer;
}

.custom-radio-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-radio-mark {
  width: 18px;
  height: 18px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.custom-radio-mark::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #214b0f;
  border-radius: 50%;
  display: none;
}

.custom-radio-input:checked ~ .custom-radio-mark {
  border-color: #214b0f;
}

.custom-radio-input:checked ~ .custom-radio-mark::after {
  display: block;
}

.payment-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payment-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-type-icon {
  width: 18px;
  height: 18px;
  color: #374151;
}

.payment-type-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.payment-type-desc {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  line-height: 1.35;
}

/* Payment Brand Logos */
.payment-logos-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  margin-left: 30px;
}

.pay-logo {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.visa-logo {
  color: #1a1f71;
  font-style: italic;
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: 0.5px;
}

.mc-logo {
  display: inline-flex;
  align-items: center;
}

.circle-c1,
.circle-c2 {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.circle-c1 {
  background-color: #eb001b;
  margin-right: -5px;
}

.circle-c2 {
  background-color: #f79e1b;
  opacity: 0.9;
}

.upi-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 900;
  font-size: 11.5px;
}

.upi-bhim {
  color: #00796b;
  font-size: 9.5px;
}

.upi-text {
  color: #00796b;
}

.paytm-logo {
  color: #002970;
  font-weight: 800;
  font-size: 12px;
}

.pay-more-text {
  font-size: 11.5px;
  color: #9ca3af;
  margin-left: 2px;
}

/* --- 8. Logged-In Security Card (Directly under Payment Method) --- */
.security-assurance-card {
  background-color: #f8faf7;
  border: 1px solid #e5ede3;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.security-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #eaf3e8;
  color: #214b0f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-card-icon svg {
  width: 18px;
  height: 18px;
}

.security-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.security-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
  margin: 0;
}

.security-card-desc {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

/* --- 9. Order Notes Section (Optional - Logged In) --- */
.order-notes-section {
  margin-top: 2px;
}

.order-notes-wrap {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.order-notes-wrap:focus-within {
  border-color: #214b0f;
  box-shadow: 0 0 0 3px rgba(33, 75, 15, 0.08);
}

.order-notes-textarea {
  width: 100%;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: #111827;
  resize: vertical;
  min-height: 65px;
  background: transparent;
  box-sizing: border-box;
}

.order-notes-textarea::placeholder {
  color: #9ca3af;
}

.order-notes-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.char-counter {
  font-size: 11.5px;
  color: #9ca3af;
  font-weight: 500;
}

/* --- 10. Right Column: Order Summary Card --- */
.order-summary-panel {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.summary-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 8px;
}

.summary-heading {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.summary-items-count {
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7280;
}

/* Product Items List */
.summary-products-list {
  display: flex;
  flex-direction: column;
}

.summary-product-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.summary-product-item:last-child {
  border-bottom: none;
}

.product-thumb-wrap {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.25;
}

.product-variant {
  font-size: 11.5px;
  color: #6b7280;
  margin: 0;
}

.product-qty {
  font-size: 11.5px;
  color: #4b5563;
  font-weight: 500;
}

.product-price-wrap {
  text-align: right;
}

.product-price {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

/* Summary Breakdown Rows */
.summary-breakdown-section {
  padding: 14px 0 10px 0;
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #4b5563;
}

.breakdown-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.info-tooltip-btn {
  background: none;
  border: none;
  padding: 0;
  color: #9ca3af;
  font-size: 11px;
  cursor: pointer;
  line-height: 1;
}

.breakdown-val {
  font-weight: 600;
  color: #111827;
}

.breakdown-val.shipping-free {
  color: #15803d;
  font-weight: 700;
}

.breakdown-val.discount-val {
  color: #dc2626;
}

/* Total Highlighted Box */
.summary-total-container {
  background-color: #f8faf7;
  border: 1px solid #e5ede3;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 10px 0;
}

.total-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.total-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}

.total-tax-note {
  font-size: 11px;
  color: #6b7280;
}

.total-amount-val {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: #214b0f;
}

/* Free Delivery Qualified Box */
.free-delivery-qualified-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #eaf3e8;
  border: 1px solid #d1e4cf;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #214b0f;
  margin-top: 4px;
}

.green-check-icon {
  width: 15px;
  height: 15px;
  fill: #214b0f;
  flex-shrink: 0;
}

/* --- 11. Trust & Assurance Badges --- */
.checkout-trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.trust-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 10px 4px;
}

.trust-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #214b0f;
}

.trust-icon-box svg {
  width: 20px;
  height: 20px;
}

.trust-badge-text {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
}

/* --- 12. Desktop Bottom CTA Card --- */
.desktop-bottom-checkout-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.desktop-cta-total-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.desktop-cta-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1;
}

.desktop-cta-price-row {
  display: flex;
  align-items: baseline;
}

.desktop-cta-price {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
}

.desktop-cta-subnote {
  font-size: 11px;
  color: #9ca3af;
}

.desktop-cta-action-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.btn-place-order-secure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #1c3814;
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.6px;
  padding: 13px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(28, 56, 20, 0.2);
}

.btn-place-order-secure:hover {
  background-color: #142a0e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 56, 20, 0.3);
}

.btn-place-order-secure .lock-icon-svg {
  width: 16px;
  height: 16px;
}

.place-order-terms-note {
  font-size: 11.5px;
  color: #6b7280;
  margin-top: 8px;
  text-align: right;
}

.place-order-terms-note a {
  color: #15803d;
  font-weight: 600;
  text-decoration: underline;
}

/* --- 13. Mobile Sticky Bottom Checkout Bar --- */
.mobile-sticky-checkout {
  display: none;
}

/* --- 14. Order Success Confirmation Modal --- */
.order-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 16px;
}

.order-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.order-success-modal {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.92);
  transition: transform 0.25s ease;
  box-sizing: border-box;
}

.order-modal-backdrop.active .order-success-modal {
  transform: scale(1);
}

.modal-success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #eaf3e8;
  color: #214b0f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.modal-success-icon-wrap svg {
  width: 36px;
  height: 36px;
}

.modal-title {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 21px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 6px 0;
}

.modal-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.modal-order-summary-box {
  background-color: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  text-align: left;
}

.modal-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #4b5563;
}

.modal-info-val {
  font-weight: 600;
  color: #111827;
}

.modal-info-row.total-highlight {
  padding-top: 6px;
  border-top: 1px dashed #e5e7eb;
  font-size: 13.5px;
}

.modal-info-row.total-highlight .modal-price {
  font-size: 16px;
  font-weight: 800;
  color: #214b0f;
}

.modal-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-btn-primary {
  background-color: #1c3814;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.modal-btn-primary:hover {
  background-color: #142a0e;
}

.modal-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.modal-btn-secondary:hover {
  background-color: #e5e7eb;
}

/* --- Toast Container --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-msg {
  background: #111827;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: authFadeIn 0.2s ease-out forwards;
}

/* ==========================================================================
   15. RESPONSIVE BREAKPOINTS (Mobile & Tablet Layouts)
   ========================================================================== */

/* --- TABLET (769px - 1024px) --- */
@media (max-width: 1024px) {
  .checkout-grid-container {
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
  }

  .form-row-3 {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- MOBILE VIEW (< 768px) --- */
@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }

  .main-header {
    padding: 12px 0 !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--color-border-light, #e5e5e5) !important;
  }

  .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 16px !important;
    width: 100% !important;
  }

  .main-nav,
  .desktop-nav {
    display: none !important;
  }

  .brand-logo {
    margin: 0 auto !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .brand-logo .logo-image {
    height: 34px !important;
    width: auto !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    position: relative;
    z-index: 10;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .action-btn.search-toggle,
  .action-btn.user-btn {
    display: none !important;
  }

  .cart-badge {
    background-color: var(--color-amber-gold, #de7317) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    width: 18px !important;
    height: 18px !important;
  }

  .checkout-main-content {
    padding: 16px 0 88px 0 !important;
  }

  .checkout-page-container {
    padding: 0 16px !important;
  }

  .checkout-top-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-bottom: 16px !important;
  }

  .loggedin-title-row {
    flex-direction: row !important;
    justify-content: space-between !important;
  }

  .checkout-main-title {
    font-size: 22px !important;
  }

  .checkout-main-title .guest-badge,
  .checkout-main-title .loggedin-badge {
    font-size: 16px !important;
  }

  .checkout-auth-link,
  .loggedin-logout-wrap {
    font-size: 13px !important;
  }

  .checkout-grid-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-bottom: 16px !important;
  }

  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .form-row-3 {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .form-row-3 .field-card:nth-child(3) {
    grid-column: span 2;
  }

  .form-row {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .field-card {
    padding: 10px 14px !important;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .payment-logos-row {
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 28px;
  }

  .desktop-bottom-checkout-card {
    display: none !important;
  }

  .mobile-sticky-checkout {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    background-color: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
    padding: 10px 16px !important;
  }

  .mobile-checkout-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 540px;
    margin: 0 auto;
  }

  .mobile-total-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
  }

  .mobile-total-label {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    line-height: 1 !important;
  }

  .mobile-total-price-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .mobile-total-price {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif) !important;
    line-height: 1.1 !important;
  }

  .mobile-tax-note {
    font-size: 10px !important;
    color: #9ca3af !important;
  }

  .btn-mobile-place-order {
    background-color: #1c3814 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 22px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .btn-mobile-place-order:hover {
    background-color: #142a0e !important;
  }

  .order-summary-panel {
    padding: 16px !important;
  }

  .product-thumb-wrap {
    width: 48px !important;
    height: 48px !important;
  }

  .summary-product-item {
    grid-template-columns: 48px 1fr auto !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  .product-title {
    font-size: 13px !important;
  }

  .total-amount-val {
    font-size: 20px !important;
  }
}

/* --- SMALL MOBILE (< 380px) --- */
@media (max-width: 380px) {
  .form-row-3 {
    grid-template-columns: 1fr !important;
  }

  .form-row-3 .field-card:nth-child(3) {
    grid-column: span 1;
  }

  .btn-mobile-place-order {
    padding: 10px 16px !important;
    font-size: 12px !important;
  }

  .mobile-total-price {
    font-size: 18px !important;
  }
}
