/* NOTE: PROMO PAGE (promotii.php). The layout of the Black Friday page (css/new/pages/black-friday.css) on a white
   page: the narrower container, the hero over the promo photo, the offer cards (two per row on phones), the price
   request form. Loaded only by this page ($content['styles']), after the block stylesheets. */

:root {
    --kmd-container: 1066px;
    --kmd-gutter: 16px;
    --kmd-promo-line: #E6E4DF;
    --kmd-promo-soft: #55545A;
}

body {
    -webkit-font-smoothing: antialiased;
}

main .kmd-page-hero .kmd-btn {
    min-height: 50px;
    padding: 0 24px;
    font-size: 16px;
}

/* NOTE: HERO */

.kmd-page-hero--image {
    display: block;
    min-height: 0;
    padding-block: 72px 80px;
}

.kmd-page-hero--image::before {
    background: linear-gradient(90deg, rgba(5, 5, 5, .85) 0%, rgba(5, 5, 5, .55) 38%, rgba(5, 5, 5, 0) 65%);
}

.kmd-page-hero--image .kmd-page-hero__content {
    gap: 0;
    max-width: 720px;
    margin-left: 20px;
}

.kmd-page-hero--image .kmd-page-hero__eyebrow {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
}

.kmd-page-hero--image .kmd-page-hero__title {
    margin-bottom: 18px;
    font-size: 48px;
    line-height: 1.08;
}

.kmd-page-hero--image .kmd-page-hero__text {
    margin-bottom: 28px;
    color: #D8D8DC;
}

.kmd-page-hero--image .kmd-page-hero__actions,
.kmd-page-hero--image .kmd-newsletter {
    margin: 0 0 22px;
}

.kmd-page-hero--image .kmd-page-hero__perks {
    gap: 6px 14px;
    margin-top: 0;
    color: #C2C2C8;
    font-weight: 400;
}

.kmd-page-hero--image .kmd-page-hero__perks li {
    display: block;
}

.kmd-page-hero--image .kmd-page-hero__perks svg {
    display: none;
}

.kmd-page-hero--image .kmd-page-hero__perks li + li::before {
    margin-right: 14px;
    content: "·";
}

/* NOTE: OFFERS */

.kmd-product-cards--offer {
    padding-block: 72px 80px;
    border-bottom: 1px solid var(--kmd-promo-line);
}

.kmd-product-cards--offer .kmd-stack {
    gap: 20px;
}

.kmd-product-cards--offer .kmd-section-head__title {
    font-size: 34px;
}

.kmd-product-cards--offer .kmd-product-cards__grid {
    margin-top: 12px;
}

/* NOTE: BEST SELLERS + INSTALLMENTS */

.kmd-text-links {
    padding-block: 54px 62px;
}

/* NOTE: PRICE LIST FORM */

.kmd-price-request {
    padding-block: 52px 54px;
    border-bottom: 1px solid var(--kmd-promo-line);
}

.kmd-price-request__inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.kmd-price-request__intro {
    gap: 0;
}

.kmd-price-request__eyebrow {
    margin-bottom: 14px;
}

.kmd-price-request__intro .kmd-section-head__title {
    margin-bottom: 14px;
    font-size: 32px;
    line-height: 1.18;
}

.kmd-price-request__text {
    max-width: 400px;
    margin-bottom: 18px;
    color: var(--kmd-promo-soft);
    line-height: 1.6;
}

/* the phone line of the form block is white for the dark sections: dark text on this light one */
.kmd-price-request .kmd-price-request__phone,
.kmd-price-request .kmd-price-request__phone:hover {
    color: var(--kmd-ink);
}

/* the promo banner apart from the phone line under it */
.kmd-price-request__image {
    margin-bottom: 18px;
}

.kmd-price-request .kmd-form {
    padding: 20px 21px 21px;
    background: #F1EFEA;
}

.kmd-price-request .kmd-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
}

.kmd-price-request .kmd-field {
    gap: 4px;
}

.kmd-price-request .kmd-field__label {
    font-weight: 700;
}

.kmd-price-request .kmd-field__control {
    border-color: #B9B7B1;
    font-size: 14px;
}

.kmd-price-request textarea.kmd-field__control {
    height: 84px;
}

.kmd-price-request .kmd-field__control::placeholder {
    color: #77757A;
}

@media screen and (max-width: 991px) {
    .kmd-page-hero__bg {
        opacity: .6;
    }

    .kmd-price-request__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

@media screen and (max-width: 767px) {
    .kmd-page-hero--image {
        padding-block: 48px 52px;
    }

    .kmd-page-hero--image::before {
        background: linear-gradient(90deg, rgba(5, 5, 5, .85) 0%, rgba(5, 5, 5, .55) 38%, rgba(5, 5, 5, 0) 65%);
    }

    .kmd-page-hero--image .kmd-page-hero__content {
        margin-left: 0;
    }

    .kmd-page-hero--image .kmd-page-hero__title {
        font-size: 34px;
    }

    .kmd-product-cards--offer {
        padding-block: 52px 56px;
    }

    .kmd-product-cards--offer .kmd-section-head__title {
        font-size: 28px;
    }

    /* two offers per row on phones too (product-cards.css drops to one), with smaller card contents to fit */
    .kmd-product-cards--offer .kmd-product-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .kmd-product-card--offer .kmd-product-card__body {
        padding: 12px 10px 10px;
    }

    .kmd-product-card--offer .kmd-product-card__name {
        margin-bottom: 6px;
        font-size: 15px;
        overflow-wrap: break-word;
    }

    .kmd-product-card--offer .kmd-product-card__badge,
    .kmd-product-card__discount {
        top: 6px;
        padding: 3px 6px;
        font-size: 10px;
    }

    .kmd-product-card--offer .kmd-product-card__badge {
        left: 6px;
    }

    .kmd-product-card__discount {
        right: 6px;
        font-size: 12px;
    }

    .kmd-product-card--offer .kmd-product-card__reviews {
        flex-wrap: wrap;
        gap: 2px 4px;
        margin-bottom: 10px;
        font-size: 12px;
    }

    .kmd-product-card--offer .kmd-product-card__reviews .kmd-stars {
        width: 60px;
        height: 12px;
        -webkit-mask-size: 12px 12px;
        mask-size: 12px 12px;
    }

    .kmd-product-card--offer .kmd-product-card__price {
        padding-top: 10px;
    }

    .kmd-product-card--offer .kmd-product-card__price-new {
        font-size: 18px;
    }

    /* the prices in the two columns: the struck list price without its label, smaller saving and installment lines,
       so each one stays on one line */
    .kmd-product-card--offer .kmd-product-card__price-old {
        font-size: 0;
    }

    .kmd-product-card--offer .kmd-product-card__price-old s {
        font-size: 12px;
    }

    .kmd-product-card--offer .kmd-product-card__price-save,
    .kmd-product-card--offer .kmd-product-card__installment {
        font-size: 12px;
    }

    .kmd-product-card__stock {
        margin-bottom: 10px;
        font-size: 12px;
    }

    main .kmd-product-card__cta {
        min-height: 40px;
        padding: 0 8px;
        font-size: 13px;
    }

    .kmd-price-request .kmd-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media screen and (max-width: 599px) {
    /* the perks wrap on two lines: no separator dot at the start of the second one */
    .kmd-page-hero--image .kmd-page-hero__perks {
        gap: 4px 16px;
    }

    .kmd-page-hero--image .kmd-page-hero__perks li + li::before {
        content: none;
    }
}
