.ferk-cart-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    font-family: inherit;
}

.ferk-cart-popup.is-visible {
    display: flex;
}

.ferk-cart-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.45);
}

.ferk-cart-popup__dialog {
    position: relative;
    width: min(90vw, 420px);
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    text-align: center;
    color: #1a1a1a;
    z-index: 1;
    overflow: hidden;
}

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

.ferk-cart-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ferk-cart-popup__close:hover,
.ferk-cart-popup__close:focus {
    background: rgba(0, 0, 0, 0.08);
}

.ferk-cart-popup__icon {
    margin: 0 auto 20px;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.ferk-cart-popup__icon img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.ferk-cart-popup__message {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 26px;
}

.ferk-cart-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.ferk-cart-popup__button {
    border: none;
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 160px;
}

.ferk-cart-popup__button:hover,
.ferk-cart-popup__button:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 480px) {
    .ferk-cart-popup__dialog {
        width: min(94vw, 360px);
        padding: 28px 22px 22px;
    }

    .ferk-cart-popup__button {
        width: 100%;
        min-width: 0;
    }
}
