/* Estilos del overlay del popup */
.user-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Fondo semi-transparente */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Contenido del popup */
.user-popup-content {
    background: #ffffff;
    /* Fondo blanco */
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    /* Ajusta el tamaño máximo del popup */
    min-height: 80vh;
    max-height: 80vh;
    /* Ajusta la altura máxima del popup para que no se desborde */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Sombra suave */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Asegura que el contenido adicional se ocultará */
}

/* Cabecera del popup */
.user-popup-header {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #5512cf;
    margin-bottom: 15px;
}

.user-tab-button {
    background: #5512cf5e;
    /* Color de fondo del botón */
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    border-radius: 5px;
}

.user-tab-button.user-tab-active {
    background: #1e064a;
}

.user-tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
}

.user-tab-content.active {
    display: block;
}

.user-popup-body {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    height: 100%;
    overflow-y: auto;

}

.user-scroll-container {
    /* Ajusta la altura disponible dentro del popup */
    /* Permite el scroll vertical */
    padding-right: 10px;
    /* Espacio para el scrollbar */
}

/* Sección Mi Información */
.user-avatar-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

/* Estilos del ícono de cámara */
.camera-icon {
    position: absolute;
    bottom: -28px;
    /* Ajusta este valor para centrar mejor el ícono debajo del avatar */
    background-color: white;
    border: 1px solid black;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.camera-icon img {
    width: 24px;
    height: 24px;
}

.user-info-section {
    margin-bottom: 20px;
}

.user-info-section h3 {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #5512cf;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.user-details .user-form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

.user-details .user-form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.user-details .user-input-field {
    width: 100%;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #ddd;
    font-size: 16px;
    background-color: transparent;
}

.input-field-list {
    @extend .input-field;
}

.input-field-list {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    background-color: transparent;
}


.user-info-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.user-btn-edit,
.user-btn-save,
.user-btn-cancel {
    background: #5512cf;
    /* Color de fondo del botón */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.user-tab-button:hover,
.user-btn-edit:hover,
.user-btn-save:hover,
.user-btn-cancel:hover {
    background: #ff6347;
}

.user-btn-edit {
    display: inline-block;
}

.user-btn-save,
.user-btn-cancel {
    display: none;
}

/* Sección Mis Compras */
.user-purchases-info {
    margin-bottom: 15px;
}

.user-purchases-list {
    min-height: 100%;
    max-height: 100%;
    /* Ajusta la altura disponible dentro del popup */
    overflow-y: auto;
    /* Permite el scroll vertical */
}

.user-purchase-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    /* Fondo blanco */
    margin-bottom: 15px;
}

/* Estilo para el scrollbar */
.user-popup-body::-webkit-scrollbar {
    width: 12px;
}

.user-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.user-popup-body::-webkit-scrollbar-thumb {
    background: #5512cf;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.user-popup-body::-webkit-scrollbar-thumb:hover {
    background: #ff6347;
}

/* Estilo para el scrollbar */
.user-purchases-list::-webkit-scrollbar {
    width: 12px;
}

.user-purchases-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.user-purchases-list::-webkit-scrollbar-thumb {
    background: #5512cf;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.user-purchases-list::-webkit-scrollbar-thumb:hover {
    background: #ff6347;
}

/* Spinner de carga */
.user-spinner {
    display: none;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #ffffff;
    width: 20px;
    height: 20px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.info-label-text {
    display: inline-block;
    margin-bottom: .5rem;
    font-weight: 700;
    color: #4e4e4e;
}

.char-counter {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: right;
}

/* Contenedor del spinner */

/* Estilo para el overlay de loading */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    /* Fondo blanco semi-transparente */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Estilo para el spinner de loading */
.loading-overlay::after {
    content: '';
    border: 5px solid #f3f3f3;
    border-top: 5px solid #5512cf;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Animación del spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Estilo general para la lista de compras */
.user-purchases-list-section {
    margin-bottom: 20px;
}

.user-purchases-list-section h3 {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #5512cf;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Estilo para cada ítem de compra */
.user-purchase-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

/* Estilo para los títulos de las secciones de cada ítem */
.user-purchase-item-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding-top: 11px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 0.5rem;
}

/* Estilo para el contenido de cada ítem */
.user-purchase-item-content {
    margin-bottom: 15px;
}

.user-purchase-item-content p {
    margin: 5px 0;
}

.user-purchase-item-text {
    margin: 5px 0;
}

.user-purchase-item-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-purchase-status {
    margin-left: auto;
    /* Asegura que el status se alinee a la derecha */
}

/* Estilo para el status con color según el estado */
.user-purchase-status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
}

.custom-strong {
    color: #575757;
    /* Cambia esto por el color que prefieras */
}

.user-purchase-status.completed {
    background-color: #059100;
    /* Verde para completado */
    pointer-events: none;
}

.user-purchase-status.pending {
    background-color: #ffaf1c;
    /* Amarillo para pendiente */
}

.user-purchase-status.procesing {
    background-color: #00b8ff;
    /* Amarillo para pendiente */
    pointer-events: none;
}

.user-purchase-status.canceled {
    background-color: #585858;
    /* Rojo para cancelado */
    pointer-events: none;
}

.user-purchase-status-link {
    color: inherit;
    /* Mantiene el color del span */
    text-decoration: none;
    justify-items: center;
    justify-content: center;
    align-items: center;
    align-content: center;
    /* Quita el subrayado del enlace */
}

.user-purchase-status-link:hover {
    text-decoration: none;
    /* Añade subrayado al pasar el mouse */
}

/* Overlay de carga */
.user-loading-overlay-ba {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Fondo semi-transparente */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    /* Asegúrate de que el overlay esté encima de todo */
}

/* Spinner de carga */
.user-loading-spinner-ba {
    border: 8px solid #f3f3f3;
    /* Color de fondo del spinner */
    border-top: 8px solid #5512cf;
    /* Color del spinner */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    /* Animación de rotación */
}

/* Animación de rotación */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Estilos para checkboxes */
.user-terms-section {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #5512cf;
    padding-bottom: 5px;
    margin-bottom: 15px;
    /*
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;*/
}

.user-form-group-checkbox {
    display: flex;
    align-items: flex-start;
    /* Alinea elementos en la parte superior */
    gap: 10px;
    /* Espacio entre checkbox y texto */
    margin-bottom: 15px;

}

.user-checkbox {
    flex-shrink: 0;
    /* Evita que se encoja */
    margin-top: 3px;
    /* Alineación vertical precisa */
}

.user-checkbox-label {
    flex-grow: 1;
    /* Ocupa todo el espacio restante */
    font-size: 14px;
    color: #444;
    cursor: pointer;
    line-height: 1.4;
    /* Mejor legibilidad */
}

.user-terms-error {
    color: #ff4444;
    font-size: 13px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #ff4444;
    border-radius: 4px;
    background: #fff3f3;
}

/* Badge VIP */
/* Badge VIP - Versión funcional */
.vip-badge {

    position: absolute;
    left: 0rem;
    top: 0%;
    background: linear-gradient(45deg, #3427df, #ba34f1, #fc45ff);
    color: #fff;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-style: italic;
}

.vip-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 25%,
            rgba(255, 241, 255, 0.4) 50%,
            transparent 75%);
    animation: vip-shine 5s linear infinite;
}

@keyframes vip-shine {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(150%);
    }
}

/* Media Queries */
@media (min-width: 100px) {}

@media (min-width: 320px) {

    /* Vertical Screen Phones */
    /* Estilos específicos para dispositivos con ancho mínimo de 320px */


}

@media (min-width: 375px) {

    /* iPhone 6 / 6S */
    /* Estilos específicos para dispositivos con ancho mínimo de 375px */

}

@media (min-width: 414px) {
    /* iPhone 7 / 7 Plus, iPhone 8 / 8 Plus, Nexus 6P */
    /* Estilos específicos para dispositivos con ancho mínimo de 414px */

}

@media (min-width: 480px) {

    /* Horizontal/Landscape Screen Phones */
    /* Estilos específicos para dispositivos con ancho mínimo de 480px */

}

@media (min-width: 600px) {

    /* Tablets and Vertical iPads */
    /* Estilos específicos para dispositivos con ancho mínimo de 600px */


}

@media (min-width: 700px) {}

@media (min-width: 768px) {

    /* iPad Mini */
    /* Estilos específicos para dispositivos con ancho mínimo de 768px */

}

@media (min-width: 800px) {

    /* Tablet, Horizontal/Landscape iPads, low-resolution Laptops */
    /* Estilos específicos para dispositivos con ancho mínimo de 801px */


}

@media (min-width: 1024px) {

    /* iPad Pro */
    /* Estilos específicos para dispositivos con ancho mínimo de 1024px */

}

@media (min-width: 1280px) {

    /* Pixel C, Samsung Galaxy Tab 10 */
    /* Estilos específicos para dispositivos con ancho mínimo de 1280px */

}

@media (min-width: 1300px) {
    /* Laptops and Desktops */
    /* Estilos específicos para dispositivos con ancho mínimo de 1281px */

}

.information-error-message {
    position: absolute;
    top: 7.3rem;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    padding: 5px 10px;
    border-radius: 4px;
    animation: fadeOut 4s forwards;
    z-index: 5;
    background: #3427df;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    /* Mantener visible hasta el 70% de la animación */
    100% {
        opacity: 0;
    }
}

/* Agregar al CSS */
#punto-retiro-container {
    transition: all 0.3s ease;
}

.punto-retiro-option {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.punto-retiro-option small {
    display: block;
    color: #666;
    font-size: 0.8em;
    margin-top: 3px;
}