.checkout-page {
    color: var(--black);
}

.checkout-page .checkout-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    padding: 18px 24px;
    background: var(--gray);
}

.checkout-page .checkout-back,
.checkout-page .checkout-secure {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.checkout-page .checkout-back {
    color: var(--black);
    font-family: var(--font-headers), serif;
    font-weight: 700;
}

.checkout-page .checkout-back:hover {
    color: var(--main);
}

.checkout-page .checkout-secure {
    color: #687169;
    font-size: 13px;
}

.checkout-page .checkout-secure i {
    color: var(--main);
}

.checkout-page .checkout-layout {
    align-items: flex-start;
    margin-bottom: 75px;
}

.checkout-page .checkout-details {
    padding-right: 42px;
}

.checkout-page .checkout-section {
    padding: 0 0 34px;
    margin-bottom: 34px;
    border-bottom: 1px solid #dfe5da;
}

.checkout-page .checkout-section-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 23px;
}

.checkout-page .checkout-section-heading > span {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--white);
    background: var(--main);
    font-weight: 700;
}

.checkout-page .checkout-section-heading h2,
.checkout-page .checkout-summary-heading h2 {
    margin: 0;
    color: var(--black);
    font-size: 25px;
    line-height: 1.25;
}

.checkout-page .checkout-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.checkout-page .checkout-field-wide {
    grid-column: 1 / -1;
}

.checkout-page .checkout-field label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #343b36;
    font-size: 14px;
    font-weight: 700;
}

.checkout-page .checkout-field label strong {
    color: #c63f32;
}

.checkout-page .checkout-field label small {
    color: #899089;
    font-size: 12px;
    font-weight: 400;
}

.checkout-page .checkout-field input,
.checkout-page .checkout-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #ccd5ca;
    border-radius: 0;
    color: var(--black);
    background: var(--white);
    box-shadow: none;
    font-size: 15px;
}

.checkout-page .checkout-field textarea {
    min-height: 80px;
    resize: vertical;
}

.checkout-page .checkout-field input:focus,
.checkout-page .checkout-field textarea:focus {
    border-color: var(--main);
    outline: 2px solid rgba(136, 180, 78, .16);
}

.checkout-page .checkout-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.checkout-page .checkout-option {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #d7dfd5;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.checkout-page .checkout-option:has(input:checked) {
    border-color: var(--main);
    background: #f7faf3;
}

.checkout-page .checkout-option input {
    position: absolute;
    opacity: 0;
}

.checkout-page .checkout-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #667064;
    background: var(--gray);
}

.checkout-page .checkout-option:has(input:checked) .checkout-option-icon,
.checkout-page .checkout-option-check {
    color: var(--main);
}

.checkout-page .checkout-option-check {
    opacity: 0;
}

.checkout-page .checkout-option:has(input:checked) .checkout-option-check {
    opacity: 1;
}

.checkout-page .checkout-summary {
    position: sticky;
    top: 120px;
    padding: 25px;
    border: 1px solid #dfe5da;
    background: var(--white);
}

.checkout-page .checkout-summary-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dfe5da;
}

.checkout-page .checkout-summary-heading a {
    color: var(--main);
    font-size: 13px;
    font-weight: 700;
}

.checkout-page .checkout-items {
    max-height: 440px;
    overflow-y: auto;
}

.checkout-page .checkout-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #edf0eb;
}

.checkout-page .checkout-item > img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    background: var(--gray);
}

.checkout-page .checkout-item-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
}

.checkout-page .checkout-item-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.checkout-page .checkout-item-heading h3 {
    margin: 0 0 4px;
    color: var(--black);
    font-size: 16px;
    line-height: 1.35;
}

.checkout-page .checkout-item-heading p {
    margin: 0;
    color: #818981;
    font-size: 11px;
}

.checkout-page .checkout-remove,
.checkout-page .checkout-quantity button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: #788078;
    background: transparent;
}

.checkout-page .checkout-remove {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
}

.checkout-page .checkout-remove:hover {
    color: #bd4539;
}

.checkout-page .checkout-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-page .checkout-item-footer > strong {
    color: var(--main);
    font-size: 14px;
}

.checkout-page .checkout-quantity {
    display: grid;
    grid-template-columns: 28px 30px 28px;
    align-items: center;
    height: 30px;
    border: 1px solid #d7dfd5;
}

.checkout-page .checkout-quantity button {
    width: 28px;
    height: 28px;
    font-size: 10px;
}

.checkout-page .checkout-quantity span {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.checkout-page .checkout-totals {
    padding: 20px 0;
}

.checkout-page .checkout-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.checkout-page .checkout-totals .checkout-total {
    padding-top: 14px;
    margin: 0;
    border-top: 1px solid #dfe5da;
    font-family: var(--font-headers), serif;
    font-size: 20px;
}

.checkout-page .checkout-total strong {
    color: var(--main);
    font-size: 22px;
}

.checkout-page .checkout-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 12px 20px;
    border: 1px solid var(--main);
    color: var(--white);
    background: var(--main);
    font-family: var(--font-headers), serif;
    font-size: 16px;
    font-weight: 700;
}

.checkout-page .checkout-submit:hover:not(:disabled) {
    border-color: var(--black);
    background: var(--black);
}

.checkout-page .checkout-submit:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.checkout-page .checkout-assurance {
    margin: 14px 0 0;
    color: #737b74;
    text-align: center;
    font-size: 12px;
}

.checkout-page .checkout-assurance i {
    margin-right: 5px;
    color: var(--main);
}

.checkout-page .checkout-empty,
.checkout-page .checkout-loading {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #7c857d;
    text-align: center;
}

.checkout-page .checkout-empty > i {
    color: #aeb7ae;
    font-size: 34px;
}

.checkout-page .checkout-empty a {
    color: var(--main);
    font-weight: 700;
}

.checkout-page .checkout-notice {
    margin-bottom: 24px;
    padding: 13px 16px;
    border-left: 3px solid #bd4539;
    background: #fff4f2;
    color: #8d3028;
}

.checkout-page .checkout-notice.is-success {
    border-left-color: var(--main);
    background: #f4f9ee;
    color: #4f7628;
}

.checkout-page .checkout-affiliate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: -35px 0 70px;
    padding: 18px;
    background: var(--gray);
}

.checkout-page .checkout-affiliate p {
    margin: 0;
}

.checkout-page .checkout-affiliate a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--main);
    font-weight: 700;
}

@media (max-width: 991px) {
    .checkout-page .checkout-details {
        padding-right: 15px;
    }

    .checkout-page .checkout-summary {
        position: static;
        margin-top: 12px;
    }
}

@media (max-width: 600px) {
    .checkout-page .checkout-toolbar {
        display: block;
        padding: 15px;
    }

    .checkout-page .checkout-secure {
        margin-top: 10px;
        line-height: 1.45;
    }

    .checkout-page .checkout-fields,
    .checkout-page .checkout-options {
        grid-template-columns: 1fr;
    }

    .checkout-page .checkout-field-wide {
        grid-column: auto;
    }

    .checkout-page .checkout-section-heading h2,
    .checkout-page .checkout-summary-heading h2 {
        font-size: 21px;
    }

    .checkout-page .checkout-summary {
        padding: 18px 15px;
    }

    .checkout-page .checkout-item {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 11px;
    }

    .checkout-page .checkout-item > img {
        width: 68px;
        height: 68px;
    }

    .checkout-page .checkout-item-footer {
        align-items: flex-end;
        flex-direction: column-reverse;
    }

    .checkout-page .checkout-affiliate {
        align-items: flex-start;
        flex-direction: column;
    }
}
