/**
 * RKR Social Login — front.
 *
 * La forma la marcan Zalando y Decathlon, que es el patrón que el visitante ya
 * conoce: botón a todo el ancho, alto generoso, fondo blanco con borde, icono
 * pegado a la izquierda y el texto centrado en el botón ENTERO. Centrar el
 * texto respecto al botón y no al lado del icono es lo que hace que varios
 * proveedores apilados queden alineados aunque «Google», «Apple» y «Facebook»
 * midan distinto.
 *
 * No se le pone el verde de Rekire a propósito: un botón de «entrar con
 * Google» que no parece de Google se pulsa menos, y las indicaciones de marca
 * de Google piden fondo blanco o negro.
 *
 * @author    Rekire
 * @copyright Rekire
 * @license   Propietario. Ver LICENSE.md
 */
.rkrsl-buttons {
    margin: 1rem 0;
}

.rkrsl-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: .75rem 3rem;
    border: 1px solid #c7c7c7;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.rkrsl-btn + .rkrsl-btn {
    margin-top: .75rem;
}

/* El botón de la llave de acceso es un <button>: mismo aspecto que los
   enlaces. Y oculto de verdad mientras el JavaScript no diga lo contrario:
   sin esto, display:flex gana al atributo hidden. */
button.rkrsl-btn {
    font-family: inherit;
    cursor: pointer;
}

.rkrsl-btn[hidden] {
    display: none;
}

.rkrsl-btn:hover,
.rkrsl-btn:focus {
    border-color: #1a1a1a;
    background: #f5f5f5;
    color: #1a1a1a;
    text-decoration: none;
}

.rkrsl-btn:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Pegado a la izquierda para que el texto pueda ir centrado en el botón. */
.rkrsl-btn-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    display: inline-flex;
    transform: translateY(-50%);
}

.rkrsl-btn-icon img {
    display: block;
}

.rkrsl-legal {
    margin: .75rem 0 0;
    color: #6a6a6a;
    font-size: .75rem;
    line-height: 1.5;
}

.rkrsl-legal a {
    color: #6a6a6a;
    text-decoration: underline;
}

.rkrsl-sep {
    position: relative;
    margin: 1.25rem 0;
    text-align: center;
}

.rkrsl-sep::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #e5e5e5;
}

.rkrsl-sep span {
    position: relative;
    padding: 0 .75rem;
    background: #fff;
    color: #878787;
    font-size: .8125rem;
    text-transform: uppercase;
}

/* Paso intermedio: confirmar el alta o escribir la contraseña. */
.rkrsl-step {
    max-width: 30rem;
}

.rkrsl-identity {
    display: flex;
    align-items: center;
    gap: .875rem;
    margin-bottom: 1.25rem;
    padding: .875rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.rkrsl-avatar {
    border-radius: 50%;
}

.rkrsl-identity-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rkrsl-identity-text span {
    color: #7a7a7a;
    overflow-wrap: anywhere;
}

.rkrsl-check label {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-weight: 400;
}

.rkrsl-help {
    margin-top: 1rem;
    font-size: .875rem;
}

/**
 * Pantalla de «cuentas vinculadas», copiada de Decathlon: los dos avatares
 * unidos por una línea con un visto en medio. Es un dibujo, no una decoración:
 * dice en un vistazo que las dos cuentas son ya la misma, que es justo lo que
 * el visitante necesita entender.
 */
.rkrsl-linked {
    max-width: 32rem;
    margin: 0 auto;
    padding: 1rem 0 2rem;
    text-align: center;
}

.rkrsl-linked h1 {
    margin-bottom: .75rem;
    font-size: 1.5rem;
}

.rkrsl-linked p {
    margin-bottom: 0;
    color: #4a4a4a;
}

.rkrsl-linked-email {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.rkrsl-join {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.rkrsl-join-node {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
}

.rkrsl-join-node img {
    display: block;
}

.rkrsl-join-initial {
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.rkrsl-join-line {
    position: relative;
    flex: 0 1 5rem;
    height: 2px;
    background: #77a632;
}

/* El visto va sobre la línea, en el punto de unión. */
.rkrsl-join-check {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #77a632;
    transform: translate(-50%, -50%);
}

.rkrsl-join-check svg {
    display: block;
}

.rkrsl-linked-actions {
    margin-top: 2rem;
}

.rkrsl-linked-actions .btn {
    min-width: 14rem;
}

/* Cuentas vinculadas. */
.rkrsl-unlink {
    display: inline;
}

.rkrsl-links-table td {
    vertical-align: middle;
}

/* En el móvil la tabla de cuatro columnas no cabe: «Último acceso» y el botón
   de quitar se salían por la derecha. Cada fila pasa a ser una tarjeta y las
   fechas llevan delante su rótulo, que en escritorio da la cabecera. */
@media (max-width: 575.98px) {
    .rkrsl-links-table thead {
        display: none;
    }

    .rkrsl-links-table,
    .rkrsl-links-table tbody {
        display: block;
        width: 100%;
    }

    .rkrsl-links-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: .5rem 0;
    }

    .rkrsl-links-table td {
        display: block;
        flex: 1 1 auto;
        padding: .125rem .75rem;
        border: 0;
    }

    .rkrsl-links-table td:first-child,
    .rkrsl-links-table td:last-child {
        flex-basis: 100%;
    }

    .rkrsl-links-table td[data-label]::before {
        content: attr(data-label) " ";
        color: #7a7a7a;
    }

    .rkrsl-links-table .rkrsl-unlink .btn {
        padding-left: 0;
    }
}

.rkrsl-add {
    max-width: 26rem;
    margin-top: 1.5rem;
}

.rkrsl-links-icon {
    margin-right: .375rem;
    vertical-align: -4px;
}

/* Aviso del One Tap cuando algo va mal. */
.rkrsl-onetap-notice {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 2147483000;
    max-width: 22rem;
    padding: .75rem 1rem;
    border-radius: 8px;
    background: #232323;
    color: #fff;
    font-size: .875rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

/* Código por SMS o WhatsApp. */
.rkrsl-phone-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.rkrsl-phone-country {
    flex: 1 1 12rem;
}

.rkrsl-phone-number {
    flex: 2 1 12rem;
}

.rkrsl-code {
    max-width: 12rem;
    font-size: 1.5rem;
    letter-spacing: .25em;
}

/* Formas de acceso. */
.rkrsl-methods h2 {
    margin: 1.75rem 0 .75rem;
    font-size: 1.125rem;
}

.rkrsl-methods h2:first-child {
    margin-top: 0;
}

.rkrsl-method-photo {
    width: 32px;
    height: 32px;
    margin-right: .5rem;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}
