.checkout-index .main-content,
.checkout-process-buy-now .main-content {
    background: #f5f6f8;
}

.checkout-page-shell {
    min-height: 70vh;
    padding: 22px 0 74px;
    color: #262c34;
}

.checkout-page-shell .container {
    max-width: 1420px;
}

.checkout-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #8b929b;
    font-size: 14px;
}

.checkout-breadcrumb a {
    color: #69717b;
    text-decoration: none;
}

.checkout-breadcrumb a:hover {
    color: #ce7400;
}

.checkout-breadcrumb i {
    font-size: 8px;
}

.checkout-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
    padding: 26px 30px;
    overflow: hidden;
    background: linear-gradient(112deg, #1f242b 0%, #2c323a 67%, #353c45 100%);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(25, 30, 37, .12);
}

.checkout-page-kicker,
.checkout-section-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #d57800;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.checkout-page-header .checkout-page-kicker {
    color: #ffb333;
}

.checkout-page-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 780;
    line-height: 1.15;
}

.checkout-page-header p {
    margin: 7px 0 0;
    color: #c6cbd1;
    font-size: 15px;
}

.checkout-progress {
    display: flex;
    align-items: flex-start;
    min-width: 365px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-progress li {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    color: #9fa6ae;
    font-size: 12px;
}

.checkout-progress li:not(:last-child)::after {
    position: absolute;
    top: 17px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: #4a515a;
    content: '';
}

.checkout-progress li.is-complete:not(:last-child)::after {
    background: #ffad27;
}

.checkout-progress li > span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: #aeb4bb;
    font-size: 12px;
    font-weight: 800;
    background: #414850;
    border: 2px solid #555c65;
    border-radius: 50%;
}

.checkout-progress li.is-complete,
.checkout-progress li.is-active {
    color: #fff;
}

.checkout-progress li.is-complete > span {
    color: #ffb333;
    background: #3e454d;
    border-color: #ffad27;
}

.checkout-progress li.is-active > span {
    color: #20242b;
    background: #ffad27;
    border-color: #ffad27;
    box-shadow: 0 0 0 5px rgba(255, 173, 39, .12);
}

.checkout-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(350px, .72fr);
    align-items: start;
    gap: 22px;
}

.checkout-form {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 17px;
}

.checkout-panel,
.checkout-summary-card {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(31, 37, 45, .055);
}

.checkout-panel {
    padding: 23px;
}

.checkout-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 21px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eceef1;
}

.checkout-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    color: #a65d00;
    font-size: 15px;
    background: #fff0d4;
    border-radius: 12px;
}

.checkout-panel-header > div {
    min-width: 0;
}

.checkout-panel-header h2,
.checkout-summary-header h2 {
    margin: 0;
    color: #252b33;
    font-size: 21px;
    font-weight: 760;
    line-height: 1.25;
}

.checkout-panel-header p {
    margin: 4px 0 0;
    color: #89909a;
    font-size: 13px;
}

.checkout-panel-header .checkout-section-eyebrow {
    margin-bottom: 2px;
    font-size: 11px;
}

.checkout-fields {
    display: grid;
    gap: 16px;
}

.checkout-fields-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.checkout-field label {
    display: block;
    margin-bottom: 7px;
    color: #4d5560;
    font-size: 13px;
    font-weight: 700;
}

.checkout-field label span {
    color: #ca4652;
}

.checkout-field .form-control,
.checkout-field .form-select {
    width: 100%;
    min-height: 47px;
    padding: 10px 13px;
    color: #303740;
    font-size: 14px;
    background-color: #f8f9fa;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
}

.checkout-field textarea.form-control {
    min-height: 92px;
    resize: vertical;
}

.checkout-field .form-control::placeholder {
    color: #a4aab2;
}

.checkout-field .form-control:focus,
.checkout-field .form-select:focus {
    background-color: #fff;
    border-color: #eea32a;
    box-shadow: 0 0 0 3px rgba(238, 163, 42, .13);
}

.checkout-input-wrap {
    position: relative;
}

.checkout-input-wrap > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    color: #9299a2;
    font-size: 13px;
    pointer-events: none;
    transform: translateY(-50%);
}

.checkout-input-wrap .form-control {
    padding-left: 40px;
}

.checkout-input-wrap.is-readonly .form-control {
    color: #737b85;
    background: #f0f2f4;
}

.checkout-gift-option {
    display: grid;
    grid-template-columns: 18px 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    margin: 20px 0 0;
    padding: 13px;
    cursor: pointer;
    background: #fafbfc;
    border: 1px solid #e5e8eb;
    border-radius: 12px;
}

.checkout-gift-option:has(input:checked) {
    background: #fff8eb;
    border-color: #eeb04a;
}

.checkout-gift-option input {
    margin: 0;
}

.checkout-gift-icon,
.checkout-shipping-icon,
.checkout-payment-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #a55d00;
    background: #fff0d3;
    border-radius: 10px;
}

.checkout-gift-option > span:nth-child(3),
.checkout-shipping-copy,
.checkout-payment-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.checkout-gift-option strong,
.checkout-shipping-copy strong,
.checkout-payment-copy strong {
    color: #333a43;
    font-size: 14px;
    font-weight: 740;
}

.checkout-gift-option small,
.checkout-shipping-copy small,
.checkout-payment-copy small {
    margin-top: 2px;
    color: #8d949d;
    font-size: 12px;
    line-height: 1.35;
}

.checkout-gift-option > b,
.checkout-shipping-option > b {
    color: #30363e;
    font-size: 14px;
    white-space: nowrap;
}

.checkout-choice-grid,
.checkout-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.checkout-shipping-option,
.checkout-payment-option {
    position: relative;
    display: grid;
    align-items: center;
    gap: 11px;
    min-width: 0;
    margin: 0;
    padding: 13px;
    cursor: pointer;
    background: #fafbfc;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.checkout-shipping-option {
    grid-template-columns: 18px 42px minmax(0, 1fr) auto 24px;
}

.checkout-payment-option {
    grid-template-columns: 18px 60px minmax(0, 1fr) 24px;
}

.checkout-shipping-option:hover,
.checkout-payment-option:hover {
    border-color: #efbd69;
}

.checkout-shipping-option:has(input:checked),
.checkout-payment-option:has(input:checked) {
    background: #fff8eb;
    border-color: #eaa635;
    box-shadow: 0 0 0 3px rgba(234, 166, 53, .09);
}

.checkout-shipping-option input,
.checkout-payment-option input {
    margin: 0;
}

.checkout-payment-logo {
    width: 60px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8eaed;
}

.checkout-payment-logo img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.checkout-choice-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: transparent;
    font-size: 9px;
    background: #e7e9ec;
    border-radius: 50%;
}

.checkout-shipping-option:has(input:checked) .checkout-choice-check,
.checkout-payment-option:has(input:checked) .checkout-choice-check {
    color: #fff;
    background: #1c8c5d;
}

.checkout-choice-empty {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 11px;
    min-height: 64px;
    padding: 14px;
    color: #7e8690;
    font-size: 13px;
    background: #f8f9fa;
    border: 1px dashed #d7dbe0;
    border-radius: 11px;
}

.checkout-choice-empty i {
    color: #d78112;
}

.checkout-summary {
    position: sticky;
    top: 24px;
    min-width: 0;
}

.checkout-summary-card {
    padding: 20px;
}

.checkout-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.checkout-summary-header h2 {
    font-size: 21px;
}

.checkout-summary-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    color: #626a74;
    font-size: 12px;
    font-weight: 750;
    background: #f0f2f4;
    border-radius: 99px;
    white-space: nowrap;
}

.checkout-items-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 43px;
    padding: 8px 0;
    color: #5c646e;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    background: transparent;
    border: 0;
    border-top: 1px solid #eaecf0;
}

.checkout-items-toggle i {
    font-size: 10px;
}

.checkout-order-items {
    max-height: 292px;
    padding: 3px 0 10px;
    overflow-y: auto;
    border-bottom: 1px solid #eaecf0;
    scrollbar-color: #cdd1d6 transparent;
    scrollbar-width: thin;
}

.checkout-order-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.checkout-order-item + .checkout-order-item {
    border-top: 1px solid #f0f1f3;
}

.checkout-order-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 4px;
    background: #f7f8f9;
    border: 1px solid #e8eaed;
    border-radius: 9px;
}

.checkout-order-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-order-image span {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    color: #20252c;
    font-size: 10px;
    font-weight: 800;
    background: #ffad27;
    border: 2px solid #fff;
    border-radius: 99px;
}

.checkout-order-item > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.checkout-order-item > div a {
    display: -webkit-box;
    overflow: hidden;
    color: #353b44;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.checkout-order-item > div small {
    margin-top: 4px;
    color: #969da5;
    font-size: 11px;
}

.checkout-order-item > strong {
    color: #30363e;
    font-size: 13px;
    white-space: nowrap;
}

.checkout-total-lines {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #eaecf0;
}

.checkout-total-lines > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.checkout-total-lines > div + div {
    margin-top: 10px;
}

.checkout-total-lines dt,
.checkout-total-lines dd {
    margin: 0;
    font-size: 13px;
}

.checkout-total-lines dt {
    color: #737b85;
    font-weight: 500;
}

.checkout-total-lines dd {
    color: #343a42;
    font-weight: 720;
}

.checkout-discount-line dd {
    color: #178456;
}

.checkout-grand-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 0;
}

.checkout-grand-total > span {
    display: flex;
    flex-direction: column;
}

.checkout-grand-total > span strong {
    color: #292f36;
    font-size: 15px;
}

.checkout-grand-total small {
    margin-top: 2px;
    color: #969da5;
    font-size: 11px;
}

.checkout-grand-total > strong {
    color: #20252c;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.checkout-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 50px;
    padding: 10px 16px;
    color: #20242b;
    font-size: 14px;
    font-weight: 800;
    background: #ffad27;
    border: 1px solid #ffad27;
    border-radius: 11px;
    box-shadow: 0 8px 18px rgba(224, 137, 0, .18);
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.checkout-submit:hover,
.checkout-submit:focus-visible {
    color: #fff;
    background: #252a31;
    border-color: #252a31;
    outline: none;
    transform: translateY(-1px);
}

.checkout-submit:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.checkout-terms {
    margin: 11px 0 0;
    color: #9299a2;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.checkout-terms a {
    color: #616974;
    font-weight: 700;
}

.checkout-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 11px;
    color: #7f8791;
    font-size: 11px;
}

.checkout-trust-row i {
    margin-right: 3px;
    color: #188b5b;
}

.checkout-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0 4px;
    color: #59616b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.checkout-back-link:hover {
    color: #c56d00;
}

.checkout-page-shell.is-checkout-busy .checkout-panel,
.checkout-page-shell.is-checkout-busy .checkout-summary-card,
.checkout-buy-now-grid.is-checkout-busy .checkout-panel,
.checkout-buy-now-grid.is-checkout-busy .checkout-summary-card {
    pointer-events: none;
}

.checkout-field-error {
    display: block;
    margin-top: 5px;
    color: #b83c48;
    font-size: 12px;
    line-height: 1.35;
}

.checkout-choice-error {
    margin-top: 9px;
}

.checkout-choice-grid.is-loading,
.checkout-payment-grid.is-loading {
    opacity: .58;
}

.checkout-buy-now-items {
    padding-top: 7px;
}

@media (max-width: 1199.98px) {
    .checkout-page-shell .container {
        max-width: 1080px;
    }

    .checkout-content-grid {
        grid-template-columns: minmax(0, 1.38fr) minmax(330px, .68fr);
    }

    .checkout-choice-grid,
    .checkout-payment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .checkout-page-header {
        padding: 22px;
    }

    .checkout-progress {
        min-width: 310px;
    }

    .checkout-content-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-choice-grid,
    .checkout-payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .checkout-page-shell {
        padding: 14px 0 94px;
    }

    .checkout-page-shell .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .checkout-breadcrumb {
        margin-bottom: 11px;
        font-size: 12px;
    }

    .checkout-page-header {
        align-items: flex-start;
        margin-bottom: 13px;
        padding: 18px;
        flex-direction: column;
        border-radius: 14px;
    }

    .checkout-page-header h1 {
        font-size: 27px;
    }

    .checkout-page-header p {
        font-size: 14px;
    }

    .checkout-progress {
        width: 100%;
        min-width: 0;
    }

    .checkout-progress li > span {
        width: 31px;
        height: 31px;
    }

    .checkout-progress li:not(:last-child)::after {
        top: 15px;
    }

    .checkout-form {
        gap: 13px;
    }

    .checkout-panel,
    .checkout-summary-card {
        padding: 15px;
        border-radius: 14px;
    }

    .checkout-panel-header {
        gap: 11px;
        margin-bottom: 17px;
        padding-bottom: 15px;
    }

    .checkout-step-icon {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
    }

    .checkout-panel-header h2 {
        font-size: 18px;
    }

    .checkout-panel-header p {
        font-size: 12px;
    }

    .checkout-fields-two,
    .checkout-choice-grid,
    .checkout-payment-grid {
        grid-template-columns: 1fr;
    }

    .checkout-fields {
        gap: 13px;
    }

    .checkout-field-full {
        grid-column: 1;
    }

    .checkout-gift-option {
        grid-template-columns: 18px 38px minmax(0, 1fr);
    }

    .checkout-gift-option > b {
        grid-column: 3;
        font-size: 13px;
    }

    .checkout-gift-icon {
        width: 38px;
        height: 38px;
    }

    .checkout-shipping-option {
        grid-template-columns: 18px 39px minmax(0, 1fr) auto;
    }

    .checkout-shipping-option .checkout-choice-check {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .checkout-payment-option {
        grid-template-columns: 18px 58px minmax(0, 1fr) 22px;
    }

    .checkout-order-items {
        max-height: none;
    }

    .checkout-summary-header h2 {
        font-size: 19px;
    }
}

@media (max-width: 389.98px) {
    .checkout-page-header {
        padding: 16px 14px;
    }

    .checkout-progress li b {
        font-size: 11px;
    }

    .checkout-panel,
    .checkout-summary-card {
        padding: 13px;
    }

    .checkout-shipping-option {
        grid-template-columns: 18px 36px minmax(0, 1fr);
    }

    .checkout-shipping-option > b {
        grid-column: 3;
    }

    .checkout-payment-option {
        grid-template-columns: 18px 52px minmax(0, 1fr);
    }

    .checkout-payment-option .checkout-choice-check {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .checkout-payment-logo {
        width: 52px;
    }

    .checkout-grand-total > strong {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .checkout-submit,
    .checkout-shipping-option,
    .checkout-payment-option {
        transition: none;
    }
}
