/* Namespace: gr_mailing_ */
.gr_mailing_wrapper {
    max-width: 500px;
    margin: 20px auto;
    position: relative;
    z-index: 99;
    opacity: 0;
    animation: gr_entrada_izq 0.6s ease-out forwards;
    height: 0;
    top: 0;
}

.gr_mailing_form {
    padding: 60px;
    border-radius: 55px;
    display: block !important;
    top: -747px;
    position: relative;
    right: 18rem;
    height: 720px;
}

.gr_mailing_form_variable {
    padding: 60px;
    border-radius: 55px;
    display: block !important;
    top: -817px;
    position: relative;
    right: 137%;
    height: 720px;
}

.gr_mailing_group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.gr_mailing_label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333 !important;
    font-size: 14px;
}

/*override de form*/
.gr_mailing_input,
.gr_mailing_select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #50637d !important;
    border-radius: 6px;
    font-size: 1rem;
    background-color: transparent;
    color: #fff;
    margin-top: 20px !important;
}

.gr_mailing_input:focus,
.gr_mailing_select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.gr_mailing_button {
    width: 100%;
    background-color: #c8ff66;
    color: #1f2937 !important;
    padding: 18px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s ease, background 0.3s ease;
    border-radius: 50px;
    height: 50px;
    margin-top: 20px;
}

.gr_mailing_button:hover {
    transform: translateY(-1px);
    color: #fff;
}

.gr_mailing_button:active {
    transform: translateY(0);
}

.gr_mailing_alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.gr_mailing_alert_success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.gr_mailing_alert_danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/*modal*/
.gr_modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}

.gr_modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gr_modal-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: rgb(33 40 48);
    color: #fff;
    padding: 30px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

.gr_modal:target {
    pointer-events: auto;
}

.gr_modal:target .gr_modal-overlay {
    opacity: 1;
}

.gr_modal:target .gr_modal-content {
    transform: translateX(0);
}


@keyframes gr_entrada_izq {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/*animacion*/
.gr_hint-wrapper {
    position: relative;
}

/* Popup */
.gr_hint {
    position: absolute;
    top: 62%;
    right: -1px;
    transform: translateY(100%) translateX(-20%);
    background: #212830;
    color: #d0ff71;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

/* Al hacer focus en el input */
.gr_hint-wrapper:focus-within .gr_hint {
    animation: gr_hint_anim 2.8s ease forwards;
}

@keyframes gr_hint_anim {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(200%);
    }

    20% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    70% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-200%);
    }
}


/* alert */
.gr_alert-container {
    position: fixed;
    top: 50px;
    /* Margen superior de 50px */
    right: 20px;
    /* Margen desde la derecha */
    z-index: 10000;
    width: 90%;
    max-width: 400px;
}

.gr_alert {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: white;
    /* Animación de entrada: De derecha a izquierda */
    animation: slideInRight 0.5s ease-out forwards;
    transition: all 0.6s ease;
    opacity: 1;
}

/* Animación de salida (Fade out hacia la derecha) */
.gr_alert.gr_fade-out {
    opacity: 0;
    transform: translateX(100%);
    /* Se va hacia la derecha */
    pointer-events: none;
}

/* Entrada desde la derecha */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estilos del botón X */
.gr_alert-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    padding-left: 15px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.gr_alert-close:hover {
    opacity: 1;
}

/* Colores */
.gr_alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 6px solid #28a745;
}

.gr_alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 6px solid #dc3545;
}

/* Esta clase la activaremos con JS */
.gr_fade-out {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    pointer-events: none;
}

.gr_alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 6px solid #28a745;
}

.gr_alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 6px solid #dc3545;
}

.gr_alert p {
    margin: 0;
    flex-grow: 1;
    font-weight: 500;
}

.gr_alert-icon {
    margin-right: 12px;
    font-weight: bold;
    font-size: 1.2rem;
}

.gr_alert-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    padding-left: 10px;
    opacity: 0.6;
}

.gr_alert-close:hover {
    opacity: 1;
}

/*copiar*/
#copyMessage {
    display: none;
    color: green;
    margin-left: 10px;
    font-weight: bold;
}

button {
    cursor: pointer;
}

/*perfil*/
.profile-container {
    flex-shrink: 0;
    margin-left: -50px;
    margin-top: 16px;
}

.profile-img-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 8px solid #212830;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*media*/
@media only screen and (max-width: 768px) {

    .gr_mailing_form,
    .gr_mailing_form_variable {
        padding: 18px;
        border-radius: 44px;
        display: block !important;
        position: unset;
        height: 720px;
        margin: 16px auto;
    }

}