/* Erratas en el dominio del email (KGA-382-32128). Neutro respecto al tema: se usa en el registro,
   en editar cuenta (tema de la cuenta) y en el checkout de una página. */

/* Contenedor flex del campo (registro: .col.a12.aflex.row.ax): el aviso baja a su propia línea.
   El tema reparte el ancho con .ax.row.aflex>*{flex:1 1 0}, más específico que .kdv-email-typo;
   de ahí la especificidad y los !important. */
.kdv-email-typo-host {
    flex-wrap: wrap !important;
}

.kdv-email-typo-host > .kdv-email-typo {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 99;
}

.kdv-email-typo {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 6px 0 8px;
    padding: 8px 11px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.kdv-email-typo--typo {
    background: #fdecea;
    border: 1px solid #f3b4ad;
    color: #8a1c12;
}

.kdv-email-typo--suggest {
    background: #fff8e1;
    border: 1px solid #f1d27c;
    color: #5b4300;
}

.kdv-email-typo__msg {
    margin-right: 6px;
}

.kdv-email-typo__hint {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    opacity: .85;
}

/* Botones con aspecto de enlace: el tema da estilo a <button> y no debe notarse aquí */
.kdv-email-typo .kdv-email-typo__fix,
.kdv-email-typo .kdv-email-typo__ignore {
    all: unset;
    display: inline;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    /* El email solo se parte si no cabe entero; con break-all caía a renglón propio y dejaba
       colgando el signo de interrogación (login de la cabecera, que es estrecho). */
    overflow-wrap: anywhere;
}

.kdv-email-typo .kdv-email-typo__fix {
    font-weight: 700;
    color: inherit;
}

.kdv-email-typo .kdv-email-typo__fix:hover,
.kdv-email-typo .kdv-email-typo__ignore:hover {
    text-decoration: none;
}

.kdv-email-typo .kdv-email-typo__fix:focus-visible,
.kdv-email-typo .kdv-email-typo__ignore:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.kdv-email-typo .kdv-email-typo__ignore {
    margin-left: 4px;
    color: #6b6b6b;
    white-space: nowrap;
}

.kdv-email-typo .kdv-email-typo__ignore::before {
    content: '·';
    margin-right: 6px;
    color: #c9c9c9;
    display: inline-block;
    text-decoration: none;
}

input.kdv-email-typo-input--typo {
    border-color: #d9534f !important;
    box-shadow: 0 0 0 1px #d9534f inset;
}

/* Sexo del alta del checkout (#form-login): el tema esconde el radio nativo porque su patrón es
   «input oculto + <label><span></span>», y ahí los <label> envuelven al input y no llevan <span>:
   el campo se quedaba sin nada visible que marcar. Se restaura el radio nativo.
   Vive en este fichero, y no en el CSS del checkout, porque este se versiona por fecha y llega
   siempre fresco; aquel se cachea con VERSION_ASSETS y el cliente seguiría viéndolo mal. */
#form-login p.gender label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 18px;
    cursor: pointer;
}

#form-login p.gender input[type="radio"] {
    display: inline-block !important;
    appearance: radio;
    -webkit-appearance: radio;
    width: 15px;
    height: 15px;
    min-width: 15px;
    margin: 0;
    padding: 0;
    position: static;
    opacity: 1;
}

/* «Tin tin» al intentar continuar sin corregir el email */
@keyframes kdv-email-typo-shake {
    0%, 100% { transform: translateX(0); }
    15%, 55% { transform: translateX(-7px); }
    35%, 75% { transform: translateX(7px); }
}

@keyframes kdv-email-typo-flash {
    0%, 100% { box-shadow: 0 0 0 1px #d9534f inset; }
    50% { box-shadow: 0 0 0 3px #d9534f inset; }
}

.kdv-email-typo-shake {
    animation: kdv-email-typo-shake .5s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .kdv-email-typo-shake {
        animation: kdv-email-typo-flash .6s ease-in-out 2;
    }
}
