/* CF7 Unique Email Validator - frontend styles */

.cf7-uev-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    font-family: inherit;
}

.cf7-uev-popup.is-open {
    display: flex;
}

.cf7-uev-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.cf7-uev-popup__dialog {
    position: relative;
    max-width: 720px;
    width: calc(100% - 32px);
    background: #f3f9c5;
    border-radius: 60px;
    padding: 55px 120px;
    text-align: center;
    line-height: 1.55;
    animation: cf7-uev-pop 0.18s ease-out;
}

@keyframes cf7-uev-pop {
    from {
        transform: translateY(8px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cf7-uev-popup__content {
    color: #151e2d;
    font-size: 20.5px;
    margin-bottom: 47px;
    /* white-space: pre-line; */
}

.cf7-uev-popup__content p {
    margin: 0 0 20px;
    text-align: left;
}

.cf7-uev-popup__content p:last-child {
    margin-bottom: 0;
}

.cf7-uev-popup__close {
    appearance: none;
    border: 0;
    background: #badede;
    color: #151e2d;
    font-size: 30.5px;
    font-weight: 700;
    padding: 20px 100px;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.15s ease;
}

/* CF7 invalid email field tweak (optional) */
.wpcf7-not-valid-tip {
    color: #d63638;
}
.merchandise-form {
    flex-direction: column;
    gap: 36px;
    display: flex;
}
.merchandise-form__body {
    display: flex;
    gap: 36px 78px;
    flex-wrap: wrap;
}
.merchandise-form__body p {
    margin: 0;
    width: calc(50% - 39px);
}
.merchandise-form__body input[type="date"],
.merchandise-form__body select {
    border-radius: 11px;
    padding: 25px 40px;
    width: 100%;
    box-sizing: border-box;
    /* border: 1px solid #ccc; */
    font-family: inherit;
    border: none;
}
.merchandise-form__footer {
    width: 100%;
}
.merchandise-form__body input {
    border: none !important;
}
.merchandise-form__body select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="31" height="15" viewBox="0 0 31 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.1554 14.25L30.3108 6.19327e-09L-4.98832e-05 2.65606e-06L15.1554 14.25Z" fill="%237E9999"/></svg>');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 15px 8px;
    padding-right: 60px;
}

.merchandise-form__footer p {
    margin: 0;
}

.merchandise-form__footer .submit-wrapper {
    text-align: center;
    margin-top: 100px;
}

.submit-wrapper .wpcf7-submit {
    background: #badede;
}
.merchandise-form .wpcf7-list-item {
    margin: 0;
}
.merchandise-form [type="checkbox"] {
    width: 40px;
    height: 40px;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 11px;
}

.merchandise-form [type="checkbox"]:checked {
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 6L9 17L4 12" stroke="%237E9999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    background-color: #fff;
}
.merchandise-form .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .cf7-uev-popup__dialog {
        max-width: 90%;
        padding: 30px 25px;
        border-radius: 30px;
    }

    .cf7-uev-popup__content {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .cf7-uev-popup__content p {
        margin: 0 0 15px;
    }

    .cf7-uev-popup__close {
        font-size: 18px;
        padding: 12px 50px;
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .merchandise-form__body {
        flex-direction: column;
    }
    .merchandise-form__body p {
        width: 100%;
    }
    .merchandise-form__body {
        gap: 20px;
    }
    .merchandise-form__footer .submit-wrapper {
        margin-top: 30px;
    }
    .merchandise-form__body input[type="date"],
    .merchandise-form__body select {
        padding: 12px 20px;
    }
}
