/* =============================================
   Elite Atleta — RCP Premium Form Styles
   mu-plugin companion CSS
   ============================================= */

/* ===== OCULTAR TÍTULOS DE PÁGINAS RCP ===== */
.page-id-6154 h1.entry-title,
.page-id-6156 h1.entry-title,
.page-id-6157 h1.entry-title,
.page-id-6158 h1.entry-title,
.page-id-8825 h1.entry-title {
    display: none !important;
}

/* ===== BOTÓN VOLVER AL PANEL ===== */
.ea-rcp-back-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    color: #00459C !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-bottom: 1.5rem !important;
    padding: 0.5rem 0 !important;
    transition: color 0.2s ease !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ea-rcp-back-link:hover {
    color: #ff6b35 !important;
}

.ea-rcp-back-link svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

/* Reset del formulario RCP */
#rcp_registration_form {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.rcp_header {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
}

/* ===== SUBSCRIPTION LEVEL SELECTOR (cards) ===== */

#rcp_subscription_levels {
    list-style: none !important;
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.625rem !important;
}

#rcp_subscription_levels li.rcp_subscription_level {
    position: relative !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    list-style: none !important;
}

#rcp_subscription_levels li.rcp_subscription_level:hover {
    border-color: #00459C !important;
    box-shadow: 0 2px 8px rgba(0, 69, 156, 0.08) !important;
}

/* Estado seleccionado */
#rcp_subscription_levels li.rcp_subscription_level:has(input:checked) {
    border-color: #00459C !important;
    background: rgba(0, 69, 156, 0.03) !important;
    box-shadow: 0 0 0 3px rgba(0, 69, 156, 0.1) !important;
}

/* Radio button oculto */
#rcp_subscription_levels input[type="radio"].rcp_level {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Label como card completa */
#rcp_subscription_levels li.rcp_subscription_level label {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding: 1rem 1.25rem !important;
    cursor: pointer !important;
    margin: 0 !important;
    width: 100% !important;
    gap: 0 !important;
}

/* Ocultar separadores feos " - " */
#rcp_subscription_levels .rcp_separator {
    display: none !important;
}

/* Nombre del plan */
#rcp_subscription_levels .rcp_subscription_level_name {
    display: block !important;
    width: 100% !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 0.25rem !important;
    order: 1 !important;
}

/* Precio */
#rcp_subscription_levels .rcp_price {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #ff6b35 !important;
    order: 2 !important;
    margin-right: 0.5rem !important;
}

/* Duración */
#rcp_subscription_levels .rcp_level_duration {
    font-size: 0.8125rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    order: 3 !important;
}

/* Descripción */
#rcp_subscription_levels .rcp_level_description {
    display: block !important;
    width: 100% !important;
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
    color: #94a3b8 !important;
    margin-top: 0.375rem !important;
    padding: 0 !important;
    border: none !important;
    order: 4 !important;
}

/* Indicador de selección con pseudo-elemento */
#rcp_subscription_levels li.rcp_subscription_level::before {
    content: '' !important;
    position: absolute !important;
    top: 1.125rem !important;
    right: 1.125rem !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 2px solid #cbd5e1 !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}

#rcp_subscription_levels li.rcp_subscription_level:has(input:checked)::before {
    border-color: #00459C !important;
    background: #00459C !important;
    box-shadow: inset 0 0 0 3px #ffffff !important;
}

/* Descripción del nivel */
#rcp_registration_form .rcp_description {
    text-align: center;
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Link de login */
#rcp_registration_form .rcp_login_link {
    text-align: center;
    margin-bottom: 1.5rem;
}

#rcp_registration_form .rcp_login_link a {
    color: #00459C;
    font-weight: 600;
    text-decoration: none;
}

#rcp_registration_form .rcp_login_link a:hover {
    color: #ff6b35;
    text-decoration: underline;
}

/* Fieldset */
#rcp_registration_form fieldset {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Labels */
#rcp_registration_form label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 0.375rem !important;
    letter-spacing: 0.01em;
}

/* Inputs */
#rcp_registration_form input[type="text"],
#rcp_registration_form input[type="email"],
#rcp_registration_form input[type="password"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.75rem 1rem !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    color: #333 !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    margin: 0 !important;
}

#rcp_registration_form input[type="text"]:focus,
#rcp_registration_form input[type="email"]:focus,
#rcp_registration_form input[type="password"]:focus {
    outline: none !important;
    border-color: #00459C !important;
    box-shadow: 0 0 0 3px rgba(0, 69, 156, 0.1) !important;
}

#rcp_registration_form input::placeholder {
    color: #94a3b8;
}

/* Fieldset como grid para alinear correctamente los pares de campos */
#rcp_registration_form .rcp_user_fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
}

/* Campos que ocupan toda la fila (no inline) */
#rcp_registration_form .rcp_user_fieldset p:not(.inline):not(.inline-block) {
    grid-column: 1 / -1;
}

/* Spacing entre campos */
#rcp_registration_form .rcp_user_fieldset p {
    margin: 0 0 1rem !important;
    min-height: auto !important;
    width: 100% !important;
}

/* Campos inline (nombre/apellido, password/confirm): una columna cada uno */
#rcp_registration_form .rcp_user_fieldset p.inline,
#rcp_registration_form .rcp_user_fieldset p.inline-block {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Password requirements */
#rcp_user_pass_requirements {
    font-size: 0.8125rem !important;
    color: #94a3b8 !important;
    margin-top: 0.25rem;
}

/* Stripe card element */
#rcp_registration_form #rcp_card_wrap,
#rcp_registration_form #rcp_card_name_wrap {
    margin-bottom: 1rem !important;
}

#rcp_registration_form .StripeElement,
#rcp_registration_form #rcp_card_element {
    padding: 0.75rem 1rem !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
}

#rcp_registration_form .StripeElement--focus {
    border-color: #00459C !important;
    box-shadow: 0 0 0 3px rgba(0, 69, 156, 0.1) !important;
}

#rcp_registration_form .StripeElement--invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* ===== MEMBERSHIP DETAILS / RESUMEN ===== */

/* Contenedor principal */
#rcp_registration_form .rcp_registration_total {
    background: #f8f9fa !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 0 !important;
    margin: 1.5rem 0 !important;
    font-size: 0.9375rem !important;
    overflow: hidden !important;
}

/* Tabla interna: reset total */
#rcp_registration_form .rcp_registration_total_details {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

/* Header "Membership Details" → Texto en español via CSS */
#rcp_registration_form .rcp_registration_total_details thead.membership-amount {
    display: block !important;
}

#rcp_registration_form .rcp_registration_total_details thead.membership-amount tr {
    display: block !important;
    background: linear-gradient(135deg, #00459C 0%, #003d85 100%) !important;
    padding: 0.875rem 1.25rem !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

#rcp_registration_form .rcp_registration_total_details thead.membership-amount th {
    font-size: 0 !important;
    color: transparent !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

#rcp_registration_form .rcp_registration_total_details thead.membership-amount th::after {
    content: "Resumen de tu plan" !important;
    font-size: 0.8125rem !important;
    color: #ffffff !important;
    letter-spacing: 0.06em !important;
}

/* Body rows */
#rcp_registration_form .rcp_registration_total_details tbody {
    display: block !important;
}

#rcp_registration_form .rcp_registration_total_details tbody tr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1.25rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

#rcp_registration_form .rcp_registration_total_details tbody tr:last-child {
    border-bottom: none !important;
}

#rcp_registration_form .rcp_registration_total_details tbody td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    vertical-align: middle !important;
}

#rcp_registration_form .rcp_registration_total_details tbody td:first-child {
    color: #666 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

#rcp_registration_form .rcp_registration_total_details tbody td:last-child {
    color: #333 !important;
    font-weight: 600 !important;
    text-align: right !important;
}

/* Discounts & Fees header */
#rcp_registration_form .rcp_registration_total_details .discounts-fees th {
    color: #666 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Footer: Total Today */
#rcp_registration_form .rcp_registration_total_details tfoot {
    display: block !important;
    border-top: 2px solid #e2e8f0 !important;
    background: #ffffff !important;
}

#rcp_registration_form .rcp_registration_total_details tfoot tr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.875rem 1.25rem !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

#rcp_registration_form .rcp_registration_total_details tfoot tr.rcp-total td:first-child {
    color: #333 !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
}

#rcp_registration_form .rcp_registration_total_details tfoot tr.rcp-total td:last-child {
    color: #ff6b35 !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
}

#rcp_registration_form .rcp_registration_total_details tfoot td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Recurring total */
#rcp_registration_form .rcp_registration_total_details tfoot tr.rcp-recurring-total td:first-child {
    color: #666 !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
}

#rcp_registration_form .rcp_registration_total_details tfoot tr.rcp-recurring-total td:last-child {
    color: #333 !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
}

/* "Por favor, espera..." overlay */
#rcp_registration_form .blockUI.blockOverlay {
    background: rgba(248, 249, 250, 0.8) !important;
    opacity: 1 !important;
}

#rcp_registration_form .blockUI.blockMsg {
    background: #00459C !important;
    border-radius: 0.5rem !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    border: none !important;
    opacity: 1 !important;
}

/* Checkbox de términos */
#rcp_registration_form input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #ff6b35 !important;
    cursor: pointer;
    margin-top: 3px !important;
    float: left !important;
}

/* Botón submit */
#rcp_registration_form #rcp_submit {
    width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%) !important;
    border: none !important;
    border-radius: 0.5rem !important;
    color: #ffffff !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.02em !important;
    margin-top: 0.5rem !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25) !important;
}

#rcp_registration_form #rcp_submit:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #d14a1e 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35) !important;
}

#rcp_registration_form #rcp_submit:active {
    transform: translateY(0) !important;
}

/* Mensajes de error */
#rcp_registration_form p.rcp_error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-left: 3px solid #ef4444 !important;
    border-radius: 0.5rem !important;
    color: #991b1b !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
}

/* Mensajes de éxito */
#rcp_registration_form p.rcp_success {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-left: 3px solid #10b981 !important;
    border-radius: 0.5rem !important;
    color: #166534 !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
}

/* Sandbox test cards info */
#rcp-sandbox-gateway-test-cards {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.8125rem !important;
    color: #1e40af !important;
}

/* Discount field */
#rcp_registration_form #rcp_discount_code_wrap {
    margin: 1rem 0 !important;
}

#rcp_registration_form #rcp_discount_code {
    width: 100% !important;
    max-width: 100% !important;
}

/* Responsive */
@media (max-width: 520px) {
    #rcp_registration_form .rcp_user_fieldset {
        grid-template-columns: 1fr;
    }

    #rcp_registration_form .rcp_user_fieldset p.inline,
    #rcp_registration_form .rcp_user_fieldset p.inline-block {
        grid-column: 1 / -1;
    }

    #rcp_subscription_levels li.rcp_subscription_level label {
        padding: 0.875rem 1rem !important;
    }

    #rcp_subscription_levels li.rcp_subscription_level::before {
        top: 1rem !important;
        right: 0.875rem !important;
    }
}

/* =============================================
   PANEL DE USUARIO (/apuntate/panel/)
   Profile Editor + Account Overview +
   Payment History + Update Card
   ============================================= */

/* ===== TIPOGRAFÍA BASE PANEL ===== */
#rcp-table-wrapper,
#rcp_profile_editor_form,
#rcp_update_card_form {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== PROFILE EDITOR ===== */

#rcp_profile_editor_form {
    max-width: 560px;
    margin: 0 auto;
}

#rcp_profile_editor_form fieldset {
    border: none !important;
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
}

#rcp_profile_editor_form legend {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    padding: 0 0 0.75rem !important;
    margin: 0 0 1rem !important;
    border-bottom: 2px solid #e2e8f0 !important;
    width: 100% !important;
    display: block !important;
}

#rcp_profile_editor_form label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #555 !important;
    margin-bottom: 0.375rem !important;
}

#rcp_profile_editor_form input[type="text"],
#rcp_profile_editor_form input[type="email"],
#rcp_profile_editor_form input[type="password"],
#rcp_profile_editor_form select {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.75rem 1rem !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    color: #333 !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Flecha personalizada para select */
#rcp_profile_editor_form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 2.5rem !important;
    cursor: pointer !important;
}

#rcp_profile_editor_form input[type="text"]:focus,
#rcp_profile_editor_form input[type="email"]:focus,
#rcp_profile_editor_form input[type="password"]:focus,
#rcp_profile_editor_form select:focus {
    outline: none !important;
    border-color: #00459C !important;
    box-shadow: 0 0 0 3px rgba(0, 69, 156, 0.1) !important;
}

#rcp_profile_editor_form p {
    margin: 0 0 1rem !important;
}

/* Botón guardar cambios */
#rcp_profile_editor_submit {
    width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    background: linear-gradient(135deg, #00459C 0%, #003d85 100%) !important;
    border: none !important;
    border-radius: 0.5rem !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 2px 8px rgba(0, 69, 156, 0.2) !important;
}

#rcp_profile_editor_submit:hover {
    background: linear-gradient(135deg, #003d85 0%, #002d6b 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(0, 69, 156, 0.3) !important;
}

#rcp_profile_editor_submit:active {
    transform: translateY(0) !important;
}

/* ===== ACCOUNT OVERVIEW & PAYMENT HISTORY TABLES ===== */

#rcp-table-wrapper {
    max-width: 100%;
}

#rcp-table-wrapper h3 {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 1.5rem 0 0.75rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #00459C !important;
}

#rcp-table-wrapper h3:first-child {
    margin-top: 0 !important;
}

/* Tablas */
#rcp-table-wrapper table.rcp-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    margin-bottom: 2rem !important;
    font-size: 0.875rem !important;
}

/* Header de tabla */
#rcp-table-wrapper table.rcp-table thead tr {
    background: linear-gradient(135deg, #00459C 0%, #003d85 100%) !important;
}

#rcp-table-wrapper table.rcp-table thead th {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 0.75rem 1rem !important;
    border: none !important;
    text-align: left !important;
    white-space: nowrap !important;
}

/* Filas */
#rcp-table-wrapper table.rcp-table tbody tr {
    transition: background 0.15s ease !important;
}

#rcp-table-wrapper table.rcp-table tbody tr:nth-child(even) {
    background: #f8f9fa !important;
}

#rcp-table-wrapper table.rcp-table tbody tr:hover {
    background: rgba(0, 69, 156, 0.04) !important;
}

/* Celdas */
#rcp-table-wrapper table.rcp-table tbody td {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #333 !important;
    vertical-align: middle !important;
}

#rcp-table-wrapper table.rcp-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Status badges */
#rcp-table-wrapper .rcp_status {
    display: inline-block !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    letter-spacing: 0.02em !important;
}

#rcp-table-wrapper .rcp-status--active {
    background: #dcfce7 !important;
    color: #166534 !important;
}

#rcp-table-wrapper .rcp-status--expired {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

#rcp-table-wrapper .rcp-status--pending {
    background: #fff7ed !important;
    color: #9a3412 !important;
}

#rcp-table-wrapper .rcp-status--cancelled {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

/* Auto-renew notice */
#rcp-table-wrapper .rcp-membership-auto-renew-notice {
    font-size: 0.75rem !important;
    color: #10b981 !important;
    font-style: italic !important;
    margin-top: 0.25rem !important;
}

/* Botones de acción en las tablas */
#rcp-table-wrapper table.rcp-table button,
#rcp-table-wrapper table.rcp-table .rcp-button {
    display: inline-block !important;
    padding: 0.4rem 0.875rem !important;
    background: #00459C !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.375rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

#rcp-table-wrapper table.rcp-table button:hover,
#rcp-table-wrapper table.rcp-table .rcp-button:hover {
    background: #003d85 !important;
    transform: translateY(-1px) !important;
}

/* Botón cancelar → rojo */
#rcp-table-wrapper .rcp_sub_details_cancel button {
    background: #ef4444 !important;
}

#rcp-table-wrapper .rcp_sub_details_cancel button:hover {
    background: #dc2626 !important;
}

/* Link de acción "View Receipt" y similares */
#rcp-table-wrapper table.rcp-table td a {
    color: #00459C !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

#rcp-table-wrapper table.rcp-table td a:hover {
    color: #ff6b35 !important;
}

/* Toggle auto-renew */
#rcp-table-wrapper .rcp-auto-renew-toggle {
    margin-top: 0.375rem !important;
}

#rcp-table-wrapper .rcp-auto-renew-toggle a {
    font-size: 0.75rem !important;
}

/* ===== UPDATE CARD FORM ===== */

#rcp_update_card_form {
    max-width: 560px;
    margin: 0 auto;
}

#rcp_update_card_form h3 {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

/* Lista de tarjetas guardadas */
#rcp_update_card_form .rcp-gateway-saved-payment-methods {
    list-style: none !important;
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

#rcp_update_card_form .rcp-gateway-saved-payment-methods li {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    list-style: none !important;
}

#rcp_update_card_form .rcp-gateway-saved-payment-methods li:hover {
    border-color: #00459C !important;
    box-shadow: 0 2px 8px rgba(0, 69, 156, 0.08) !important;
}

#rcp_update_card_form .rcp-gateway-saved-payment-methods li:has(input:checked) {
    border-color: #00459C !important;
    background: rgba(0, 69, 156, 0.03) !important;
    box-shadow: 0 0 0 3px rgba(0, 69, 156, 0.1) !important;
}

#rcp_update_card_form .rcp-gateway-saved-payment-methods label {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.375rem !important;
    padding: 1rem 1.25rem !important;
    cursor: pointer !important;
    font-size: 0.9375rem !important;
    color: #333 !important;
}

#rcp_update_card_form .rcp-gateway-saved-payment-methods input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #00459C !important;
    margin-right: 0.5rem !important;
    cursor: pointer !important;
}

#rcp_update_card_form .rcp-gateway-saved-card-brand {
    font-weight: 700 !important;
    color: #333 !important;
}

#rcp_update_card_form .rcp-gateway-saved-card-ending-label,
#rcp_update_card_form .rcp-gateway-saved-card-expires-label {
    color: #94a3b8 !important;
    font-size: 0.8125rem !important;
}

#rcp_update_card_form .rcp-gateway-saved-card-last-4 {
    font-weight: 600 !important;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace !important;
}

#rcp_update_card_form .rcp-gateway-saved-card-expiration {
    font-size: 0.8125rem !important;
    color: #666 !important;
}

#rcp_update_card_form .rcp-gateway-saved-card-current {
    display: inline-block !important;
    background: #dcfce7 !important;
    color: #166534 !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    padding: 0.125rem 0.5rem !important;
    border-radius: 9999px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

#rcp_update_card_form .rcp-gateway-saved-payment-method-sep {
    color: #cbd5e1 !important;
}

/* "Add New Card" item */
#rcp_update_card_form .rcp-gateway-add-payment-method-wrap {
    border-style: dashed !important;
}

/* Stripe element in update card form */
#rcp_update_card_form .StripeElement,
#rcp_update_card_form #rcp_card_element {
    padding: 0.75rem 1rem !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
}

#rcp_update_card_form .StripeElement--focus {
    border-color: #00459C !important;
    box-shadow: 0 0 0 3px rgba(0, 69, 156, 0.1) !important;
}

#rcp_update_card_form label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #555 !important;
    margin-bottom: 0.375rem !important;
}

#rcp_update_card_form input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.75rem 1rem !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    color: #333 !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

#rcp_update_card_form input[type="text"]:focus {
    outline: none !important;
    border-color: #00459C !important;
    box-shadow: 0 0 0 3px rgba(0, 69, 156, 0.1) !important;
}

/* Botón submit update card */
#rcp_update_card_form #rcp_submit {
    width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%) !important;
    border: none !important;
    border-radius: 0.5rem !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.02em !important;
    margin-top: 0.5rem !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25) !important;
}

#rcp_update_card_form #rcp_submit:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #d14a1e 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35) !important;
}

#rcp_update_card_form #rcp_submit:active {
    transform: translateY(0) !important;
}

/* Menú de navegación entre membresías (update card) */
#rcp_update_card_form .rcp-update-payment-method-membership-menu {
    background: #f8f9fa !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.875rem !important;
    color: #666 !important;
}

#rcp_update_card_form .rcp-update-payment-method-membership-menu a {
    color: #00459C !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

#rcp_update_card_form .rcp-update-payment-method-membership-menu a:hover {
    color: #ff6b35 !important;
}

/* ===== MENSAJES GLOBALES RCP (fuera de formularios) ===== */

p.rcp_success,
.rcp-table-wrapper p.rcp_success {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-left: 3px solid #10b981 !important;
    border-radius: 0.5rem !important;
    color: #166534 !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
}

p.rcp_error,
.rcp-table-wrapper p.rcp_error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-left: 3px solid #ef4444 !important;
    border-radius: 0.5rem !important;
    color: #991b1b !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
}

/* ===== RESPONSIVE PANEL ===== */

@media (max-width: 768px) {
    /* Tablas en formato card en móvil */
    #rcp-table-wrapper table.rcp-table thead.hide-mobile {
        display: none !important;
    }

    #rcp-table-wrapper table.rcp-table tbody tr {
        display: block !important;
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 0.75rem !important;
    }

    #rcp-table-wrapper table.rcp-table tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    #rcp-table-wrapper table.rcp-table tbody td:last-child {
        border-bottom: none !important;
        padding-top: 0.75rem !important;
    }

    #rcp-table-wrapper table.rcp-table tbody td::before {
        content: attr(data-th) !important;
        font-weight: 600 !important;
        color: #666 !important;
        font-size: 0.8125rem !important;
        flex-shrink: 0 !important;
        margin-right: 1rem !important;
    }

    #rcp-table-wrapper table.rcp-table {
        border: none !important;
        background: transparent !important;
    }

    /* Ajustar botones en móvil */
    #rcp-table-wrapper table.rcp-table button {
        font-size: 0.6875rem !important;
        padding: 0.3rem 0.625rem !important;
    }
}

/* Fallback para navegadores sin :has() */
@supports not (selector(:has(input:checked))) {
    #rcp_subscription_levels input[type="radio"].rcp_level {
        position: relative !important;
        opacity: 1 !important;
        width: 18px !important;
        height: 18px !important;
        accent-color: #00459C !important;
        margin-right: 0.5rem !important;
        pointer-events: auto !important;
    }

    #rcp_subscription_levels li.rcp_subscription_level::before {
        display: none !important;
    }

    /* Update card form cards fallback */
    #rcp_update_card_form .rcp-gateway-saved-payment-methods li {
        border-color: #e2e8f0 !important;
    }
}

/* =============================================
   LOGIN FORM — Premium styling
   ============================================= */

/* Mensaje de acceso exclusivo (inyectado por JS) */
.ea-login-intro {
    text-align: center !important;
    margin-bottom: 2rem !important;
    padding: 0 1rem !important;
}

.ea-login-intro h2 {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 0.75rem !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    line-height: 1.3 !important;
}

.ea-login-intro p {
    font-size: 0.95rem !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Login form container */
#rcp_login_form {
    max-width: 420px !important;
    margin: 0 auto 2rem !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 2rem 2rem 1.75rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

#rcp_login_form fieldset.rcp_login_data {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Labels */
#rcp_login_form label[for="rcp_user_login"],
#rcp_login_form label[for="rcp_user_pass"] {
    display: block !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 0.375rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

/* Inputs */
#rcp_login_form input[type="text"],
#rcp_login_form input[type="password"] {
    display: block !important;
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9375rem !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
    margin-bottom: 1rem !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    -webkit-appearance: none !important;
}

#rcp_login_form input[type="text"]:focus,
#rcp_login_form input[type="password"]:focus {
    border-color: #00459C !important;
    box-shadow: 0 0 0 3px rgba(0, 69, 156, 0.1) !important;
    background: #ffffff !important;
}

/* Remember me row */
#rcp_login_form input[type="checkbox"] {
    display: inline-block !important;
    accent-color: #00459C !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 0.375rem 0 0 !important;
    vertical-align: middle !important;
    cursor: pointer !important;
}

#rcp_login_form label[for="rcp_user_remember"] {
    display: inline !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin-bottom: 0 !important;
}

/* Lost password link */
#rcp_login_form .rcp_lost_password {
    margin: 1.25rem 0 0 !important;
    text-align: center !important;
}

#rcp_login_form .rcp_lost_password a {
    font-size: 0.8125rem !important;
    color: #00459C !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

#rcp_login_form .rcp_lost_password a:hover {
    color: #ff6b35 !important;
}

/* Submit button */
#rcp_login_form #rcp_login_submit {
    display: block !important;
    width: 100% !important;
    padding: 0.875rem !important;
    margin-top: 1.25rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: #00459C !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-family: inherit !important;
    -webkit-appearance: none !important;
}

#rcp_login_form #rcp_login_submit:hover {
    background: #003478 !important;
}

#rcp_login_form #rcp_login_submit:active {
    transform: scale(0.985) !important;
}

/* RCP error messages in login */
#rcp_login_form .rcp_message,
.page-id-8825 .rcp_message {
    max-width: 420px !important;
    margin: 0 auto 1rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 10px !important;
    font-size: 0.875rem !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.page-id-8825 .rcp_message.error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    #rcp_login_form {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        padding: 1.5rem 1.25rem !important;
    }

    .ea-login-intro h2 {
        font-size: 1.375rem !important;
    }
}

/* ===== MEMBERSHIP GROUP HEADERS ===== */

#rcp_subscription_levels li.ea-membership-group-header {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 1rem 0 0.25rem !important;
    margin: 0 !important;
    cursor: default !important;
    list-style: none !important;
    box-shadow: none !important;
}

#rcp_subscription_levels li.ea-membership-group-header:first-child {
    padding-top: 0 !important;
}

#rcp_subscription_levels li.ea-membership-group-header:hover {
    border: none !important;
    box-shadow: none !important;
}

#rcp_subscription_levels li.ea-membership-group-header::before {
    display: none !important;
}

#rcp_subscription_levels li.ea-membership-group-header span {
    display: block !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #94a3b8 !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
}
