/* Bangla Checkout Frontend Styles - Ultra-Optimized & Mobile-Responsive */

/* Reset & Scope Isolation */
#bc-express-checkout-root {
  position: fixed;
  z-index: 99999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Modal Overlay: Strictly Centered */
.bc-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 99999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.bc-modal-overlay.bc-active {
  opacity: 1;
  visibility: visible;
}

/* Centered Modal Container */
.bc-modal-container {
  background: #ffffff !important;
  width: 100% !important;
  max-width: 480px !important;
  max-height: 94vh !important;
  border-radius: 18px !important;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  margin: auto !important;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  color: #1e293b;
  box-sizing: border-box !important;
}

.bc-modal-overlay.bc-active .bc-modal-container {
  transform: scale(1) translateY(0);
}

/* Side Drawer Mode (if configured) */
.bc-drawer-mode.bc-modal-overlay {
  justify-content: flex-end !important;
  padding: 0 !important;
}

.bc-drawer-mode .bc-modal-container {
  max-width: 460px !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 16px 0 0 16px !important;
  transform: translateX(100%);
  margin: 0 !important;
}

.bc-drawer-mode.bc-modal-overlay.bc-active .bc-modal-container {
  transform: translateX(0);
}

/* Modal Header */
.bc-modal-header {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.bc-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bc-close-btn {
  background: #f1f5f9;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  color: #475569;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 50 !important;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.bc-close-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
  transform: scale(1.05);
}

/* Modal Scrollable Body */
.bc-modal-body {
  padding: 14px 18px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

/* Product Card Preview (Top Section in Image 1) */
.bc-product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 14px;
}

.bc-product-thumb {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #e2e8f0;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.bc-product-info {
  flex: 1;
  min-width: 0;
}

.bc-product-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bc-product-prices-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.bc-regular-price {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.bc-sale-price {
  font-size: 1rem;
  font-weight: 800;
  color: #b91c1c;
}

/* Quantity Control Buttons */
.bc-qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  height: 30px;
}

.bc-qty-btn {
  background: #f8fafc;
  border: none;
  width: 28px;
  height: 100%;
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
  padding: 0;
}

.bc-qty-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.bc-qty-num {
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

/* Input Fields with Icons */
.bc-field-group {
  margin-bottom: 10px;
}

.bc-input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bc-input-icon {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #94a3b8;
  pointer-events: none;
}

.bc-input, .bc-select, .bc-textarea {
  width: 100% !important;
  padding: 10px 14px 10px 38px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 9px !important;
  font-size: 0.9rem !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
  line-height: 1.4 !important;
}

.bc-input-no-icon {
  padding-left: 12px !important;
}

.bc-input:focus, .bc-select:focus, .bc-textarea:focus {
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12) !important;
}

.bc-input.bc-error, .bc-select.bc-error, .bc-textarea.bc-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.bc-error-msg {
  font-size: 0.725rem;
  color: #ef4444;
  margin-top: 3px;
  display: none;
}

/* Shipping Options (Radio Cards matching Image 1) */
.bc-shipping-box {
  margin: 12px 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.bc-shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  transition: background-color 0.15s;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.bc-shipping-option:last-child {
  border-bottom: none;
}

.bc-shipping-option.bc-selected {
  background-color: #fef2f2;
}

.bc-shipping-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
}

.bc-radio-circle {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}

.bc-shipping-option.bc-selected .bc-radio-circle {
  border-color: #b91c1c;
}

.bc-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s;
}

.bc-shipping-option.bc-selected .bc-radio-dot {
  background: #b91c1c;
}

.bc-shipping-cost-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

/* Shipping Protection Card (From Image 1) */
.bc-protection-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  margin: 12px 0;
  cursor: pointer;
}

.bc-protection-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bc-shield-icon {
  width: 22px;
  height: 22px;
  color: #10b981;
  flex-shrink: 0;
}

.bc-protection-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.bc-protection-subtitle {
  font-size: 0.7rem;
  color: #64748b;
  margin: 0;
}

/* Switch Toggle */
.bc-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

.bc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.bc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 34px;
}

.bc-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

.bc-switch input:checked + .bc-slider {
  background-color: #10b981;
}

.bc-switch input:checked + .bc-slider:before {
  transform: translateX(20px);
}

/* Coupon Row */
.bc-coupon-row {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.bc-coupon-input {
  flex: 1;
  padding: 8px 12px !important;
  font-size: 0.85rem !important;
}

.bc-coupon-btn {
  padding: 8px 14px;
  background: #1e293b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

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

/* Price Breakdown */
.bc-summary-box {
  margin: 12px 0 16px;
  padding: 10px 0;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
}

.bc-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  color: #64748b;
  margin-bottom: 4px;
}

.bc-summary-row.bc-total-row {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 6px;
  margin-bottom: 0;
}

.bc-total-val {
  color: #b91c1c;
}

/* Primary COD CTA Button (Prominent Crimson Red) */
.bc-submit-btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 10px;
  border: none;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  background-color: #b91c1c;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
  transition: transform 0.12s ease, filter 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.bc-submit-btn:hover {
  filter: brightness(1.08);
}

.bc-submit-btn:active {
  transform: scale(0.98);
}

.bc-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Secondary "Pay Online" Button (Bright Orange from Image 1) */
.bc-pay-online-btn {
  width: 100%;
  padding: 11px 18px;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  background-color: #ea580c;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, filter 0.15s ease;
  box-sizing: border-box;
}

.bc-pay-online-btn:hover {
  filter: brightness(1.08);
}

.bc-pay-online-btn:active {
  transform: scale(0.98);
}

/* ========================================================
   EXIT-INTENT DISCOUNT POPUP (Reference Image 2)
   ======================================================== */
.bc-exit-dialog-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 18px;
  animation: bcFadeIn 0.2s ease-out;
}

.bc-exit-card {
  background: linear-gradient(180deg, #fef08a 0%, #fde047 100%);
  width: 100%;
  max-width: 330px;
  border-radius: 18px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 2px #facc15;
  position: relative;
  animation: bcPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bc-exit-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #1e293b;
  margin: 0;
  line-height: 1.2;
}

.bc-exit-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin: 4px 0 0;
}

.bc-exit-note {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  margin: 10px 0 14px;
}

/* Pink Starburst Graphic Badge */
.bc-starburst-badge {
  width: 90px;
  height: 90px;
  background: #ec4899;
  color: #ffffff;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.4);
  clip-path: polygon(50% 0%, 63% 15%, 81% 6%, 85% 26%, 100% 35%, 93% 54%, 100% 70%, 85% 78%, 81% 97%, 62% 89%, 50% 100%, 38% 89%, 19% 97%, 15% 78%, 0% 70%, 7% 54%, 0% 35%, 15% 26%, 19% 6%, 37% 15%);
  animation: bcPulseBadge 2s infinite ease-in-out;
}

.bc-claim-btn {
  width: 100%;
  padding: 12px 16px;
  background-color: #ec4899;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
  transition: transform 0.12s, filter 0.15s;
}

.bc-claim-btn:hover {
  filter: brightness(1.08);
}

.bc-claim-btn:active {
  transform: scale(0.98);
}

.bc-decline-btn {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  margin-top: 10px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.bc-decline-btn:hover {
  color: #0f172a;
}

@keyframes bcPopIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

@keyframes bcPulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Spinner */
.bc-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: bcSpin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

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

/* ==========================================================================
   Issue 1: Proportional Single Product Page Order Button
   ========================================================================== */
.bc-checkout-trigger-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 400px !important;
  margin: 12px 0 !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.bc-open-checkout-btn {
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px 18px !important;
  min-height: 48px !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.28) !important;
  box-sizing: border-box !important;
  line-height: 1.2 !important;
}

.bc-open-checkout-btn:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.38) !important;
}

.bc-open-checkout-btn:active {
  transform: scale(0.98) !important;
}

.bc-open-checkout-btn .bc-btn-icon {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
}

.bc-open-checkout-btn .bc-btn-text-wrap {
  display: flex !important;
  flex-direction: column !important;
  text-align: center !important;
  align-items: center !important;
  line-height: 1.25 !important;
}

.bc-open-checkout-btn .bc-btn-main-text {
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
}

.bc-open-checkout-btn .bc-btn-sub-text {
  font-size: 11px !important;
  font-weight: 500 !important;
  opacity: 0.9 !important;
  margin-top: 2px !important;
}

/* ==========================================================================
   Issue 2: Decorated Bundles & Quantity Upsell Offer Cards
   ========================================================================== */
.bc-bundle-section {
  margin: 14px 0 !important;
  padding: 12px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}

.bc-bundle-header {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-bottom: 10px !important;
}

.bc-bundle-icon {
  width: 18px !important;
  height: 18px !important;
  color: #b91c1c !important;
  flex-shrink: 0 !important;
}

.bc-bundle-title {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.bc-bundle-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}

.bc-bundle-card {
  position: relative !important;
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 10px 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  user-select: none !important;
}

.bc-bundle-card:hover {
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04) !important;
}

.bc-bundle-card.bc-selected {
  border-color: #b91c1c !important;
  background: #fef2f2 !important;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.12) !important;
}

.bc-bundle-badge {
  position: absolute !important;
  top: -9px !important;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 20px !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3) !important;
  white-space: nowrap !important;
}

.bc-bundle-card-inner {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.bc-bundle-radio {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  border: 2px solid #cbd5e1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  background: #ffffff !important;
}

.bc-bundle-card.bc-selected .bc-bundle-radio {
  border-color: #b91c1c !important;
}

.bc-bundle-radio-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #b91c1c !important;
  transform: scale(0) !important;
  transition: transform 0.2s ease !important;
}

.bc-bundle-card.bc-selected .bc-bundle-radio-dot {
  transform: scale(1) !important;
}

.bc-bundle-info {
  flex: 1 !important;
  text-align: left !important;
}

.bc-bundle-qty {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.25 !important;
}

.bc-bundle-perk {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #059669 !important;
  margin-top: 2px !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
}

/* Free Delivery Threshold Motivator Banner (Issue 1) */
.bc-free-shipping-banner {
  margin: 12px 0 14px !important;
  padding: 10px 14px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  transition: all 0.25s ease !important;
}

.bc-free-shipping-banner.bc-unlocked {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
  border-color: #34d399 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12) !important;
}

.bc-free-shipping-icon {
  font-size: 1.25rem !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.bc-free-shipping-content {
  flex: 1 !important;
}

.bc-free-shipping-text {
  font-size: 0.82rem !important;
  color: #166534 !important;
  line-height: 1.35 !important;
}

.bc-free-shipping-text strong {
  font-weight: 700 !important;
  color: #14532d !important;
}

.bc-free-shipping-bar {
  margin-top: 6px !important;
  width: 100% !important;
  height: 6px !important;
  background: #dcfce7 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.bc-free-shipping-progress {
  height: 100% !important;
  background: linear-gradient(90deg, #10b981, #059669) !important;
  border-radius: 6px !important;
  transition: width 0.3s ease !important;
}

.bc-free-tag {
  color: #059669 !important;
  font-weight: 800 !important;
  background: #dcfce7 !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  font-size: 0.78rem !important;
  display: inline-block !important;
}

/* Decorated Upsell / Order Bump Card */
.bc-upsell-box {
  margin: 12px 0 !important;
  padding: 12px 14px !important;
  background: #fffbeb !important;
  border: 2px dashed #f59e0b !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.bc-upsell-box:hover {
  background: #fef3c7 !important;
}

.bc-upsell-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.bc-upsell-icon {
  width: 32px !important;
  height: 32px !important;
  background: #fde68a !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #b45309 !important;
  flex-shrink: 0 !important;
}

.bc-upsell-title {
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  color: #92400e !important;
  margin: 0 !important;
}

.bc-upsell-desc {
  font-size: 0.72rem !important;
  color: #78350f !important;
  margin: 2px 0 0 !important;
}

.bc-upsell-price {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: #b45309 !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   Issue 4: Embedded Checkout Page Mode (Replacing WooCommerce Checkout)
   ========================================================================== */
.bc-checkout-page-wrapper {
  max-width: 580px !important;
  margin: 24px auto 40px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 22px 24px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.bc-cart-items-card {
  margin-bottom: 16px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.bc-cart-items-header {
  padding: 10px 14px !important;
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.bc-cart-items-list {
  padding: 6px 14px !important;
}

.bc-cart-item-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 0 !important;
  border-bottom: 1px dashed #e2e8f0 !important;
}

.bc-cart-item-row:last-child {
  border-bottom: none !important;
}

.bc-cart-item-thumb {
  width: 48px !important;
  height: 48px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
}

.bc-cart-item-info {
  flex: 1 !important;
}

.bc-cart-item-name {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  display: block !important;
  line-height: 1.3 !important;
}

.bc-cart-item-meta {
  font-size: 0.78rem !important;
  color: #64748b !important;
  margin-top: 2px !important;
  display: flex !important;
  gap: 10px !important;
}

.bc-cart-item-subtotal {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

/* Mobile & Tablet Optimizations */
@media (max-width: 640px) {
  .bc-checkout-trigger-wrapper {
    max-width: 100% !important;
    margin: 10px 0 !important;
  }
  .bc-bundle-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .bc-checkout-page-wrapper {
    margin: 10px auto 30px !important;
    padding: 14px !important;
    border-radius: 12px !important;
  }
  .bc-modal-container {
    max-width: 100% !important;
    max-height: 96vh !important;
    border-radius: 14px !important;
  }
  .bc-modal-body {
    padding: 10px 14px 20px !important;
  }
  .bc-product-thumb {
    width: 52px !important;
    height: 52px !important;
  }
  .bc-submit-btn {
    padding: 12px 14px !important;
    font-size: 0.98rem !important;
  }
}

/* ==========================================================================
   Order Confirmation Card (Exact match to Reference Image)
   ========================================================================== */
.bc-confirmed-wrapper {
  padding: 10px 4px 16px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

.bc-confirmed-header {
  text-align: center !important;
  margin-bottom: 20px !important;
  position: relative !important;
}

.bc-confirmed-check-wrap {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  border: 2px solid #0f172a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 12px !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

.bc-confirmed-check-wrap svg {
  width: 28px !important;
  height: 28px !important;
}

.bc-confirmed-title {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.01em !important;
}

.bc-confirmed-order-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 0.92rem !important;
  color: #475569 !important;
  font-weight: 500 !important;
}

.bc-copy-btn {
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 2px 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  vertical-align: middle !important;
}

.bc-copy-btn:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

.bc-confirmed-section {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
  box-sizing: border-box !important;
}

/* Payment Card */
.bc-confirmed-payment-section {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.bc-section-icon-wrap {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  background: #ea580c !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
}

.bc-section-icon-wrap svg {
  width: 22px !important;
  height: 22px !important;
}

.bc-confirmed-payment-info {
  flex: 1 !important;
}

.bc-confirmed-payment-method {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
}

.bc-confirmed-payment-total {
  font-size: 0.85rem !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

/* Items Card */
.bc-confirmed-items-section {
  padding: 16px !important;
}

.bc-confirmed-items-list {
  display: flex !important;
  flex-direction: column !important;
}

.bc-confirmed-item-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 10px 0 !important;
  border-bottom: 1px dashed #e2e8f0 !important;
}

.bc-confirmed-item-row:last-of-type {
  border-bottom: none !important;
}

.bc-item-thumb-wrap {
  position: relative !important;
  width: 52px !important;
  height: 52px !important;
  flex-shrink: 0 !important;
}

.bc-item-thumb {
  width: 52px !important;
  height: 52px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  display: block !important;
}

.bc-item-qty-badge {
  position: absolute !important;
  top: -6px !important;
  left: -6px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.bc-item-details {
  flex: 1 !important;
  min-width: 0 !important;
}

.bc-item-name {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  margin-bottom: 3px !important;
  display: block !important;
}

.bc-item-prices {
  font-size: 0.8rem !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.bc-item-reg-price {
  text-decoration: line-through !important;
  opacity: 0.75 !important;
}

.bc-item-unit-price {
  font-weight: 500 !important;
}

.bc-item-offer-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #16a34a !important;
  margin-top: 4px !important;
}

.bc-item-line-total-wrap {
  text-align: right !important;
  flex-shrink: 0 !important;
}

.bc-item-reg-line {
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  display: block !important;
  margin-bottom: 2px !important;
}

.bc-item-line-total {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  display: block !important;
}

/* Breakdown inside items card */
.bc-confirmed-breakdown {
  border-top: 1px solid #e2e8f0 !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  font-size: 0.88rem !important;
}

.bc-confirmed-breakdown-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  color: #475569 !important;
}

.bc-confirmed-breakdown-row.bc-total-row {
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  border-top: 1px dashed #e2e8f0 !important;
  padding-top: 10px !important;
  margin-top: 4px !important;
}

/* Delivery Address Card */
.bc-confirmed-address-section {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
}

.bc-confirmed-address-info {
  flex: 1 !important;
}

.bc-confirmed-cust-name {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
}

.bc-confirmed-cust-address {
  font-size: 0.85rem !important;
  color: #64748b !important;
  margin-top: 3px !important;
  line-height: 1.4 !important;
}

.bc-confirmed-cust-phone {
  font-size: 0.85rem !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

/* Continue Shopping Button */
.bc-continue-shopping-wrap {
  text-align: center !important;
  margin-top: 18px !important;
}

.bc-continue-shopping-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 180px !important;
  padding: 10px 32px !important;
  background: #ffffff !important;
  border: 1.5px solid #ea580c !important;
  border-radius: 8px !important;
  color: #ea580c !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.bc-continue-shopping-btn:hover {
  background: #ea580c !important;
  color: #ffffff !important;
}

@media (max-width: 480px) {
  .bc-continue-shopping-btn {
    width: 100% !important;
  }
}

