/*
 * Store styling for the CookieConsent "box inline" card (config in page/tracking/consent.phtml).
 * Phones keep the floating full-width layout (sizing from the theme's _global.scss) with the same black frame.
 * 380px wide keeps it left of the sticky PDP add-to-cart bar (both sit in the same container from 1200px up).
 */
#cc-main {
    --cc-btn-primary-bg: #000;
    --cc-btn-primary-hover-bg: #333;
    --cc-btn-secondary-bg: #fff;
    --cc-btn-secondary-color: #000;
    --cc-btn-secondary-border-color: #000;
    --cc-btn-secondary-hover-bg: #f0f0f0;
    --cc-btn-secondary-hover-border-color: #000;
    --cc-link-color: #000;
}

/* Black frame and title on every size; the title selector out-ranks the theme's mobile overrides */
#cc-main .cm.cm--box {
    border: 2px solid #000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

#cc-main .cm.cm--box .cm__body #cm__title.cm__title {
    color: #000;
    font-weight: 800;
}

@media (min-width: 641px) {
    /* Docked to the viewport bottom, aligned with the 1140px content container's left edge */
    #cc-main .cm.cm--box {
        bottom: 0;
        left: max(16px, calc((100vw - 1140px) / 2));
        width: 380px;
        max-width: calc(100vw - 32px);
        border-radius: 8px 8px 0 0;
        border-bottom: 0;
    }

    #cc-main .cm--box .cm__body {
        padding: 8px 8px 0;
    }

    #cc-main .cm--box .cm__title {
        font-size: 22px;
    }

    #cc-main .cm--box .cm__desc {
        font-size: 16px;
        line-height: 1.45;
        color: #2c2f31;
    }

    #cc-main .cm--box .cm__btns {
        border-top: 0;
        padding-bottom: 20px;
    }

    #cc-main .cm--box .cm__btn {
        border-width: 2px;
        font-size: 15px;
        padding: 15px 20px;
        text-transform: uppercase;
        letter-spacing: .03em;
    }
}

/* Out-ranks the mobile description colour in name-a-star_co_uk/scss/layout/_global.scss (its black buttons stay) */
@media (max-width: 640px) {
    #cc-main .cm.cm--inline .cm__body #cm__desc.cm__desc {
        color: #2c2f31;
    }
}
