/**
 * Lula Checkout v0.1 - boutique two-column with sticky summary
 * Scoped under #checkout-checkout.lula-checkout-page
 */

#checkout-checkout.lula-checkout-page {
  background: #fff8f3;
  padding: 16px 0 64px 0;
  min-height: 70vh;
}

#checkout-checkout.lula-checkout-page .container {
  max-width: 1240px;
}

/* Header */
.lula-checkout-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 24px 0;
}

.lula-checkout-header h1 {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 36px !important;
  font-weight: 500 !important;
  color: #2D2A27 !important;
  letter-spacing: -0.3px;
  margin: 0 !important;
}

.lula-checkout-secure {
  margin: 0;
  font-size: 13px;
  color: #4C6358;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 575px) {
  .lula-checkout-header h1 { font-size: 26px !important; }
}

/* ============================================
   v2 LAYOUT: 2-column desktop (forms | sticky summary)
   ============================================ */

.lula-checkout-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.lula-checkout-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  width: auto;
  max-width: none;
}

.lula-checkout-main > .lula-checkout-section {
  margin-bottom: 0;
  height: auto;
  min-height: 0;
  align-self: flex-start;
  width: 100%;
  max-width: none;
}

/* Right column wrapper — new + legacy alias */
.lula-checkout-summary-column,
.lula-checkout-side {
  position: sticky;
  top: 24px;
  align-self: start;
  min-width: 0;
}

.lula-checkout-summary-column > .lula-checkout-section,
.lula-checkout-side > .lula-checkout-section {
  margin-bottom: 0;
  height: auto;
  min-height: 0;
}

@media (max-width: 991px) {
  .lula-checkout-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 720px;
  }
  .lula-checkout-summary-column,
  .lula-checkout-side {
    position: static;
  }
}

@media (max-width: 575px) {
  .lula-checkout-layout { max-width: 100%; }
}

/* Legacy aliases kept harmless for any stray markup */
.lula-checkout-stack,
.lula-checkout-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lula-checkout-cols {
  display: contents;
}

.lula-checkout-section-full,
.lula-checkout-section-account {
  margin-bottom: 0;
}

/* Compact country selector inside Delivery column */
.lula-checkout-country-compact {
  margin: 0 0 14px 0;
  padding: 10px 12px;
  background: #FBF4EB;
  border: 1px solid #F0E6DA;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lula-checkout-country-compact .lula-checkout-field-label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #4C6358;
  font-weight: 700;
  white-space: nowrap;
}

.lula-checkout-country-compact .lula-checkout-country-select {
  max-width: none;
  flex: 1;
  height: 38px;
  font-size: 14px;
}

/* Inline address (inside Delivery column) */
.lula-checkout-address-inline {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #F0E6DA;
}

.lula-checkout-address-inline[hidden] { display: none !important; }

.lula-checkout-subhead {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: #2D2A27;
  margin: 0 0 10px 0;
}

/* Contact column: side-by-side rows on desktop, stack on small screens */
.lula-checkout-col-contact .lula-auth-row {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.lula-checkout-col-contact .lula-auth-field {
  margin-bottom: 0;
}

@media (max-width: 575px) {
  .lula-checkout-col-contact .lula-auth-row { grid-template-columns: 1fr; gap: 10px; }
}

/* Section card */
.lula-checkout-section {
  background: #FFFFFF;
  border: 1px solid #F0E6DA;
  border-radius: 18px;
  padding: 22px 22px 22px 22px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(76, 99, 88, 0.04);
}

@media (max-width: 575px) {
  .lula-checkout-section { padding: 18px 16px; border-radius: 14px; }
}

/* Flat section title (no step number) */
.lula-checkout-section-title {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  color: #2D2A27 !important;
  margin: 0 0 16px 0 !important;
  padding: 0 0 10px 0 !important;
  border-bottom: 1px solid #F0E6DA;
  letter-spacing: -0.2px;
}

/* Legacy support if any old layout still emits step pills — hide them */
.lula-checkout-step { display: none !important; }
.lula-checkout-section-head { display: block; border: 0; padding: 0; margin: 0; }
.lula-checkout-section-head h2 {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  color: #2D2A27 !important;
  margin: 0 0 16px 0 !important;
  padding: 0 0 10px 0 !important;
  border-bottom: 1px solid #F0E6DA;
}

/* ============================================
   Account tabs (Guest / Register / Login)
   ============================================ */

.lula-account-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}

.lula-account-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: #FFFFFF;
  border: 1px solid #EDE3D7;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #6B6661;
  transition: all 0.2s ease;
  text-align: center;
}

.lula-account-tab i {
  font-size: 18px;
  color: #8FA89B;
}

.lula-account-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lula-account-tab:hover {
  border-color: #8FA89B;
}

.lula-account-tab.is-active {
  border-color: #4C6358;
  background: rgba(76, 99, 88, 0.06);
  color: #2D2A27;
}

.lula-account-tab.is-active i {
  color: #4C6358;
}

.lula-account-panel {
  margin-top: 14px;
  padding: 16px;
  background: #FBF4EB;
  border: 1px solid #F0E6DA;
  border-radius: 12px;
}

.lula-account-panel[hidden] { display: none !important; }

.lula-account-login-btn {
  margin-top: 8px;
}

/* Welcome panel shown after Lula login + on logged-in checkout boot */
.lula-account-loggedin-panel {
  margin-top: 14px;
  padding: 14px 16px;
  background: #F4F1EB;
  border: 1px solid #E5DBC8;
  border-radius: 12px;
}
.lula-account-loggedin-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lula-account-loggedin-row > i {
  font-size: 28px;
  color: #4C6358;
}
.lula-account-loggedin-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lula-account-loggedin-hello {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  color: #2D2A27;
}
.lula-account-loggedin-email {
  font-size: 12px;
  color: #8A8580;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lula-account-loggedin-logout {
  flex-shrink: 0;
  font-size: 13px;
  color: #6B6661;
  text-decoration: underline;
}
.lula-account-loggedin-logout:hover { color: #4C6358; }

/* When logged in, the legacy guest/register/login tabs UI is hidden by JS
   (sets [hidden]) but also force-hide via body class so a flash of unstyled
   tabs cannot appear if JS races the render. */
body.lula-checkout-logged-in .lula-account-tabs,
body.lula-checkout-logged-in .lula-account-login-panel,
body.lula-checkout-logged-in #lula-register-password-field {
  display: none !important;
}

@media (max-width: 480px) {
  .lula-account-tabs { gap: 6px; }
  .lula-account-tab { padding: 10px 8px; font-size: 12px; }
  .lula-account-tab i { font-size: 16px; }
}

/* ============================================
   Delivery options (parcel/courier cards)
   ============================================ */

.lula-delivery-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.lula-delivery-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #FFFFFF;
  border: 1px solid #EDE3D7;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.lula-delivery-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lula-delivery-option:hover {
  border-color: #8FA89B;
}

.lula-delivery-option.is-disabled {  opacity: 0.55;  pointer-events: none;  background: rgba(0,0,0,0.02);}
.lula-delivery-option.is-selected {
  border-color: #4C6358;
  background: rgba(76, 99, 88, 0.05);
  box-shadow: 0 0 0 1px rgba(76, 99, 88, 0.3) inset;
}

.lula-delivery-option-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.lula-delivery-option-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  color: #2D2A27;
}

.lula-delivery-option-title i {
  color: #4C6358;
  width: 24px;
  text-align: center;
}

.lula-delivery-option-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #8A8580;
}

.lula-delivery-option-price {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #4C6358;
  white-space: nowrap;
}

/* ============================================
   Payment options
   ============================================ */

.lula-payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Defensive: respect the [hidden] attribute on payment cards / info panes
   so JS can keep an option invisible until it confirms the backend is enabled.
   Without this, .lula-payment-option { display: flex } would beat the UA
   [hidden] { display: none } rule (equal specificity, later in cascade). */
.lula-payment-option[hidden],
.lula-banklist-wrap[hidden],
.lula-cardlist-wrap[hidden],
.lula-bank-transfer-info[hidden] {
  display: none !important;
}

/* Bank/card grid — appears under the "Bank link" option when selected */
.lula-banklist-wrap,
.lula-cardlist-wrap {
  display: none;
  margin: -2px 0 4px 0;
  padding: 14px 16px 16px 16px;
  background: #FBF4EB;
  border: 1px solid #F0E6DA;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(76, 99, 88, 0.04) inset;
}

.lula-banklist-wrap.is-open,
.lula-cardlist-wrap.is-open {
  display: block;
}

.lula-banklist-loading { margin: 4px 0; }

.lula-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.lula-bank-grid--cards {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

.lula-bank-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px 10px 8px;
  background: #FFFFFF;
  border: 1px solid #EDE3D7;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 64px;
}

.lula-bank-tile:hover {
  border-color: #8FA89B;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(76, 99, 88, 0.08);
}

.lula-bank-tile.is-selected {
  border-color: #4C6358;
  background: rgba(76, 99, 88, 0.06);
  box-shadow: 0 0 0 1px rgba(76, 99, 88, 0.4) inset;
}

.lula-bank-tile-logo {
  max-width: 100%;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lula-bank-tile-label {
  font-size: 11px;
  color: #6B6661;
  letter-spacing: 0.1px;
  text-align: center;
  line-height: 1.2;
}

.lula-bank-tile.is-selected .lula-bank-tile-label {
  color: #2D2A27;
  font-weight: 600;
}

@media (max-width: 575px) {
  .lula-bank-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .lula-bank-tile { min-height: 60px; padding: 10px 6px 8px 6px; }
  .lula-bank-tile-logo { max-height: 24px; }
}

/* Bank transfer instructions box (Lula warm cream) */
.lula-bank-transfer-info {
  margin: -2px 0 4px 0;
  padding: 14px 16px 14px 16px;
  background: #FFF8F3;
  border: 1px solid #E8D9C8;
  border-radius: 12px;
  color: #2D2A27;
}

.lula-bank-transfer-info[hidden] { display: none !important; }

.lula-bank-transfer-info-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px 0;
  color: #4C6358;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.lula-bank-transfer-info-head i { color: #4C6358; }

.lula-bank-transfer-info-body {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #2D2A27;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.lula-payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1px solid #EDE3D7;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.lula-payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lula-payment-option:hover {
  border-color: #8FA89B;
}

.lula-payment-option.is-selected {
  border-color: #4C6358;
  background: rgba(76, 99, 88, 0.05);
  box-shadow: 0 0 0 1px rgba(76, 99, 88, 0.3) inset;
}

.lula-payment-option-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(76, 99, 88, 0.10);
  color: #4C6358;
  border-radius: 10px;
  font-size: 16px;
}

.lula-payment-option-body {
  display: flex;
  flex-direction: column;
}

.lula-payment-option-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: #2D2A27;
}

.lula-payment-option-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #8A8580;
}

/* ============================================
   Country selector
   ============================================ */

.lula-checkout-country .lula-checkout-section-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lula-checkout-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #2D2A27;
  letter-spacing: 0.2px;
  margin: 0 0 4px 0;
}

.lula-checkout-country-select {
  width: 100%;
  max-width: 360px;
  height: 48px;
  padding: 10px 36px 10px 16px;
  background: #FFFFFF
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%234C6358' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  background-size: 12px 12px;
  border: 1px solid #EDE3D7;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2D2A27;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.lula-checkout-country-select:focus {
  outline: none;
  border-color: #4C6358;
  box-shadow: 0 0 0 3px rgba(76, 99, 88, 0.10);
}

.lula-checkout-help-muted {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: #8A8580;
}

/* ============================================
   Terminal card (parcel pickup placeholder)
   ============================================ */

.lula-checkout-terminal-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FBF4EB 100%);
  border: 1px solid #F0E6DA;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.lula-terminal-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px 0;
}

.lula-terminal-card-head i {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(76, 99, 88, 0.10);
  color: #4C6358;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.lula-terminal-card-head strong {
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  color: #2D2A27;
  line-height: 1.2;
}

.lula-terminal-card-sub {
  font-size: 12px;
  color: #6B6661;
  margin-top: 2px;
}

.lula-terminal-search {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.lula-terminal-search-input {
  flex: 1;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid #EDE3D7;
  border-radius: 10px;
  font-size: 14px;
  background: #FFFFFF;
  color: #2D2A27;
}

.lula-terminal-search-input:disabled {
  background: #FAF6F0;
  cursor: not-allowed;
}

.lula-terminal-search-btn {
  height: 44px;
  padding: 0 18px;
  background: #4C6358;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.lula-terminal-search-btn:hover:not(:disabled) {
  background: #3F5148;
}

.lula-terminal-search-btn:disabled {
  background: #C0BAB0;
  cursor: not-allowed;
}

/* Provider tabs (LP Express / Omniva) */
.lula-terminal-providers {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.lula-terminal-providers:empty {
  display: none;
}

.lula-terminal-provider-btn {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid #EDE3D7;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #6B6661;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lula-terminal-provider-btn:hover {
  border-color: #8FA89B;
  color: #4C6358;
}

.lula-terminal-provider-btn.is-active {
  background: rgba(76, 99, 88, 0.08);
  border-color: #4C6358;
  color: #2D2A27;
  box-shadow: 0 1px 2px rgba(76, 99, 88, 0.10) inset;
}

.lula-terminal-provider-btn .lula-terminal-provider-count {
  background: rgba(76, 99, 88, 0.15);
  color: #4C6358;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.lula-terminal-provider-btn.is-active .lula-terminal-provider-count {
  background: #4C6358;
  color: #FFFFFF;
}

/* Selected-with-provider tag */
.lula-terminal-selected-provider {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: #4C6358;
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Clear button (inside search input area) */
#lula-terminal-clear {
  width: 44px;
  padding: 0;
  background: #FBF4EB;
  color: #6B6661;
  border: 1px solid #EDE3D7;
}
#lula-terminal-clear:hover { background: #EDE3D7; color: #2D2A27; }

/* Terminal results list */
.lula-terminal-results {
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #EDE3D7;
  border-radius: 12px;
  background: #FFFFFF;
}

.lula-terminal-results:empty,
.lula-terminal-results[hidden] { display: none; }

.lula-terminal-results .lula-terminal-empty {
  margin: 16px;
  text-align: center;
}

.lula-terminal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #F0E6DA;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lula-terminal-row:last-child { border-bottom: none; }

.lula-terminal-row:hover,
.lula-terminal-row.is-focus {
  background: #FBF4EB;
}

.lula-terminal-row-body {
  flex: 1;
  min-width: 0;
}

.lula-terminal-row-city {
  font-size: 14px;
  font-weight: 600;
  color: #2D2A27;
  margin: 0;
}

.lula-terminal-row-address {
  font-size: 12px;
  color: #6B6661;
  margin: 0;
}

.lula-terminal-row-zip {
  font-size: 11px;
  color: #8A8580;
  font-weight: 500;
  padding: 2px 8px;
  background: #FAF6F0;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Selected terminal card */
.lula-terminal-selected {
  margin-top: 10px;
  padding: 14px 16px;
  background: rgba(76, 99, 88, 0.06);
  border: 1px solid rgba(76, 99, 88, 0.20);
  border-radius: 12px;
}

.lula-terminal-selected[hidden] { display: none !important; }

.lula-terminal-selected-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4C6358;
}

.lula-terminal-selected-head i { color: #4C6358; }

.lula-terminal-change-btn {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #4C6358;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.lula-terminal-change-btn:hover {
  background: rgba(76, 99, 88, 0.10);
}

.lula-terminal-selected-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lula-terminal-selected-city {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  color: #2D2A27;
}

.lula-terminal-selected-address {
  font-size: 13px;
  color: #6B6661;
}

.lula-terminal-selected-zip {
  font-size: 12px;
  color: #8A8580;
}

@media (max-width: 575px) {
  .lula-terminal-search { flex-direction: row; }
  .lula-terminal-search-btn { width: 44px; padding: 0; flex-shrink: 0; }
}

/* ============================================
   Legacy address block — never shown (replaced by inline address inside Delivery column)
   ============================================ */

.lula-checkout-address-block,
#lula-address-section {
  display: none !important;
}

.lula-checkout-address-block .lula-checkout-help {
  background: #FFF8F3;
  border-color: #E8D9C8;
}

.lula-checkout-help {
  margin: 0 0 14px 0;
  padding: 10px 14px;
  background: #FFF8F3;
  border: 1px solid #F0E6DA;
  border-radius: 10px;
  font-size: 13px;
  color: #4C6358;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lula-checkout-help[hidden] { display: none !important; }

.lula-checkout-terminal-slot {
  margin-top: 14px;
  padding: 14px;
  background: #FBF4EB;
  border: 1px dashed #E8D9C8;
  border-radius: 12px;
}

.lula-checkout-terminal-slot[hidden] { display: none !important; }

.lula-checkout-terminal-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: #2D2A27;
  margin: 0 0 6px 0;
}

/* ============================================
   STYLE OPENCART SUB-TEMPLATES INSIDE CHECKOUT
   ============================================ */

/* Section heading legend (used by sub-templates) */
.lula-checkout-section legend,
.lula-checkout-section .panel-heading {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: #2D2A27;
  margin: 0 0 10px 0;
  padding: 0;
  border: none;
}

.lula-checkout-section h2:not(.lula-checkout-summary-title):not(:first-child),
.lula-checkout-section h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  color: #2D2A27;
  margin-top: 16px;
}

.lula-checkout-section h2:first-child,
.lula-checkout-section legend:first-child {
  margin-top: 0;
}

/* Buy mode radios (Guest / Register / Login) */
.lula-checkout-section input[type="radio"][name="account"],
.lula-checkout-section input[type="radio"][name="customer_type"] {
  margin-right: 6px;
  accent-color: #4C6358;
  width: 16px;
  height: 16px;
}

/* Tab-like radio rows */
.lula-checkout-section .radio,
.lula-checkout-section .form-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid #EDE3D7;
  border-radius: 10px;
  margin-bottom: 8px !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lula-checkout-section .radio:has(input:checked),
.lula-checkout-section .form-check:has(input:checked) {
  border-color: #4C6358;
  background: rgba(76, 99, 88, 0.04);
}

.lula-checkout-section .form-check-label,
.lula-checkout-section .radio label {
  margin: 0;
  cursor: pointer;
  color: #2D2A27;
  font-size: 14px;
  flex: 1;
  font-weight: 500;
}

.lula-checkout-section .form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #C0BAB0;
  accent-color: #4C6358;
}

/* Inputs / selects / textarea inside checkout */
.lula-checkout-section .form-control,
.lula-checkout-section .form-select,
.lula-checkout-section input[type="text"],
.lula-checkout-section input[type="email"],
.lula-checkout-section input[type="tel"],
.lula-checkout-section input[type="password"],
.lula-checkout-section input[type="number"],
.lula-checkout-section textarea,
.lula-checkout-section select {
  background: #FFFFFF !important;
  border: 1px solid #EDE3D7 !important;
  border-radius: 10px !important;
  color: #2D2A27 !important;
  font-size: 14px !important;
  padding: 10px 14px !important;
  min-height: 44px;
  transition: all 0.2s ease;
}

.lula-checkout-section .form-control:focus,
.lula-checkout-section input:focus,
.lula-checkout-section textarea:focus,
.lula-checkout-section select:focus {
  outline: none !important;
  border-color: #4C6358 !important;
  box-shadow: 0 0 0 3px rgba(76, 99, 88, 0.10) !important;
}

.lula-checkout-section .col-form-label,
.lula-checkout-section label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #2D2A27 !important;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}

/* Buttons */
.lula-checkout-section .btn-primary,
.lula-checkout-section button.btn:not(.btn-light):not(.btn-danger),
.lula-checkout-section .btn-block.btn-primary {
  background: #4C6358 !important;
  border: 1px solid #4C6358 !important;
  color: #FFFFFF !important;
  border-radius: 10px !important;
  padding: 10px 22px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.lula-checkout-section .btn-primary:hover,
.lula-checkout-section button.btn:not(.btn-light):not(.btn-danger):hover {
  background: #3F5148 !important;
  border-color: #3F5148 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(76, 99, 88, 0.18);
}

.lula-checkout-section .btn-light {
  background: #FBF4EB !important;
  border: 1px solid #EDE3D7 !important;
  color: #4C6358 !important;
  border-radius: 10px !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.lula-checkout-section .btn-light:hover {
  background: #F0E6DA !important;
}

/* Alerts */
.lula-checkout-section .alert {
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
}

.lula-checkout-section .alert-success {
  background: #EBF3EE !important;
  border-color: #C7DED0 !important;
  color: #2E5D3F !important;
}

.lula-checkout-section .alert-danger {
  background: #FBEEEB !important;
  border-color: #F0CFC5 !important;
  color: #8B3B2E !important;
}

.lula-checkout-section .alert-info {
  background: #FFF8F3 !important;
  border-color: #E8D9C8 !important;
  color: #4C6358 !important;
}

/* ============================================
   SIDEBAR ORDER SUMMARY (right column, sticky)
   ============================================ */

.lula-checkout-summary-side {
  padding: 20px 20px 22px 20px;
}

.lula-checkout-summary-side > .lula-checkout-summary-title,
.lula-checkout-summary-wide > .lula-checkout-summary-title {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  color: #2D2A27 !important;
  margin: 0 0 14px 0 !important;
  padding: 0 0 12px 0 !important;
  border-bottom: 1px solid #F0E6DA;
  letter-spacing: -0.2px;
}

.lula-checkout-summary-side > .lula-checkout-summary-title { font-size: 20px !important; }

/* Sidebar mode: render product table as compact cards (always, not viewport-based) */
.lula-summary-table-wrap--sidebar { overflow: visible; }

.lula-summary-table-wrap--sidebar .lula-summary-table,
.lula-summary-table-wrap--sidebar .lula-summary-table tbody,
.lula-summary-table-wrap--sidebar .lula-summary-table thead { display: block; }

.lula-summary-table-wrap--sidebar .lula-summary-table thead { display: none; }

.lula-summary-table-wrap--sidebar .lula-summary-table tr {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  grid-template-areas:
    "img  name   remove"
    "img  qty    total";
  column-gap: 12px;
  row-gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid #F0E6DA;
  align-items: center;
}

.lula-summary-table-wrap--sidebar .lula-summary-table tr:last-child { border-bottom: none; }

.lula-summary-table-wrap--sidebar .lula-summary-table td {
  padding: 0 !important;
  border: 0 !important;
}

.lula-summary-table-wrap--sidebar .lula-summary-table td.lula-summary-img { grid-area: img; width: 64px; }
.lula-summary-table-wrap--sidebar .lula-summary-table td.lula-summary-img img {
  width: 64px; height: 64px; padding: 6px; border-radius: 10px;
}
.lula-summary-table-wrap--sidebar .lula-summary-table td.lula-summary-name-cell {
  grid-area: name; align-self: start;
}
.lula-summary-table-wrap--sidebar .lula-summary-table .lula-summary-name {
  font-size: 14px; line-height: 1.3;
}
.lula-summary-table-wrap--sidebar .lula-summary-table .lula-summary-meta {
  margin-top: 2px; font-size: 11px;
}
.lula-summary-table-wrap--sidebar .lula-summary-table td.lula-summary-qty-cell {
  grid-area: qty; align-self: center;
}
.lula-summary-table-wrap--sidebar .lula-summary-table td.lula-summary-total-cell {
  grid-area: total; align-self: center; text-align: right;
}
.lula-summary-table-wrap--sidebar .lula-summary-table td.lula-summary-remove-cell {
  grid-area: remove; align-self: start; text-align: right;
}
.lula-summary-table-wrap--sidebar .lula-summary-table td.lula-summary-price-cell {
  display: none;
}
/* Sidebar qty stepper — wider/taller so the number is fully readable.
   Was 26+36+26=88px / 30 tall (number cropped on the right edge); now 32+48+32 = 112px / 36 tall. */
.lula-summary-table-wrap--sidebar .lula-summary-qty {
  height: 36px;
  border-radius: 10px;
}
.lula-summary-table-wrap--sidebar .lula-summary-qty button {
  width: 32px;
  height: 36px;
  font-size: 15px;
  line-height: 1;
}
.lula-summary-table-wrap--sidebar .lula-summary-qty input {
  width: 48px;
  height: 36px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 0;
}
.lula-summary-table-wrap--sidebar .lula-summary-total { font-size: 14px; }
.lula-summary-table-wrap--sidebar .lula-summary-remove { width: 28px; height: 28px; }

/* Validation: red ring on invalid field + error text below */
.lula-auth-field.has-error input,
.lula-auth-field.has-error select,
.lula-auth-field.has-error textarea {
  border-color: #B45A4B !important;
  box-shadow: 0 0 0 3px rgba(180, 90, 75, 0.10) !important;
}
.lula-checkout-section.has-error,
.lula-delivery-options.has-error,
.lula-payment-options.has-error,
#lula-terminal-card.has-error,
#lula-banklist-wrap.has-error {
  outline: 1px solid #B45A4B;
  outline-offset: 4px;
  border-radius: 12px;
}
.lula-checkout-error {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: #B45A4B;
  font-weight: 600;
}
.lula-checkout-error[hidden] { display: none !important; }

.lula-checkout-error-banner {
  margin: 0 0 14px 0;
  padding: 12px 16px;
  background: #FBEEEB;
  border: 1px solid #F0CFC5;
  border-radius: 12px;
  color: #8B3B2E;
  font-size: 14px;
  font-weight: 600;
}
.lula-checkout-error-banner[hidden] { display: none !important; }

.lula-checkout-parcel-unavailable {
  margin: 0 0 14px 0;
  background: #FFF8F3;
  border: 1px solid #E8D9C8;
  color: #6B4423;
}
.lula-checkout-parcel-unavailable[hidden] { display: none !important; }

#lula-confirm-btn.is-loading {
  opacity: 0.7;
  cursor: progress;
}
#lula-confirm-btn:disabled { cursor: not-allowed; opacity: 0.6; }

/* Delivery option cards: hidden via JS for the inactive country mode. */
.lula-delivery-option[hidden] { display: none !important; }

/* Lula client-side mini-totals (subtotal + shipping + grand). Sits inside the
   summary card above the OpenCart confirm-slot. */
.lula-summary-mini-totals {
  margin: 14px 0 14px 0;
  padding: 12px 14px;
  background: #FFF8F3;
  border: 1px solid #F0E6DA;
  border-radius: 10px;
  font-size: 14px;
  color: #2D2A27;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lula-summary-mini-totals[hidden] { display: none !important; }
.lula-summary-mini-totals .lula-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.lula-summary-mini-totals .lula-summary-line span:last-child {
  font-weight: 700;
  white-space: nowrap;
  color: #2D2A27;
}
.lula-summary-mini-totals .lula-summary-line--grand {
  border-top: 1px solid #F0E6DA;
  padding-top: 8px;
  margin-top: 2px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  color: #2D2A27;
}
.lula-summary-mini-totals .lula-summary-line--grand span:last-child {
  color: #4C6358;
}

/* Product table */
.lula-summary-table-wrap {
  margin: 0 0 18px 0;
  overflow-x: auto;
}

.lula-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.lula-summary-table thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8A8580;
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid #F0E6DA;
}

.lula-summary-table thead th.text-right,
.lula-summary-table tbody td.text-right {
  text-align: right;
}

.lula-summary-table tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #F0E6DA;
  vertical-align: middle;
  font-size: 14px;
  color: #2D2A27;
}

.lula-summary-table tbody tr:last-child td { border-bottom: none; }

/* If the table renders, hide any leftover empty-state paragraph that may have been injected earlier */
.lula-summary-table-wrap:has(.lula-summary-table) > p {
  display: none !important;
}

.lula-summary-table .lula-summary-img {
  width: 110px;
}

.lula-summary-table .lula-summary-img img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: #FAF6F0;
  padding: 8px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: brightness(1.04);
}

.lula-summary-table .lula-summary-name {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: #2D2A27;
  line-height: 1.25;
  text-decoration: none;
}

.lula-summary-table .lula-summary-name:hover { color: #4C6358; }

.lula-summary-table .lula-summary-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #8A8580;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

/* Quantity stepper inside table */
.lula-summary-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #EDE3D7;
  border-radius: 10px;
  overflow: hidden;
  background: #FFFFFF;
  height: 36px;
}

.lula-summary-qty button {
  width: 30px;
  height: 36px;
  background: transparent;
  border: 0;
  color: #4C6358;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lula-summary-qty button:hover { background: #FBF4EB; }

.lula-summary-qty input {
  width: 44px;
  height: 36px;
  text-align: center;
  border: 0;
  border-left: 1px solid #EDE3D7;
  border-right: 1px solid #EDE3D7;
  font-size: 14px;
  font-weight: 600;
  color: #2D2A27;
  background: transparent;
  -moz-appearance: textfield;
}

.lula-summary-qty input::-webkit-outer-spin-button,
.lula-summary-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.lula-summary-price,
.lula-summary-total {
  font-size: 14px;
  font-weight: 600;
  color: #2D2A27;
  white-space: nowrap;
}

.lula-summary-total {
  color: #4C6358;
  font-size: 15px;
}

.lula-summary-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: #A39C92;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.lula-summary-remove:hover {
  background: rgba(180, 90, 75, 0.10);
  color: #B45A4B;
}

/* Bottom: coupon + totals */
.lula-summary-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
}

@media (max-width: 767px) {
  .lula-summary-bottom { grid-template-columns: 1fr; gap: 16px; }
}

.lula-summary-totals {
  background: #FBF4EB;
  border: 1px solid #F0E6DA;
  border-radius: 14px;
  padding: 18px 20px;
}

/* Mobile: stack product table as cards */
@media (max-width: 575px) {
  .lula-summary-table,
  .lula-summary-table tbody,
  .lula-summary-table thead { display: block; }

  .lula-summary-table thead { display: none; }

  .lula-summary-table tr {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    grid-template-areas:
      "img name remove"
      "img qty  total";
    gap: 8px 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F0E6DA;
  }

  .lula-summary-table td {
    padding: 0 !important;
    border: 0 !important;
  }

  .lula-summary-table .lula-summary-img { grid-area: img; }
  .lula-summary-table .lula-summary-img img { width: 80px; height: 80px; }
  .lula-summary-table td.lula-summary-name-cell { grid-area: name; }
  .lula-summary-table td.lula-summary-qty-cell { grid-area: qty; align-self: end; }
  .lula-summary-table td.lula-summary-total-cell { grid-area: total; align-self: end; text-align: right; }
  .lula-summary-table td.lula-summary-remove-cell { grid-area: remove; text-align: right; }
  .lula-summary-table td.lula-summary-price-cell { display: none; } /* save space on mobile; unit price shown beside name as meta */
}

/* ============================================
   Legacy right-column sticky summary
   ============================================ */

.lula-checkout-summary {
  position: sticky;
  top: 16px;
  background: #FFFFFF;
  border: 1px solid #F0E6DA;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(76, 99, 88, 0.05);
}

@media (max-width: 991px) {
  .lula-checkout-summary { position: static; }
}

.lula-checkout-summary-title {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  color: #2D2A27 !important;
  margin: 0 0 14px 0 !important;
  padding: 0 0 12px 0 !important;
  border-bottom: 1px solid #F0E6DA;
}

/* The {{ confirm }} block is heavy OpenCart markup — style it cleanly */
.lula-checkout-confirm-slot table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px 0;
}

.lula-checkout-confirm-slot table th,
.lula-checkout-confirm-slot table td {
  padding: 6px 4px;
  font-size: 13px;
  color: #2D2A27;
  border: none !important;
  background: transparent !important;
}

.lula-checkout-confirm-slot table thead th {
  font-size: 11px !important;
  text-transform: uppercase;
  color: #8A8580;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #F0E6DA !important;
}

.lula-checkout-confirm-slot table img {
  border-radius: 8px;
  background: #FAF6F0;
  padding: 3px;
  max-width: 56px;
}

.lula-checkout-confirm-slot .table-bordered,
.lula-checkout-confirm-slot .table {
  background: transparent !important;
  border: none !important;
}

.lula-checkout-confirm-slot tr {
  border-top: 1px solid #F0E6DA;
}

.lula-checkout-confirm-slot tbody tr:first-child { border-top: none; }

.lula-checkout-confirm-slot tfoot tr {
  border-top: 1px solid #F0E6DA;
}

.lula-checkout-confirm-slot tfoot tr:last-child td {
  color: #4C6358;
  font-weight: 700;
  font-size: 16px;
  padding-top: 10px;
}

/* Hide OpenCart's own confirm button — we use the single Lula confirm button below */
.lula-checkout-confirm-slot .btn-primary,
.lula-checkout-confirm-slot button[type="submit"] {
  display: none !important;
}

.lula-checkout-confirm-slot .input-group,
.lula-checkout-confirm-slot .form-control {
  margin: 8px 0;
}

/* Cart item rows inside confirm */
.lula-checkout-confirm-slot td.text-end,
.lula-checkout-confirm-slot td.text-right {
  text-align: right !important;
  font-weight: 600;
}

.lula-checkout-confirm-slot small {
  color: #8A8580;
  font-size: 11px;
}

/* Inline cart items in summary */
.lula-checkout-cart-items {
  margin-bottom: 12px;
}

.lula-checkout-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F0E6DA;
}

.lula-checkout-cart-item:last-child { border-bottom: none; }

.lula-checkout-cart-item-img {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #FAF6F0;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lula-checkout-cart-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: brightness(1.04);
}

.lula-checkout-cart-item-body {
  flex: 1;
  min-width: 0;
}

.lula-checkout-cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #2D2A27;
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.lula-checkout-cart-item-meta {
  font-size: 11px;
  color: #8A8580;
  margin: 0 0 4px 0;
}

.lula-checkout-cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6B6661;
}

.lula-checkout-cart-item-qty-input {
  width: 50px;
  height: 28px;
  text-align: center;
  border: 1px solid #EDE3D7;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #FFFFFF;
}

.lula-checkout-cart-item-remove {
  background: transparent;
  border: none;
  color: #B45A4B;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
}

.lula-checkout-cart-item-remove:hover { color: #8B3B2E; }

.lula-checkout-cart-item-total {
  font-size: 13px;
  font-weight: 700;
  color: #4C6358;
  white-space: nowrap;
  margin-left: 8px;
}

/* Coupon block */
.lula-checkout-coupon {
  margin: 12px 0;
  padding: 0;
}

.lula-checkout-coupon {
  background: #FBF4EB;
  border: 1px solid #F0E6DA;
  border-radius: 12px;
  padding: 4px 14px;
}

.lula-checkout-coupon > summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #4C6358;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lula-checkout-coupon > summary > i {
  color: #4C6358;
  font-size: 14px;
}

.lula-checkout-coupon > summary::-webkit-details-marker { display: none; }
.lula-checkout-coupon > summary::marker { display: none; content: ""; }

.lula-checkout-coupon > summary::after {
  content: "+";
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(76, 99, 88, 0.10);
  color: #4C6358;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.lula-checkout-coupon[open] > summary::after { content: "−"; }

.lula-checkout-coupon-body {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.lula-checkout-coupon-input {
  flex: 1;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #EDE3D7;
  border-radius: 10px;
  font-size: 13px;
  color: #2D2A27;
  background: #FFFFFF;
}

.lula-checkout-coupon-btn {
  height: 40px;
  padding: 0 16px;
  background: #FBF4EB;
  border: 1px solid #EDE3D7;
  color: #4C6358;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lula-checkout-coupon-btn:hover { background: #4C6358; color: #FFFFFF; border-color: #4C6358; }

/* Confirm fallback button */
.lula-checkout-confirm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-top: 8px;
  background: #4C6358;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.lula-checkout-confirm-btn:hover {
  background: #3F5148;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(76, 99, 88, 0.25);
}

.lula-checkout-summary-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0 0;
  padding: 10px 12px;
  background: #FBF4EB;
  border-radius: 10px;
  font-size: 12px;
  color: #6B6661;
}

.lula-checkout-summary-note i {
  color: #4C6358;
}

/* ============================================
   HIDE column_left/right + body padding
   ============================================ */

#checkout-checkout.lula-checkout-page #column-left,
#checkout-checkout.lula-checkout-page #column-right {
  display: none !important;
}

@media (max-width: 767px) {
  #checkout-checkout.lula-checkout-page {
    padding-bottom: 48px;
  }
}

/* ============================================
   Checkout success page (route=checkout/success)
   ============================================ */

.lula-checkout-success-page {
  padding: 48px 0 80px 0;
  min-height: 70vh;
  background: #FFF8F3;
}
.lula-checkout-success-page #column-left,
.lula-checkout-success-page #column-right { display: none !important; }

.lula-checkout-success-page .lula-success-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 28px 36px 28px;
  background: #FFFFFF;
  border: 1px solid #F0E6DA;
  border-radius: 16px;
  box-shadow: 0 4px 22px rgba(45, 42, 39, 0.06);
  text-align: center;
}

.lula-checkout-success-page .lula-success-icon {
  width: 88px; height: 88px;
  margin: 0 auto 22px auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ECF0EC;
  color: #4C6358;
}
.lula-checkout-success-page .lula-success-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: #2D2A27;
  margin: 0 0 10px 0;
  line-height: 1.2;
}
.lula-checkout-success-page .lula-success-lead {
  font-size: 16px;
  color: #4A4541;
  margin: 0 0 22px 0;
}
.lula-checkout-success-page .lula-success-order-no {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 22px;
  margin: 0 auto 22px auto;
  background: #FBF4EB;
  border: 1px solid #F0E6DA;
  border-radius: 10px;
}
.lula-checkout-success-page .lula-success-order-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8A8580;
}
.lula-checkout-success-page .lula-success-order-id {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #4C6358;
}
.lula-checkout-success-page .lula-success-email-line {
  font-size: 14px;
  color: #4A4541;
  margin: 0 0 30px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lula-checkout-success-page .lula-success-email-line i { color: #4C6358; }

.lula-checkout-success-page .lula-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  max-width: 320px;
  margin: 0 auto;
}
.lula-checkout-success-page .lula-success-actions .lula-auth-btn {
  justify-content: center;
}

@media (min-width: 480px) {
  .lula-checkout-success-page .lula-success-actions {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }
  .lula-checkout-success-page .lula-success-actions .lula-auth-btn {
    flex: 0 1 auto;
  }
}

@media (max-width: 480px) {
  .lula-checkout-success-page { padding: 24px 0 60px 0; }
  .lula-checkout-success-page .lula-success-card { padding: 28px 18px 26px 18px; border-radius: 12px; }
  .lula-checkout-success-page .lula-success-title { font-size: 24px; }
}

/* LULA-CHECKOUT-DEDUP 2026-05-18 — the OpenCart confirm block duplicates
   the order summary (product list + Sub-Total/VAT/Total) with English
   labels. We already render the same info via .lula-summary-mini-totals
   and the product list at the top of the sidebar. Hide the confirm slot
   visually (keep it in DOM so its form/CSRF data still POSTs). */
.lula-checkout-confirm-slot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
