/*
 * Estilos básicos para los formularios y tablas del plugin Casillero Virtual.
 */

.cv-registration-form,
.cv-alert-form {
    max-width: 500px;
    margin: 20px auto;
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
}

.cv-registration-form h2,
.cv-alert-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.cv-registration-form p,
.cv-alert-form p {
    margin-bottom: 15px;
}

.cv-registration-form input[type="text"],
.cv-registration-form input[type="email"],
.cv-alert-form input[type="text"],
.cv-alert-form input[type="number"],
.cv-registration-form textarea,
.cv-alert-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.cv-registration-form button,
.cv-alert-form button {
    background-color: #f1c232;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 3px;
}

.cv-registration-form button:hover,
.cv-alert-form button:hover {
    background-color: #e5b125;
}

.cv-locker-info {
    background: #eef6fb;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #d0e3f1;
}

.cv-locker-info h3 {
    margin-top: 0;
}

.cv-alerts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cv-alerts-table th,
.cv-alerts-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.cv-alerts-table th {
    background-color: #f1f1f1;
}

.cv-success {
    color: #008000;
    font-weight: bold;
}

.cv-error {
    color: #a50000;
    font-weight: bold;
}

/* Estilo para el botón de crear nueva alerta en la página de cuenta */
.cv-create-alert-link {
    display: inline-block;
    background-color: #f1c232;
    color: #000;
    padding: 10px 20px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
}

.cv-create-alert-link:hover {
    background-color: #e5b125;
    color: #000;
}

/* Estilo para el enlace de restricciones de envío en la cuenta */
.cv-restrictions-link {
    margin-top: 20px;
    font-size: 0.9em;
}
.cv-restrictions-link a {
    text-decoration: underline;
    color: inherit;
}

/* Miniaturas de fotos en la tabla del casillero */
.cv-photo-thumb-link img {
    border: 1px solid #ddd;
    padding: 2px;
    border-radius: 3px;
    box-sizing: border-box;
    cursor: pointer;
}

/* Lightbox sencillo para ver las fotos en grande */
.cv-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cv-lightbox-overlay.cv-lightbox-visible {
    display: flex;
}

.cv-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.cv-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 4px;
}

.cv-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
