/* ===================================================================
   EOPYY POPUP – FULL PROFESSIONAL STYLING
   =================================================================== */

/* ========== MODAL BASE ========== */
.eopyy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.eopyy-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.eopyy-modal-content {
    position: relative;
    max-width: 560px;
    margin: 5% auto 0;
    background: #ffffff;
    padding: 0 28px 55px;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
    animation: eopyy-fade-in 0.25s ease-out;
    min-height: 700px;
}

/* Fade animation */
@keyframes eopyy-fade-in {
    from { opacity:0; transform: translateY(-8px); }
    to   { opacity:1; transform: translateY(0); }
}


/* ========== HEADER BAR ========== */
.eopyy-header-bar {
    background: #00c0c7;
    color: #fff;
    text-align: center;
    font-weight: 700;
    padding: 16px 20px;
    margin: 0 -28px 22px -28px;
    border-radius: 12px 12px 0 0;
    font-size: 19px;
    letter-spacing: 0.4px;
}


/* ========== CLOSE BUTTON (X) ========== */
.eopyy-modal-close {
    position: absolute;
    top: 14px;
    right: 20px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer;
    padding: 0;
    margin: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.eopyy-modal-close:hover {
    opacity: 1;
}


/* ========== SECTIONS STYLE ========== */
.eopyy-section {
    margin-bottom: 22px;
}

.eopyy-section-title {
    background: #00c0c7;
    color: #fff;
    padding: 10px 12px;
    font-weight: 700;
    border-radius: 6px;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Rows with values */
.eopyy-section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
    font-size: 15px;
}

.eopyy-label {
    color: #444;
    font-weight: 500;
}

.eopyy-value {
    color: #000;
    font-weight: 700;
}


/* Divider */
.eopyy-divider {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 10px 0;
}


/* ========== RADIO BUTTONS ========== */
.eopyy-radio-group {
    margin: 8px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
}

.eopyy-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #444;
    font-weight: 500;
}


/* ========== FINAL COST BOLD ========== */
.eopyy-final-row .eopyy-value {
    font-size: 17px;
    font-weight: 800;
}


/* ========== BUTTONS ========== */

/* Front-end product page button wrapper next to Add to cart */
.eopyy-wrapper {
    display: inline-block;
    margin-left: 12px;
}

.single-product form.cart,
.single-product form.cart .single_add_to_cart_button,
.single-product .eopyy-wrapper {
    vertical-align: middle;
}

/* Front-end product page button */
.eopyy-btn {
    background: transparent !important;
    color: #0084c7 !important;
    border: 2px solid #0084c7 !important;
    border-radius: 6px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: 0.3s;
    white-space: nowrap;
}

.eopyy-btn:hover {
    background: #0084c7 !important;
    color: #fff !important;
}

/* Popup button */
.eopyy-next-button,
.eopyy-submit {
    width: 100% !important;
    display: block !important;
    background: transparent !important;
    border: 2px solid #0084c7 !important;
    color: #0084c7 !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 14px 0 !important;
    text-align: center !important;
    margin: 25px 0 0 0 !important;
    font-size: 15px !important;
    transition: 0.3s;
    box-sizing: border-box !important;
}

.eopyy-next-button:hover,
.eopyy-submit:hover {
    background: #0084c7 !important;
    color: #fff !important;
}


/* ========== FORM FIELDS (Popup 2) ========== */
.eopyy-modal-content p {
    font-size: 15px;
    color: #444;
    margin-bottom: 14px;
}

.eopyy-field {
    margin-bottom: 14px;
}

.eopyy-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

.eopyy-field input[type="text"],
.eopyy-field input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}


/* ========== TOAST NOTIFY ========== */
.eopyy-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2c7a7b;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10000;
}


/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .eopyy-modal-content {
        margin: 18% 14px 0;
        padding: 0 20px 30px;
        min-height: 0;
    }
    .eopyy-header-bar {
        font-size: 17px;
        padding: 14px 16px;
    }
}
