/*
WRYEDGE DIRECT StoreFront
Footer Visual Runtime

Version 1.0.0-alpha8
*/


/* ==========================================================
   SERVICE BAND
   ========================================================== */

.service-band {
    border-top:
        1px solid
        var(--line);

    border-bottom:
        1px solid
        #dce2e6;

    background:
        #f3f5f6;
}


.service-grid {
    min-height:
        94px;

    display:
        grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    align-items:
        center;
}


.service-item {
    min-width:
        0;

    min-height:
        42px;

    padding:
        0 30px;

    display:
        flex;

    align-items:
        center;

    gap:
        14px;

    border-right:
        1px solid
        #d5dce0;
}


.service-item:first-child {
    padding-left:
        0;
}


.service-item:last-child {
    padding-right:
        0;

    border-right:
        0;
}


.service-item svg {
    width:
        25px;

    height:
        25px;

    flex:
        0 0 auto;

    fill:
        none;

    stroke:
        var(--red);

    stroke-width:
        1.55;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


.service-item span {
    min-width:
        0;

    display:
        grid;
}


.service-item strong {
    color:
        #172028;

    font-size:
        12px;

    font-weight:
        760;

    line-height:
        1.25;
}


.service-item small {
    margin-top:
        4px;

    color:
        #75818a;

    font-size:
        9px;

    line-height:
        1.35;
}


/* ==========================================================
   MAIN FOOTER
   ========================================================== */

.footer-main {
    background:
        #111920;

    color:
        #d7dde2;
}


.footer-grid {
    padding:
        54px 0 46px;

    display:
        grid;

    grid-template-columns:
        minmax(280px, 1.75fr)
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap:
        44px;
}


/* ==========================================================
   IDENTITY
   ========================================================== */

.footer-identity {
    min-width:
        0;
}


.footer-logo {
    display:
        inline-flex;

    align-items:
        center;
}


.footer-logo img {
    display:
        block;

    width:
        178px;

    max-width:
        100%;

    height:
        auto;
}


.footer-identity > p {
    max-width:
        345px;

    margin:
        22px 0 18px;

    color:
        #98a4ac;

    font-size:
        12px;

    line-height:
        1.72;
}


.footer-subscription {
    display:
        inline-flex;

    align-items:
        center;

    min-height:
        26px;

    padding:
        0 10px;

    border:
        1px solid
        #34414a;

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, .018);

    color:
        #c3cbd0;

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        .08em;

    text-transform:
        uppercase;
}


/* ==========================================================
   FOOTER GROUPS
   ========================================================== */

.footer-group {
    min-width:
        0;
}


.footer-group > button {
    width:
        100%;

    padding:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    border:
        0;

    background:
        transparent;

    color:
        #ffffff;

    font-size:
        11px;

    font-weight:
        800;

    line-height:
        1.3;

    text-align:
        left;

    letter-spacing:
        .075em;

    text-transform:
        uppercase;

    pointer-events:
        none;
}


.footer-group > button svg {
    display:
        none;
}


.footer-group > div {
    margin-top:
        19px;

    display:
        flex;

    flex-direction:
        column;

    gap:
        10px;
}


.footer-group a,
.footer-link-pending {
    display:
        block;

    color:
        #99a6ae;

    font-size:
        11px;

    line-height:
        1.4;
}


.footer-group a {
    transition:
        color .18s ease;
}


.footer-group a:hover {
    color:
        #ffffff;
}


.footer-link-pending {
    cursor:
        default;
}


/* ==========================================================
   FOOTER BASE
   ========================================================== */

.footer-base {
    min-height:
        78px;

    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(220px, auto);

    align-items:
        center;

    gap:
        24px;

    border-top:
        1px solid
        #2b363e;

    color:
        #7d8a93;

    font-size:
        9px;
}


.footer-base-left {
    display:
        flex;

    align-items:
        center;

    gap:
        14px;

    flex-wrap:
        wrap;
}


.footer-base-left > p {
    margin:
        0;
}


.footer-copyright-separator {
    margin:
        0 5px;

    color:
        #53616a;
}


.footer-version-badge {
    display:
        inline-flex;

    align-items:
        center;

    min-height:
        24px;

    padding:
        0 10px;

    border:
        1px solid
        #2b363e;

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, .02);

    color:
        #a9b4bc;

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        .1em;

    text-transform:
        uppercase;
}


.footer-base-socials {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        12px;
}


.footer-social-link {
    width:
        34px;

    height:
        34px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        #2b363e;

    border-radius:
        999px;

    background:
        transparent;

    color:
        #d6dde2;

    transition:
        border-color .18s ease,
        color .18s ease,
        background .18s ease,
        transform .18s ease;
}


.footer-social-link:hover {
    border-color:
        #41505a;

    background:
        rgba(255, 255, 255, .03);

    color:
        #ffffff;

    transform:
        translateY(-1px);
}


.footer-social-link svg {
    width:
        16px;

    height:
        16px;

    fill:
        none;

    stroke:
        currentColor;

    stroke-width:
        1.8;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


.footer-social-link:first-child svg {
    fill:
        currentColor;

    stroke:
        none;
}


.footer-base-payments {
    display:
        flex;

    justify-content:
        flex-end;
}


.footer-payments-placeholder {
    min-width:
        220px;

    min-height:
        42px;

    padding:
        0 14px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px dashed
        #32404a;

    border-radius:
        10px;

    background:
        rgba(255, 255, 255, .02);

    color:
        #8d98a1;

    font-size:
        10px;

    letter-spacing:
        .04em;
}


/* ==========================================================
   MEDIUM DESKTOP
   ========================================================== */

@media (max-width: 1199px) {

    .footer-grid {
        grid-template-columns:
            minmax(250px, 1.5fr)
            repeat(
                4,
                minmax(0, 1fr)
            );

        gap:
            28px;
    }


    .service-item {
        padding:
            0 20px;
    }

}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 920px) {

    .service-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        padding-block:
            16px;
    }


    .service-item {
        min-height:
            64px;

        padding:
            0 22px;
    }


    .service-item:first-child {
        padding-left:
            22px;
    }


    .service-item:nth-child(2) {
        border-right:
            0;
    }


    .service-item:nth-child(3),
    .service-item:nth-child(4) {
        border-top:
            1px solid
            #d5dce0;
    }


    .service-item:nth-child(3) {
        padding-left:
            22px;
    }


    .footer-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            34px 42px;
    }


    .footer-identity {
        grid-column:
            1 / -1;
    }


    .footer-identity > p {
        max-width:
            520px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .service-grid {
        grid-template-columns:
            1fr;

        padding-block:
            10px;
    }


    .service-item,
    .service-item:first-child,
    .service-item:nth-child(3),
    .service-item:last-child {

        min-height:
            62px;

        padding:
            0;

        border-right:
            0;

        border-top:
            0;

        border-bottom:
            1px solid
            #d5dce0;
    }


    .service-item:last-child {
        border-bottom:
            0;
    }


    .service-item svg {
        width:
            23px;

        height:
            23px;
    }


    .footer-grid {
        padding:
            40px 0 28px;

        display:
            block;
    }


    .footer-identity {
        margin-bottom:
            28px;
    }


    .footer-logo img {
        width:
            158px;
    }


    .footer-identity > p {
        max-width:
            520px;

        margin-top:
            18px;
    }


    .footer-group {
        border-top:
            1px solid
            #2b3740;
    }


    .footer-group:last-child {
        border-bottom:
            1px solid
            #2b3740;
    }


    .footer-group > button {
        min-height:
            52px;

        pointer-events:
            auto;

        cursor:
            pointer;
    }


    .footer-group > button svg {
        display:
            block;

        width:
            15px;

        height:
            15px;

        fill:
            none;

        stroke:
            currentColor;

        stroke-width:
            2;

        transform:
            rotate(90deg);

        transition:
            transform .2s ease;
    }


    .footer-group
    > button[aria-expanded="true"]
    svg {

        transform:
            rotate(-90deg);
    }


    .footer-group > div {
        display:
            none;

        margin:
            0;

        padding:
            0 0 18px;

        gap:
            2px;
    }


    .footer-group.is-open > div {
        display:
            flex;
    }


    .footer-group a,
    .footer-link-pending {
        min-height:
            34px;

        display:
            flex;

        align-items:
            center;
    }


    .footer-base {
        min-height:
            0;

        padding:
            20px 0 24px;

        display:
            flex;

        flex-direction:
            column;

        align-items:
            flex-start;

        gap:
            16px;
    }


    .footer-base-left,
    .footer-base-socials,
    .footer-base-payments {
        width:
            100%;
    }


    .footer-base-socials {
        justify-content:
            flex-start;
    }


    .footer-base-payments {
        justify-content:
            flex-start;
    }


    .footer-payments-placeholder {
        min-width:
            0;

        width:
            100%;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 430px) {

    .service-item strong {
        font-size:
            11px;
    }


    .service-item small {
        font-size:
            8.5px;
    }


    .footer-identity > p {
        font-size:
            11px;
    }

}


/* FOOTER PAYMENT METHODS v1.0.1 */

.footer-base-payments {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 240px;
}


.footer-payments-image {
    display: block;

    width: 240px;
    max-width: 100%;
    height: auto;
    max-height: 42px;

    object-fit: contain;
    object-position: center right;

    border: 0;
    background: transparent;

    user-select: none;
}


@media (max-width: 720px) {

    .footer-base-payments {
        justify-content: flex-start;
        min-width: 0;
    }


    .footer-payments-image {
        width: 210px;
        object-position: center left;
    }

}



/* ==========================================================
   CONTACT IQ SUBSCRIPTION — v0.3.3-alpha1
   ========================================================== */

.footer-subscription {
    display: block;
    width: 100%;
    max-width: 345px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.footer-subscription__row {
    display: flex;
    width: 100%;
    gap: 7px;
}

.footer-subscription__row input {
    min-width: 0;
    flex: 1;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #34414a;
    border-radius: 6px;
    outline: none;
    background: rgba(255, 255, 255, .025);
    color: #dbe1e5;
    font: inherit;
    font-size: 10.5px;
}

.footer-subscription__row input::placeholder {
    color: #78858e;
}

.footer-subscription__row input:focus {
    border-color: #66747e;
    background: rgba(255, 255, 255, .04);
}

.footer-subscription__row button {
    height: 32px;
    padding: 0 11px;
    border: 1px solid #485660;
    border-radius: 6px;
    background: rgba(255, 255, 255, .035);
    color: #d7dde1;
    cursor: pointer;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.footer-subscription__row button:hover {
    border-color: #e4263f;
    background: #e4263f;
    color: #fff;
}

.footer-subscription__row button:disabled {
    cursor: wait;
    opacity: .62;
}

.footer-subscription__consent {
    margin: 7px 0 0;
    color: #8d99a3;
    font-size: 7.6px;
    line-height: 1.3;
}

.footer-subscription__consent a {
    color: #bcc6cd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (min-width: 768px) {
    .footer-subscription__consent {
        white-space: nowrap;
    }
}

.footer-subscription__message {
    margin: 0 0 8px;
    color: #98a4ac;
    font-size: 9.5px;
    line-height: 1.5;
}

.footer-subscription__verify[hidden],
.footer-subscription__success[hidden] {
    display: none !important;
}

.footer-subscription__resend {
    margin: 7px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8e9aa3;
    cursor: pointer;
    font: inherit;
    font-size: 9px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-subscription__resend:hover {
    color: #c8d0d5;
}

.footer-subscription__success {
    color: #8ec8a9;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.5;
}

.footer-subscription__honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 767px) {

    .footer-subscription {
        max-width: 420px;
    }

    .footer-subscription__row input {
        font-size: 16px;
    }
}



/* ==========================================================
   FOOTER PAYMENT + DELIVERY STRIPS v2.0.0
   ========================================================== */


.footer-base > .footer-base-payments {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    min-width: 0;

    margin-left: auto;
}


.footer-partner-image {
    display: block;

    width: 240px;
    max-width: 100%;
    height: auto;

    object-fit: contain;
    object-position: center;

    border: 0;
    background: transparent;

    user-select: none;
}


@media (max-width: 1100px) {

    .footer-base {
        flex-wrap: wrap;

        row-gap: 14px;

        padding-top: 14px;
        padding-bottom: 14px;
    }


    .footer-base > .footer-base-payments {
        flex:
            1 0 100%;

        justify-content: flex-end;

        margin-left: 0;
    }

}


@media (max-width: 720px) {

    .footer-base > .footer-base-payments {
        align-items: flex-start;
        justify-content: flex-start;

        width: 100%;

        gap: 8px;
    }


    .footer-partner-image {
        width: min(
            210px,
            calc(50% - 4px)
        );
    }

}


@media (max-width: 480px) {

    .footer-base > .footer-base-payments {
        flex-direction: column;
    }


    .footer-partner-image {
        width: 240px;
        max-width: 100%;
    }

}



/* ==========================================================
   FOOTER STRIP LABELS + SOCIAL TUNE v2.2.0
   ========================================================== */


/* Keep social icons closer to the version badge */
.footer-base-social,
.footer-base-socials {
    margin-left: 22px !important;
    margin-right: 12px;
}


/* Keep partner area on the right side */
.footer-base > .footer-base-payments {
    display: flex;

    align-items: flex-end;
    justify-content: flex-end;

    gap: 14px;

    margin-left: auto;
}


/* Small title above each strip */
.footer-partner-group {
    display: flex;

    flex-direction: column;
    align-items: flex-start;

    gap: 6px;
}


.footer-partner-label {
    color: rgba(255, 255, 255, .68);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}


/* Slightly cleaner image alignment */
.footer-partner-image {
    display: block;
}


/* Tablet / small desktop */
@media (max-width: 1100px) {

    .footer-base-social,
    .footer-base-socials {
        margin-left: 0 !important;
        margin-right: 0;
    }


    .footer-base > .footer-base-payments {
        align-items: flex-start;
        justify-content: flex-end;

        width: 100%;

        margin-left: 0;
    }

}


/* Mobile */
@media (max-width: 720px) {

    .footer-partner-group {
        width: auto;
    }


    .footer-partner-label {
        font-size: 8px;
    }

}


@media (max-width: 480px) {

    .footer-base-social,
    .footer-base-socials {
        margin-left: 0 !important;
        margin-right: 0;
    }


    .footer-partner-group {
        width: 100%;
    }

}



/* ==========================================================
   FOOTER INLINE PARTNER LABELS v2.3.0
   ========================================================== */


.footer-partner-group {
    flex-direction: row;
    align-items: center;

    gap: 7px;
}


.footer-partner-label {
    flex: 0 0 auto;

    margin: 0;

    color: rgba(255, 255, 255, .42);

    font-size: 8px;
    font-weight: 600;

    letter-spacing: .045em;
    line-height: 1;

    text-transform: none;

    white-space: nowrap;
}


/*
Keep both information groups visually compact.
*/

.footer-base > .footer-base-payments {
    align-items: center;

    gap: 13px;
}


/*
Mobile may wrap naturally but labels remain inline.
*/

@media (max-width: 720px) {

    .footer-partner-group {
        align-items: center;
    }


    .footer-partner-label {
        font-size: 8px;
    }

}


@media (max-width: 480px) {

    .footer-partner-group {
        width: 100%;
    }

}
