body.nwc-cart-popup-open {
    overflow: hidden;
}

.nwc-cart-popup[hidden] {
    display: none !important;
}

.nwc-cart-popup {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.nwc-cart-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 28, 23, .58);
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity 180ms ease;
}

.nwc-cart-popup__dialog {
    position: relative;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid #dce5df;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(13, 27, 18, .28);
    opacity: 0;
    transform: translateY(18px) scale(.985);
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.nwc-cart-popup.is-open .nwc-cart-popup__backdrop {
    opacity: 1;
}

.nwc-cart-popup.is-open .nwc-cart-popup__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nwc-cart-popup__progress {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 22px;
    left: 22px;
    height: 3px;
    overflow: hidden;
    border-radius: 0 0 4px 4px;
    background: #e5ebe7;
}

.nwc-cart-popup__progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #287447,
        #3c829b,
        #b67a2d
    );
    transform: scaleX(1);
    transform-origin: left center;
}

.nwc-cart-popup__close {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 18px;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce5df;
    border-radius: 50%;
    background: #fff;
    color: #536058;
}

.nwc-cart-popup__close:hover {
    background: #f2f6f3;
    color: #1d5936;
}

.nwc-cart-popup__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.nwc-cart-popup__success {
    display: grid;
    grid-template-columns: 58px 92px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 32px 72px 25px 30px;
    background: linear-gradient(
        110deg,
        #eef8f1,
        #f5faf7 58%,
        #edf5f8
    );
}

.nwc-cart-popup__check {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #287447;
    color: #fff;
    box-shadow: 0 9px 20px rgba(40, 116, 71, .2);
}

.nwc-cart-popup__check svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nwc-cart-popup__added-image {
    overflow: hidden;
    width: 88px;
    height: 88px;
    border: 1px solid #dce5df;
    border-radius: 13px;
    background: #fff;
}

.nwc-cart-popup__added-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nwc-cart-popup__success-copy {
    min-width: 0;
}

.nwc-cart-popup__eyebrow {
    display: inline-flex;
    margin-bottom: 6px;
    color: #287447;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.nwc-cart-popup__success h2 {
    margin: 0;
    color: #222b25;
    font-size: clamp(23px, 2.3vw, 32px);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.nwc-cart-popup__success p {
    margin: 7px 0 0;
    color: #67736c;
    font-size: 14px;
}

.nwc-cart-popup__success p strong {
    color: #37443c;
}

.nwc-cart-popup__recommendations {
    padding: 25px 30px 28px;
}

.nwc-cart-popup__section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}

.nwc-cart-popup__section-title span {
    color: #b27629;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.nwc-cart-popup__section-title h3 {
    margin: 4px 0 0;
    color: #28322c;
    font-size: 21px;
    font-weight: 850;
    line-height: 1.15;
}

.nwc-cart-popup__section-title small {
    color: #89938d;
    font-size: 11px;
}

.nwc-cart-popup__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.nwc-cart-popup__card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 11px;
    border: 1px solid #e0e7e2;
    border-radius: 14px;
    background: #fff;
}

.nwc-cart-popup__card-image {
    display: block;
    overflow: hidden;
    width: 88px;
    height: 88px;
    border-radius: 10px;
    background: #f5f1e9;
}

.nwc-cart-popup__card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nwc-cart-popup__card-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.nwc-cart-popup__card-name {
    display: -webkit-box;
    overflow: hidden;
    color: #303b34;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.nwc-cart-popup__card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 6px;
}

.nwc-cart-popup__card-price strong {
    color: #287447;
    font-size: 15px;
    font-weight: 850;
}

.nwc-cart-popup__old-price {
    color: #98a19b;
    font-size: 10px;
    text-decoration: line-through;
}

.nwc-cart-popup__card-action {
    margin-top: auto;
    padding-top: 8px;
}

.nwc-cart-popup__card-button {
    display: inline-flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border: 0;
    border-radius: 8px;
    background: #edf5f8;
    color: #356f87;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.nwc-cart-popup__card-button:hover {
    background: #3e7890;
    color: #fff;
}

.nwc-cart-popup__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
    padding: 18px 30px;
    border-top: 1px solid #e2e8e4;
    background: #f8faf8;
}

.nwc-cart-popup__continue,
.nwc-cart-popup__checkout {
    display: inline-flex;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.nwc-cart-popup__continue {
    padding: 0 18px;
    border: 1px solid #d3ddd6;
    background: #fff;
    color: #46534b;
}

.nwc-cart-popup__continue:hover {
    background: #f0f5f1;
    color: #1d5936;
}

.nwc-cart-popup__checkout {
    gap: 8px;
    padding: 0 21px;
    border: 0;
    background: linear-gradient(135deg, #287447, #367f51);
    color: #fff;
    box-shadow: 0 9px 20px rgba(40, 116, 71, .18);
}

.nwc-cart-popup__checkout:hover {
    background: #1d5936;
    color: #fff;
}

.nwc-cart-popup__checkout svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 850px) {
    .nwc-cart-popup__grid {
        grid-template-columns: 1fr;
    }

    .nwc-cart-popup__card {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .nwc-cart-popup__card-image {
        width: 78px;
        height: 78px;
    }
}

@media (max-width: 600px) {
    .nwc-cart-popup {
        align-items: flex-end;
        padding: 0;
    }

    .nwc-cart-popup__dialog {
        width: 100%;
        max-height: 92vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 20px 20px 0 0;
    }

    .nwc-cart-popup__success {
        grid-template-columns: 46px 68px minmax(0, 1fr);
        gap: 10px;
        padding: 28px 50px 20px 16px;
    }

    .nwc-cart-popup__check {
        width: 44px;
        height: 44px;
    }

    .nwc-cart-popup__check svg {
        width: 23px;
        height: 23px;
    }

    .nwc-cart-popup__added-image {
        width: 66px;
        height: 66px;
    }

    .nwc-cart-popup__success h2 {
        font-size: 20px;
    }

    .nwc-cart-popup__success p {
        font-size: 12px;
    }

    .nwc-cart-popup__recommendations {
        padding: 20px 16px;
    }

    .nwc-cart-popup__section-title small {
        display: none;
    }

    .nwc-cart-popup__footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 14px 16px;
    }

    .nwc-cart-popup__continue,
    .nwc-cart-popup__checkout {
        min-height: 45px;
        padding-inline: 10px;
        font-size: 11px;
    }
}
