.offer-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .52);
}

.offer-popup {
    position: relative;
    width: min(100%, 680px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    color: #554f4c;
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
    font-family: "Montserrat", Arial, sans-serif;
    text-align: center;
}

.offer-popup .btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    float: none;
    margin: 0 !important;
}

.offer-popup-header {
    position: relative;
    padding: 28px 48px 20px;
}

.offer-popup-leaf {
    display: block;
    width: 68px;
    height: 68px;
    margin: 0 auto 10px;
    color: #506b3d;
}

.offer-popup-header h2 {
    margin: 0 0 1px;
    color: #506b3d;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.offer-popup-subtitle {
    margin: 0;
    color: #77716e;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.offer-popup-hero {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    padding: 26px 64px;
    background:
        linear-gradient(rgba(18, 30, 12, .48), rgba(18, 30, 12, .48)),
        url("../images/sfondo-mela.jpg") center 48% / cover no-repeat;
    color: #fff;
}

.offer-popup-hero[hidden] {
    display: none;
}

.offer-popup-hero p {
    margin: 0;
    color: #fff !important;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    white-space: pre-line;
}

.offer-popup-details {
    margin: 0;
    padding: 24px 48px;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    white-space: pre-line;
}

.offer-popup-footer {
    display: flex;
    justify-content: center;
    margin: 0 48px;
    padding: 20px 0 22px;
    border-top: 1px solid #dedbd9;
}

.offer-popup-button {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 20px;
    background: #506b3d;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
}

.offer-popup-button:hover,
.offer-popup-button:focus {
    background: #3d542e;
    color: #fff !important;
}

@media (max-width: 520px) {
    .offer-popup {
        width: 100%;
    }

    .offer-popup-overlay {
        padding: 12px;
    }

    .offer-popup-header {
        padding-top: 22px;
        padding-right: 32px;
        padding-left: 32px;
    }

    .offer-popup .btn-close {
        top: 10px;
        right: 10px;
    }

    .offer-popup-header h2 {
        font-size: 20px;
    }

    .offer-popup-hero {
        min-height: 150px;
    }

    .offer-popup-hero {
        padding-right: 24px;
        padding-left: 24px;
    }

    .offer-popup-hero p {
        font-size: 16px;
    }

    .offer-popup-details {
        font-size: 14px;
        padding-right: 24px;
        padding-left: 24px;
    }

    .offer-popup-footer {
        margin-right: 24px;
        margin-left: 24px;
    }

    .offer-popup-button {
        font-size: 14px;
    }
}