.storefront-coupon-modal[hidden] {
    display: none !important;
}

.storefront-coupon-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(19, 29, 70, 0.83);
    z-index: 99998;
}

.storefront-coupon-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(405px, 100%);
    min-height: 186px;
    background: #fff;
    font-family: Helvetica, Arial, sans-serif;
    box-shadow: none;
    z-index: 99999;
}

.storefront-coupon-modal__content {
    flex: 1 1 auto;
    padding: 27px 24px 22px;
}

.storefront-coupon-modal__title {
    margin: 0;
    color: #333;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}

.storefront-coupon-modal__form {
    margin-top: 30px;
}

.storefront-coupon-modal__field {
    padding: 0;
}

.storefront-coupon-modal__field input[type="text"] {
    width: 100%;
    margin-top: 0;
    padding: 10px 12px 8px;
    border-width: 0 0 1px;
    border-style: solid;
    border-color: #b4b4b4;
    background: #f9f9f9;
    color: #666;
    font-size: 18px;
    outline: 0;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.storefront-coupon-modal__field input[type="text"]:focus {
    border-color: #22c7e7;
    color: #333;
}

.storefront-coupon-modal__field input[type="text"].is-invalid {
    border-color: #de2f39;
}

.storefront-coupon-modal__error[hidden] {
    display: none !important;
}

.storefront-coupon-modal__error {
    display: block;
    margin-top: 10px;
    padding: 0;
    background: transparent;
    color: #de2f39;
    font-size: 13px;
}

.storefront-coupon-modal__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 42px;
    background: #eee;
}

.storefront-coupon-modal__button {
    width: 100%;
    margin: 0;
    padding: 11px 0 12px;
    border: 0;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.storefront-coupon-modal__button--cancel {
    background: #d7d7d7;
    color: #555;
}

.storefront-coupon-modal__button--cancel:hover {
    background: #c8c8c8;
}

.storefront-coupon-modal__button--confirm {
    background: #34af23;
    color: #fefefe;
}

.storefront-coupon-modal__button--confirm:hover {
    background: #2f9f20;
}

.storefront-coupon-modal-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .storefront-coupon-modal {
        padding: 16px;
    }

    .storefront-coupon-modal__dialog {
        width: min(405px, calc(100vw - 32px));
    }

    .storefront-coupon-modal__content {
        padding: 24px 20px 20px;
    }

    .storefront-coupon-modal__title {
        font-size: 24px;
    }
}
