#bajt-dcs-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}
#bajt-dcs-popup.bajt-dcs-open {
    display: block;
}
.bajt-dcs-popup-content {
    background-color: #fff;
    margin: 6% auto;
    padding: 24px;
    border-radius: 10px;
    width: 520px;
    max-width: 92vw;
    position: relative;
    color: #000;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.bajt-dcs-popup-close,
.bajt-dcs-widget-dismiss {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 2;
}
.bajt-dcs-popup-close:hover,
.bajt-dcs-popup-close:focus,
.bajt-dcs-widget-dismiss:hover,
.bajt-dcs-widget-dismiss:focus {
    color: #25b9d7;
    outline: none;
}
.bajt-dcs-badge {
    display: inline-block;
    background: var(--dcs-badge-bg, #25b9d7);
    color: var(--dcs-badge-color, #fff);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.bajt-dcs-title {
    margin: 0 0 14px;
    font-size: 1.2rem;
    line-height: 1.3;
}
.bajt-dcs-countdown-wrapper {
    margin-bottom: 14px;
}
.bajt-dcs-countdown-badge {
    display: inline-block;
    background: #282828;
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.85rem;
}
.bajt-dcs-countdown-title {
    border-right: 1px solid rgba(255, 255, 255, 0.27);
    padding-right: 0.5rem;
    margin-right: 0.4rem;
}
.bajt-dcs-countdown-timer {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* ---- Product cards (shared) ---- */
.bajt-dcs-product-name {
    display: block;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    margin-bottom: 6px;
}
.bajt-dcs-product-name:hover {
    color: #25b9d7;
}
.bajt-dcs-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.bajt-dcs-price-row .regular-price {
    text-decoration: line-through;
    font-size: 0.85rem;
}
.bajt-dcs-promo-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d92c2c;
}
.bajt-dcs-btn-add {
    background: var(--dcs-btn-bg, #25b9d7);
    color: var(--dcs-btn-color, #fff);
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    margin-top: 8px;
}
.bajt-dcs-btn-add:hover {
    background: var(--dcs-btn-hover, #1e9bb3);
}
.bajt-dcs-btn-add:disabled {
    background: #b9c1c4;
    cursor: not-allowed;
}
.bajt-dcs-btn-skip {
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    width: 100%;
}
.bajt-dcs-actions-skip {
    margin-top: 14px;
}
.bajt-dcs-message {
    margin-top: 12px;
    font-size: 0.9rem;
}
.bajt-dcs-message.bajt-dcs-error {
    color: #d92c2c;
}
.bajt-dcs-message.bajt-dcs-success {
    color: #1a8a3f;
}

/* Shared widget positioning context (anchors the inline dismiss "x") */
.bajt-dcs-widget {
    position: relative;
}

/* ---- Grid layout: up to 4 cards side by side (popup, cart page) ---- */
.bajt-dcs-layout-grid .bajt-dcs-products {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.bajt-dcs-layout-grid .bajt-dcs-product-card {
    flex: 1 1 130px;
    max-width: 160px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}
.bajt-dcs-layout-grid .bajt-dcs-product-img img {
    width: 100%;
    max-width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    display: block;
    margin: 0 auto 8px;
}
.bajt-dcs-layout-grid .bajt-dcs-product-name {
    font-size: 0.8rem;
    min-height: 2.2em;
}
.bajt-dcs-layout-grid .bajt-dcs-price-row {
    flex-direction: column;
    gap: 2px;
}

/* ---- Carousel layout: one card visible at a time, auto-rotating (mini-cart, checkout summary) ---- */
.bajt-dcs-layout-carousel .bajt-dcs-products {
    position: relative;
}
.bajt-dcs-layout-carousel .bajt-dcs-product-card {
    display: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    gap: 10px;
    align-items: flex-start;
}
.bajt-dcs-layout-carousel .bajt-dcs-product-card.bajt-dcs-card-active {
    display: flex;
}
.bajt-dcs-layout-carousel .bajt-dcs-product-img img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    display: block;
}
.bajt-dcs-layout-carousel .bajt-dcs-product-info {
    flex: 1;
    min-width: 0;
}
.bajt-dcs-layout-carousel .bajt-dcs-btn-add {
    margin-top: 8px;
}
.bajt-dcs-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.bajt-dcs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d6d9db;
    cursor: pointer;
    padding: 0;
}
.bajt-dcs-dot-active {
    background: var(--dcs-btn-bg, #25b9d7);
}

/* Compact variant used for inline placements (checkout summary, mini-cart, cart page) */
.bajt-dcs-inline {
    margin-top: 16px;
}
.bajt-dcs-widget-compact .bajt-dcs-badge {
    font-size: 0.68rem;
    padding: 3px 8px;
    margin-bottom: 8px;
}
.bajt-dcs-widget-compact .bajt-dcs-product-name {
    font-size: 0.82rem;
    margin-bottom: 4px;
}
.bajt-dcs-widget-compact .bajt-dcs-promo-price {
    font-size: 1rem;
}
.bajt-dcs-widget-compact .bajt-dcs-btn-add {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Mini-cart dropdown is narrow — tighten further */
.bajt-dcs-inline-minicart {
    margin-top: 10px;
}
.bajt-dcs-inline-minicart .bajt-dcs-layout-carousel .bajt-dcs-product-img img {
    width: 44px;
    height: 44px;
}

/* Cart page: sits right above/below the theme's own cross-selling carousel,
   which already reserves generous space for its pagination/arrows — keep our
   own margins tight so we don't stack more empty space on top of that. */
.bajt-dcs-inline-cart_page {
    margin: 12px 0;
}
