.penny-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    font-family: 'Gilroy', sans-serif;
}

.penny-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.penny-popup__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 30, 27, 0.56);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.penny-popup__dialog {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
    max-width: calc(100vw - 32px);
    height: auto;
    box-sizing: border-box;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.24s ease;
}

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

.penny-popup__close {
    position: absolute;
    top: -44px;
    right: 0;
    z-index: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    transition: color 0.2s ease;
}

.penny-popup__close svg {
    transition: transform 0.15s ease;
}

.penny-popup__close:hover,
.penny-popup__close:focus-visible {
    color: #ffffff;
    outline: none;
}

.penny-popup__close:hover svg,
.penny-popup__close:focus-visible svg {
    transform: scale(1.08);
}

.penny-popup__close:active svg {
    transform: scale(0.96);
}

.penny-popup__card {
    min-width: 0;
    width: 100%;
    height: auto;
    max-height: 88vh;
    overflow-y: auto;
    background: #ffffff;
    color: #1b1e1b;
    border-radius: 16px;
    box-shadow: 0 22px 54px rgba(27, 30, 27, 0.22);
    box-sizing: border-box;
}

.penny-popup__media {
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

.penny-popup__media img,
.penny-popup__banner-img {
    display: block;
    width: 100%;
    height: auto;
}

.penny-popup__body {
    padding: 24px 24px 26px;
    box-sizing: border-box;
}

.penny-popup--has-image .penny-popup__body {
    padding-top: 20px;
}

.penny-popup__title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 600;
    color: #1b1e1b;
}

.penny-popup__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #4a4d4a;
}

.penny-popup__promo {
    margin-top: 18px;
    width: 100%;
    padding: 13px 16px;
    border: 2px dashed #dd5db2;
    border-radius: 12px;
    background: rgba(221, 93, 178, 0.08);
    color: #1b1e1b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.penny-popup__promo:hover,
.penny-popup__promo:focus-visible {
    background: rgba(221, 93, 178, 0.14);
    outline: none;
}

.penny-popup__promo:active {
    background: rgba(221, 93, 178, 0.18);
    transform: scale(0.99);
}

.penny-popup__promo.is-copied {
    border-style: solid;
    border-color: #dd5db2;
    background: rgba(221, 93, 178, 0.12);
}

.penny-popup__promo-code {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #1b1e1b;
    word-break: break-all;
}

.penny-popup__promo-status {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    color: #dd5db2;
}

.penny-popup__promo.is-copied .penny-popup__promo-status {
    color: #dd5db2;
}

.penny-popup__actions {
    margin-top: 20px;
}

.penny-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 12px 22px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #dd5db2;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.penny-popup__btn:hover,
.penny-popup__btn:focus-visible {
    background: #dd5db2;
    filter: brightness(0.94);
    color: #ffffff;
    outline: none;
}

.penny-popup__btn:active {
    background: #dd5db2;
    filter: brightness(0.9);
    transform: scale(0.99);
}

.penny-popup--banner .penny-popup__card {
    padding: 0;
    background: transparent;
    box-shadow: 0 22px 54px rgba(27, 30, 27, 0.3);
}

.penny-popup__banner-link {
    display: block;
    line-height: 0;
    text-decoration: none;
}

@media (min-width: 768px) {
    .penny-popup {
        padding: 52px 32px 24px;
    }

    .penny-popup__dialog {
        max-width: 520px;
    }
}

@media screen and (max-width: 480px) {
    .penny-popup {
        padding: 48px 16px 16px;
    }

    .penny-popup__close {
        top: -44px;
        right: 0;
        width: 44px;
        height: 44px;
    }

    .penny-popup__card {
        border-radius: 14px;
    }

    .penny-popup__body {
        padding: 20px 18px 22px;
    }

    .penny-popup--has-image .penny-popup__body {
        padding-top: 18px;
    }

    .penny-popup__title {
        font-size: 20px;
    }

    .penny-popup__text {
        font-size: 15px;
    }

    .penny-popup__promo-code {
        font-size: 18px;
    }

    .penny-popup__btn {
        min-height: 46px;
        font-size: 15px;
    }
}
