.site-main.checkout-page {
    padding-block: 32px 64px;
    color: #424242;
    font-size: 14px;
    line-height: 20px;
}

.checkout-page *,
.checkout-page *::before,
.checkout-page *::after {
    box-sizing: border-box;
}

.checkout-page__container {
    width: min(1576px, calc(100% - 48px));
    margin-inline: auto;
}

.checkout-page .sv-breadcrumbs {
    margin-bottom: 32px;
}

.checkout-page__layout {
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.checkout-page__layout > *,
.checkout-page__content,
.checkout-filled,
.checkout-values > div {
    min-width: 0;
}

.checkout-page h1 {
    margin: 0;
    color: #000;
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
}

.checkout-order-number,
.checkout-card h2,
.checkout-dialog h2,
.checkout-empty h2 {
    margin: 0;
    color: #000;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

.checkout-filled > * + *,
.checkout-result > * + * {
    margin-top: 16px;
}

.checkout-card {
    padding: 21px;
    border: 3px solid #f5f5f5;
    border-radius: 16px;
    background: #fff;
}

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

.checkout-values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
}

.checkout-values dt {
    margin-bottom: 8px;
    color: #9d9d9d;
}

.checkout-values dd {
    margin: 0;
    color: #000;
    overflow-wrap: anywhere;
}

.checkout-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 36px;
    max-width: 100%;
    padding: 7px 15px;
    border: 1px solid transparent;
    border-radius: 24px;
    color: #fff;
    background: #0093ee;
    font: inherit;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms, background-color 180ms, border-color 180ms;
}

.checkout-button--light {
    color: #0093ee;
    background: #e8f6ff;
    border-color: rgb(238 106 0 / 20%);
}

.checkout-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    color: #0093ee;
    background: transparent;
    cursor: pointer;
}

.checkout-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--checkout-icon) center / contain no-repeat;
    mask: var(--checkout-icon) center / contain no-repeat;
}

.checkout-icon--edit {
    --checkout-icon: url("/images/icons/feather/edit-2-de1ba661cc8a4ca3232f49318f998ef0.svg");
}

.checkout-icon--remove {
    width: 20px;
    height: 20px;
    --checkout-icon: url("/images/icons/feather/x-circle-ad5c339b5aeb648fdca31b8095dfbc92.svg");
}

.checkout-icon--close {
    width: 24px;
    height: 24px;
    --checkout-icon: url("/images/icons/feather/x-7f906449fd078f0746ee2a2798ca836b.svg");
}

.checkout-icon--search {
    width: 20px;
    height: 20px;
    --checkout-icon: url("/images/icons/feather/search-a4ff520f39ffb0a8ecc00a58c81c72c5.svg");
}

.checkout-table {
    width: 100%;
    border-collapse: collapse;
}

.checkout-table tr {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 110px 84px 110px 24px;
    align-items: start;
    gap: 16px;
}

.checkout-table th,
.checkout-table td {
    min-width: 0;
    padding: 14px 0;
    border: 0;
    text-align: left;
    vertical-align: top;
    font-weight: 400;
}

.checkout-table thead {
    color: #000;
    background: #f5f5f5;
}

.checkout-table .checkout-photo {
    text-align: center;
}

.checkout-photo img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.checkout-name a {
    color: #424242;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.checkout-name small {
    display: none;
    margin-top: 8px;
    color: #9d9d9d;
}

.checkout-mobile-price {
    display: none;
}

.checkout-installation-row {
    border-top: 1px solid #e8f6ff;
}

.checkout-installation-row .checkout-photo {
    display: flex;
    justify-content: center;
    color: #0093ee;
}

.checkout-table .checkout-installation-price {
    grid-column: 3 / 6;
    color: #757575;
}

.checkout-offer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    color: #0093ee;
    background: #e8f6ff;
}

.checkout-offer > svg {
    flex: 0 0 32px;
}

.checkout-offer p {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 16px;
    line-height: 24px;
}

.checkout-offer > .checkout-button {
    background: transparent;
}

.checkout-choices {
    display: grid;
    gap: 20px;
}

.checkout-choice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.checkout-choice input {
    appearance: none;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #c2c2c2;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.checkout-choice input:checked {
    border-color: #0093ee;
    background: radial-gradient(circle, #0093ee 0 4px, #fff 5px);
}

.checkout-delivery-summary {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid #e8f6ff;
    overflow-wrap: anywhere;
}

.checkout-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    padding: 16px;
    border-radius: 16px;
    background: #e8f9f5;
}

.checkout-summary strong {
    display: block;
    color: #000;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    white-space: nowrap;
}

.checkout-summary small {
    display: block;
    color: #666;
    font-size: 12px;
    line-height: 18px;
}

.checkout-empty {
    display: grid;
    justify-items: start;
    gap: 20px;
}

.checkout-empty p {
    margin: 0;
}

.checkout-notices {
    padding: 16px 16px 16px 32px;
    border-radius: 12px;
    background: #e8f6ff;
}

.checkout-error {
    margin: 16px 0;
    color: #c93636;
    overflow-wrap: anywhere;
}

.checkout-dialog {
    position: fixed;
    inset: 0;
    width: 480px;
    height: auto;
    max-width: calc(100% - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px;
    overflow: hidden;
    border: 3px solid #f5f5f5;
    border-radius: 16px;
    color: #424242;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
}

.checkout-dialog::backdrop {
    background: rgb(0 0 0 / 50%);
}

.checkout-dialog > form {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 86px);
    margin: 0;
}

.checkout-dialog .checkout-card__header {
    flex: 0 0 auto;
    align-items: flex-start;
    margin-bottom: 24px;
}

.checkout-dialog .checkout-card__header h2 {
    min-width: 0;
}

.checkout-dialog__body {
    flex: 0 1 auto;
    min-height: 0;
    padding: 3px 5px 6px 3px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #0093ee #e8f6ff;
}

.checkout-dialog fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.checkout-dialog fieldset > * + * {
    margin-top: 20px;
}

.checkout-dialog .checkout-choices {
    margin-bottom: 24px;
}

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

.checkout-field > span {
    color: #9d9d9d;
}

.checkout-dialog input:not([type=radio]) {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #dedede;
    border-radius: 20px;
    outline: none;
    color: #424242;
    background: #fff;
    font: inherit;
    text-overflow: ellipsis;
}

.checkout-dialog input:not([type=radio]):focus {
    border-color: #0093ee;
    box-shadow: 0 0 0 3px #e8f6ff;
}

.checkout-dialog input:disabled {
    color: #9d9d9d;
    background: #f5f5f5;
    cursor: not-allowed;
}

.checkout-dialog input[aria-invalid=true] {
    border-color: #c93636;
}

.checkout-address-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.checkout-dialog__actions {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 4px;
}

.checkout-picker {
    min-width: 0;
}

.checkout-picker > input {
    margin-top: 6px;
}

.checkout-page .checkout-options {
    display: block;
    width: 100%;
    max-height: 184px;
    margin: 8px 0 0;
    padding: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #e8f6ff;
    border-radius: 12px;
    background: #fff;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #0093ee #e8f6ff;
}

.checkout-page .checkout-options li {
    display: block;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    color: #424242;
    background: transparent;
    text-align: left;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.checkout-options li > span {
    display: block;
    font-weight: 500;
}

.checkout-options li > small {
    display: block;
    margin-top: 3px;
    color: #8b8b8b;
    font-size: 12px;
    line-height: 18px;
}

.checkout-page .checkout-options li:hover,
.checkout-page .checkout-options li[aria-selected=true] {
    color: #ff6b00;
    background: #e8f6ff;
}

.checkout-picker__more {
    width: 100%;
    margin-top: 8px;
}

.checkout-picker-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px !important;
    padding: 14px;
    border-radius: 12px;
    color: #5d6a73;
    background: #e8f6ff;
    font-size: 13px;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.checkout-picker-status > [data-np-status-text] {
    flex: 1;
    min-width: 0;
}

.checkout-picker-status .catalog-async__spinner,
.checkout-picker-status .checkout-icon {
    display: none;
}

.checkout-picker-status[data-kind=loading] {
    align-items: center;
}

.checkout-picker-status[data-kind=loading] .catalog-async__spinner {
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.checkout-picker-status[data-kind=empty] .checkout-icon {
    display: inline-block;
    margin-top: 1px;
    color: #0093ee;
}

.checkout-picker-status[data-kind=error] {
    color: #b83e3e;
    background: #fff2ee;
}

.checkout-busy {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgb(255 255 255 / 75%);
}

.checkout-dialog-status {
    flex: 0 0 auto;
    margin: 16px 0 0;
    padding: 12px;
    border-radius: 12px;
    color: #0093ee;
    background: #e8f6ff;
}

.checkout-dialog-status .catalog-async__spinner {
    width: 20px;
    height: 20px;
}

.checkout-success {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 280px;
    margin: 0;
    padding: 40px 24px;
    border: 3px solid #f5f5f5;
    border-radius: 24px;
    color: #424242;
    background: linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    text-align: center;
    overflow-wrap: anywhere;
}

.checkout-success__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.checkout-success__icon img {
    display: block;
    flex: 0 0 24px;
    transform: scale(2.666667);
}

.checkout-success h2 {
    margin-bottom: 20px;
}

.checkout-success__description {
    max-width: 568px;
    margin: 0 auto 24px;
    font-size: 14px;
    line-height: 20px;
}

.checkout-receipt {
    width: 100%;
}

.checkout-receipt > summary {
    width: fit-content;
    margin-inline: auto;
    list-style: none;
}

.checkout-receipt > summary::-webkit-details-marker {
    display: none;
}

.checkout-receipt__body {
    max-width: 960px;
    margin: 24px auto 0;
    padding-top: 24px;
    border-top: 1px solid #e8f6ff;
    text-align: left;
}

.checkout-receipt__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

.checkout-receipt__card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e8f6ff;
    border-radius: 16px;
    background: #fff;
}

.checkout-receipt__card h3 {
    margin: 0 0 16px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.checkout-receipt__card h3.checkout-receipt__subheading {
    margin-top: 24px;
}

.checkout-values--receipt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.checkout-values--receipt dt {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 18px;
}

.checkout-values--receipt dd {
    font-size: 14px;
    line-height: 20px;
}

.checkout-receipt__card p {
    margin: 6px 0;
    overflow-wrap: anywhere;
}

.checkout-receipt__products {
    margin-top: 16px;
}

.checkout-receipt__items {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.checkout-receipt__items li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    padding: 16px 0;
}

.checkout-receipt__items li + li {
    border-top: 1px solid #e8f6ff;
}

.checkout-receipt__items img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.checkout-receipt__items strong,
.checkout-receipt__items small {
    display: block;
    overflow-wrap: anywhere;
}

.checkout-receipt__items strong {
    font-weight: 500;
}

.checkout-receipt__items small {
    margin-top: 6px;
    color: #8b8b8b;
    font-size: 12px;
    line-height: 18px;
}

.checkout-receipt__items li > span {
    text-align: right;
}

.checkout-receipt__service-icon {
    display: flex;
    justify-content: center;
    color: #0093ee;
}

.checkout-receipt__installation > span {
    max-width: 160px;
    color: #757575;
    font-size: 13px;
    line-height: 20px;
}

.checkout-button:disabled,
.checkout-icon-button:disabled {
    opacity: .55;
    cursor: wait;
}

.checkout-page [hidden],
.checkout-dialog:not([open]) {
    display: none !important;
}

.checkout-button:focus-visible,
.checkout-icon-button:focus-visible,
.checkout-choice input:focus-visible,
.checkout-name a:focus-visible {
    outline: 2px solid #0093ee;
    outline-offset: 3px;
}

@media (hover: hover) {
    .checkout-button:not(:disabled):hover {
        border-color: #ff6b00;
        color: #ff6b00;
        background: #e8f6ff;
    }

    .checkout-icon-button:not(:disabled):hover,
    .checkout-name a:hover {
        color: #ff6b00;
    }
}

@media (max-width: 1199px) {
    .checkout-table tr {
        grid-template-columns: 64px minmax(0, 1fr) 90px 60px 90px 24px;
        gap: 8px;
    }
}

@media (max-width: 1023px) {
    .checkout-page__layout {
        grid-template-columns: minmax(0, 1fr);
    }

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

@media (max-width: 767px) {
    .site-main.checkout-page {
        padding-block: 24px 40px;
    }

    .checkout-page h1 {
        font-size: 24px;
        line-height: 32px;
    }

    .checkout-page .sv-breadcrumbs {
        margin-bottom: 24px;
    }

    .checkout-card {
        padding: 16px;
    }

    .checkout-card__header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 24px;
    }

    .checkout-card h2,
    .checkout-order-number {
        font-size: 18px;
        line-height: 26px;
    }

    .checkout-values {
        gap: 16px;
    }

    .checkout-values dt,
    .checkout-values dd {
        font-size: 12px;
        line-height: 18px;
    }

    .checkout-table thead,
    .checkout-table tbody {
        display: block;
    }

    .checkout-table tr {
        grid-template-columns: 20px 64px minmax(0, 1fr) 76px;
        gap: 8px;
    }

    .checkout-table th,
    .checkout-table td {
        grid-row: 1;
        padding-block: 12px;
        font-size: 12px;
        line-height: 18px;
    }

    .checkout-table .checkout-remove { grid-column: 1; }
    .checkout-table .checkout-photo { grid-column: 2; }
    .checkout-table .checkout-name { grid-column: 3; }
    .checkout-table .checkout-price { grid-column: 4; }

    .checkout-table .checkout-quantity,
    .checkout-table .checkout-sum,
    .checkout-desktop-price {
        display: none;
    }

    .checkout-mobile-price,
    .checkout-name small:not([hidden]) {
        display: block;
    }

    .checkout-installation-row .checkout-name {
        grid-column: 3 / 5;
    }

    .checkout-table .checkout-installation-price {
        grid-column: 3 / 5;
        grid-row: 2;
        padding-top: 0;
    }

    .checkout-offer {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }

    .checkout-offer p {
        flex-basis: calc(100% - 48px);
        font-size: 14px;
        line-height: 20px;
    }

    .checkout-offer > .checkout-button {
        margin-left: auto;
    }

    .checkout-summary {
        width: 100%;
        flex-wrap: wrap;
    }

    .checkout-summary .checkout-button {
        flex: 1 1 160px;
    }

    .checkout-dialog {
        padding: 20px;
    }

    .checkout-dialog > form {
        max-height: calc(100dvh - 78px);
    }

    .checkout-dialog input:not([type=radio]) {
        font-size: 16px;
        line-height: 22px;
    }

    .checkout-success__icon {
        margin-bottom: 20px;
    }

    .checkout-receipt__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-receipt__card {
        padding: 16px;
    }

    .checkout-receipt__items li {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
    }

    .checkout-receipt__items img {
        width: 48px;
        height: 48px;
    }

    .checkout-receipt__items li > span {
        grid-column: 2;
        text-align: left;
    }

    .checkout-receipt__installation > span {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .checkout-page *,
    .checkout-page *::before,
    .checkout-page *::after {
        transition: none !important;
    }
}