/**
 * WC Catalog Quotation Styles
 */

/* Modal Base */
.wc-catalog-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.wc-catalog-modal-content {
    position: relative;
    width: 90%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    animation: wc-catalog-fadein 0.3s ease-out;
}

/* Scrollbar Styling */
.wc-catalog-modal-content::-webkit-scrollbar {
    width: 12px;
    /* Un poco más ancho para permitir el margen */
}

.wc-catalog-modal-content::-webkit-scrollbar-track {
    background: transparent;
    /* Fondo transparente */
    border-radius: 10px;
}

.wc-catalog-modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 3px solid transparent;
    /* Crea el margen visual */
    background-clip: padding-box;
    /* Evita que el color se meta en el borde transparente */
}

.wc-catalog-modal-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

@keyframes wc-catalog-fadein {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wc-catalog-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

/* --- STYLE 1: CLASSIC / CLEAN --- */
.wc-catalog-style-classic .wc-catalog-modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    clip-path: inset(0 round 8px);
    /* Fuerza el recorte de la barra */
}

.wc-catalog-style-classic .wc-catalog-quotation-form-el input,
.wc-catalog-style-classic .wc-catalog-quotation-form-el textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

/* --- STYLE 2: GLASSMORPHISM --- */
.wc-catalog-style-glass .wc-catalog-modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    clip-path: inset(0 round 20px);
    /* Fuerza el recorte de la barra */
}

.wc-catalog-style-glass .wc-catalog-quotation-form-el input,
.wc-catalog-style-glass .wc-catalog-quotation-form-el textarea {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px;
}

.wc-catalog-style-glass .wc-catalog-submit-button {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
}

/* --- STYLE 3: MATERIAL DESIGN --- */
.wc-catalog-style-material .wc-catalog-modal-content {
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);
    clip-path: inset(0 round 4px);
    /* Fuerza el recorte de la barra */
}

.wc-catalog-style-material .wc-catalog-quotation-form-el input,
.wc-catalog-style-material .wc-catalog-quotation-form-el textarea {
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    padding: 10px 0;
    background: transparent;
    transition: border-color 0.2s;
}

.wc-catalog-style-material .wc-catalog-quotation-form-el input:focus,
.wc-catalog-style-material .wc-catalog-quotation-form-el textarea:focus {
    border-bottom-color: #6200ee;
    outline: none;
}

.wc-catalog-style-material .wc-catalog-submit-button {
    background-color: #6200ee;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Form Shared Styles */
.wc-catalog-form-row {
    margin-bottom: 20px;
}

.wc-catalog-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.wc-catalog-form-row input,
.wc-catalog-form-row textarea {
    width: 100%;
}

.wc-catalog-submit-button {
    width: 100%;
    padding: 15px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.wc-catalog-response-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.wc-catalog-response-message.success {
    background-color: #d4edda;
    color: #155724;
}

.wc-catalog-response-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Price Replacement Message */
.wc-catalog-price-message {
    font-weight: bold;
    color: #d9534f;
    display: block;
    margin: 10px 0;
}