/**
 * "Самовивіз у Львові" (.pickup-band, a light block above the footer) and the
 * footer (footer.php), dark green: four columns from 1024px (the shop,
 * "Контакти", "Каталог", "Покупцям"), two by two on tablets, one column on
 * phones, where "Каталог" and "Покупцям" fold (footer-sections.js).
 * Loaded after style.css, whose old footer rules use !important.
 */

.site-footer {
    padding: 48px 0 0 !important;
    background-color: #0b3d07 !important;
    color: #e8f3e5 !important;
    line-height: 1.55;
}

.site-footer ul,
.site-footer ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #fff !important;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #7fc274 !important;
}

.site-footer a:focus-visible,
.site-footer summary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* The font size is set here, not on .site-footer: .col-full's width is in em. */
.site-footer__grid {
    font-size: 15px;
    display: grid;
    grid-template-columns: 1.3fr 1.1fr .9fr 1fr;
    gap: 32px 40px;
    padding-bottom: 36px;
}

.site-footer .site-footer__title {
    margin: 0 0 14px;
    padding: 0;
    color: #7fc274;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---- The shop ----------------------------------------------------------------------- */
.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Oswald", sans-serif;
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
}

.site-footer__logo img {
    flex: none;
    width: 40px;
    height: auto;
}

.site-footer__about {
    max-width: 30em;
    margin-top: 14px !important;
    color: #b9d6b4;
    font-size: 14px;
}

.site-footer__perks {
    margin-top: 16px !important;
}

.site-footer__perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.site-footer__perks li + li {
    margin-top: 6px;
}

.site-footer__perks .fas {
    width: 16px;
    color: #7fc274;
    font-size: 13px;
    text-align: center;
}

.site-footer__social {
    display: flex;
    gap: 6px;
    margin-top: 20px !important;
}

.site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .08);
    transition: background-color .2s ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus {
    background-color: rgba(255, 255, 255, .18);
}

.site-footer__social img {
    width: 20px;
    height: 20px;
}

/* ---- Contacts ----------------------------------------------------------------------- */
.site-footer__contacts li + li {
    margin-top: 4px;
}

.site-footer .site-footer__phone {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    letter-spacing: .02em;
    white-space: nowrap;
}

.site-footer .site-footer__email {
    color: #b9d6b4 !important;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.site-footer__chats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.site-footer .site-footer__chats a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 20px;
    font-size: 14px;
    transition: border-color .2s ease, background-color .2s ease;
}

.site-footer .site-footer__chats a:hover,
.site-footer .site-footer__chats a:focus {
    border-color: #fff;
    background-color: rgba(255, 255, 255, .08);
    color: #fff !important;
}

/* ---- Lists -------------------------------------------------------------------------- */
.site-footer__section summary {
    display: block;
    list-style: none;
    cursor: default;
}

.site-footer__section summary::-webkit-details-marker {
    display: none;
}

.site-footer__links li + li {
    margin-top: 8px;
}

/* ---- Bottom bar --------------------------------------------------------------------- */
/* Three columns, the outer two equal, so the card logos sit in the middle. */
.site-footer__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px 24px;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #9cc595;
    font-size: 13px;
}

.site-footer__dev {
    justify-self: end;
}

.site-footer__cards {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 6px;
    background-color: #fff;
}

.site-footer__cards img {
    display: block;
    width: 72px;
    height: auto;
}

.site-footer__dev img {
    display: block;
    width: 96px;
    height: auto;
    opacity: .75;
}

.site-footer__dev:hover img,
.site-footer__dev:focus img {
    opacity: 1;
}

/* ---- Tablets: the columns two by two ---------------------------------------------- */
@media (max-width: 1023px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }
}

/* ---- Phones: one column, the lists fold --------------------------------------------- */
@media (max-width: 767px) {
    .site-footer {
        padding-top: 36px !important;
    }

    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        /* The bottom bar's top line closes the last list. */
        padding-bottom: 0;
    }

    /* The shop's and the contacts' children line up in one column in the order below. */
    .site-footer__brand,
    .site-footer__contact {
        display: contents;
    }

    .site-footer__logo {
        order: 1;
        justify-self: start;
    }

    .site-footer__about {
        order: 2;
    }

    .site-footer__contacts {
        order: 3;
        margin-top: 20px !important;
    }

    .site-footer__chats {
        order: 4;
    }

    .site-footer__social {
        order: 5;
        margin-bottom: 28px !important;
    }

    .site-footer__section {
        order: 6;
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .site-footer__perks,
    .site-footer__contact > .site-footer__title {
        display: none;
    }

    .site-footer__section summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        cursor: pointer;
    }

    .site-footer__section summary::after {
        content: "";
        display: block;
        flex: none;
        box-sizing: content-box;
        width: 9px;
        height: 9px;
        margin-right: 4px;
        border-right: 2px solid #7fc274;
        border-bottom: 2px solid #7fc274;
        transform: rotate(45deg) translateY(-3px);
        transition: transform .2s ease;
    }

    .site-footer__section[open] summary::after {
        transform: rotate(-135deg) translateY(-3px);
    }

    .site-footer .site-footer__section .site-footer__title {
        margin: 0;
        font-size: 14px;
    }

    .site-footer__section .site-footer__links {
        padding-bottom: 16px;
    }

    .site-footer__section .site-footer__links a {
        display: inline-block;
        padding: 4px 0;
    }

    .site-footer__bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__section summary::after,
    .site-footer__social a,
    .site-footer .site-footer__chats a {
        transition: none;
    }
}

/* ---- "Самовивіз у Львові" above the footer ------------------------------------------ */
.pickup-band {
    padding: 44px 0;
    border-top: 1px solid #e2ecdf;
    background-color: #f2f7f0;
    color: #1b1b1b;
}

.pickup-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.8fr);
    gap: 40px;
    align-items: start;
}

/* .col-full's clearfix ::before and ::after would take grid cells. */
.pickup-band__inner::before,
.pickup-band__inner::after {
    display: none;
}

.pickup-band .pickup-band__title {
    margin: 0 0 14px;
    padding: 0;
    color: #0b3d07;
    font-family: "Oswald", sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
}

.pickup-band p {
    margin: 0;
}

.pickup-band__address {
    display: flex;
    gap: 10px;
    font-size: 15px;
}

.pickup-band__address .fas {
    margin-top: 4px;
    color: #128108;
}

.pickup-band a {
    color: #128108;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.pickup-band a:hover,
.pickup-band a:focus {
    color: #0b3d07;
}

.pickup-band__address a {
    display: inline-block;
    margin-top: 2px;
    font-size: 14px;
}

/* The condition people must not miss: on an amber chip, not in the step text. */
.pickup-band__warning {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px !important;
    padding: 10px 14px;
    border: 1px solid #f0c98a;
    border-radius: 8px;
    background-color: #fff4e0;
    color: #5a3a00;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.pickup-band__warning .fas {
    flex: none;
    margin-top: 2px;
    color: #b26b00;
    font-size: 16px;
}

.pickup-band__note {
    margin-top: 16px !important;
    color: #5f5e5a;
    font-size: 14px;
}

/* The steps as a timeline: numbered circles on one line (a column on phones),
   the first filled, the line to the second solid and to the third dashed. */
.pickup-band__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pickup-step;
}

.pickup-band__steps li {
    position: relative;
    margin: 0;
    padding: 50px 0 0;
    color: #5f5e5a;
    font-size: 14px;
    line-height: 1.55;
    counter-increment: pickup-step;
}

.pickup-band__steps li::before {
    content: counter(pickup-step);
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    border: 2px solid #128108;
    border-radius: 50%;
    background-color: #f2f7f0;
    color: #128108;
    font-family: "Oswald", sans-serif;
    font-size: 17px;
}

.pickup-band__steps li:first-child::before {
    background-color: #128108;
    color: #fff;
}

/* The line from this circle to the next one, across the gap. */
.pickup-band__steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 42px;
    right: -20px;
    height: 2px;
    background-color: #128108;
}

.pickup-band__steps li:nth-child(2)::after {
    background: repeating-linear-gradient(90deg, #128108 0 6px, transparent 6px 11px);
}

.pickup-band__steps strong {
    display: block;
    margin-bottom: 4px;
    color: #1b1b1b;
    font-family: "Oswald", sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.3;
}

.pickup-band__steps a {
    white-space: nowrap;
}

@media (max-width: 1023px) {
    .pickup-band__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .pickup-band {
        padding: 32px 0;
    }

    .pickup-band .pickup-band__title {
        font-size: 24px;
    }

    .pickup-band__steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .pickup-band__steps li {
        padding: 5px 0 0 52px;
    }

    /* The line runs down from this circle to the next one. */
    .pickup-band__steps li:not(:last-child)::after {
        top: 42px;
        right: auto;
        bottom: -16px;
        left: 16px;
        width: 2px;
        height: auto;
    }

    .pickup-band__steps li:nth-child(2)::after {
        background: repeating-linear-gradient(180deg, #128108 0 6px, transparent 6px 11px);
    }
}
