﻿.hc-basket-popup {
    position: fixed;
    inset: 0;
    z-index: 10050;
    visibility: hidden;
    pointer-events: none;
    color: #0e0e0e;
    font-family: "Oceanic Grotesk", "Montserrat", Arial, sans-serif;
}

.hc-basket-popup.is-active,
.hc-basket-popup.is-closing {
    visibility: visible;
}

.hc-basket-popup.is-active {
    pointer-events: auto;
}

.hc-basket-popup.is-closing {
    pointer-events: none;
}

.hc-basket-popup-lock,
.hc-basket-popup-lock body {
    overflow: hidden;
}

.hc-basket-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.43);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.hc-basket-popup.is-active .hc-basket-popup__overlay {
    opacity: 1;
}

.hc-basket-popup__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(808px, 100vw);
    height: 100vh;
    height: 100dvh;
    background: #fbfaf5;
    transform: translateX(100%);
    transition: transform 0.28s ease;
}

.hc-basket-popup.is-active .hc-basket-popup__panel {
    transform: translateX(0);
}

.hc-basket-popup__content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 84px 88px 34px 176px;
    box-sizing: border-box;
    overflow: hidden;
}

.hc-basket-popup__close {
    position: absolute;
    top: 31px;
    right: 40px;
    z-index: 5;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hc-basket-popup__close::before,
.hc-basket-popup__close::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 7px;
    width: 18px;
    height: 1px;
    background: #0e0e0e;
}

.hc-basket-popup__close::before {
    transform: rotate(45deg);
}

.hc-basket-popup__close::after {
    transform: rotate(-45deg);
}

.hc-basket-popup__header {
    margin-bottom: 34px;
}

.hc-basket-popup__title {
    margin: 0;
    color: #0e0e0e;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
}

.hc-basket-popup__items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 96px;
}

.hc-basket-popup__items::-webkit-scrollbar {
    width: 2px;
}

.hc-basket-popup__items::-webkit-scrollbar-track {
    background: #e3e3de;
}

.hc-basket-popup__items::-webkit-scrollbar-thumb {
    background: #686864;
}

.hc-basket-popup__state {
    padding: 26px 0;
    color: #3d3d3d;
    font-size: 14px;
    line-height: 1.4;
}

.hc-basket-popup__state_loading {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(37, 43, 21, 0.18);
    border-top-color: #252b15;
    border-radius: 50%;
    color: transparent;
    font-size: 0;
    line-height: 0;
    transform: translate(-50%, -50%);
    animation: hcBasketPopupSpin 0.72s linear infinite;
    pointer-events: none;
}

.hc-basket-popup__state[hidden],
.hc-basket-popup__footer[hidden] {
    display: none;
}

@keyframes hcBasketPopupSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hc-basket-popup-item {
    display: grid;
    grid-template-columns: 85px minmax(0, 1fr) 24px;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 7px 24px;
    align-items: start;
    min-height: 107px;
    padding: 0 0 34px;
    margin-bottom: 34px;
    border-bottom: 1px solid #d1d0cc;
}

.hc-basket-popup-item.is-added {
    animation: hcBasketPopupItemAdded 1.6s ease;
}

@keyframes hcBasketPopupItemAdded {
    0%,
    100% {
        background: transparent;
        box-shadow: none;
    }

    18%,
    58% {
        background: rgba(45, 106, 79, 0.08);
        box-shadow: 0 0 0 12px rgba(45, 106, 79, 0.08);
    }
}

.hc-basket-popup-item__media a,
.hc-basket-popup-item__media span {
    display: block;
}

.hc-basket-popup-item__media {
    grid-column: 1;
    grid-row: 1 / 3;
}

.hc-basket-popup-item__image {
    display: block;
    width: 85px;
    height: 107px;
    border-radius: 2px;
    object-fit: cover;
    background: #fffdf9;
}

.hc-basket-popup-item__image_empty {
    border: 1px solid #e3e3de;
    box-sizing: border-box;
}

.hc-basket-popup-item__body {
    grid-column: 2 / 4;
    grid-row: 1;
    min-width: 0;
}

.hc-basket-popup-item__body a {
    color: inherit;
    text-decoration: none;
}

.hc-basket-popup-item__body > a:first-child,
.hc-basket-popup-item__body > span:first-child {
    display: block;
    padding-right: 44px;
    box-sizing: border-box;
}

.hc-basket-popup-item__name {
    display: block;
    color: #0e0e0e;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.22;
}

.hc-basket-popup-item__meta {
    margin: 10px 0 18px;
    color: #0f0f0f;
    font-size: 14px;
    line-height: 1.25;
}

.hc-basket-popup-item__options {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0 0 20px;
    list-style: none;
    color: #0f0f0f;
    font-size: 12px;
    line-height: 1.25;
}

.hc-basket-popup-item__child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(64px, auto) 24px;
    gap: 10px 14px;
    align-items: center;
    min-height: 0;
}

.hc-basket-popup-item__child span {
    min-width: 0;
    line-height: 1.25;
}

.hc-basket-popup-item__child strong {
    justify-self: end;
    color: #0f0f0f;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.hc-basket-popup-item__delete,
.hc-basket-popup-item__option-delete {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hc-basket-popup-item__delete {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.hc-basket-popup-item__option-delete {
    width: 16px;
    height: 16px;
    align-self: center;
    justify-self: end;
}

.hc-basket-popup-item__delete::before,
.hc-basket-popup-item__delete::after,
.hc-basket-popup-item__option-delete::before,
.hc-basket-popup-item__option-delete::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1px;
    background: #686864;
}

.hc-basket-popup-item__option-delete::before,
.hc-basket-popup-item__option-delete::after {
    width: 12px;
}

.hc-basket-popup-item__delete::before,
.hc-basket-popup-item__option-delete::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.hc-basket-popup-item__delete::after,
.hc-basket-popup-item__option-delete::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.hc-basket-popup-item__quantity {
    display: inline-grid;
    grid-template-columns: 24px 36px 24px;
    align-items: center;
    flex: 0 0 auto;
    color: #0f0f0f;
    font-size: 14px;
    line-height: 1;
}

.hc-basket-popup-item__quantity button {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f0f0f;
    font: inherit;
    cursor: pointer;
}

.hc-basket-popup-item__quantity span {
    text-align: center;
}

.hc-basket-popup-item__bottom {
    grid-column: 2 / 4;
    grid-row: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
}

.hc-basket-popup-item__price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 92px;
    color: #0f0f0f;
    font-size: 16px;
    line-height: 1.25;
    white-space: nowrap;
}

.hc-basket-popup-item__old-price {
    order: 2;
    color: #5f0c04;
    font-size: 14px;
    text-decoration: line-through;
}

.hc-basket-popup-item__bonus {
    order: 1;
    color: #2d6a4f;
    font-size: 12px;
    line-height: 1.25;
}

.hc-basket-popup-item__price > span:not(.hc-basket-popup-item__old-price):not(.hc-basket-popup-item__bonus) {
    order: 3;
}

.hc-basket-popup-recommendations {
    padding: 0 0 34px;
    margin: 0 0 34px;
    border-bottom: 1px solid #d1d0cc;
}

.hc-basket-popup-recommendations__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.hc-basket-popup-recommendations__title {
    margin: 0;
    color: #2e2e22;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
}

.hc-basket-popup-recommendations__nav {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    flex: 0 0 auto;
}

.hc-basket-popup-recommendations__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2e2e22;
    font: inherit;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.hc-basket-popup-recommendations__arrow.is-disabled,
.hc-basket-popup-recommendations__arrow.is-locked {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.hc-basket-popup-recommendations__slider {
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.hc-basket-popup-recommendations__items {
    display: flex;
    align-items: stretch;
    box-sizing: content-box;
}

.hc-basket-popup-recommendations__slide {
    flex-shrink: 0;
    height: auto;
}

.hc-basket-popup-recommendations__card {
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
    color: #0f0f0f;
}

.hc-basket-popup-recommendations__link {
    display: grid;
    grid-template-rows: auto minmax(30px, auto) auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.hc-basket-popup-recommendations__media {
    display: block;
    width: 100%;
    aspect-ratio: 140 / 160;
    margin-bottom: 10px;
    border-radius: 2px;
    overflow: hidden;
    background: #f4f2ed;
}

.hc-basket-popup-recommendations__image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    object-fit: cover;
}

.hc-basket-popup-recommendations__name {
    display: -webkit-box;
    min-height: 30px;
    color: #0f0f0f;
    font-size: 11px;
    line-height: 1.25;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hc-basket-popup-recommendations__price {
    margin-top: 5px;
    color: #0f0f0f;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

.hc-basket-popup-recommendations__add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 22px;
    margin-top: 8px;
    padding: 0 10px;
    border: 0;
    box-sizing: border-box;
    background: #252b15;
    color: #fbf4dd;
    font: inherit;
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.hc-basket-popup__footer {
    flex: 0 0 auto;
    padding: 6px 96px 0 0;
    box-sizing: border-box;
}

.hc-basket-popup__coupon {
    width: 100%;
    padding: 0;
    border-bottom: 1px solid #191919;
    color: #0f0f0f;
}

.hc-basket-popup__coupon-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hc-basket-popup__coupon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 24px;
}

.hc-basket-popup__coupon-input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0E0E0E;
    font: normal normal normal 10px/15px "Oceanic Grotesk TRIAL", "Oceanic Grotesk", Inter, Arial, sans-serif;
    letter-spacing: 0.5px;
    outline: none;
    text-transform: uppercase;
}

.hc-basket-popup__coupon-input::placeholder {
    color: #0E0E0E;
    opacity: 1;
    text-transform: uppercase;
}

.hc-basket-popup__coupon-input:focus::placeholder {
    color: transparent;
    opacity: 0;
}

.hc-basket-popup__coupon-submit {
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f0f0f;
    font: inherit;
    font-size: 12px;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.hc-basket-popup__coupon-submit[hidden] {
    display: none;
}

.hc-basket-popup__coupon-list {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
}

.hc-basket-popup__coupon-item {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) 18px;
    gap: 8px;
    align-items: center;
    color: #686864;
    font-size: 12px;
    line-height: 1.25;
}

.hc-basket-popup__coupon-item_applied {
    color: #2d6a4f;
}

.hc-basket-popup__coupon-item_bad,
.hc-basket-popup__coupon-message.is-error {
    color: #8a3c2f;
}

.hc-basket-popup__coupon-code {
    color: #0f0f0f;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.hc-basket-popup__coupon-status {
    min-width: 0;
}

.hc-basket-popup__coupon-delete {
    position: relative;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hc-basket-popup__coupon-delete::before,
.hc-basket-popup__coupon-delete::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1px;
    background: currentColor;
}

.hc-basket-popup__coupon-delete::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.hc-basket-popup__coupon-delete::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.hc-basket-popup__coupon-message {
    margin: 8px 0 0;
    color: #686864;
    font-size: 12px;
    line-height: 1.25;
}

.hc-basket-popup__coupon-message.is-success {
    color: #2d6a4f;
}

.hc-basket-popup__coupon-message[hidden] {
    display: none;
}

.hc-basket-popup__totals {
    display: grid;
    gap: 18px;
    margin: 38px 0 28px;
}

.hc-basket-popup__total-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: baseline;
    color: #0f0f0f;
    font-size: 14px;
    line-height: 1.25;
}

.hc-basket-popup__total-row[hidden] {
    display: none;
}

.hc-basket-popup__total-row dt,
.hc-basket-popup__total-row dd {
    margin: 0;
}

.hc-basket-popup__total-row [data-hc-basket-popup-total-discount] {
    color: #5f0c04;
}

.hc-basket-popup__total-row_result {
    color: #0E0E0E;
    font: normal normal normal 18px/26px "Oceanic Grotesk TRIAL", "Oceanic Grotesk", Inter, Arial, sans-serif;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.hc-basket-popup__bonus {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, auto);
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    color: #0E0E0E;
    font: normal normal normal 16px/22px "Oceanic Grotesk TRIAL", "Oceanic Grotesk", Inter, Arial, sans-serif;
    letter-spacing: 0;
}

.hc-basket-popup__bonus-column {
    display: inline-flex;
    align-items: baseline;
    gap: 18px;
    min-width: 0;
}

.hc-basket-popup__bonus-column:last-child {
    justify-self: end;
}

.hc-basket-popup__bonus-column span {
    white-space: nowrap;
}

.hc-basket-popup__bonus strong {
    color: #2d6a4f;
    font-weight: 500;
    white-space: nowrap;
}

.hc-basket-popup__bonus-check input {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.hc-basket-popup__bonus-check input:disabled {
    opacity: 0.45;
    cursor: default;
}

.hc-basket-popup__bonus-check input::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 14px;
    height: 14px;
    border: 1.235px solid #222c3c;
    box-sizing: border-box;
}

.hc-basket-popup__bonus-check input:checked {
    background: transparent url("/local/components/highcraft/basket.page/templates/.default/images/icon-check-box-checked.svg") center / 24px 24px no-repeat;
}

.hc-basket-popup__bonus-check input:checked:disabled {
    opacity: 1;
}

.hc-basket-popup__bonus-check input:checked::before {
    opacity: 0;
}

.hc-basket-popup__actions {
    display: grid;
    grid-template-columns: 1fr;
}

.hc-basket-popup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 0 13px;
    box-sizing: border-box;
    color: #fbf4dd;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.hc-basket-popup__button_primary {
    background: #252b15;
}

.hc-basket-popup.is-loading .hc-basket-popup__items,
.hc-basket-popup.is-loading .hc-basket-popup__footer {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 767px) {
    .hc-basket-popup__panel {
        width: 100vw;
    }

    .hc-basket-popup__content {
        padding: 72px 20px 24px;
    }

    .hc-basket-popup__close {
        top: 24px;
        right: 16px;
    }

    .hc-basket-popup__items {
        padding-right: 0;
    }

    .hc-basket-popup__footer {
        padding-right: 0;
    }

    .hc-basket-popup-item {
        grid-template-columns: 72px minmax(0, 1fr) 24px;
        gap: 16px;
        margin-bottom: 28px;
        padding-bottom: 28px;
    }

    .hc-basket-popup-item__image {
        width: 72px;
        height: 92px;
    }

    .hc-basket-popup-item__price {
        grid-column: 2;
        justify-content: flex-start;
        min-width: 0;
    }

    .hc-basket-popup-recommendations {
        padding-bottom: 28px;
        margin-bottom: 28px;
    }

    .hc-basket-popup-recommendations__header {
        margin-bottom: 16px;
    }

    .hc-basket-popup-recommendations__title {
        font-size: 13px;
    }

    .hc-basket-popup-recommendations__nav {
        gap: 18px;
    }

    .hc-basket-popup__bonus {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hc-basket-popup__bonus-column,
    .hc-basket-popup__bonus-column:last-child {
        justify-content: space-between;
        justify-self: stretch;
    }

    .hc-basket-popup-item__delete {
        grid-column: 3;
        grid-row: 1;
    }

    .hc-basket-popup__actions {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 760px) {
    .hc-basket-popup__content {
        overflow-y: auto;
    }

    .hc-basket-popup__items {
        flex: 0 0 auto;
        min-height: auto;
        overflow: visible;
    }
}
