/* Contenedor de fondo oscuro */
.wsc-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999999 !important;
    justify-content: center;
    align-items: center;
}

    .wsc-overlay.is-active {
        display: flex !important;
    }

/* Caja del Popup */
.wsc-modal {
    background: #ffffff !important;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 420px;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.wsc-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

/* Imagen del Diagrama */
.wsc-diagram-container {
    width: 100%;
    margin: 10px 0 20px 0;
    display: flex;
    justify-content: center;
}

.wsc-diagram-img {
    max-width: 160px;
    height: auto;
    border: 1px solid #f0f0f0;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
}

/* Campos de entrada */
.wsc-fields select,
.wsc-fields input {
    width: 100%;
    margin: 8px 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.wsc-inputs-inline {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

    .wsc-inputs-inline input {
        flex: 1;
    }

/* Botones */
.wsc-open-btn {
    background: var(--wsc-primary);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}

#wsc-calculate-action {
    background: var(--wsc-primary);
    color: #fff;
    width: 100%;
    border: none;
    padding: 15px;
    margin-top: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
}

    #wsc-calculate-action:hover, .wsc-open-btn:hover {
        opacity: 0.9;
    }

#wsc-result-display {
    min-height: 40px;
}
