/* ==========================================================================
   WUOCTRONG DEDICATED CHECKOUT STYLES (checkout.css)
   Shopify-inspired 2-column High-Converting Express Checkout
   ========================================================================== */

:root {
  --primary-color: #fddc33;
  --primary-hover: #eab308;
  --secondary-color: #2563eb;
  --secondary-hover: #1d4ed8;
  --success-color: #16a34a;
  --danger-color: #ef4444;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-focus: #2563eb;
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --bg-sidebar: #f1f5f9;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header Bar */
.checkout-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
}

.checkout-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.brand-dot {
  color: var(--secondary-color);
}

.brand-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
  margin-left: 4px;
}

.checkout-secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--success-color);
}

.return-store-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.return-store-link:hover {
  color: var(--secondary-color);
}

/* Main Checkout Container (2 Columns) */
.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--bg-white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Left Column: Checkout Forms */
.checkout-main-col {
  padding: 36px 40px 60px 40px;
  background: var(--bg-white);
  border-right: 1px solid var(--border-color);
}

/* Breadcrumbs */
.checkout-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb-item.active {
  font-weight: 700;
  color: var(--text-dark);
}

.breadcrumb-separator {
  color: #cbd5e1;
}

/* Express Checkout Section */
.express-checkout-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.express-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.express-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-express-paypal {
  background: #ffc439;
  border: 1px solid #e5ad28;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  color: #003087;
  transition: filter 0.2s;
}

.btn-express-paypal:hover {
  filter: brightness(0.96);
}

.btn-express-gpay {
  background: #000000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
  transition: opacity 0.2s;
}

.btn-express-gpay:hover {
  opacity: 0.9;
}

.divider-with-text {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0 20px 0;
}

.divider-with-text::before,
.divider-with-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider-with-text span {
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section Blocks */
.checkout-section-block {
  margin-bottom: 28px;
}

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

.section-block-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Form Layout */
.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.form-field-group.full-width {
  grid-column: 1 / -1;
}

.form-field-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-field-group label span.required {
  color: var(--danger-color);
  margin-left: 2px;
}

.field-input {
  width: 100%;
  padding: 11px 13px;
  font-size: 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-dark);
  font-family: inherit;
  transition: all 0.2s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* Shipping Method Selection Box */
.shipping-method-box {
  border: 1.5px solid #bfdbfe;
  background: #f0f7ff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shipping-method-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shipping-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 5px solid var(--secondary-color);
  background: #fff;
}

.shipping-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.shipping-time {
  font-size: 12px;
  color: var(--text-muted);
}

.shipping-price-badge {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--success-color);
  text-transform: uppercase;
}

/* Payment Methods Selector Accordion */
.payment-methods-accordion {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.payment-option-tab {
  border-bottom: 1px solid var(--border-color);
}

.payment-option-tab:last-child {
  border-bottom: none;
}

.payment-option-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #ffffff;
  transition: background 0.2s;
}

.payment-option-tab.active .payment-option-header {
  background: #f8fafc;
}

.payment-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-header-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.payment-brand-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 2px 6px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.payment-brand-badge.active {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.payment-tab-content {
  display: none;
  padding: 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
}

.payment-option-tab.active .payment-tab-content {
  display: block;
}

/* Card Inputs Inside Payment Box */
.card-input-with-icon {
  position: relative;
}

.card-input-with-icon input {
  padding-right: 50px;
  font-family: monospace, inherit;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.card-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.security-encryption-note {
  font-size: 11.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 6px;
}

/* Submit Checkout Button */
.btn-submit-checkout {
  width: 100%;
  padding: 17px 24px;
  background: linear-gradient(135deg, #fddc33 0%, #facc15 100%);
  color: #0f172a;
  border: 2px solid #eab308;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  margin-top: 16px;
}

.btn-submit-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(234, 179, 8, 0.5);
  filter: brightness(1.04);
}

.btn-submit-checkout:active {
  transform: translateY(0);
}

.checkout-policy-subtext {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

/* Right Column: Order Summary Sidebar */
.checkout-sidebar-col {
  background: var(--bg-sidebar);
  padding: 36px 36px 60px 36px;
}

.sticky-sidebar-inner {
  position: sticky;
  top: 24px;
}

.sidebar-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Product Card in Sidebar */
.summary-product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.summary-thumb-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-color);
  overflow: visible;
}

.summary-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.summary-qty-pill {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #475569;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.summary-item-details {
  flex: 1;
  min-width: 0;
}

.summary-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.summary-item-variant {
  font-size: 12px;
  color: var(--text-muted);
}

.summary-item-bundle-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: #eff6ff;
  color: var(--secondary-color);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
}

.summary-item-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  text-align: right;
  flex-shrink: 0;
}

.summary-item-orig-price {
  font-size: 12px;
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Coupon Box */
.summary-coupon-box {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.input-coupon {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  text-transform: uppercase;
}

.btn-apply-coupon {
  background: #334155;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-apply-coupon:hover {
  background: #0f172a;
}

/* Totals Breakdown */
.summary-totals-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-body);
}

.totals-row.savings {
  color: var(--success-color);
  font-weight: 700;
}

.totals-row.final-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

/* Sidebar Social Proof */
.sidebar-social-proof {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.proof-quote {
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.4;
  margin-bottom: 8px;
}

.proof-author {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stars-row {
  color: #f59e0b;
  font-size: 13px;
}

/* Order Success Modal */
.order-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.order-modal-backdrop.show {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.order-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal-check-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--success-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.modal-order-id-badge {
  display: inline-block;
  font-family: monospace;
  font-size: 13px;
  font-weight: 800;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--secondary-color);
  margin-bottom: 16px;
}

.modal-summary-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.btn-continue-store {
  width: 100%;
  padding: 14px 20px;
  background: var(--secondary-color);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-continue-store:hover {
  background: var(--secondary-hover);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }
  .checkout-main-col {
    padding: 24px 20px 40px;
    border-right: none;
    order: 2;
  }
  .checkout-sidebar-col {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    order: 1;
  }
}

@media (max-width: 600px) {
  .form-grid-2col {
    grid-template-columns: 1fr;
  }
  .express-buttons-grid {
    grid-template-columns: 1fr;
  }
}
