/* Wspólny modal gwarancji — strona główna + koszyk. */
.guarantee-modal[hidden] {
    display: none;
}

.guarantee-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .18s ease;
}

.guarantee-modal.is-open {
    opacity: 1;
}

.guarantee-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(37, 42, 45, .52);
    backdrop-filter: blur(2px);
}

.guarantee-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 510px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 34px 34px 30px;
    border-radius: 18px;
    background: var(--cream);
    box-shadow: 0 22px 70px rgba(37, 42, 45, .22);
    transform: translateY(8px) scale(.985);
    transition: transform .18s ease;
}

.guarantee-modal.is-open .guarantee-modal__dialog {
    transform: translateY(0) scale(1);
}

.guarantee-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(232, 226, 214, .75);
    color: var(--text);
    font: 300 27px/1 "Montserrat", sans-serif;
    cursor: pointer;
}

.guarantee-modal__eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.2px;
}

.guarantee-modal__dialog h2 {
    margin: 0 42px 14px 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.7px;
}

.guarantee-modal__intro,
.guarantee-modal__note {
    margin: 0;
    color: #55575a;
    font-size: 13px;
    line-height: 1.65;
}

.guarantee-modal__list {
    display: grid;
    gap: 11px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.guarantee-modal__list li {
    position: relative;
    padding-left: 27px;
    font-size: 13px;
    line-height: 1.55;
}

.guarantee-modal__list li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.guarantee-modal__note {
    padding-top: 18px;
    border-top: 1px solid #d7d1c7;
    font-size: 12px;
}

.guarantee-modal__regulations {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    color: #596042;
    font-size: 12px;
    font-weight: 600;
}

.guarantee-modal__regulations span:last-child {
    font-size: 17px;
}

.guarantee-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .process-guarantee__details {
        margin-top: 6px;
        font-size: 11px;
    }

    .guarantee-modal {
        align-items: center;
        padding: 12px;
    }

    .guarantee-modal__dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 28px 22px 24px;
        border-radius: 18px;
    }

    .guarantee-modal__dialog h2 {
        font-size: 31px;
    }

    .guarantee-modal__intro,
    .guarantee-modal__list li {
        font-size: 12px;
    }
}
