.epom-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

#epom-modal {
    display: none;
}

.epom-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    z-index: 9998;
}

.epom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    z-index: 9999;
    border-radius: 6px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.epom-popup input,
.epom-popup textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.epom-popup textarea { 
  max-height: 90px !important;
    min-height: 90px !important;
}
.epom-popup input:focus,
.epom-popup textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.3);
}

.epom-popup label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.epom-note {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
    font-style: italic;
}

.epom-popup .button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: white;
}

.epom-popup .button-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.epom-popup .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.epom-close {
    float: right;
    cursor: pointer;
}


@media print {

    body * {
        visibility: hidden;
    }

    .cart-content-wrapper,
    .cart-content-wrapper * {
        visibility: visible;
    }

    .cart-content-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    /* Hide buttons */
    .epom-actions,
    .shapediver-cart-actions {
        display: none !important;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .epom-popup {
        width: 95%;
        max-width: none;
        max-height: 85vh;
        padding: 15px;
        margin: 10px;
    }
    
    .epom-popup h3 {
        font-size: 18px;
        margin-top: 0;
        margin-bottom: 15px;
    }
    
    .epom-popup input,
    .epom-popup textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px;
    }
    
    .epom-popup label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .epom-popup .button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .epom-close {
        font-size: 24px;
        line-height: 1;
        margin-top: -5px;
    }
}

@media (max-width: 480px) {
    .epom-popup {
        width: 98%;
        padding: 12px;
        max-height: 80vh;
    }
    
    .epom-popup .button {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .epom-popup > div[style*="flex"] {
        flex-direction: column;
    }
}