/**
 * FD Cart Drawer Frontend Stylesheet
 *
 * Premium GoKwik-style WooCommerce Cart Drawer Styles
 * @package FDCD_Cart_Drawer
 * @version 1.3.2
 */

:root {
    --fdcd-bg: var(--fdcd-drawer-bg, #f6f8fb);
    --fdcd-text: var(--fdcd-text, #1f2937);
    --fdcd-text-muted: var(--fdcd-muted-text, #6b7280);
    --fdcd-border: #cbd5e1;
    --fdcd-card-bg: var(--fdcd-card-bg, #ffffff);
    --fdcd-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --fdcd-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --fdcd-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Prevent body scroll when cart drawer is active */
body.fdcd-cart-open {
    overflow: hidden !important;
}

/* Base overlay container */
#fdcd-cart-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 999998 !important;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#fdcd-cart-overlay.fdcd-active {
    opacity: 1 !important;
}

/* Sidebar Drawer Container */
#fdcd-cart-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: var(--fdcd-drawer-width, 420px) !important;
    max-width: 100% !important;
    height: 100dvh !important;
    background-color: var(--fdcd-bg) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15) !important;
    z-index: 999999 !important;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: block !important;
    box-sizing: border-box !important;
    font-family: var(--fdcd-font) !important;
    font-size: var(--fdcd-base-font-size, 14px) !important;
}

#fdcd-cart-drawer.fdcd-open {
    transform: translateX(0) !important;
}

#fdcd-cart-drawer-inner {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

#fdcd-cart-content {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Drawer Shell (Flex Wrapper) */
.fdcd-drawer-shell {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* HEADER SECTION */
.fdcd-drawer-header {
    padding: 16px 20px !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--fdcd-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.fdcd-drawer-title-text {
    font-family: var(--fdcd-font) !important;
    font-size: var(--fdcd-header-font-size, 20px) !important;
    font-weight: 700 !important;
    color: var(--fdcd-text) !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -0.02em !important;
}

.fdcd-close-drawer-btn {
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    line-height: 1 !important;
    color: var(--fdcd-text-muted) !important;
    cursor: pointer !important;
    padding: 0 4px !important;
    margin: 0 !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.fdcd-close-drawer-btn:hover {
    color: var(--fdcd-text) !important;
    transform: scale(1.1) !important;
}

/* COUPON BANNER TEXT */
.fdcd-coupon-banner {
    background: var(--fdcd-coupon-bg, #000000) !important;
    color: var(--fdcd-coupon-text, #ffffff) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-align: center !important;
    padding: 8px 16px !important;
    box-sizing: border-box !important;
    letter-spacing: -0.01em !important;
    line-height: 1.4 !important;
    border-radius: var(--fdcd-card-radius, 14px) !important;
    margin-bottom: 10px !important;
}

/* SAVINGS PROGRESS BANNER */
.fdcd-savings-bar {
    background: #f0fdf4 !important;
    border-bottom: 1px solid #bbf7d0 !important;
    color: #16a34a !important;
    text-align: center !important;
    font-size: 13px !important;
    padding: 10px 16px !important;
    box-sizing: border-box !important;
    border-radius: var(--fdcd-card-radius, 14px) !important;
    margin-bottom: 10px !important;
}

.fdcd-savings-bar strong {
    font-weight: 700 !important;
}

/* DRAWER SCROLLABLE AREA */
.fdcd-drawer-scroll {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important; /* Prevent page scroll chaining */
    padding: 16px 20px 150px 20px !important; /* Bottom padding 150px to prevent sticky footer cover */
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* Scrollbar customizations */
.fdcd-drawer-scroll::-webkit-scrollbar {
    width: 8px !important; /* Slightly wider scrollbar for desktop ease */
}
.fdcd-drawer-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02) !important;
}
.fdcd-drawer-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}
.fdcd-drawer-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* EMPTY STATE */
.fdcd-drawer-empty-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 40px 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.fdcd-empty-icon {
    color: var(--fdcd-text-muted) !important;
    margin-bottom: 15px !important;
    opacity: 0.8 !important;
}

.fdcd-empty-message {
    font-size: 16px !important;
    color: var(--fdcd-text-muted) !important;
    font-weight: 500 !important;
    margin: 0 0 20px 0 !important;
}

.fdcd-continue-shopping-btn {
    background-color: var(--fdcd-accent, #12b89f) !important;
    color: var(--fdcd-button-text, #ffffff) !important;
    border: none !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: var(--fdcd-font) !important;
    border-radius: var(--fdcd-btn-radius, 12px) !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease, transform 0.1s ease !important;
    box-shadow: 0 4px 6px -1px rgba(18, 184, 159, 0.2) !important;
    margin-bottom: 20px !important;
}

.fdcd-continue-shopping-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

/* CART ITEM CARD */
.fdcd-cart-items-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.fdcd-cart-item {
    background: var(--fdcd-card-bg) !important;
    border: 1px solid var(--fdcd-border) !important;
    border-radius: var(--fdcd-card-radius, 14px) !important;
    padding: 12px !important;
    display: flex !important;
    gap: 12px !important;
    box-shadow: var(--fdcd-shadow-sm) !important;
    box-sizing: border-box !important;
    position: relative !important;
    transition: border-color 0.2s ease !important;
}

.fdcd-cart-item:hover {
    border-color: #cbd5e1 !important;
}

.fdcd-item-image {
    width: var(--fdcd-product-img-size, 70px) !important;
    height: var(--fdcd-product-img-size, 70px) !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    border: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
}

.fdcd-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.fdcd-item-details {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.fdcd-item-name {
    font-family: var(--fdcd-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--fdcd-text) !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.fdcd-item-name a {
    color: inherit !important;
    text-decoration: none !important;
}

.fdcd-item-variations {
    font-size: 11px !important;
    color: var(--fdcd-text-muted) !important;
    margin-bottom: 8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Price block inside item card */
.fdcd-item-price-wrapper {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
}

.fdcd-price {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--fdcd-text) !important;
}

.fdcd-price-ins {
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--fdcd-text) !important;
}

.fdcd-price-del {
    font-size: 12px !important;
    color: var(--fdcd-text-muted) !important;
    text-decoration: line-through !important;
}

.fdcd-item-discount {
    background-color: #f0fdf4 !important;
    color: #16a34a !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    letter-spacing: -0.01em !important;
}

/* Stepper controls (GoKwik / Premium Look) */
.fdcd-item-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: auto !important;
}

.fdcd-qty-stepper {
    display: flex !important;
    align-items: center !important;
    border: 1px solid var(--fdcd-border) !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    height: 36px !important; /* Fixed height 36px */
    width: 118px !important; /* Force exact width to prevent theme clipping */
    min-width: 118px !important;
    max-width: 118px !important;
}

.fdcd-qty-stepper .fdcd-qty-btn {
    background: none !important;
    border: none !important;
    width: 38px !important; /* Width 38px */
    min-width: 38px !important;
    max-width: 38px !important;
    flex: 0 0 38px !important;
    height: 100% !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--fdcd-text) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease !important;
}

.fdcd-qty-stepper .fdcd-qty-btn:hover {
    background-color: #f1f5f9 !important;
}

.fdcd-qty-number {
    width: 42px !important; /* Width 42px */
    min-width: 42px !important;
    max-width: 42px !important;
    flex: 0 0 42px !important;
    height: 100% !important;
    border-left: 1px solid var(--fdcd-border) !important;
    border-right: 1px solid var(--fdcd-border) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--fdcd-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--fdcd-text) !important;
    background: transparent !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove button inside card */
.fdcd-remove-item-btn {
    background: none !important;
    border: none !important;
    color: var(--fdcd-text-muted) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;
    transition: color 0.2s ease !important;
}

.fdcd-remove-item-btn:hover {
    color: #ef4444 !important;
}

/* COUPON BOX SECTION */
.fdcd-coupon-card {
  background: var(--fdcd-card-bg, #ffffff) !important;
  border: 1px solid #e4e9f2 !important;
  border-radius: var(--fdcd-card-radius, 14px) !important;
  padding: 14px !important;
  margin: 16px 0 !important;
  box-sizing: border-box !important;
}

.fdcd-coupon-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 118px !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
}

.fdcd-coupon-input {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  box-sizing: border-box !important;
  border: 1px solid #d8e0ec !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--fdcd-text-color, #1f2937) !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 48px !important;
  outline: none !important;
  box-shadow: none !important;
}

.fdcd-coupon-input::placeholder {
  color: #8a94a6 !important;
  opacity: 1 !important;
}

.fdcd-apply-coupon-btn {
  width: 118px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #1f2937 !important;
  color: #ffffff !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 48px !important;
  text-align: center !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

.fdcd-apply-coupon-btn:hover {
  background: var(--fdcd-primary-color, #12b89f) !important;
  color: var(--fdcd-button-text-color, #ffffff) !important;
}

.fdcd-view-offers-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 12px 0 0 auto !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--fdcd-primary-color, #12b89f) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.fdcd-coupon-message {
  margin-top: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

@media (max-width: 420px) {
  .fdcd-coupon-row {
    grid-template-columns: 1fr !important;
  }

  .fdcd-apply-coupon-btn {
    width: 100% !important;
  }
}

/* BEST SELLER / RECOMMENDED PRODUCTS SECTION */
.fdcd-bestseller-wrapper {
    margin-top: 5px !important;
}

.fdcd-bestseller-section-title {
    font-family: var(--fdcd-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--fdcd-text) !important;
    margin: 0 0 12px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.fdcd-bestseller-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    box-sizing: border-box !important;
}

.fdcd-rec-card {
    background: var(--fdcd-card-bg) !important;
    border: 1px solid var(--fdcd-border) !important;
    border-radius: var(--fdcd-card-radius, 14px) !important;
    padding: 10px !important;
    box-shadow: var(--fdcd-shadow-sm) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.fdcd-rec-image {
    width: var(--fdcd-rec-img-size, 120px) !important;
    height: var(--fdcd-rec-img-size, 120px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    margin-bottom: 8px !important;
}

.fdcd-rec-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.fdcd-rec-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.fdcd-rec-title {
    font-family: var(--fdcd-font) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--fdcd-text) !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.fdcd-rec-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.fdcd-rec-price-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-bottom: 10px !important;
    margin-top: auto !important;
}

.fdcd-rec-price-row span {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--fdcd-text) !important;
}

.fdcd-rec-price-row ins {
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--fdcd-text) !important;
}

.fdcd-rec-price-row del {
    font-size: 11px !important;
    color: var(--fdcd-text-muted) !important;
}

.fdcd-rec-discount {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    background: #16a34a !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
    z-index: 10 !important;
}

/* Recommended Add button with specific selector to neutralize themes */
body #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 32px !important; /* Small and clean! */
    max-height: 32px !important;
    padding: 4px 12px !important;
    margin: 10px 0 0 0 !important;
    background-color: #ffffff !important;
    color: var(--fdcd-accent, #12b89f) !important;
    border: 1px solid var(--fdcd-accent, #12b89f) !important;
    border-radius: 6px !important; /* matching the pills border radius */
    font-family: var(--fdcd-font) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    line-height: 1 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

body #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn:hover {
    background-color: var(--fdcd-accent, #12b89f) !important;
    color: var(--fdcd-button-text, #ffffff) !important;
}

.fdcd-rec-select-btn {
    background-color: #f1f5f9 !important;
    color: var(--fdcd-text) !important;
    border: 1px solid var(--fdcd-border) !important;
    border-radius: var(--fdcd-btn-radius, 12px) !important;
    padding: 6px 12px !important;
    font-family: var(--fdcd-font) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease !important;
}

.fdcd-rec-select-btn:hover {
    background-color: #e2e8f0 !important;
}

/* SHORTCODE WRAPPER STYLES */
.fdcd-top-shortcode-wrapper {
    margin-bottom: 10px !important;
    width: 100% !important;
}

.fdcd-after-items-shortcode-wrapper {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

.fdcd-before-checkout-shortcode-wrapper {
    margin-bottom: 12px !important;
    width: 100% !important;
}

/* STICKY FOOTER SECTION */
.fdcd-cart-footer {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 16px 20px !important;
    background: #ffffff !important;
    border-top: 1px solid var(--fdcd-border) !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05) !important;
    z-index: 1000 !important;
}

.fdcd-total-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
}

.fdcd-total-row strong {
    font-family: var(--fdcd-font) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--fdcd-text) !important;
}

/* Checkout Button */
.fdcd-checkout-btn {
    display: block !important;
    background-color: var(--fdcd-accent, #12b89f) !important;
    color: var(--fdcd-button-text, #ffffff) !important;
    text-decoration: none !important;
    text-align: center !important;
    padding: 14px 20px !important;
    font-family: var(--fdcd-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: var(--fdcd-btn-radius, 12px) !important;
    transition: opacity 0.2s ease, transform 0.1s ease !important;
    box-shadow: 0 4px 12px rgba(18, 184, 159, 0.25) !important;
    cursor: pointer !important;
}

.fdcd-checkout-btn:hover {
    opacity: 0.95 !important;
    transform: translateY(-1px) !important;
    color: var(--fdcd-button-text, #ffffff) !important;
}

/* Global simple toast overlay for drawer notifications */
.fdcd-toast {
    position: fixed !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translate(-50%, 20px) !important;
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-family: var(--fdcd-font) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    z-index: 10000000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}
.fdcd-toast.fdcd-show {
    opacity: 1 !important;
    transform: translate(-50%, 0) !important;
}

/* Loader indicator overlay */
.fdcd-spinner-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.7) !important;
    z-index: 100000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.fdcd-spinner {
    width: 28px !important;
    height: 28px !important;
    border: 3px solid #e2e8f0 !important;
    border-top-color: var(--fdcd-accent, #12b89f) !important;
    border-radius: 50% !important;
    animation: fdcd-spin 0.6s linear infinite !important;
}

@keyframes fdcd-spin {
    to { transform: rotate(360deg); }
}

/* Disable styles */
.fdcd-qty-btn.fdcd-disabled,
.fdcd-remove-item-btn.fdcd-disabled,
#fdcd-apply-coupon-btn.fdcd-disabled,
.fdcd-rec-add-btn.fdcd-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Recommended products attributes selectors */
.fdcd-rec-attributes {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.fdcd-rec-attr-select-wrap {
    width: 100% !important;
    position: relative !important;
}

.fdcd-rec-attr-select {
    width: 100% !important;
    height: 28px !important;
    padding: 0 8px !important;
    border: 1px solid var(--fdcd-border, #e2e8f0) !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: var(--fdcd-text, #1e293b) !important;
    font-family: var(--fdcd-font) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    outline: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    display: block !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23475569%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 10px 10px !important;
    padding-right: 20px !important;
}

.fdcd-rec-attr-select:focus {
    border-color: var(--fdcd-accent, #12b89f) !important;
}

/* Recommended products attributes button pills - specific selector overrides to force side-by-side */
body #fdcd-cart-drawer .fdcd-rec-card .fdcd-rec-attr-buttons-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 4px 0 8px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body #fdcd-cart-drawer .fdcd-rec-card .fdcd-rec-attr-buttons-wrap button.fdcd-rec-attr-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 28px !important;
    padding: 6px 12px !important;
    margin: 0 !important;
    background-color: var(--fdcd-rec-btn-bg, #ffffff) !important;
    border: 1px solid var(--fdcd-rec-btn-border, #cccccc) !important;
    border-radius: 6px !important;
    font-family: var(--fdcd-font) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--fdcd-rec-btn-text, #20487a) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    line-height: 1.2 !important;
    user-select: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

body #fdcd-cart-drawer .fdcd-rec-card .fdcd-rec-attr-buttons-wrap button.fdcd-rec-attr-btn:hover {
    border-color: var(--fdcd-rec-btn-active-border, var(--fdcd-accent, #12b89f)) !important;
    background-color: #fafbfd !important;
}

body #fdcd-cart-drawer .fdcd-rec-card .fdcd-rec-attr-buttons-wrap button.fdcd-rec-attr-btn.active {
    background-color: var(--fdcd-rec-btn-active-bg, var(--fdcd-accent, #12b89f)) !important;
    border-color: var(--fdcd-rec-btn-active-border, var(--fdcd-accent, #12b89f)) !important;
    color: var(--fdcd-rec-btn-active-text, var(--fdcd-button-text, #ffffff)) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(18, 184, 159, 0.2) !important;
}

/* Custom variation options styling */
body #fdcd-cart-drawer .fdcd-variation-options {
  margin: 10px 0 12px !important;
}

body #fdcd-cart-drawer .fdcd-variation-layout-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

body #fdcd-cart-drawer .fdcd-variation-layout-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body #fdcd-cart-drawer .fdcd-variation-option {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  min-height: 30px !important;
  padding: 0 8px !important;
  border: 1px solid var(--fdcd-variation-border-color, #d1d5db) !important;
  background: #ffffff !important;
  color: var(--fdcd-variation-text-color, #1f2937) !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

body #fdcd-cart-drawer .fdcd-variation-option.is-active {
  background: var(--fdcd-variation-active-bg, #ff876f) !important;
  color: var(--fdcd-variation-active-text, #ffffff) !important;
  border-color: var(--fdcd-variation-active-bg, #ff876f) !important;
}

body #fdcd-cart-drawer .fdcd-variation-option:hover {
  border-color: var(--fdcd-primary-color, #12b89f) !important;
}

body #fdcd-cart-drawer.fdcd-variation-style-pill .fdcd-variation-option {
  border-radius: 999px !important;
}

body #fdcd-cart-drawer.fdcd-variation-style-square .fdcd-variation-option {
  border-radius: 4px !important;
}

body #fdcd-cart-drawer.fdcd-variation-style-outline .fdcd-variation-option.is-active {
  background: transparent !important;
  color: var(--fdcd-primary-color, #12b89f) !important;
  border-color: var(--fdcd-primary-color, #12b89f) !important;
}

/* Responsive configurations */
@media (max-width: 480px) {
    #fdcd-cart-drawer {
        width: var(--fdcd-drawer-mobile-width, 100%) !important;
    }

}


/* =======================================================================
   HARD FIX: Recommended product variation chips must stay row-wise
   -----------------------------------------------------------------------
   Some themes force every button inside product cards to width:100%.
   These selectors are intentionally very specific and loaded last.
   ======================================================================= */
body #fdcd-cart-drawer .fdcd-bestseller-grid .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row,
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    margin: 10px 0 12px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-grid .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row > button.fdcd-variation-option,
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row > button.fdcd-variation-option {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-width: max-content !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

body #fdcd-cart-drawer .fdcd-variation-layout-row::-webkit-scrollbar,
body #fdcd-cart-drawer .fdcd-bestseller-grid .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row::-webkit-scrollbar {
    display: none !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-grid .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-stack,
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-grid .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-stack > button.fdcd-variation-option,
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-stack > button.fdcd-variation-option {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
}

@media (max-width: 480px) {
    body #fdcd-cart-drawer .fdcd-bestseller-grid .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row > button.fdcd-variation-option {
        width: auto !important;
        flex-basis: auto !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 12px !important;
    }
}


/* =======================================================================
   FINAL FIX v1.2.4: keep recommended variation buttons in one horizontal row.
   The card is narrow, so long labels use horizontal overflow instead of wrapping
   to a second line.
   ======================================================================= */
body #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0 2px 0 !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
}
body #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row::-webkit-scrollbar {
    display: none !important;
}
body #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row > .fdcd-variation-option {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 30px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}


/* =======================================================================
   FINAL WIDTH FIX v1.2.4
   -----------------------------------------------------------------------
   Prevent coupon row, product cards, variation chips, and footer from
   creating horizontal overflow inside the drawer.
   ======================================================================= */
body #fdcd-cart-drawer,
body #fdcd-cart-drawer * {
    box-sizing: border-box !important;
}

body #fdcd-cart-drawer {
    width: min(var(--fdcd-drawer-width, 420px), 100vw) !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

body #fdcd-cart-drawer-inner,
body #fdcd-cart-content,
body #fdcd-cart-drawer .fdcd-drawer-shell,
body #fdcd-cart-drawer .fdcd-drawer-header,
body #fdcd-cart-drawer .fdcd-drawer-scroll,
body #fdcd-cart-drawer .fdcd-cart-footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
}

body #fdcd-cart-drawer .fdcd-drawer-scroll {
    padding-left: clamp(12px, 4vw, 20px) !important;
    padding-right: clamp(12px, 4vw, 20px) !important;
}

/* Coupon card must never push outside drawer */
body #fdcd-cart-drawer .fdcd-coupon-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body #fdcd-cart-drawer .fdcd-coupon-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body #fdcd-cart-drawer .fdcd-coupon-input {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
}

body #fdcd-cart-drawer .fdcd-apply-coupon-btn,
body #fdcd-cart-drawer button.fdcd-apply-coupon-btn {
    flex: 0 0 112px !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    transform: none !important;
}

/* Best seller grid must fit inside drawer */
body #fdcd-cart-drawer .fdcd-bestseller-wrapper,
body #fdcd-cart-drawer .fdcd-bestseller-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    overflow: visible !important;
}

body #fdcd-cart-drawer .fdcd-rec-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body #fdcd-cart-drawer .fdcd-rec-info,
body #fdcd-cart-drawer .fdcd-rec-title,
body #fdcd-cart-drawer .fdcd-rec-price-row,
body #fdcd-cart-drawer .fdcd-variation-options {
    min-width: 0 !important;
    max-width: 100% !important;
}

body #fdcd-cart-drawer .fdcd-rec-image {
    width: min(var(--fdcd-rec-img-size, 120px), 100%) !important;
    max-width: 100% !important;
}

body #fdcd-cart-drawer .fdcd-rec-title {
    word-break: break-word !important;
}

body #fdcd-cart-drawer .fdcd-rec-price-row {
    flex-wrap: wrap !important;
    overflow: hidden !important;
}

/* Keep variation chips row-wise but contained inside the card */
body #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 2px !important;
}

body #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row > .fdcd-variation-option {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    max-width: none !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

body #fdcd-cart-drawer .fdcd-cart-footer {
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
}

@media (max-width: 640px) {
    body #fdcd-cart-drawer {
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    body #fdcd-cart-drawer .fdcd-bestseller-grid {
        gap: 12px !important;
    }
}

@media (max-width: 390px) {
    body #fdcd-cart-drawer .fdcd-coupon-row {
        flex-direction: column !important;
    }

    body #fdcd-cart-drawer .fdcd-apply-coupon-btn,
    body #fdcd-cart-drawer button.fdcd-apply-coupon-btn {
        flex-basis: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body #fdcd-cart-drawer .fdcd-bestseller-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body #fdcd-cart-drawer .fdcd-rec-card {
        padding: 8px !important;
    }

    body #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row > .fdcd-variation-option {
        font-size: 11px !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
    }
}


/* =======================================================================
   FINAL WIDTH FIX v1.2.4
   Keeps the coupon row, bestseller grid, product cards, and footer inside
   the drawer on 420px-540px viewports.
   ======================================================================= */
body #fdcd-cart-drawer,
body #fdcd-cart-drawer *,
body #fdcd-cart-overlay,
body #fdcd-cart-overlay * {
    box-sizing: border-box !important;
}

body #fdcd-cart-drawer {
    width: min(var(--fdcd-drawer-width, 520px), 100vw) !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body #fdcd-cart-drawer-inner,
body #fdcd-cart-content,
body #fdcd-cart-drawer .fdcd-drawer-shell,
body #fdcd-cart-drawer .fdcd-drawer-header,
body #fdcd-cart-drawer .fdcd-drawer-scroll,
body #fdcd-cart-drawer .fdcd-cart-footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body #fdcd-cart-drawer .fdcd-drawer-header {
    padding-left: clamp(16px, 4vw, 24px) !important;
    padding-right: clamp(16px, 4vw, 24px) !important;
    overflow: hidden !important;
}

body #fdcd-cart-drawer .fdcd-drawer-scroll {
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-left: clamp(12px, 4vw, 24px) !important;
    padding-right: clamp(12px, 4vw, 24px) !important;
    padding-bottom: 154px !important;
}

body #fdcd-cart-drawer .fdcd-cart-items-list,
body #fdcd-cart-drawer .fdcd-cart-item,
body #fdcd-cart-drawer .fdcd-coupon-card,
body #fdcd-cart-drawer .fdcd-bestseller-wrapper,
body #fdcd-cart-drawer .fdcd-bestseller-grid,
body #fdcd-cart-drawer .fdcd-rec-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Coupon: no overflow, no oversized Apply button */
body #fdcd-cart-drawer .fdcd-coupon-card {
    display: block !important;
    overflow: hidden !important;
    padding: 14px !important;
    margin: 16px 0 20px !important;
}

body #fdcd-cart-drawer .fdcd-coupon-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(86px, 22%, 104px) !important;
    gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body #fdcd-cart-drawer input.fdcd-coupon-input,
body #fdcd-cart-drawer .fdcd-coupon-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 14px !important;
    line-height: 48px !important;
}

body #fdcd-cart-drawer button.fdcd-apply-coupon-btn,
body #fdcd-cart-drawer #fdcd-apply-coupon-btn.fdcd-apply-coupon-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    transform: none !important;
}

body #fdcd-cart-drawer .fdcd-view-offers-btn {
    max-width: 100% !important;
}

/* Bestseller: two equal columns that cannot exceed the drawer width */
body #fdcd-cart-drawer .fdcd-bestseller-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(10px, 3vw, 16px) !important;
    align-items: stretch !important;
    overflow: visible !important;
}

body #fdcd-cart-drawer .fdcd-rec-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: clamp(9px, 2.4vw, 14px) !important;
}

body #fdcd-cart-drawer .fdcd-rec-image {
    width: min(var(--fdcd-rec-img-size, 120px), 100%) !important;
    height: min(var(--fdcd-rec-img-size, 120px), 34vw) !important;
    max-width: 100% !important;
}

body #fdcd-cart-drawer .fdcd-rec-info,
body #fdcd-cart-drawer .fdcd-rec-title,
body #fdcd-cart-drawer .fdcd-rec-price-row,
body #fdcd-cart-drawer .fdcd-variation-options {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

body #fdcd-cart-drawer .fdcd-rec-title {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

body #fdcd-cart-drawer .fdcd-rec-price-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    overflow: hidden !important;
}

body #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
}

body #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row::-webkit-scrollbar {
    display: none !important;
}

body #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row > .fdcd-variation-option {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
}

body #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn {
    margin-top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

body #fdcd-cart-drawer .fdcd-cart-footer {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding-left: clamp(16px, 4vw, 24px) !important;
    padding-right: clamp(16px, 4vw, 24px) !important;
}

@media (max-width: 640px) {
    body #fdcd-cart-drawer {
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

@media (max-width: 420px) {
    body #fdcd-cart-drawer .fdcd-coupon-row {
        grid-template-columns: minmax(0, 1fr) 88px !important;
        gap: 8px !important;
    }

    body #fdcd-cart-drawer .fdcd-apply-coupon-btn,
    body #fdcd-cart-drawer button.fdcd-apply-coupon-btn {
        font-size: 13px !important;
        padding: 0 8px !important;
    }

    body #fdcd-cart-drawer .fdcd-bestseller-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body #fdcd-cart-drawer .fdcd-rec-card .fdcd-variation-options.fdcd-variation-layout-row > .fdcd-variation-option {
        font-size: 11px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

@media (max-width: 340px) {
    body #fdcd-cart-drawer .fdcd-coupon-row {
        grid-template-columns: 1fr !important;
    }
}


/* =======================================================================
   FINAL FIX v1.2.5: Recommended product Add button + mobile card alignment
   -----------------------------------------------------------------------
   Fixes the + Add button so it stays inside each Best Seller card, remains
   clickable, aligns at the bottom, and is not overridden by theme button CSS.
   On narrow mobile screens, Best Seller cards become swipeable instead of
   being squeezed into two tiny columns.
   ======================================================================= */
body #fdcd-cart-drawer .fdcd-rec-card,
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-rec-card {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body #fdcd-cart-drawer .fdcd-rec-info,
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-rec-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
}

body #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn,
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn,
body #fdcd-cart-drawer .fdcd-bestseller-grid .fdcd-rec-card .fdcd-rec-add-btn,
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-bestseller-grid .fdcd-rec-card .fdcd-rec-add-btn {
    position: relative !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    flex: 0 0 42px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 12px 0 0 0 !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border: 1.5px solid var(--fdcd-accent, var(--fdcd-primary-color, #12b89f)) !important;
    border-radius: var(--fdcd-btn-radius, var(--fdcd-button-radius, 10px)) !important;
    background: #ffffff !important;
    color: var(--fdcd-accent, var(--fdcd-primary-color, #12b89f)) !important;
    font-family: var(--fdcd-font) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn:hover,
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn:hover {
    background: var(--fdcd-accent, var(--fdcd-primary-color, #12b89f)) !important;
    color: var(--fdcd-button-text, var(--fdcd-button-text-color, #ffffff)) !important;
}

body #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn.fdcd-loading,
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn.fdcd-loading,
body #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn:disabled,
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn:disabled {
    opacity: 0.65 !important;
    cursor: wait !important;
    pointer-events: none !important;
}

body #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn.fdcd-loading::after,
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn.fdcd-loading::after {
    content: "" !important;
    width: 14px !important;
    height: 14px !important;
    margin-left: 8px !important;
    border: 2px solid currentColor !important;
    border-right-color: transparent !important;
    border-radius: 50% !important;
    animation: fdcd-spin 0.6s linear infinite !important;
    box-sizing: border-box !important;
}

@media (max-width: 480px) {
    body #fdcd-cart-drawer .fdcd-bestseller-grid,
    body.fdcd-cart-open #fdcd-cart-drawer .fdcd-bestseller-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 12px !important;
        padding: 0 2px 10px 2px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    body #fdcd-cart-drawer .fdcd-bestseller-grid::-webkit-scrollbar,
    body.fdcd-cart-open #fdcd-cart-drawer .fdcd-bestseller-grid::-webkit-scrollbar {
        display: none !important;
    }

    body #fdcd-cart-drawer .fdcd-bestseller-grid .fdcd-rec-card,
    body.fdcd-cart-open #fdcd-cart-drawer .fdcd-bestseller-grid .fdcd-rec-card {
        flex: 0 0 260px !important;
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        scroll-snap-align: start !important;
    }

    body #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn,
    body.fdcd-cart-open #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        flex-basis: 44px !important;
        font-size: 14px !important;
    }
}

/* =======================================================================
   FINAL FIX v1.2.6: Auto-resize Best Seller layout from drawer width
   -----------------------------------------------------------------------
   The layout now responds to the actual drawer width set in admin settings
   (400px, 520px, 30%, etc.) instead of only using viewport breakpoints.
   JS adds .fdcd-narrow-drawer / .fdcd-medium-drawer based on measured width.
   ======================================================================= */
body #fdcd-cart-drawer {
    width: min(var(--fdcd-drawer-width, 520px), 100vw) !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    container-type: inline-size !important;
    container-name: fdcdDrawer !important;
}

body #fdcd-cart-drawer .fdcd-drawer-scroll {
    padding-left: clamp(14px, 4cqw, 24px) !important;
    padding-right: clamp(14px, 4cqw, 24px) !important;
    overflow-x: hidden !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body #fdcd-cart-drawer:not(.fdcd-narrow-drawer) .fdcd-bestseller-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(10px, 2.5cqw, 16px) !important;
    overflow: visible !important;
}

body #fdcd-cart-drawer.fdcd-medium-drawer .fdcd-rec-card {
    padding: 10px !important;
}

body #fdcd-cart-drawer.fdcd-medium-drawer .fdcd-rec-image {
    width: min(var(--fdcd-rec-img-size, 120px), 82%) !important;
    height: min(var(--fdcd-rec-img-size, 120px), 24cqw) !important;
}

body #fdcd-cart-drawer.fdcd-medium-drawer .fdcd-variation-option {
    font-size: 12px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Compact drawer: use swipe cards instead of squeezing two product cards. */
body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-bestseller-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 2px 10px 2px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}

body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-bestseller-grid::-webkit-scrollbar {
    display: none !important;
}

body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-bestseller-grid .fdcd-rec-card {
    flex: 0 0 min(260px, calc(100% - 24px)) !important;
    width: min(260px, calc(100% - 24px)) !important;
    min-width: min(260px, calc(100% - 24px)) !important;
    max-width: min(260px, calc(100% - 24px)) !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Never allow card internals or theme button CSS to push outside the product card. */
body #fdcd-cart-drawer .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-rec-card *,
body #fdcd-cart-drawer .fdcd-rec-info,
body #fdcd-cart-drawer .fdcd-rec-price-row,
body #fdcd-cart-drawer .fdcd-variation-options {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body #fdcd-cart-drawer .fdcd-rec-card {
    min-width: 0 !important;
    contain: layout paint !important;
}

body #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn,
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-rec-card button.fdcd-rec-add-btn {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-rec-image {
    width: min(var(--fdcd-rec-img-size, 120px), 82%) !important;
    height: min(var(--fdcd-rec-img-size, 120px), 130px) !important;
}

body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-rec-title {
    font-size: 14px !important;
    line-height: 1.25 !important;
}

body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-rec-price-row span,
body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-rec-price-row ins {
    font-size: 14px !important;
}

body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-variation-options.fdcd-variation-layout-row {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 6px !important;
}

body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-variation-options.fdcd-variation-layout-row > .fdcd-variation-option {
    min-width: 0 !important;
    max-width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    line-height: 34px !important;
}

body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-coupon-row {
    grid-template-columns: minmax(0, 1fr) minmax(86px, 112px) !important;
    gap: 8px !important;
}

body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-apply-coupon-btn,
body #fdcd-cart-drawer.fdcd-narrow-drawer button.fdcd-apply-coupon-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 112px !important;
}

@container fdcdDrawer (max-width: 480px) {
    .fdcd-bestseller-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 2px 10px 2px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .fdcd-bestseller-grid::-webkit-scrollbar {
        display: none !important;
    }

    .fdcd-bestseller-grid .fdcd-rec-card {
        flex: 0 0 min(260px, calc(100% - 24px)) !important;
        width: min(260px, calc(100% - 24px)) !important;
        min-width: min(260px, calc(100% - 24px)) !important;
        max-width: min(260px, calc(100% - 24px)) !important;
        scroll-snap-align: start !important;
    }
}

/* =======================================================================
   v1.2.7 Advanced Recommended Products Layout
   - product source is controlled in PHP/settings
   - card layout now follows drawer width + layout mode
   - supports horizontal scroll, carousel, dots, auto scroll, manual/featured products
   ======================================================================= */
body #fdcd-cart-drawer .fdcd-bestseller-section {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section .fdcd-bestseller-grid {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body #fdcd-cart-drawer .fdcd-layout-grid-2 .fdcd-bestseller-grid,
body #fdcd-cart-drawer .fdcd-layout-auto:not(.fdcd-auto-scroll-layout):not(.fdcd-is-small-drawer) .fdcd-bestseller-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    overflow: visible !important;
}

body #fdcd-cart-drawer .fdcd-layout-grid-1 .fdcd-bestseller-grid,
body #fdcd-cart-drawer .fdcd-card-width-full .fdcd-bestseller-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    overflow: visible !important;
}

body #fdcd-cart-drawer .fdcd-layout-horizontal-scroll .fdcd-bestseller-grid,
body #fdcd-cart-drawer .fdcd-layout-carousel .fdcd-bestseller-grid,
body #fdcd-cart-drawer .fdcd-layout-auto.fdcd-auto-scroll-layout .fdcd-bestseller-grid,
body #fdcd-cart-drawer .fdcd-bestseller-section.fdcd-is-small-drawer.fdcd-scroll-small-enabled .fdcd-bestseller-grid {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 0 4px 10px 4px !important;
}

body #fdcd-cart-drawer .fdcd-layout-horizontal-scroll .fdcd-bestseller-grid::-webkit-scrollbar,
body #fdcd-cart-drawer .fdcd-layout-carousel .fdcd-bestseller-grid::-webkit-scrollbar,
body #fdcd-cart-drawer .fdcd-layout-auto.fdcd-auto-scroll-layout .fdcd-bestseller-grid::-webkit-scrollbar,
body #fdcd-cart-drawer .fdcd-bestseller-section.fdcd-is-small-drawer .fdcd-bestseller-grid::-webkit-scrollbar {
    display: none !important;
}

body #fdcd-cart-drawer .fdcd-layout-horizontal-scroll .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-layout-carousel .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-layout-auto.fdcd-auto-scroll-layout .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section.fdcd-is-small-drawer.fdcd-scroll-small-enabled .fdcd-rec-card {
    flex: 0 0 clamp(var(--fdcd-recommended-card-min-width, 220px), 72cqw, var(--fdcd-recommended-card-max-width, 320px)) !important;
    width: clamp(var(--fdcd-recommended-card-min-width, 220px), 72cqw, var(--fdcd-recommended-card-max-width, 320px)) !important;
    min-width: clamp(var(--fdcd-recommended-card-min-width, 220px), 72cqw, var(--fdcd-recommended-card-max-width, 320px)) !important;
    max-width: clamp(var(--fdcd-recommended-card-min-width, 220px), 72cqw, var(--fdcd-recommended-card-max-width, 320px)) !important;
    scroll-snap-align: start !important;
}

body #fdcd-cart-drawer .fdcd-card-width-fixed {
    --fdcd-recommended-card-width-current: var(--fdcd-fixed-recommended-card-width, 260px);
}
body #fdcd-cart-drawer .fdcd-card-width-compact {
    --fdcd-recommended-card-width-current: 220px;
}
body #fdcd-cart-drawer .fdcd-card-width-comfortable {
    --fdcd-recommended-card-width-current: 280px;
}
body #fdcd-cart-drawer .fdcd-card-width-fixed .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-card-width-compact .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-card-width-comfortable .fdcd-rec-card {
    flex-basis: min(var(--fdcd-recommended-card-width-current), calc(100% - 28px)) !important;
    width: min(var(--fdcd-recommended-card-width-current), calc(100% - 28px)) !important;
    min-width: min(var(--fdcd-recommended-card-width-current), calc(100% - 28px)) !important;
    max-width: min(var(--fdcd-recommended-card-width-current), calc(100% - 28px)) !important;
}

body #fdcd-cart-drawer .fdcd-card-width-full .fdcd-rec-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section .fdcd-rec-card {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section .fdcd-rec-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section .fdcd-rec-add-btn {
    margin-top: auto !important;
}

body #fdcd-cart-drawer .fdcd-scroll-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 10px !important;
}

body #fdcd-cart-drawer .fdcd-scroll-dot {
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
    min-height: 7px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: #cbd5e1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

body #fdcd-cart-drawer .fdcd-scroll-dot.is-active {
    background: var(--fdcd-primary-color, #12b89f) !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section .fdcd-variation-options.fdcd-variation-layout-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    overflow: visible !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section .fdcd-variation-option {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

/* =======================================================================
   v1.2.8 GoKwik-style premium checkout footer
   ======================================================================= */
body #fdcd-cart-drawer .fdcd-drawer-scroll {
    padding-bottom: 250px !important;
}

body #fdcd-cart-drawer .fdcd-cart-footer.fdcd-gokwik-footer {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 24px 8px !important;
    background: #ffffff !important;
    border-top: 1px solid #e5edf5 !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.08) !important;
    overflow: visible !important;
    z-index: 1002 !important;
}

body #fdcd-cart-drawer .fdcd-footer-savings-pill {
    position: absolute !important;
    top: -13px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(74%, 360px) !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--fdcd-primary-color, #12b89f) !important;
    color: #ffffff !important;
    border-radius: 7px !important;
    box-shadow: 0 4px 12px rgba(18, 184, 159, 0.22) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

body #fdcd-cart-drawer .fdcd-gk-total-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin: 2px 0 10px !important;
    color: var(--fdcd-text, #1f2937) !important;
}

body #fdcd-cart-drawer .fdcd-gk-total-label-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

body #fdcd-cart-drawer .fdcd-gk-rupee-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    background: #333333 !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

body #fdcd-cart-drawer .fdcd-gk-total-values {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    min-width: max-content !important;
    line-height: 1.1 !important;
}

body #fdcd-cart-drawer .fdcd-gk-regular-total {
    color: #c7cbd3 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-decoration-thickness: 2px !important;
    margin-bottom: 1px !important;
}

body #fdcd-cart-drawer .fdcd-gk-current-total {
    color: #1f2937 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
}

body #fdcd-cart-drawer .fdcd-gk-footer-discount {
    color: #00a63e !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    margin-top: 2px !important;
}

body #fdcd-cart-drawer .fdcd-gk-terms-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 8px 0 12px !important;
    color: #222222 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    cursor: pointer !important;
}

body #fdcd-cart-drawer .fdcd-gk-terms-checkbox {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin: 2px 0 0 !important;
    accent-color: #1d72ff !important;
    cursor: pointer !important;
}

body #fdcd-cart-drawer .fdcd-gk-terms-row a {
    color: #0000ee !important;
    text-decoration: underline !important;
}

body #fdcd-cart-drawer .fdcd-checkout-btn.fdcd-gk-checkout-btn {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 68px !important;
    padding: 10px 12px 10px 14px !important;
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 11px !important;
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    overflow: hidden !important;
    transform: none !important;
}

body #fdcd-cart-drawer .fdcd-checkout-btn.fdcd-gk-checkout-btn:hover {
    opacity: 0.94 !important;
    transform: none !important;
    color: #ffffff !important;
}

body #fdcd-cart-drawer .fdcd-gk-checkout-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-width: 0 !important;
    text-align: left !important;
    line-height: 1.18 !important;
}

body #fdcd-cart-drawer .fdcd-gk-checkout-copy strong {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

body #fdcd-cart-drawer .fdcd-gk-checkout-copy small {
    color: #ffffff !important;
    opacity: 0.95 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    margin-top: 3px !important;
}

body #fdcd-cart-drawer .fdcd-gk-pay-icons {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 86px !important;
    flex: 0 0 auto !important;
}

body #fdcd-cart-drawer .fdcd-gk-pay-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.95) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
    color: #214b95 !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin-left: -6px !important;
}

body #fdcd-cart-drawer .fdcd-gk-paytm {
    color: #00a2e0 !important;
    font-size: 8px !important;
}

body #fdcd-cart-drawer .fdcd-gk-phonepe {
    color: #5f259f !important;
    font-size: 14px !important;
}

body #fdcd-cart-drawer .fdcd-gk-gpay {
    color: #4285f4 !important;
    font-size: 14px !important;
}

body #fdcd-cart-drawer .fdcd-gk-powered {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin-top: 7px !important;
    color: #8b8f99 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    text-align: center !important;
}

body #fdcd-cart-drawer .fdcd-gk-powered strong {
    color: #2775b6 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

body #fdcd-cart-drawer .fdcd-gk-powered-mark {
    color: #f9a825 !important;
    font-size: 10px !important;
    vertical-align: baseline !important;
}

body #fdcd-cart-drawer .fdcd-gk-checkout-btn.fdcd-terms-disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}

@media (max-width: 480px) {
    body #fdcd-cart-drawer .fdcd-drawer-scroll {
        padding-bottom: 260px !important;
    }

    body #fdcd-cart-drawer .fdcd-cart-footer.fdcd-gokwik-footer {
        padding: 18px 26px 8px !important;
    }

    body #fdcd-cart-drawer .fdcd-gk-total-label-wrap {
        font-size: 18px !important;
    }

    body #fdcd-cart-drawer .fdcd-gk-current-total {
        font-size: 21px !important;
    }

    body #fdcd-cart-drawer .fdcd-gk-terms-row {
        font-size: 14px !important;
    }
}

@media (max-width: 380px) {
    body #fdcd-cart-drawer .fdcd-cart-footer.fdcd-gokwik-footer {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body #fdcd-cart-drawer .fdcd-gk-pay-icons {
        min-width: 72px !important;
    }

    body #fdcd-cart-drawer .fdcd-gk-pay-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }
}


/* =======================================================================
   v1.2.9 Compact GoKwik footer
   Makes checkout footer smaller while preserving the GoKwik-style layout.
   ======================================================================= */
body #fdcd-cart-drawer .fdcd-drawer-scroll {
    padding-bottom: 190px !important;
}

body #fdcd-cart-drawer .fdcd-cart-footer.fdcd-gokwik-footer {
    padding: 12px 20px 5px !important;
    border-radius: 14px 14px 0 0 !important;
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.07) !important;
}

body #fdcd-cart-drawer .fdcd-footer-savings-pill {
    top: -11px !important;
    width: min(70%, 330px) !important;
    height: 22px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 9px rgba(18, 184, 159, 0.18) !important;
}

body #fdcd-cart-drawer .fdcd-gk-total-row {
    gap: 10px !important;
    margin: 0 0 6px !important;
}

body #fdcd-cart-drawer .fdcd-gk-total-label-wrap {
    gap: 7px !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
}

body #fdcd-cart-drawer .fdcd-gk-rupee-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

body #fdcd-cart-drawer .fdcd-gk-regular-total {
    font-size: 13px !important;
    margin-bottom: 0 !important;
    text-decoration-thickness: 1.5px !important;
}

body #fdcd-cart-drawer .fdcd-gk-current-total {
    font-size: 18px !important;
    line-height: 1.05 !important;
}

body #fdcd-cart-drawer .fdcd-gk-footer-discount {
    font-size: 11px !important;
    margin-top: 1px !important;
}

body #fdcd-cart-drawer .fdcd-gk-terms-row {
    gap: 7px !important;
    margin: 5px 0 8px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
}

body #fdcd-cart-drawer .fdcd-gk-terms-checkbox {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    margin-top: 1px !important;
}

body #fdcd-cart-drawer .fdcd-checkout-btn.fdcd-gk-checkout-btn {
    min-height: 52px !important;
    padding: 8px 10px 8px 12px !important;
    border-radius: 9px !important;
    gap: 8px !important;
}

body #fdcd-cart-drawer .fdcd-gk-checkout-copy strong {
    font-size: 14px !important;
    line-height: 1.12 !important;
}

body #fdcd-cart-drawer .fdcd-gk-checkout-copy small {
    font-size: 10px !important;
    line-height: 1.15 !important;
    margin-top: 2px !important;
}

body #fdcd-cart-drawer .fdcd-gk-pay-icons {
    min-width: 68px !important;
}

body #fdcd-cart-drawer .fdcd-gk-pay-icon {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    margin-left: -5px !important;
    font-size: 8px !important;
}

body #fdcd-cart-drawer .fdcd-gk-paytm {
    font-size: 7px !important;
}

body #fdcd-cart-drawer .fdcd-gk-phonepe,
body #fdcd-cart-drawer .fdcd-gk-gpay {
    font-size: 12px !important;
}

body #fdcd-cart-drawer .fdcd-gk-powered {
    margin-top: 5px !important;
    gap: 4px !important;
    font-size: 8px !important;
}

body #fdcd-cart-drawer .fdcd-gk-powered strong {
    font-size: 9px !important;
}

body #fdcd-cart-drawer .fdcd-gk-powered-mark {
    font-size: 8px !important;
}

@media (max-width: 480px) {
    body #fdcd-cart-drawer .fdcd-drawer-scroll {
        padding-bottom: 198px !important;
    }

    body #fdcd-cart-drawer .fdcd-cart-footer.fdcd-gokwik-footer {
        padding: 12px 20px 5px !important;
    }

    body #fdcd-cart-drawer .fdcd-gk-total-label-wrap {
        font-size: 15px !important;
    }

    body #fdcd-cart-drawer .fdcd-gk-current-total {
        font-size: 18px !important;
    }

    body #fdcd-cart-drawer .fdcd-gk-terms-row {
        font-size: 12px !important;
    }
}

@media (max-width: 380px) {
    body #fdcd-cart-drawer .fdcd-drawer-scroll {
        padding-bottom: 190px !important;
    }

    body #fdcd-cart-drawer .fdcd-cart-footer.fdcd-gokwik-footer {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    body #fdcd-cart-drawer .fdcd-gk-total-label-wrap {
        font-size: 14px !important;
    }

    body #fdcd-cart-drawer .fdcd-gk-current-total {
        font-size: 17px !important;
    }

    body #fdcd-cart-drawer .fdcd-checkout-btn.fdcd-gk-checkout-btn {
        min-height: 50px !important;
    }
}


/* ================================================================
   v1.3.0 TheBrandKite powered-by footer logo
   ================================================================ */
body #fdcd-cart-drawer .fdcd-powered-thebrandkite {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin-top: 5px !important;
    line-height: 1 !important;
    font-family: inherit !important;
    color: #9ca3af !important;
    font-size: 8px !important;
    white-space: nowrap !important;
}

body #fdcd-cart-drawer .fdcd-powered-thebrandkite .fdcd-powered-by-text {
    color: #9ca3af !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

body #fdcd-cart-drawer .fdcd-thebrandkite-logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    line-height: 1 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    color: #0f766e !important;
}

body #fdcd-cart-drawer .fdcd-thebrandkite-mark {
    width: 10px !important;
    height: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    transform: rotate(45deg) !important;
    border-radius: 2px !important;
    background: linear-gradient(135deg, #f97316 0%, #facc15 52%, #14b8a6 53%, #2563eb 100%) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important;
    flex: 0 0 auto !important;
}

body #fdcd-cart-drawer .fdcd-thebrandkite-mark::after {
    content: "" !important;
    width: 5px !important;
    height: 1.5px !important;
    position: absolute !important;
    right: -4px !important;
    bottom: -2px !important;
    background: #f97316 !important;
    border-radius: 999px !important;
    transform: rotate(-45deg) !important;
}

body #fdcd-cart-drawer .fdcd-thebrandkite-mark span {
    width: 3px !important;
    height: 3px !important;
    display: block !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.95) !important;
}

body #fdcd-cart-drawer .fdcd-thebrandkite-word {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 0 !important;
    line-height: 1 !important;
}

body #fdcd-cart-drawer .fdcd-thebrandkite-word span:first-child {
    color: #1f2937 !important;
}

body #fdcd-cart-drawer .fdcd-thebrandkite-word span:last-child {
    color: #0f766e !important;
}

/* =======================================================================
   v1.3.2 Settings-driven Recommended Product Layout Fix
   These rules must stay at the very end of the stylesheet. They make the
   admin Layout Mode and Card Width Mode settings override older responsive
   fallback rules and narrow-drawer rules.
   ======================================================================= */
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout] .fdcd-bestseller-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Explicit One Column setting: never allow narrow-drawer auto-scroll rules to override it. */
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="grid_1"] .fdcd-bestseller-grid,
body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-bestseller-section[data-layout="grid_1"] .fdcd-bestseller-grid,
body #fdcd-cart-drawer.fdcd-medium-drawer .fdcd-bestseller-section[data-layout="grid_1"] .fdcd-bestseller-grid,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-card-width-mode="full"] .fdcd-bestseller-grid,
body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-bestseller-section[data-card-width-mode="full"] .fdcd-bestseller-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    gap: 14px !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    scroll-snap-type: none !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="grid_1"] .fdcd-rec-card,
body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-bestseller-section[data-layout="grid_1"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-card-width-mode="full"] .fdcd-rec-card,
body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-bestseller-section[data-card-width-mode="full"] .fdcd-rec-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    flex-basis: auto !important;
    scroll-snap-align: none !important;
}

/* Explicit Two Column setting: respect the setting unless Card Width Mode = Full. */
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="grid_2"]:not([data-card-width-mode="full"]) .fdcd-bestseller-grid,
body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-bestseller-section[data-layout="grid_2"]:not([data-card-width-mode="full"]) .fdcd-bestseller-grid,
body #fdcd-cart-drawer.fdcd-medium-drawer .fdcd-bestseller-section[data-layout="grid_2"]:not([data-card-width-mode="full"]) .fdcd-bestseller-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 14px !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    scroll-snap-type: none !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="grid_2"]:not([data-card-width-mode="full"]) .fdcd-rec-card,
body #fdcd-cart-drawer.fdcd-narrow-drawer .fdcd-bestseller-section[data-layout="grid_2"]:not([data-card-width-mode="full"]) .fdcd-rec-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    flex-basis: auto !important;
}

/* Explicit horizontal modes. */
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="horizontal_scroll"] .fdcd-bestseller-grid,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="carousel"] .fdcd-bestseller-grid,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="auto"].fdcd-auto-scroll-layout .fdcd-bestseller-grid {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px !important;
    padding: 0 4px 10px 4px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="horizontal_scroll"] .fdcd-bestseller-grid::-webkit-scrollbar,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="carousel"] .fdcd-bestseller-grid::-webkit-scrollbar,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="auto"].fdcd-auto-scroll-layout .fdcd-bestseller-grid::-webkit-scrollbar {
    display: none !important;
}

/* Horizontal card width modes. */
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="horizontal_scroll"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="carousel"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="auto"].fdcd-auto-scroll-layout .fdcd-rec-card {
    flex: 0 0 clamp(var(--fdcd-recommended-card-min-width, 220px), 72%, var(--fdcd-recommended-card-max-width, 320px)) !important;
    width: clamp(var(--fdcd-recommended-card-min-width, 220px), 72%, var(--fdcd-recommended-card-max-width, 320px)) !important;
    min-width: clamp(var(--fdcd-recommended-card-min-width, 220px), 72%, var(--fdcd-recommended-card-max-width, 320px)) !important;
    max-width: clamp(var(--fdcd-recommended-card-min-width, 220px), 72%, var(--fdcd-recommended-card-max-width, 320px)) !important;
    scroll-snap-align: start !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section[data-card-width-mode="fixed"][data-layout="horizontal_scroll"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-card-width-mode="fixed"][data-layout="carousel"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-card-width-mode="fixed"][data-layout="auto"].fdcd-auto-scroll-layout .fdcd-rec-card {
    flex-basis: min(var(--fdcd-fixed-recommended-card-width, 260px), calc(100% - 20px)) !important;
    width: min(var(--fdcd-fixed-recommended-card-width, 260px), calc(100% - 20px)) !important;
    min-width: min(var(--fdcd-fixed-recommended-card-width, 260px), calc(100% - 20px)) !important;
    max-width: min(var(--fdcd-fixed-recommended-card-width, 260px), calc(100% - 20px)) !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section[data-card-width-mode="compact"][data-layout="horizontal_scroll"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-card-width-mode="compact"][data-layout="carousel"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-card-width-mode="compact"][data-layout="auto"].fdcd-auto-scroll-layout .fdcd-rec-card {
    flex-basis: min(220px, calc(100% - 20px)) !important;
    width: min(220px, calc(100% - 20px)) !important;
    min-width: min(220px, calc(100% - 20px)) !important;
    max-width: min(220px, calc(100% - 20px)) !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section[data-card-width-mode="comfortable"][data-layout="horizontal_scroll"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-card-width-mode="comfortable"][data-layout="carousel"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-card-width-mode="comfortable"][data-layout="auto"].fdcd-auto-scroll-layout .fdcd-rec-card {
    flex-basis: min(280px, calc(100% - 20px)) !important;
    width: min(280px, calc(100% - 20px)) !important;
    min-width: min(280px, calc(100% - 20px)) !important;
    max-width: min(280px, calc(100% - 20px)) !important;
}

/* In explicit grid modes, fixed/compact/comfortable must not shrink cards. */
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="grid_1"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="grid_2"] .fdcd-rec-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex-basis: auto !important;
}

/* Keep card content contained for every mode. */
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout] .fdcd-rec-card *,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout] .fdcd-rec-info,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout] .fdcd-rec-price-row,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout] .fdcd-variation-options {
    box-sizing: border-box !important;
    max-width: 100% !important;
}


/* =======================================================================
   v1.3.2 Laptop trackpad / mouse wheel scroll fix
   Ensures two-finger vertical scrolling works anywhere inside the drawer.
   ======================================================================= */
body.fdcd-cart-open #fdcd-cart-drawer {
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
}

body.fdcd-cart-open #fdcd-cart-drawer,
body.fdcd-cart-open #fdcd-cart-drawer * {
    -webkit-tap-highlight-color: transparent;
}

body.fdcd-cart-open #fdcd-cart-drawer .fdcd-drawer-shell,
body.fdcd-cart-open #fdcd-cart-drawer #fdcd-cart-content,
body.fdcd-cart-open #fdcd-cart-drawer #fdcd-cart-drawer-inner {
    min-height: 0 !important;
}

body.fdcd-cart-open #fdcd-cart-drawer .fdcd-drawer-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain !important;
    overscroll-behavior-x: none !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    scrollbar-gutter: stable;
}

/* Horizontal recommended rows may still scroll sideways, but vertical trackpad
   motion is redirected to the main drawer by JS. */
body.fdcd-cart-open #fdcd-cart-drawer .fdcd-bestseller-grid {
    overscroll-behavior-x: contain !important;
}


/* =======================================================================
   v1.3.3 Carousel visible-count + auto by drawer width
   Lets Carousel mode show 1, 2, or 3 products at a time, or auto-resolve
   from the actual drawer width via JS classes.
   ======================================================================= */
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="carousel"] .fdcd-bestseller-grid,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="auto"].fdcd-auto-scroll-layout .fdcd-bestseller-grid {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: var(--fdcd-carousel-gap, 12px) !important;
    padding: 0 4px 10px 4px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="carousel"] .fdcd-bestseller-grid::-webkit-scrollbar,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="auto"].fdcd-auto-scroll-layout .fdcd-bestseller-grid::-webkit-scrollbar {
    display: none !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section.fdcd-carousel-count-1[data-layout="carousel"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section.fdcd-carousel-count-1[data-layout="auto"].fdcd-auto-scroll-layout .fdcd-rec-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: start !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section.fdcd-carousel-count-2[data-layout="carousel"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section.fdcd-carousel-count-2[data-layout="auto"].fdcd-auto-scroll-layout .fdcd-rec-card {
    flex: 0 0 calc((100% - var(--fdcd-carousel-gap, 12px)) / 2) !important;
    width: calc((100% - var(--fdcd-carousel-gap, 12px)) / 2) !important;
    min-width: calc((100% - var(--fdcd-carousel-gap, 12px)) / 2) !important;
    max-width: calc((100% - var(--fdcd-carousel-gap, 12px)) / 2) !important;
    scroll-snap-align: start !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section.fdcd-carousel-count-3[data-layout="carousel"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section.fdcd-carousel-count-3[data-layout="auto"].fdcd-auto-scroll-layout .fdcd-rec-card {
    flex: 0 0 calc((100% - (var(--fdcd-carousel-gap, 12px) + var(--fdcd-carousel-gap, 12px))) / 3) !important;
    width: calc((100% - (var(--fdcd-carousel-gap, 12px) + var(--fdcd-carousel-gap, 12px))) / 3) !important;
    min-width: calc((100% - (var(--fdcd-carousel-gap, 12px) + var(--fdcd-carousel-gap, 12px))) / 3) !important;
    max-width: calc((100% - (var(--fdcd-carousel-gap, 12px) + var(--fdcd-carousel-gap, 12px))) / 3) !important;
    scroll-snap-align: start !important;
}

body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="carousel"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-layout="auto"].fdcd-auto-scroll-layout .fdcd-rec-card {
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* When admin explicitly chooses Full Width, keep one card per row even if Carousel count is higher. */
body #fdcd-cart-drawer .fdcd-bestseller-section[data-card-width-mode="full"][data-layout="carousel"] .fdcd-rec-card,
body #fdcd-cart-drawer .fdcd-bestseller-section[data-card-width-mode="full"][data-layout="auto"].fdcd-auto-scroll-layout .fdcd-rec-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

/* v1.3.4 Sales booster features */
.fdcd-free-shipping-bar{background:var(--fdcd-card-bg,#fff);border:1px solid #dbe5ef;border-radius:14px;padding:12px 14px;margin:0 0 14px;box-shadow:0 6px 18px rgba(15,23,42,.04)}
.fdcd-free-shipping-text{font-size:13px;font-weight:800;color:var(--fdcd-text,#1f2937);text-align:center;margin-bottom:8px}
.fdcd-free-shipping-track{height:8px;border-radius:999px;background:#e8eef5;overflow:hidden}.fdcd-free-shipping-track span{display:block;height:100%;border-radius:999px;background:var(--fdcd-primary-color,#12b89f);transition:width .25s ease}
.fdcd-oneclick-coupons{margin:16px 0}.fdcd-oneclick-coupons h4{margin:0 0 10px;font-size:14px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:var(--fdcd-text,#1f2937)}
.fdcd-oneclick-coupon-list{display:grid;gap:10px}.fdcd-oneclick-coupon-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--fdcd-card-bg,#fff);border:1px dashed #cbd5e1;border-radius:14px;padding:12px;box-sizing:border-box}.fdcd-oneclick-coupon-card strong{display:block;font-size:13px;color:var(--fdcd-text,#1f2937)}.fdcd-oneclick-coupon-card span{display:block;font-size:12px;color:var(--fdcd-muted-text,#6b7280);margin-top:2px}.fdcd-oneclick-coupon-card code{display:inline-flex;margin-top:6px;background:#f1f5f9;border-radius:6px;padding:3px 7px;font-size:12px;font-weight:900;color:#0f172a}.fdcd-oneclick-coupon-apply{flex:0 0 auto;border:0;border-radius:10px;background:var(--fdcd-primary-color,#12b89f);color:#fff;font-weight:900;padding:10px 14px;cursor:pointer}
.fdcd-cart-variant-switcher{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.fdcd-cart-variation-option{border:1px solid var(--fdcd-primary-color,#12b89f);border-radius:8px;background:#fff;color:#0f4f49;font-size:12px;font-weight:900;line-height:1;padding:7px 10px;cursor:pointer}.fdcd-cart-variation-option.is-active{background:var(--fdcd-primary-color,#12b89f);color:#fff}.fdcd-cart-variation-option:hover{box-shadow:0 0 0 2px rgba(18,184,159,.15)}
.fdcd-recovery-phone-wrap{margin:6px 0 8px}.fdcd-recovery-phone-input{width:100%;height:38px;border:1px solid #d8e0ec;border-radius:10px;padding:0 12px;font-size:13px;font-weight:700;box-sizing:border-box;background:#fff;color:var(--fdcd-text,#1f2937)}
.fdcd-whatsapp-checkout-btn{margin-top:8px;width:100%;height:42px;border-radius:14px;background:#25d366;color:#fff!important;text-decoration:none!important;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:900;box-shadow:0 8px 20px rgba(37,211,102,.22)}.fdcd-wa-icon{font-weight:900;font-size:16px}.fdcd-whatsapp-checkout-btn:hover{filter:brightness(.96);color:#fff!important}
@media(max-width:480px){.fdcd-oneclick-coupon-card{align-items:flex-start;flex-direction:column}.fdcd-oneclick-coupon-apply{width:100%}.fdcd-cart-variant-switcher{max-width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.fdcd-cart-variation-option{flex:0 0 auto;white-space:nowrap}}
