.first-order-coupon-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.first-order-coupon-modal.is-visible {
    display: flex;
}

.first-order-coupon-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 43, 43, 0.58);
}

.first-order-coupon-dialog {
    display: block;
    position: relative;
    z-index: 1;
    width: 466px;
    height: 487px;
}

.first-order-coupon-card {
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.first-order-coupon-panel {
    height: 375px;
    position: relative;
    padding: 48px 52px 40px 52px;
    background: #F39800;
    color: #ffffff;
    text-align: center;
    justify-items: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.first-order-coupon-close {
    position: absolute;
    top: 14px;
    right: 29px;
    border: 0;
    background: transparent;
    padding: 0;
    color: #ffffff;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
}

.first-order-coupon-title {
    width: 330px;
    height: 67px;
    position: relative;
    justify-content: center;
    align-items: center;
    margin: 0 0 20px;
    padding: 16px 24px;
    border-radius: 10px;
    background: #ffffff;
    color: #EE5C0D;
    font-family: "Noto Sans JP";
    font-size: 26px;
    font-style: normal;
    font-weight: 900;
    line-height: 120%;
}

.first-order-coupon-title .first-order-coupon-title-number {
    display: inline-block;
    font-size: 35px;
    line-height: 1;
}

.first-order-coupon-title::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% - 9px);
    transform: translateX(-50%);
    width: 21px;
    height: 29px;
    background-image: url('../img/common/Polygon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.first-order-coupon-offer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.first-order-coupon-rate {
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 72px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 2.16px;
}

.first-order-coupon-offer-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;

    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0.96px;
}

.first-order-coupon-expiry {
    color: #FFF;
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
}

.first-order-coupon-notes {
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    align-self: flex-start;
}

.first-order-coupon-footer {
    height: 112px;
    display: flex;
    padding: 32px 133px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    background: #ffffff;

}

.first-order-coupon-shop-btn {
    display: flex;
    width: 200px;
    padding: 15px 32px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    background: var(--CTA2-1, #3DCC85);
    color: var(--White, #FFF);
    font-family: "Noto Sans JP";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.first-order-coupon-shop-btn:hover,
.first-order-coupon-shop-btn:focus {
    background: #34bd7c;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

body.first-order-coupon-open {
    overflow: hidden;
}

@media screen and (max-width: 767px) {
    .first-order-coupon-dialog {
        width: 353px;
        height: 487px;
    }
    .first-order-coupon-modal {
        padding: 16px;
    }

    .first-order-coupon-panel {
        padding: 48px 20px 32px;
        width: 353px;
        height: 387px;
    }

    .first-order-coupon-footer {
        width: 353px;
        height: 112px;
        align-items: center;
    }

    .first-order-coupon-title {
        margin-bottom: 20px;
        font-size: 26px;
        padding: 16px 14px;
        width: 310px;
        height: 63px;
    }

    .first-order-coupon-close {
        top: 7px;
        right: 14px;
    }
}
