body.night-sale-popup-open {
    overflow: hidden;
}

.night-sale-popup[hidden] {
    display: none;
}

.night-sale-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.night-sale-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.night-sale-popup__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 320px);
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}

.night-sale-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.night-sale-popup__close:hover {
    background: #ffffff;
    color: #1e293b;
}

.night-sale-popup__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: linear-gradient(180deg, #e0f2fe 0%, #f8fbff 100%);
}

.night-sale-popup__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.night-sale-popup__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 28px;
}

.night-sale-popup__title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
}

.night-sale-popup__text {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
}

.night-sale-popup__form {
    margin-top: 28px;
}

.night-sale-popup__label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.night-sale-popup__input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.night-sale-popup__input:focus {
    outline: none;
    border-color: #1e9cf0;
    box-shadow: 0 0 0 3px rgba(30, 156, 240, 0.18);
}

.night-sale-popup__submit {
    width: 100%;
    margin-top: 16px;
    padding: 15px 18px;
    border: 0;
    border-radius: 14px;
    background: #1e9cf0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.night-sale-popup__submit:hover:not(:disabled) {
    background: #1386d2;
}

.night-sale-popup__submit:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .night-sale-popup {
        padding: 16px;
    }

    .night-sale-popup__dialog {
        grid-template-columns: minmax(0, 1fr);
        max-height: calc(100vh - 32px);
    }

    .night-sale-popup__media {
        padding: 24px 24px 8px;
    }

    .night-sale-popup__image {
        max-width: 280px;
    }

    .night-sale-popup__content {
        padding: 16px 24px 24px;
    }

    .night-sale-popup__title {
        font-size: 26px;
    }
}
