body.checkout-secure-page {
    background: #f5f7f8;
    color: #202428;
}

body.checkout-secure-page #grid {
    min-height: 100vh;
}

body.checkout-secure-page #content {
    box-sizing: border-box;
    padding-top: 28px;
}

#header.checkoutSecureHeader {
    height: auto;
    min-height: 78px;
    background: #fff;
    border-bottom: 1px solid #dfe4e7;
    box-shadow: 0 2px 8px rgba(32, 36, 40, 0.06);
}

.checkoutSecureHeader__inner {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 78px;
    padding: 12px 20px;
}

#header #logo_link.checkoutSecureHeader__logo {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    width: auto;
    height: auto;
}

body.checkout-secure-page #header #logo_link.checkoutSecureHeader__logo img {
    display: block;
    width: auto;
    max-width: 160px;
    height: auto;
    max-height: 52px;
}

.checkoutSecureHeader__title {
    min-width: 0;
    text-align: center;
}

.checkoutSecureHeader__title strong,
.checkoutSecureHeader__title span {
    display: block;
}

.checkoutSecureHeader__title strong {
    font-size: 18px;
    line-height: 24px;
}

.checkoutSecureHeader__title span {
    margin-top: 2px;
    color: #55705f;
    font-size: 13px;
    line-height: 18px;
}

.checkoutSecureHeader__actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 18px;
}

.checkoutSecureHeader__help {
    color: #273129;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.checkoutSecureHeader__helpShort {
    display: none;
}

.checkoutSecureHeader__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #cfd7d2;
    border-radius: 6px;
    background: #fff;
}

.checkoutSecureHeader__cartIcon {
    width: 24px;
    height: 24px;
    background: url('/images/icons/shopping-cart.svg') no-repeat center;
    background-size: contain;
}

.checkoutSecureHeader__cartBadge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 10px;
    background: #d94028;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.checkoutSecureFooter {
    margin-top: 36px;
    border-top: 1px solid #dfe4e7;
    background: #fff;
}

.checkoutSecureFooter__inner {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 24px;
    max-width: 1180px;
    min-height: 70px;
    margin: 0 auto;
    padding: 16px 20px;
    color: #5a6267;
    font-size: 13px;
}

.checkoutSecureFooter__inner a {
    color: #273129;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cartStepsMobile {
    display: none;
}

@media all and (max-width: 700px) {
    body.checkout-secure-page #content {
        padding-top: 18px;
    }

    .checkoutSecureHeader__inner {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        min-height: 66px;
        padding: 9px 14px;
    }

    body.checkout-secure-page #header #logo_link.checkoutSecureHeader__logo img {
        max-width: 104px;
        max-height: 42px;
    }

    .checkoutSecureHeader__title {
        text-align: left;
    }

    .checkoutSecureHeader__title strong {
        font-size: 15px;
        line-height: 20px;
    }

    .checkoutSecureHeader__title span {
        font-size: 12px;
        line-height: 16px;
    }

    .checkoutSecureHeader__helpFull {
        display: none;
    }

    .checkoutSecureHeader__helpShort {
        display: inline;
    }

    .checkoutSecureHeader__actions {
        gap: 9px;
    }

    .checkoutSecureHeader__cart {
        width: 40px;
        height: 40px;
    }

    .cartStepsMobile {
        display: block;
        box-sizing: border-box;
        margin: 0 0 18px;
        padding: 14px 16px;
        border: 1px solid #d8dfdb;
        border-radius: 6px;
        background: #fff;
    }

    .cartStepsMobile__label {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
    }

    .cartStepsMobile__label strong {
        flex: 0 0 auto;
        color: #315f3c;
        font-size: 14px;
    }

    .cartStepsMobile__label span {
        min-width: 0;
        color: #465049;
        font-size: 12px;
        line-height: 17px;
        text-align: right;
    }

    .cartStepsMobile__bar {
        overflow: hidden;
        height: 6px;
        border-radius: 3px;
        background: #dfe5e1;
    }

    .cartStepsMobile__bar span {
        display: block;
        height: 100%;
        border-radius: 3px;
        background: #5d8f43;
    }

    body .cartStepsMobile + div.cartSteps {
        display: none;
    }

    .checkoutSecureFooter__inner {
        gap: 8px 16px;
        min-height: 0;
        padding: 18px 14px;
    }
}

@media all and (max-width: 420px) {
    .checkoutSecureHeader__inner {
        grid-template-columns: 76px minmax(0, 1fr) auto;
        gap: 8px;
    }

    body.checkout-secure-page #header #logo_link.checkoutSecureHeader__logo img {
        max-width: 76px;
    }

    .checkoutSecureHeader__title strong {
        font-size: 14px;
    }

    .checkoutSecureHeader__title span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .cartStepsMobile__label {
        display: block;
    }

    .cartStepsMobile__label span {
        display: block;
        margin-top: 4px;
        text-align: left;
    }
}
