/**
 * Coupon popup
 */

.mspc2-generate {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #111111;
    padding: 24px 20px 20px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    z-index: 999;
    overflow: hidden;
}

.mspc2-generate::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,0));
    pointer-events: none;
}

.mspc2-generate.is-expired {
    background: #2a2a2a;
    color: rgba(255,255,255,.75);
}

/**
 * Discount
 */
.mspc2-generate__discount {
    padding: 0 32px 18px 0;
    margin: 0 0 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.mspc2-generate__title {
    font-size: 20px;
    line-height: 1.15;
    font-weight: 600;
    margin-bottom: 18px;
    color: #fff;
    max-width: 270px;
}

/**
 * Promo code button
 */
.mspc2-generate__code {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-height: 58px;
    background: #ffffff;
    padding: 14px 20px;
    border-radius: 999px;
    margin: 0;
    color: #111111;
    font-size: 16px;
    line-height: 1.2;
    border: 1px solid rgba(255,255,255,.12);
    gap: 6px;
    overflow: hidden;
    transition: all .25s ease;
}

.is-expired .mspc2-generate__code {
    background: rgba(255, 255, 255, .75);
    color: #111;
}

button.mspc2-generate__code {
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
}

.mspc2-generate__code,
.mspc2-generate__code:hover,
.mspc2-generate__code:focus {
    outline: none;
    border: 1px solid rgba(255,255,255,.12);
    text-decoration: none;
}

.mspc2-generate__code:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255,255,255,.08);
}

.mspc2-generate__code:active {
    transform: translateY(0);
}

.mspc2-generate__code-label {
    font-size: 16px;
    line-height: 1;
    color: rgba(17,17,17,.65);
    white-space: nowrap;
    flex-shrink: 0;
}

.mspc2-generate__code-value {
    padding-left: 0;
    font-weight: 700;
    color: #111111;
    overflow: hidden;
    text-overflow: ellipsis;
    /* white-space: nowrap; */
}

.mspc2-generate__code-copied {
    display: none;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

.mspc2-generate.is-copied .mspc2-generate__code-label,
.mspc2-generate.is-copied .mspc2-generate__code-value {
    display: none;
}

.mspc2-generate.is-copied .mspc2-generate__code-copied {
    display: block;
}

/**
 * Timer
 */
.mspc2-generate__clock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.mspc2-generate__clock-label {
    padding: 0;
    font-size: 14px;
    line-height: 1.2;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
}

.mspc2-generate__clock-numbers {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    gap: 8px;
}

.mspc2-generate__clock-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    font-weight: 700;
    color: #fff;
}

.mspc2-generate__clock-number:after {
    content: none;
}

.mspc2-generate__clock-number_hours {}
.mspc2-generate__clock-number_minutes {}
.mspc2-generate__clock-number_seconds {}

/**
 * Close button
 */
.mspc2-generate__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: transparent;
    padding: 0;
    color: rgba(255,255,255,.7);
    opacity: 1;
    border-radius: 50%;
    z-index: 2;
    transition: all .2s ease;
}

.mspc2-generate__close,
.mspc2-generate__close:hover,
.mspc2-generate__close:focus {
    outline: none;
    border: 0;
    text-decoration: none;
}

.mspc2-generate__close:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.mspc2-generate__close-svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
    color: inherit;
    margin: auto;
}

/**
 * Mobile
 */
@media (max-width: 767px) {
    .mspc2-generate {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: 320px;
        max-width: none;
        padding: 20px 16px 16px;
        border-radius: 20px;
    }

    .mspc2-generate__discount {
        font-size: 32px;
        padding: 0 28px 16px 0;
        margin-bottom: 16px;
    }

    .mspc2-generate__title {
        font-size: 22px;
        max-width: 100%;
    }

    .mspc2-generate__code {
        min-height: 54px;
        padding: 12px 16px;
        font-size: 15px;
    }

    .mspc2-generate__code-label,
    .mspc2-generate__code-value {
        font-size: 15px;
    }

    .mspc2-generate__clock {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .mspc2-generate__clock-numbers {
        width: 100%;
        justify-content: flex-start;
    }

    .mspc2-generate__clock-number {
        min-width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 14px;
    }
}