/* Reordenar: Nombre y Apellido primero, luego Email y Contraseña */
#signup-form .layout-wrap {
    display: flex;
    flex-direction: column;
}
#signup-form #profile-details-section {
    order: -1;
}

/* Campo de teléfono con código de país */
.rcicp-phone-field {
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    /* borde como box-shadow inset: no suma alto, así el grupo queda exactamente
       igual de alto que los demás campos (el border real sumaba 2px). */
    box-shadow: inset 0 0 0 1px #d9dde3;
    transition: box-shadow .15s ease;
}
.rcicp-phone-field:focus-within {
    box-shadow: inset 0 0 0 1px #c0392b, 0 0 0 3px rgba(192, 57, 43, .12);
}
.rcicp-phone-code-select {
    border: none !important;
    border-right: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    /* sin altura fija: el flex (align-items:stretch) lo estira al alto del
       input de teléfono, que conserva la altura natural del tema = igual que
       los demás campos. Evita que el grupo quede más alto. */
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 34px 0 14px !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: #1f2937;
    width: auto !important;
    min-width: 96px;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%239ca3af' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
}
.rcicp-phone-code-select:hover { background: #fafbfc !important; }
.rcicp-phone-code-select:focus { box-shadow: none !important; outline: none !important; }
.rcicp-phone-field input[type="tel"] {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    flex: 1;
    margin: 0 !important;
    font-size: 15px;
    min-width: 0;
    background: transparent !important;
    color: #1f2937;
}
.rcicp-phone-field input[type="tel"]:focus {
    border: none !important;
    box-shadow: none !important;
}

.field_rcicp_billing_country,
.field_rcicp_billing_phone {
    margin-bottom: 15px;
}
.field_rcicp_billing_country legend,
.field_rcicp_billing_phone legend {
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Banner perfil incompleto */
#rcicp-profile-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 99999;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}
#rcicp-profile-banner a.rcicp-banner-cta {
    background: #ffc107;
    color: #1a1a2e;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
#rcicp-profile-banner button.rcicp-banner-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

/* Aviso dashboard de Mi Cuenta */
.rcicp-incomplete-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.rcicp-incomplete-notice .rcicp-icon {
    font-size: 24px;
}


/* Boton de carga al enviar el registro (reemplaza visualmente al submit) */
.rcicp-loading-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 41px;
    border-radius: 100px;
    background: rgb(190, 19, 50);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    user-select: none;
}
.rcicp-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rcicpSpin .7s linear infinite;
}
@keyframes rcicpSpin { to { transform: rotate(360deg); } }


/* Campo unico "Nombre Completo": ocultar el campo "Apellido" (xprofile field id=2)
   en el registro. BP ya no lo exige (is_required=0). El nombre completo va al
   campo "Nombre" (xprofile id=1), renombrado a "Nombre Completo". */
.editfield.field_2 { display: none !important; }
