/* Qoderly V20: fixed Ask AI launcher, readable single-product CTA, stable hero rotator. */

/* Homepage used to intentionally collapse the native launcher to 1px. Restore a full pill. */
#gcc-widget #gcc-toggle,
#ddHomeChatHub #gcc-toggle,
.dd-home-layout #gcc-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    width: max-content !important;
    min-width: 152px !important;
    max-width: calc(100vw - 28px) !important;
    height: 54px !important;
    min-height: 54px !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 0 19px !important;
    overflow: visible !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    box-sizing: border-box !important;
}
#gcc-toggle-label {
    display: inline-block !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: visible !important;
    line-height: 1 !important;
}
#gcc-widget #gcc-toggle > svg { flex: 0 0 21px !important; width: 21px !important; height: 21px !important; }
#gcc-widget #gcc-toggle .gcc-toggle-close { flex: 0 0 auto !important; white-space: nowrap !important; }
@media (max-width: 600px) {
    #gcc-widget #gcc-toggle, #ddHomeChatHub #gcc-toggle, .dd-home-layout #gcc-toggle {
        min-width: 142px !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 15px !important;
        gap: 8px !important;
    }
}
@media (max-width: 360px) {
    #gcc-widget #gcc-toggle, #ddHomeChatHub #gcc-toggle, .dd-home-layout #gcc-toggle {
        min-width: 132px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }
}

/* The legacy master layout inherits a dark text colour for anchors. Force white labels on navy actions. */
body.digital-store a.btn-buy-now,
body.digital-store button.btn-buy-now,
body.digital-store #btnBuyNow,
body.digital-store .product-detail-actions .btn-buy-now,
body.digital-store .product-actions .btn-order,
body.digital-store .btn-order,
body.digital-store .checkout,
body.digital-store .checkout-btn,
body.digital-store .btn-checkout,
body.digital-store .mini-cart-checkout,
body.digital-dealz-page .checkout,
body.digital-dealz-page .dd-cart-checkout,
body.digital-dealz-page .mini-cart-checkout,
body.digital-store .btn-submit-review {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
}
body.digital-store a.btn-buy-now *,
body.digital-store button.btn-buy-now *,
body.digital-store #btnBuyNow *,
body.digital-store .product-detail-actions .btn-buy-now *,
body.digital-store .product-actions .btn-order *,
body.digital-store .btn-order *,
body.digital-store .checkout *,
body.digital-store .mini-cart-checkout *,
body.digital-dealz-page .checkout *,
body.digital-dealz-page .dd-cart-checkout *,
body.digital-dealz-page .mini-cart-checkout * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
body.digital-store a.btn-buy-now i,
body.digital-store #btnBuyNow i,
body.digital-store .product-detail-actions .btn-buy-now i { color: #fff !important; }

/* Fixed-height hero headline slot prevents word-length changes from shifting every section below. */
.dd-home-page .dd-home-hero__rotator-wrap {
    display: block !important;
    width: 100% !important;
    height: 2.55em !important;
    min-height: 2.55em !important;
    max-height: 2.55em !important;
    overflow: hidden !important;
    contain: layout paint !important;
}
.dd-home-page .dd-home-hero__rotator {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    max-height: 2.4em !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    overflow: hidden !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    -webkit-line-clamp: 2;
    text-overflow: clip !important;
}
@media (max-width: 640px) {
    .dd-home-page .dd-home-hero__rotator-wrap {
        height: 3.55em !important;
        min-height: 3.55em !important;
        max-height: 3.55em !important;
    }
    .dd-home-page .dd-home-hero__rotator {
        max-height: 3.45em !important;
        font-size: clamp(29px, 8.2vw, 42px) !important;
        line-height: 1.16 !important;
    }
}
