/* Recarga STORE Personalización v1.0.6 - Mi Cuenta */

/* El escritorio usa un layout propio para no depender del grid/floats de Kadence o WooCommerce. */
body.rsp-account-page .site-main,
body.rsp-account-page #main,
body.rsp-account-page .content-area {
    background: var(--rsp-page-bg);
}

/* En Mi Cuenta usamos nuestro propio ancho; Kadence sigue controlando el resto del sitio. */
body.rsp-account-page .content-container.site-container,
body.rsp-account-page #primary.content-area {
    width: 100% !important;
    max-width: none !important;
}
body.rsp-account-page .content-container.site-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.rsp-account-page .site-main {
    padding-top: 0 !important;
}

/* Kadence: quitamos solamente en Mi Cuenta los fondos/cajas laterales del contenedor
   de la página. La cabecera, footer y el resto del tema siguen intactos. */
body.rsp-account-page .entry-content-wrap,
body.rsp-account-page .content-bg,
body.rsp-account-page article.page,
body.rsp-account-page .entry-content {
    background: transparent !important;
    box-shadow: none !important;
}

body.rsp-account-page .entry-content-wrap {
    border: 0 !important;
}

body.rsp-account-page .woocommerce {
    display: block !important;
    width: min(calc(100vw - 48px), var(--rsp-max-width)) !important;
    max-width: var(--rsp-max-width) !important;
    margin: 18px auto 38px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    overflow: visible !important;
}

/* Respaldo visual: si un tema vuelve a envolver/reinyectar la navegación nativa,
   la ocultamos en cualquier nivel. La navegación propia usa .rsp-account-nav. */
body.rsp-account-page .woocommerce-MyAccount-navigation {
    display: none !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.rsp-account-page .woocommerce > .woocommerce-MyAccount-content,
body.rsp-account-page .woocommerce-MyAccount-content {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.rsp-account-page .woocommerce-notices-wrapper,
body.rsp-account-page .woocommerce-error,
body.rsp-account-page .woocommerce-message,
body.rsp-account-page .woocommerce-info {
    width: 100%;
    max-width: var(--rsp-max-width);
    margin-left: auto;
    margin-right: auto;
}

.rsp-account-shell,
.rsp-account-shell * {
    box-sizing: border-box;
}

.rsp-account-shell {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    grid-template-areas:
        'nav profile'
        'nav main';
    width: 100%;
    min-width: 0;
    overflow: hidden;
    color: var(--rsp-text);
    background: var(--rsp-panel-bg);
    border: 1px solid var(--rsp-border);
    border-radius: var(--rsp-radius);
}

.rsp-account-main {
    grid-area: main;
    position: relative;
    min-width: 0;
    padding: 18px 26px 26px;
    container-type: inline-size;
}

/* Navegación progresiva: el shell no se desmonta; durante la petición se bloquea solo el contenido y se muestra un indicador visible. */
.rsp-account-shell.rsp-ajax-loading .rsp-account-main {
    pointer-events: none;
}

.rsp-account-shell.rsp-ajax-loading .rsp-account-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(18, 18, 18, .42);
}

.rsp-account-shell.rsp-ajax-loading .rsp-account-main::after {
    content: "";
    position: absolute;
    top: 28px;
    left: 50%;
    z-index: 21;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    border: 3px solid rgba(255, 255, 255, .22);
    border-top-color: var(--rsp-accent);
    border-radius: 50%;
    animation: rsp-account-loading-spin .72s linear infinite;
    box-shadow: 0 0 0 5px rgba(0, 0, 0, .10);
}

@keyframes rsp-account-loading-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .rsp-account-shell.rsp-ajax-loading .rsp-account-main::after {
        animation-duration: 1.4s;
    }
}

/* El perfil puede activarse por sección y por dispositivo desde Personalización. */
@media (min-width: 981px) {
    .rsp-account-shell.rsp-profile-desktop-off {
        grid-template-areas: 'nav main';
    }
    .rsp-account-shell.rsp-profile-desktop-off .rsp-profile-card {
        display: none;
    }
}

/* Navegación propia */
.rsp-account-nav {
    grid-area: nav;
    min-width: 0;
    padding: 24px 14px;
    border-right: 1px solid var(--rsp-border);
}

.rsp-account-nav ul {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rsp-account-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rsp-account-nav li.rsp-account-nav-logout {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--rsp-border);
}

.rsp-account-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--rsp-text) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    transition: color .18s ease, background .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .rsp-account-nav a:hover {
        color: var(--rsp-accent) !important;
        background: color-mix(in srgb, var(--rsp-accent) 8%, transparent);
    }
}

.rsp-account-nav .is-active a {
    color: var(--rsp-accent) !important;
    background: transparent;
}

.rsp-account-nav .is-active a::after {
    content: '';
    position: absolute;
    left: -14px;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 2px;
    background: var(--rsp-accent);
}

.rsp-nav-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.rsp-account-nav-dashboard .rsp-nav-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v10h13V10M9 20v-6h6v6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v10h13V10M9 20v-6h6v6'/%3E%3C/svg%3E");
}
.rsp-account-nav-orders .rsp-nav-icon,
.rsp-icon-orders {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l1 12H5L6 8Z'/%3E%3Cpath d='M9 9V6a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l1 12H5L6 8Z'/%3E%3Cpath d='M9 9V6a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E");
}
.rsp-account-nav-wallet .rsp-nav-icon,
.rsp-icon-wallet {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5A2.5 2.5 0 0 1 6.5 5H19v14H6.5A2.5 2.5 0 0 1 4 16.5v-9Z'/%3E%3Cpath d='M15 10h5v4h-5a2 2 0 1 1 0-4Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5A2.5 2.5 0 0 1 6.5 5H19v14H6.5A2.5 2.5 0 0 1 4 16.5v-9Z'/%3E%3Cpath d='M15 10h5v4h-5a2 2 0 1 1 0-4Z'/%3E%3C/svg%3E");
}
.rsp-account-nav-edit-account .rsp-nav-icon,
.rsp-action-profile .rsp-action-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 21a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 21a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E");
}
.rsp-account-nav-customer-logout .rsp-nav-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H5v14h5'/%3E%3Cpath d='m14 8 4 4-4 4M18 12H9'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H5v14h5'/%3E%3Cpath d='m14 8 4 4-4 4M18 12H9'/%3E%3C/svg%3E");
}

/* Dashboard */
.rsp-dashboard {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 18px;
    color: var(--rsp-text);
}

.rsp-profile-card {
    grid-area: profile;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 20px;
    padding: 26px 26px 8px;
}

.rsp-avatar-form { margin: 0; }
.rsp-avatar-button {
    position: relative;
    display: block;
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    margin: 0;
    padding: 0;
    overflow: visible;
    cursor: pointer;
    background: var(--rsp-card-bg);
    border: 1px solid var(--rsp-border);
    border-radius: 50%;
}
.rsp-avatar-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.rsp-avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.rsp-avatar-edit {
    position: absolute;
    right: -1px;
    bottom: 4px;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 3px solid var(--rsp-panel-bg);
    border-radius: 50%;
    background: var(--rsp-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}
.rsp-avatar-static { cursor: default; }
.rsp-profile-copy {
    flex: 1 1 auto;
    min-width: 0;
}
.rsp-profile-copy h2,
body.rsp-account-page .rsp-profile-copy h2 {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 5px !important;
    color: var(--rsp-text) !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}
.rsp-profile-copy h2 span { color: var(--rsp-accent); }
.rsp-profile-copy p {
    max-width: 680px;
    margin: 0;
    color: var(--rsp-muted);
    font-size: 14px;
    line-height: 1.5;
}

.rsp-card {
    min-width: 0;
    padding: 20px;
    background: var(--rsp-card-bg);
    border: 1px solid var(--rsp-border);
    border-radius: max(10px, calc(var(--rsp-radius) - 2px));
}
.rsp-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.rsp-card-title h3,
body.rsp-account-page .rsp-card-title h3 {
    margin: 0 !important;
    color: var(--rsp-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}
.rsp-title-icon,
.rsp-stat-icon,
.rsp-action-icon {
    display: inline-block;
    flex: 0 0 auto;
    background: var(--rsp-accent);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.rsp-title-icon { width: 22px; height: 22px; }
.rsp-icon-summary {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V10h3v10H4Zm6 0V4h3v16h-3Zm6 0v-7h3v7h-3Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V10h3v10H4Zm6 0V4h3v16h-3Zm6 0v-7h3v7h-3Z'/%3E%3C/svg%3E");
}
.rsp-icon-calendar {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2Zm11 9H6v9h12v-9ZM6 7v2h12V7H6Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2Zm11 9H6v9h12v-9ZM6 7v2h12V7H6Z'/%3E%3C/svg%3E");
}
.rsp-icon-bolt {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m13 2-8 12h6l-1 8 9-13h-6V2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m13 2-8 12h6l-1 8 9-13h-6V2Z'/%3E%3C/svg%3E");
}

.rsp-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rsp-summary-stat {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 4px 26px;
}
.rsp-summary-stat + .rsp-summary-stat { border-left: 1px solid var(--rsp-border); }
.rsp-stat-icon { grid-row: 1 / 3; width: 30px; height: 30px; }
.rsp-summary-stat strong { color: var(--rsp-text); font-size: 22px; line-height: 1.1; }
.rsp-summary-stat small { margin-top: 4px; color: var(--rsp-muted); font-size: 13px; }

.rsp-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 250px);
    gap: 18px;
    align-items: start;
}
.rsp-main-grid.rsp-no-actions { grid-template-columns: 1fr; }
.rsp-left-grid {
    display: grid;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.rsp-left-grid > *:only-child { grid-column: 1 / -1; }

.rsp-balance-card { display: flex; flex-direction: column; }
.rsp-balance-amount { margin: 16px 0; color: var(--rsp-text); font-size: 30px; font-weight: 800; line-height: 1.1; }
.rsp-available { display: flex; align-items: center; gap: 8px; color: var(--rsp-muted); font-size: 13px; }
.rsp-available i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--rsp-accent); }
.rsp-primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 24px;
    padding: 0 18px;
    border-radius: 9px;
    background: var(--rsp-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
}
.rsp-primary-button:hover { filter: brightness(1.07); }

.rsp-card-title-actions { justify-content: space-between; }
.rsp-card-title-actions > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rsp-card-title-actions > a { flex: 0 0 auto; color: var(--rsp-accent) !important; text-decoration: none !important; font-size: 13px; font-weight: 600; }
.rsp-recent-orders { display: flex; flex-direction: column; }
.rsp-order-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 0;
    color: var(--rsp-text) !important;
    text-decoration: none !important;
    border-top: 1px solid var(--rsp-border);
}
.rsp-order-row:first-child { border-top: 0; }
.rsp-order-symbol {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--rsp-accent) 12%, transparent);
    color: var(--rsp-accent);
    font-weight: 800;
}
.rsp-order-main,
.rsp-order-side { display: flex; flex-direction: column; min-width: 0; }
.rsp-order-main strong { overflow: hidden; color: var(--rsp-text); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.rsp-order-main small,
.rsp-order-side small { color: var(--rsp-muted); font-size: 12px; line-height: 1.45; }
.rsp-order-side { align-items: flex-end; max-width: 118px; gap: 3px; text-align: right; }
.rsp-status {
    max-width: 100%;
    overflow: hidden;
    padding: 2px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rsp-accent) 10%, transparent);
    color: var(--rsp-accent);
    font-size: 10px;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.rsp-status-cancelled,
.rsp-status-failed,
.rsp-status-refunded { color: #f07178; background: rgba(240, 113, 120, .1); }

.rsp-actions-card { height: auto; }
.rsp-actions-list { display: flex; flex-direction: column; }
.rsp-quick-action {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 56px;
    color: var(--rsp-text) !important;
    text-decoration: none !important;
    border-top: 1px solid var(--rsp-border);
}
.rsp-quick-action:first-child { border-top: 0; }
.rsp-action-icon { width: 23px; height: 23px; background: var(--rsp-muted); }
.rsp-action-label { min-width: 0; color: inherit; font-size: 14px; }
.rsp-chevron { color: var(--rsp-muted); font-size: 24px; }
.rsp-quick-action:hover .rsp-action-icon { background: var(--rsp-accent); }
.rsp-quick-action:hover .rsp-action-label,
.rsp-quick-action:hover .rsp-chevron { color: var(--rsp-accent); }
.rsp-action-shop .rsp-action-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM6.2 5l.7 4h11.9l1.1-4H6.2ZM5.8 3H2V1h5.5l.4 2H22l-2.1 8H7.2l.4 2H20v2H6l-1.5-8L3.8 3Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM6.2 5l.7 4h11.9l1.1-4H6.2ZM5.8 3H2V1h5.5l.4 2H22l-2.1 8H7.2l.4 2H20v2H6l-1.5-8L3.8 3Z'/%3E%3C/svg%3E");
}
.rsp-action-password .rsp-action-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 8V6a5 5 0 0 0-10 0v2H4v14h16V8h-3Zm-8-2a3 3 0 0 1 6 0v2H9V6Zm9 14H6V10h12v10Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 8V6a5 5 0 0 0-10 0v2H4v14h16V8h-3Zm-8-2a3 3 0 0 1 6 0v2H9V6Zm9 14H6V10h12v10Z'/%3E%3C/svg%3E");
}
.rsp-action-whatsapp .rsp-action-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 3.5A11.8 11.8 0 0 0 12.1 0C5.6 0 .3 5.3.3 11.8c0 2.1.5 4.1 1.6 5.9L0 24l6.5-1.7a11.8 11.8 0 0 0 5.6 1.4c6.5 0 11.8-5.3 11.8-11.8 0-3.2-1.2-6.1-3.4-8.4ZM12.1 21.7c-1.8 0-3.5-.5-5-1.4l-.4-.2-3.9 1 1-3.8-.2-.4a9.7 9.7 0 1 1 8.5 4.8Zm5.3-7.3c-.3-.1-1.7-.8-2-.9-.3-.1-.5-.1-.7.2-.2.3-.8.9-1 1.1-.2.2-.4.2-.7.1-1.8-.9-3-1.6-4.2-3.7-.3-.5.3-.5.9-1.7.1-.2.1-.4 0-.6-.1-.1-.7-1.6-.9-2.2-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-.3.3-1.2 1.2-1.2 2.9s1.2 3.3 1.4 3.5c.1.2 2.4 3.7 5.9 5.2.8.4 1.5.6 2 .7.8.3 1.6.2 2.2.1.7-.1 1.7-.7 1.9-1.3.2-.7.2-1.2.1-1.3-.1-.1-.4-.2-.8-.3Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 3.5A11.8 11.8 0 0 0 12.1 0C5.6 0 .3 5.3.3 11.8c0 2.1.5 4.1 1.6 5.9L0 24l6.5-1.7a11.8 11.8 0 0 0 5.6 1.4c6.5 0 11.8-5.3 11.8-11.8 0-3.2-1.2-6.1-3.4-8.4ZM12.1 21.7c-1.8 0-3.5-.5-5-1.4l-.4-.2-3.9 1 1-3.8-.2-.4a9.7 9.7 0 1 1 8.5 4.8Zm5.3-7.3c-.3-.1-1.7-.8-2-.9-.3-.1-.5-.1-.7.2-.2.3-.8.9-1 1.1-.2.2-.4.2-.7.1-1.8-.9-3-1.6-4.2-3.7-.3-.5.3-.5.9-1.7.1-.2.1-.4 0-.6-.1-.1-.7-1.6-.9-2.2-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-.3.3-1.2 1.2-1.2 2.9s1.2 3.3 1.4 3.5c.1.2 2.4 3.7 5.9 5.2.8.4 1.5.6 2 .7.8.3 1.6.2 2.2.1.7-.1 1.7-.7 1.9-1.3.2-.7.2-1.2.1-1.3-.1-.1-.4-.2-.8-.3Z'/%3E%3C/svg%3E");
}
.rsp-empty { margin: 10px 0 0; color: var(--rsp-muted); }


/* Contenido nativo de WooCommerce dentro de nuestro panel (Pedidos, Wallet y Cuenta). */
.rsp-account-main > .woocommerce-notices-wrapper:first-child { margin-top: 0; }

.rsp-account-main .woocommerce-MyAccount-orders,
.rsp-account-main table.shop_table,
.rsp-account-main .woocommerce-orders-table {
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    background: var(--rsp-card-bg) !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: max(10px, calc(var(--rsp-radius) - 2px));
    border-collapse: separate !important;
    border-spacing: 0 !important;
    color: var(--rsp-text) !important;
}

.rsp-account-main table.shop_table th,
.rsp-account-main table.shop_table td,
.rsp-account-main .woocommerce-orders-table th,
.rsp-account-main .woocommerce-orders-table td {
    padding: 14px 13px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--rsp-border) !important;
    background: transparent !important;
    color: var(--rsp-text) !important;
    vertical-align: middle !important;
}

.rsp-account-main table.shop_table tr:last-child td,
.rsp-account-main .woocommerce-orders-table tr:last-child td { border-bottom: 0 !important; }
.rsp-account-main table.shop_table thead th,
.rsp-account-main .woocommerce-orders-table thead th { color: var(--rsp-muted) !important; font-size: 12px !important; font-weight: 700 !important; }
.rsp-account-main table.shop_table td,
.rsp-account-main .woocommerce-orders-table td { font-size: 13px !important; }
.rsp-account-main .woocommerce-orders-table__cell-order-date time { white-space: nowrap; font-size: 12px; }
.rsp-account-main table.shop_table a:not(.button),
.rsp-account-main .woocommerce-orders-table a:not(.button) { color: var(--rsp-accent) !important; }

/* Estados de Pedidos: color únicamente en el texto del estado. */
.rsp-account-main .woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status {
    color: var(--rsp-accent) !important;
    font-weight: 700;
}
.rsp-account-main .woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status {
    color: #f07178 !important;
    font-weight: 700;
}
.rsp-account-main .woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status {
    color: #f2c94c !important;
    font-weight: 700;
}

/* Los mismos colores también se reutilizan en resumen y detalle de pedido. */
.rsp-status-completed { color: var(--rsp-accent); }
.rsp-status-pending { color: #f2c94c; background: rgba(242, 201, 76, .1); }

/* Paginación de Pedidos: numerada, compacta y siempre debajo de la tabla. */
.rsp-orders-pagination {
    display: flex;
    clear: both;
    position: static;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
    margin: 16px 0 0;
    padding: 0;
}

.rsp-orders-page,
.rsp-orders-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid var(--rsp-border);
    border-radius: 10px;
    background: var(--rsp-card-bg);
    color: var(--rsp-text) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    box-sizing: border-box;
}

.rsp-orders-page:hover {
    border-color: color-mix(in srgb, var(--rsp-accent) 60%, var(--rsp-border));
    color: var(--rsp-accent) !important;
}

.rsp-orders-page.is-current {
    border-color: var(--rsp-accent);
    background: var(--rsp-accent);
    color: #fff !important;
}

.rsp-orders-page-nav {
    gap: 6px;
    padding-right: 13px;
    padding-left: 13px;
}

.rsp-orders-page-symbol {
    font-size: 20px;
    line-height: .7;
}

.rsp-orders-page-ellipsis {
    min-width: 24px;
    padding-right: 3px;
    padding-left: 3px;
    border-color: transparent;
    background: transparent;
    color: var(--rsp-muted) !important;
}

/* Paginación del Wallet: misma apariencia que Pedidos; la lógica sigue en Wallet. */
body.rsp-account-page .rsp-account-main .rsw-wallet-pagination {
    display: flex !important;
    clear: both;
    position: static;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    gap: 6px !important;
    margin: 16px 0 0 !important;
    padding: 0;
}
body.rsp-account-page .rsp-account-main .rsw-wallet-page,
body.rsp-account-page .rsp-account-main .rsw-wallet-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: 10px !important;
    background: var(--rsp-card-bg) !important;
    color: var(--rsp-text) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    box-sizing: border-box;
}
body.rsp-account-page .rsp-account-main a.rsw-wallet-page:hover {
    border-color: color-mix(in srgb, var(--rsp-accent) 60%, var(--rsp-border)) !important;
    color: var(--rsp-accent) !important;
}
body.rsp-account-page .rsp-account-main .rsw-wallet-page.is-current {
    border-color: var(--rsp-accent) !important;
    background: var(--rsp-accent) !important;
    color: #fff !important;
}
body.rsp-account-page .rsp-account-main .rsw-wallet-page-nav {
    gap: 6px !important;
    padding-right: 13px !important;
    padding-left: 13px !important;
}
body.rsp-account-page .rsp-account-main .rsw-wallet-page-symbol {
    font-size: 20px;
    line-height: .7;
}
body.rsp-account-page .rsp-account-main .rsw-wallet-page-ellipsis {
    min-width: 24px !important;
    padding-right: 3px !important;
    padding-left: 3px !important;
    border-color: transparent !important;
    background: transparent !important;
    color: var(--rsp-muted) !important;
}

.rsp-account-main .button,
.rsp-account-main button.button,
.rsp-account-main input.button,
.rsp-account-main .woocommerce-button {
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--rsp-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.rsp-account-main form,
.rsp-account-main .woocommerce-EditAccountForm,
.rsp-account-main .woocommerce-address-fields,
.rsp-account-main .rswp-wallet-wrap,
.rsp-account-main .rswp-wallet-page,
.rsp-account-main .rsp-endpoint-card {
    color: var(--rsp-text);
}

.rsp-account-main fieldset {
    margin: 18px 0 0 !important;
    padding: 18px !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: 12px !important;
}
.rsp-account-main legend { padding: 0 8px !important; color: var(--rsp-text) !important; }
.rsp-account-main label { color: var(--rsp-text) !important; }
.rsp-account-main input.input-text,
.rsp-account-main input[type="text"],
.rsp-account-main input[type="email"],
.rsp-account-main input[type="password"],
.rsp-account-main input[type="tel"],
.rsp-account-main select,
.rsp-account-main textarea {
    min-height: 44px;
    background: var(--rsp-card-bg) !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: 9px !important;
    color: var(--rsp-text) !important;
    box-shadow: none !important;
}
.rsp-account-main textarea { min-height: 100px; }
/* Avisos nativos de WooCommerce dentro de Mi Cuenta.
   Se conserva el HTML y la lógica originales; solo unificamos su presentación
   para verificación de correo, estados vacíos y mensajes del cliente. */
.rsp-account-main .woocommerce-info,
.rsp-account-main .woocommerce-message,
.rsp-account-main .woocommerce-error {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 64px;
    margin: 0 0 16px !important;
    padding: 15px 16px 15px 50px !important;
    background: color-mix(in srgb, var(--rsp-card-bg) 92%, var(--rsp-panel-bg) 8%) !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: 14px !important;
    color: var(--rsp-text) !important;
    line-height: 1.5;
    box-shadow: none !important;
}

.rsp-account-main .woocommerce-info::before,
.rsp-account-main .woocommerce-message::before,
.rsp-account-main .woocommerce-error::before {
    top: 50% !important;
    left: 18px !important;
    margin: 0 !important;
    color: var(--rsp-accent) !important;
    transform: translateY(-50%);
}

.rsp-account-main .woocommerce-error::before {
    color: #f07178 !important;
}

.rsp-account-main .woocommerce-info .button,
.rsp-account-main .woocommerce-message .button,
.rsp-account-main .woocommerce-error .button {
    order: 2;
    flex: 0 0 auto;
    min-height: 40px;
    margin: 0 0 0 auto !important;
    padding: 9px 16px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--rsp-accent) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
    .rsp-account-main .woocommerce-info .button:hover,
    .rsp-account-main .woocommerce-message .button:hover,
    .rsp-account-main .woocommerce-error .button:hover {
        filter: brightness(1.08);
    }
}

@media (max-width: 700px) {
    .rsp-account-main .woocommerce-info,
    .rsp-account-main .woocommerce-message,
    .rsp-account-main .woocommerce-error {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        min-height: 0;
        padding: 16px 16px 16px 46px !important;
        border-radius: 12px !important;
        font-size: 14px;
    }

    .rsp-account-main .woocommerce-info::before,
    .rsp-account-main .woocommerce-message::before,
    .rsp-account-main .woocommerce-error::before {
        top: 21px !important;
        left: 16px !important;
        transform: none;
    }

    .rsp-account-main .woocommerce-info .button,
    .rsp-account-main .woocommerce-message .button,
    .rsp-account-main .woocommerce-error .button {
        width: 100%;
        min-height: 42px;
        margin: 4px 0 0 !important;
        padding: 10px 14px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
    }
}


/* Vista individual del pedido */
.rsp-view-order {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--rsp-text);
}
.rsp-view-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.rsp-view-order-header h2,
body.rsp-account-page .rsp-view-order-header h2 {
    margin: 0 0 5px !important;
    color: var(--rsp-text) !important;
    font-size: 30px !important;
    line-height: 1.15 !important;
}
.rsp-view-order-header p { margin: 0; color: var(--rsp-muted); font-size: 14px; }
.rsp-view-order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rsp-accent) 14%, transparent);
    color: var(--rsp-accent);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.rsp-view-order-status.rsp-status-completed {
    background: rgba(23, 155, 69, .22);
    color: #ffffff;
}
.rsp-view-order-status.rsp-status-cancelled,
.rsp-view-order-status.rsp-status-failed,
.rsp-view-order-status.rsp-status-refunded {
    background: rgba(176, 42, 55, .92);
    color: #ffffff;
}
.rsp-view-order-status.rsp-status-pending,
.rsp-view-order-status.rsp-status-on-hold {
    background: rgba(168, 115, 0, .92);
    color: #ffffff;
}
.rsp-view-order-status.rsp-status-processing {
    background: rgba(23, 155, 69, .22);
    color: #ffffff;
}
.rsp-view-order-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.rsp-view-order-info-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--rsp-border);
    border-radius: 13px;
    background: var(--rsp-card-bg);
}
.rsp-view-order-info-copy { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.rsp-view-order-info-copy small { color: var(--rsp-muted); font-size: 12px; }
.rsp-view-order-info-copy strong { overflow-wrap: anywhere; color: var(--rsp-text); font-size: 17px; line-height: 1.25; }
.rsp-view-order-info-grid .rsp-view-order-info-card:last-child strong { color: var(--rsp-accent); }
.rsp-view-order-info-icon,
.rsp-view-order-section-icon,
.rsp-view-order-mini-icon {
    display: inline-block;
    background: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.rsp-view-order-info-icon { width: 32px; height: 32px; color: var(--rsp-muted); }
.rsp-view-order-section-icon { width: 24px; height: 24px; color: var(--rsp-accent); }
.rsp-view-order-mini-icon { width: 18px; height: 18px; color: var(--rsp-muted); }
.rsp-view-order-icon-order,
.rsp-view-order-icon-details {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l4 4v16H6V2Zm8 2.5V7h2.5L14 4.5ZM8 11h8V9H8v2Zm0 4h8v-2H8v2Zm0 4h6v-2H8v2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l4 4v16H6V2Zm8 2.5V7h2.5L14 4.5ZM8 11h8V9H8v2Zm0 4h8v-2H8v2Zm0 4h6v-2H8v2Z'/%3E%3C/svg%3E");
}
.rsp-view-order-icon-calendar {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2Zm11 9H6v9h12v-9ZM6 7v2h12V7H6Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2Zm11 9H6v9h12v-9ZM6 7v2h12V7H6Z'/%3E%3C/svg%3E");
}
.rsp-view-order-icon-payment {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3V5Zm2 2v2h14V7H5Zm0 5v5h14v-5H5Zm2 2h5v1.5H7V14Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3V5Zm2 2v2h14V7H5Zm0 5v5h14v-5H5Zm2 2h5v1.5H7V14Z'/%3E%3C/svg%3E");
}
.rsp-view-order-icon-total {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h10l8 8-9 9-9-9V4Zm4 3.5A1.5 1.5 0 1 0 7 10a1.5 1.5 0 0 0 0-3Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h10l8 8-9 9-9-9V4Zm4 3.5A1.5 1.5 0 1 0 7 10a1.5 1.5 0 0 0 0-3Z'/%3E%3C/svg%3E");
}
.rsp-view-order-icon-user {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5 0-9 2.5-9 6v2h18v-2c0-3.5-4-6-9-6Zm-7 6c.2-2 3-4 7-4s6.8 2 7 4H5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5 0-9 2.5-9 6v2h18v-2c0-3.5-4-6-9-6Zm-7 6c.2-2 3-4 7-4s6.8 2 7 4H5Z'/%3E%3C/svg%3E");
}
.rsp-view-order-icon-phone {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.6 10.8 2.2-2.2L5.2 3 2.7 5.5C1.6 6.6 3.8 12 7.9 16.1S17.4 22.4 18.5 21.3l2.5-2.5-5.6-3.6-2.2 2.2c-1.4-.6-2.8-1.6-4.2-3s-2.4-2.8-3-4.2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.6 10.8 2.2-2.2L5.2 3 2.7 5.5C1.6 6.6 3.8 12 7.9 16.1S17.4 22.4 18.5 21.3l2.5-2.5-5.6-3.6-2.2 2.2c-1.4-.6-2.8-1.6-4.2-3s-2.4-2.8-3-4.2Z'/%3E%3C/svg%3E");
}
.rsp-view-order-icon-mail {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3V5Zm2 2v.2l7 5.1 7-5.1V7H5Zm14 10V9.7l-7 5.1-7-5.1V17h14Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3V5Zm2 2v.2l7 5.1 7-5.1V7H5Zm14 10V9.7l-7 5.1-7-5.1V17h14Z'/%3E%3C/svg%3E");
}
.rsp-view-order-icon-note {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16v14H8l-4 4V3Zm2 2v11.2L7.2 15H18V5H6Zm2 3h8v2H8V8Zm0 4h6v2H8v-2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16v14H8l-4 4V3Zm2 2v11.2L7.2 15H18V5H6Zm2 3h8v2H8V8Zm0 4h6v2H8v-2Z'/%3E%3C/svg%3E");
}
.rsp-view-order-card {
    padding: 22px;
    border: 1px solid var(--rsp-border);
    border-radius: 14px;
    background: var(--rsp-card-bg);
}
.rsp-view-order-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.rsp-view-order-section-title h3,
body.rsp-account-page .rsp-view-order-section-title h3 { margin: 0 !important; color: var(--rsp-text) !important; font-size: 21px !important; }
.rsp-view-order-items { display: flex; flex-direction: column; gap: 12px; }
.rsp-view-order-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--rsp-border);
    border-radius: 13px;
    background: color-mix(in srgb, var(--rsp-panel-bg) 72%, transparent);
}
.rsp-view-order-item-image {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border: 1px solid var(--rsp-border);
    border-radius: 14px;
    background: var(--rsp-panel-bg);
}
.rsp-view-order-product-image { display: block; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; }
.rsp-view-order-item-main { min-width: 0; }
.rsp-view-order-item-main h4,
body.rsp-account-page .rsp-view-order-item-main h4 { margin: 0 0 8px !important; color: var(--rsp-text) !important; font-size: 17px !important; line-height: 1.3 !important; }
.rsp-view-order-item-meta ul { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 0; padding: 0; list-style: none; }
.rsp-view-order-item-meta li { display: inline-flex; align-items: baseline; gap: 5px; margin: 0; }
.rsp-view-order-item-meta p { display: inline; margin: 0; }
.rsp-order-meta-label { color: var(--rsp-muted); font-size: 12px; font-weight: 500; }
.rsp-order-meta-value { color: var(--rsp-text); font-size: 14px; font-weight: 750; line-height: 1.25; }
.rsp-view-order-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; min-width: 86px; }
.rsp-view-order-qty { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--rsp-accent) 46%, var(--rsp-border)); border-radius: 9px; color: var(--rsp-accent); background: color-mix(in srgb, var(--rsp-accent) 8%, transparent); font-size: 12px; font-weight: 750; line-height: 1.1; white-space: nowrap; }
.rsp-view-order-item-total { color: var(--rsp-text); font-size: 18px; font-weight: 800; white-space: nowrap; }
.rsp-view-order-totals { margin-top: 14px; }
.rsp-view-order-total-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 2px; border-top: 1px solid var(--rsp-border); color: var(--rsp-muted); font-size: 14px; }
.rsp-view-order-total-row strong { color: var(--rsp-text); }
.rsp-view-order-total-row.is-grand-total { color: var(--rsp-accent); font-size: 16px; font-weight: 700; }
.rsp-view-order-total-row.is-grand-total strong { color: var(--rsp-accent); font-size: 18px; }
.rsp-view-order-customer-grid { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.rsp-view-order-customer-grid > div { display: flex; align-items: center; gap: 9px; color: var(--rsp-text); font-size: 14px; }
.rsp-view-order-notes-list { display: flex; flex-direction: column; gap: 10px; }
.rsp-view-order-note { padding: 13px 15px; border: 1px solid var(--rsp-border); border-radius: 11px; background: var(--rsp-panel-bg); }
.rsp-view-order-note-content p { margin: 0 0 5px; color: var(--rsp-text); }
.rsp-view-order-note-content p:last-child { margin-bottom: 0; }
.rsp-view-order-note small { color: var(--rsp-muted); font-size: 11px; }
.rsp-view-order .woocommerce-message,
.rsp-view-order .woocommerce-info,
.rsp-view-order .woocommerce-error { margin: 0 !important; }

@media (max-width: 700px) {
    .rsp-account-main table.shop_table,
    .rsp-account-main .woocommerce-orders-table { background: transparent !important; border: 0 !important; overflow: visible; }
    .rsp-account-main .woocommerce-orders-table thead { display: none; }
    .rsp-account-main .woocommerce-orders-table tbody,
    .rsp-account-main .woocommerce-orders-table tr,
    .rsp-account-main .woocommerce-orders-table td { display: block; width: 100%; }
    .rsp-account-main .woocommerce-orders-table tr {
        margin-bottom: 12px;
        padding: 8px 14px;
        background: var(--rsp-card-bg) !important;
        border: 1px solid var(--rsp-border) !important;
        border-radius: 12px;
    }
    .rsp-account-main .woocommerce-orders-table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 0 !important;
        text-align: right !important;
    }
    .rsp-account-main .woocommerce-orders-table td::before { color: var(--rsp-muted) !important; text-align: left; }
    .rsp-account-main .woocommerce-orders-table td:last-child { border-bottom: 0 !important; }
    .rsp-account-main .woocommerce-orders-table__cell-order-actions {
        align-items: center;
        flex-wrap: wrap;
    }
    .rsp-account-main .woocommerce-orders-table__cell-order-actions .button {
        min-height: 38px;
        padding: 7px 13px !important;
    }
}

/* Si el espacio real del contenido se reduce, refluye sin depender del ancho total de la ventana. */
@container (max-width: 760px) {
    .rsp-main-grid { grid-template-columns: 1fr; }
    .rsp-left-grid { grid-template-columns: minmax(190px, .8fr) minmax(0, 1.45fr); }
    .rsp-actions-card { height: auto; }
}

@container (max-width: 560px) {
    .rsp-left-grid { grid-template-columns: 1fr; }
    .rsp-balance-card,
    .rsp-orders-card { min-height: 0; }
    .rsp-primary-button { margin-top: 22px; }
}

@media (max-width: 980px) {
    .rsp-account-shell.rsp-profile-mobile-off {
        grid-template-areas:
            'nav'
            'main';
    }
    .rsp-account-shell.rsp-profile-mobile-off .rsp-profile-card {
        display: none;
    }

    body.rsp-account-page .woocommerce {
        width: min(100% - 24px, var(--rsp-max-width)) !important;
        margin-top: 20px !important;
    }
    .rsp-account-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            'profile'
            'nav'
            'main';
        gap: 14px;
        overflow: visible;
        background: transparent;
        border: 0;
    }
    .rsp-profile-card {
        margin: 0;
        padding: 18px;
        background: var(--rsp-panel-bg);
        border: 1px solid var(--rsp-border);
        border-radius: var(--rsp-radius);
    }
    .rsp-account-nav {
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        background: var(--rsp-panel-bg);
        border: 1px solid var(--rsp-border);
        border-radius: var(--rsp-radius);
        -webkit-overflow-scrolling: touch;
    }
    .rsp-account-nav ul {
        display: grid;
        grid-template-columns: repeat(5, minmax(92px, 1fr));
        min-height: auto;
        gap: 0;
    }
    .rsp-account-nav li.rsp-account-nav-logout {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }
    .rsp-account-nav a {
        min-height: 80px;
        padding: 9px 7px;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        border-radius: 0;
        text-align: center;
        font-size: 12px;
    }
    .rsp-account-nav .is-active a::after {
        left: 8px;
        right: 8px;
        top: auto;
        bottom: 0;
        width: auto;
        height: 3px;
    }
    .rsp-account-main { padding: 0; }
}

@media (max-width: 700px) {
    body.rsp-account-page .woocommerce {
        width: min(100% - 20px, var(--rsp-max-width)) !important;
        margin-bottom: 28px !important;
    }
    .rsp-account-nav ul { grid-template-columns: repeat(5, minmax(74px, 1fr)); }
    .rsp-account-nav a { min-height: 72px; padding: 7px 4px; font-size: 11px; }
    .rsp-nav-icon { width: 20px; height: 20px; }

    .rsp-orders-pagination {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 4px;
        margin-top: 12px;
    }
    .rsp-orders-page,
    .rsp-orders-page-ellipsis {
        min-width: 34px;
        min-height: 34px;
        padding: 6px 8px;
        border-radius: 9px;
        font-size: 12px;
    }
    .rsp-orders-page-nav {
        min-width: 34px;
        padding-right: 7px;
        padding-left: 7px;
    }
    .rsp-orders-page-nav .rsp-orders-page-text { display: none; }
    .rsp-orders-page-symbol { font-size: 19px; }
    .rsp-orders-page-ellipsis { min-width: 18px; padding-right: 1px; padding-left: 1px; }

    body.rsp-account-page .rsp-account-main .rsw-wallet-pagination {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 4px !important;
        margin-top: 12px !important;
    }
    body.rsp-account-page .rsp-account-main .rsw-wallet-page,
    body.rsp-account-page .rsp-account-main .rsw-wallet-page-ellipsis {
        min-width: 34px !important;
        min-height: 34px !important;
        padding: 6px 8px !important;
        border-radius: 9px !important;
        font-size: 12px;
    }
    body.rsp-account-page .rsp-account-main .rsw-wallet-page-nav {
        min-width: 34px !important;
        padding-right: 7px !important;
        padding-left: 7px !important;
    }
    body.rsp-account-page .rsp-account-main .rsw-wallet-page-nav .rsw-wallet-page-text { display: none; }
    body.rsp-account-page .rsp-account-main .rsw-wallet-page-symbol { font-size: 19px; }
    body.rsp-account-page .rsp-account-main .rsw-wallet-page-ellipsis {
        min-width: 18px !important;
        padding-right: 1px !important;
        padding-left: 1px !important;
    }

    .rsp-dashboard { gap: 14px; }
    .rsp-profile-card { gap: 16px; padding: 16px; }
    .rsp-avatar-button { flex-basis: 72px; width: 72px; height: 72px; }
    .rsp-avatar-edit { width: 25px; height: 25px; font-size: 12px; }
    .rsp-profile-copy h2,
    body.rsp-account-page .rsp-profile-copy h2 { font-size: 22px !important; }
    .rsp-profile-copy p { font-size: 13px; }

    .rsp-card { padding: 16px; border-radius: 14px; }
    .rsp-card-title { margin-bottom: 15px; }
    .rsp-summary-stat { grid-template-columns: 32px minmax(0, 1fr); column-gap: 9px; padding: 2px 13px; }
    .rsp-stat-icon { width: 23px; height: 23px; }
    .rsp-summary-stat strong { font-size: 18px; }
    .rsp-summary-stat small { font-size: 11px; }
    .rsp-balance-amount { font-size: 27px; }
    .rsp-order-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; }
    .rsp-order-side { max-width: 90px; }
    .rsp-order-main strong { font-size: 12px; }
    .rsp-order-main small,
    .rsp-order-side small { font-size: 10px; }
    .rsp-status { padding: 2px 5px; font-size: 9px; }
    .rsp-action-label { font-size: 13px; }
}

@media (max-width: 430px) {
    body.rsp-account-page .woocommerce {
        width: min(100% - 14px, var(--rsp-max-width)) !important;
        margin-top: 12px !important;
    }
    .rsp-account-nav ul { grid-template-columns: repeat(5, minmax(68px, 1fr)); }
    .rsp-account-nav a { font-size: 10.5px; }
    .rsp-account-nav-wallet .rsp-nav-label::before,
    .rsp-account-nav-edit-account .rsp-nav-label::before { font-size: 10.5px; }
    .rsp-profile-copy h2,
    body.rsp-account-page .rsp-profile-copy h2 { font-size: 19px !important; overflow-wrap: anywhere !important; }
    .rsp-profile-copy p { font-size: 12px; }
    .rsp-summary-stat { display: flex; flex-direction: column; justify-content: center; padding: 0 8px; text-align: center; }
    .rsp-summary-stat + .rsp-summary-stat { border-left: 1px solid var(--rsp-border); }
    .rsp-stat-icon { margin-bottom: 8px; }
    .rsp-summary-stat strong { font-size: 16px; }
    .rsp-card-title h3,
    body.rsp-account-page .rsp-card-title h3 { font-size: 14px !important; }
    .rsp-order-symbol { display: none; }
    .rsp-order-row { grid-template-columns: minmax(0, 1fr) auto; }
    .rsp-order-side { max-width: 84px; }
}


/* Compatibilidad visual con Recarga Store Wallet.
   El Wallet conserva toda su lógica y sus estilos propios; aquí solo armonizamos
   su salida cuando vive dentro del panel personalizado de Mi Cuenta. */
body.rsp-account-page .rsp-account-main > h2,
body.rsp-account-page .rsp-account-main > h3,
body.rsp-account-page .rsp-account-main > p {
    color: var(--rsp-text) !important;
}

body.rsp-account-page .rsp-account-main > h2 {
    margin: 0 0 8px !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
}

body.rsp-account-page .rsp-account-main > p {
    margin: 0 0 18px !important;
    color: var(--rsp-muted) !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 0 16px !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: 999px !important;
    background: var(--rsp-card-bg) !important;
    color: var(--rsp-text) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-tab.active {
    border-color: var(--rsp-accent) !important;
    background: var(--rsp-accent) !important;
    color: #fff !important;
}

body.rsp-account-page .rsp-account-main .rsw-balance-card {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 26px !important;
    padding: 20px !important;
    overflow: hidden !important;
    background: var(--rsp-card-bg) !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: max(12px, calc(var(--rsp-radius) - 2px)) !important;
    color: var(--rsp-text) !important;
    box-shadow: none !important;
}

body.rsp-account-page .rsp-account-main .rsw-balance-summary {
    padding: 0 0 16px !important;
}

body.rsp-account-page .rsp-account-main .rsw-balance-summary p {
    margin: 0 0 8px !important;
    color: var(--rsp-muted) !important;
    font-size: 14px !important;
}

body.rsp-account-page .rsp-account-main .rsw-balance-summary strong {
    display: block !important;
    color: var(--rsp-text) !important;
    font-size: 30px !important;
    line-height: 1.15 !important;
}

body.rsp-account-page .rsp-account-main .rsw-topup-box {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 16px !important;
    background: color-mix(in srgb, var(--rsp-panel-bg) 70%, var(--rsp-card-bg)) !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: 12px !important;
    color: var(--rsp-text) !important;
    box-sizing: border-box !important;
}

body.rsp-account-page .rsp-account-main .rsw-topup-box h3 {
    margin: 0 0 12px !important;
    color: var(--rsp-text) !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
}

body.rsp-account-page .rsp-account-main .rsw-topup-form {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

body.rsp-account-page .rsp-account-main .rsw-topup-input-wrap {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    min-height: 50px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: 12px !important;
    background: #333333 !important;
    box-sizing: border-box !important;
    transition: border-color .16s ease, box-shadow .16s ease !important;
}

body.rsp-account-page .rsp-account-main .rsw-topup-input-wrap:focus-within {
    border-color: var(--rsp-accent) !important;
    box-shadow: 0 0 0 1px var(--rsp-accent) !important;
}

body.rsp-account-page .rsp-account-main .rsw-topup-symbol {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 52px !important;
    width: 52px !important;
    border-right: 1px solid var(--rsp-border) !important;
    color: var(--rsp-text) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

body.rsp-account-page .rsp-account-main .rsw-topup-amount {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #333333 !important;
    color: #fff !important;
    box-shadow: none !important;
    text-align: left !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

body.rsp-account-page .rsp-account-main .rsw-topup-amount:focus {
    outline: none !important;
}

/* El monto se escribe directamente: ocultamos los controles nativos +/- del input numérico. */
body.rsp-account-page .rsp-account-main .rsw-topup-amount[type="number"] {
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

body.rsp-account-page .rsp-account-main .rsw-topup-amount::-webkit-inner-spin-button,
body.rsp-account-page .rsp-account-main .rsw-topup-amount::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

body.rsp-account-page .rsp-account-main .rsw-topup-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 10px 0 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--rsp-accent) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-sizing: border-box !important;
}

body.rsp-account-page .rsp-account-main .rsw-topup-submit:disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
}

body.rsp-account-page .rsp-account-main > h3 {
    margin: 0 0 12px !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-table {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: none !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-table thead,
body.rsp-account-page .rsp-account-main .rsw-wallet-table tbody {
    display: grid !important;
    width: 100% !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-table thead {
    margin-bottom: 7px !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-table tbody {
    gap: 8px !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-table tr {
    display: grid !important;
    grid-template-columns: minmax(160px, 1.2fr) minmax(90px, .62fr) minmax(115px, .72fr) minmax(220px, 1.55fr) !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-table tbody tr {
    position: relative !important;
    min-height: 58px !important;
    background: color-mix(in srgb, var(--rsp-card-bg) 94%, #ffffff 6%) !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-table th,
body.rsp-account-page .rsp-account-main .rsw-wallet-table td {
    min-width: 0 !important;
    padding: 11px 14px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--rsp-text) !important;
    font-size: 12px !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-table th {
    padding-top: 0 !important;
    padding-bottom: 4px !important;
    color: var(--rsp-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

/* Historial Wallet: solo el TIPO recibe color semántico. */
body.rsp-account-page .rsp-account-main .rsw-wallet-table .rsw-tx-debit td,
body.rsp-account-page .rsp-account-main .rsw-wallet-table .rsw-tx-debit td *,
body.rsp-account-page .rsp-account-main .rsw-wallet-table .rsw-tx-credit td,
body.rsp-account-page .rsp-account-main .rsw-wallet-table .rsw-tx-credit td * {
    color: var(--rsp-text) !important;
}
body.rsp-account-page .rsp-account-main .rsw-wallet-table .rsw-tx-debit td:nth-child(2) {
    color: #ff5f62 !important;
    font-weight: 700 !important;
}
body.rsp-account-page .rsp-account-main .rsw-wallet-table .rsw-tx-credit td:nth-child(2) {
    color: #55c95a !important;
    font-weight: 700 !important;
}

/* El número del pedido sigue siendo el único enlace verde del detalle. */
body.rsp-account-page .rsp-account-main .rsw-wallet-table td .rsw-order-link,
body.rsp-account-page .rsp-account-main .rsw-wallet-card .rsw-order-link,
body.rsp-account-page .rsp-account-main .rsw-wallet-card.rsw-tx-debit strong .rsw-order-link {
    color: var(--rsp-accent) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-table td .rsw-order-link:hover,
body.rsp-account-page .rsp-account-main .rsw-wallet-card .rsw-order-link:hover {
    text-decoration: underline !important;
}

body.rsp-account-page .rsp-account-main .rsw-reseller-notice {
    margin: 0 0 16px !important;
    padding: 13px 15px !important;
    background: var(--rsp-card-bg) !important;
    border: 1px solid var(--rsp-border) !important;
    border-left: 3px solid var(--rsp-accent) !important;
    border-radius: 10px !important;
    color: var(--rsp-text) !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-cards {
    display: none !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-card {
    position: relative !important;
    background: color-mix(in srgb, var(--rsp-card-bg) 94%, #ffffff 6%) !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-card div {
    border-bottom-color: var(--rsp-border) !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-card span {
    color: var(--rsp-muted) !important;
}

body.rsp-account-page .rsp-account-main .rsw-wallet-card strong {
    color: var(--rsp-text) !important;
}

@media (max-width: 768px) {
    body.rsp-account-page .rsp-account-main > h2 {
        font-size: 24px !important;
    }

    body.rsp-account-page .rsp-account-main > p {
        font-size: 13px !important;
        margin-bottom: 16px !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-wallet-tab {
        min-height: 40px !important;
        padding: 0 15px !important;
        font-size: 13px !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-balance-card {
        margin-bottom: 22px !important;
        padding: 14px !important;
        border-radius: 12px !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-balance-summary {
        padding-bottom: 14px !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-balance-summary p {
        font-size: 13px !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-balance-summary strong {
        font-size: 28px !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-topup-box {
        margin: 0 !important;
        padding: 14px !important;
        border-radius: 10px !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-topup-box h3 {
        font-size: 17px !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-topup-input-wrap {
        min-height: 48px !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-topup-symbol {
        flex-basis: 48px !important;
        width: 48px !important;
        font-size: 15px !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-topup-amount {
        min-height: 46px !important;
        padding: 9px 12px !important;
        font-size: 13px !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-topup-submit {
        min-height: 44px !important;
        font-size: 13px !important;
    }

    body.rsp-account-page .rsp-account-main > h3 {
        margin-top: 0 !important;
        font-size: 20px !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-wallet-table {
        display: none !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-wallet-cards {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-wallet-card {
        width: 100% !important;
        padding: 17px 16px 13px !important;
        box-sizing: border-box !important;
    }

    /* Indicador simple, sin depender de iconos externos. */
    body.rsp-account-page .rsp-account-main .rsw-wallet-card::before {
        content: '↗' !important;
        position: absolute !important;
        top: 15px !important;
        left: 16px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        border: 1px solid currentColor !important;
        border-radius: 50% !important;
        box-sizing: border-box !important;
        font-size: 19px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }
    body.rsp-account-page .rsp-account-main .rsw-wallet-card.rsw-tx-debit::before {
        content: '↗' !important;
        color: #ff5f62 !important;
    }
    body.rsp-account-page .rsp-account-main .rsw-wallet-card.rsw-tx-credit::before {
        content: '↙' !important;
        color: #55c95a !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-wallet-card div {
        display: grid !important;
        grid-template-columns: minmax(86px, .7fr) minmax(0, 1.3fr) !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: 44px !important;
        padding: 8px 0 !important;
    }

    /* La fecha pasa a la cabecera de la tarjeta, a la derecha del icono. */
    body.rsp-account-page .rsp-account-main .rsw-wallet-card div:first-child {
        min-height: 34px !important;
        margin: 0 0 8px 48px !important;
        padding: 0 0 9px !important;
        grid-template-columns: 1fr !important;
        border-bottom: 0 !important;
    }
    body.rsp-account-page .rsp-account-main .rsw-wallet-card div:first-child span {
        display: none !important;
    }
    body.rsp-account-page .rsp-account-main .rsw-wallet-card div:first-child strong {
        color: var(--rsp-muted) !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-wallet-card div:last-child {
        border-bottom: 0 !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-wallet-card span,
    body.rsp-account-page .rsp-account-main .rsw-wallet-card strong {
        min-width: 0 !important;
        font-size: 13px !important;
        overflow-wrap: anywhere !important;
    }

    body.rsp-account-page .rsp-account-main .rsw-wallet-card strong {
        color: var(--rsp-text) !important;
        text-align: right !important;
        font-weight: 700 !important;
    }

    /* En móvil, igual que en escritorio: solo Débito/Crédito llevan color. */
    body.rsp-account-page .rsp-account-main .rsw-wallet-card.rsw-tx-debit div:nth-child(2) strong {
        color: #ff5f62 !important;
    }
    body.rsp-account-page .rsp-account-main .rsw-wallet-card.rsw-tx-credit div:nth-child(2) strong {
        color: #55c95a !important;
    }
    body.rsp-account-page .rsp-account-main .rsw-wallet-card.rsw-tx-debit div:not(:nth-child(2)) strong,
    body.rsp-account-page .rsp-account-main .rsw-wallet-card.rsw-tx-credit div:not(:nth-child(2)) strong {
        color: var(--rsp-text) !important;
    }
    body.rsp-account-page .rsp-account-main .rsw-wallet-card .rsw-order-link {
        color: var(--rsp-accent) !important;
    }
}


/* Dashboard responsive: el perfil y el menú ya forman parte del layout general. */
@media (max-width: 980px) {
    body.rsp-account-dashboard .rsp-main-grid,
    body.rsp-account-dashboard .rsp-left-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        gap: 14px !important;
    }
    body.rsp-account-dashboard .rsp-main-grid > *,
    body.rsp-account-dashboard .rsp-left-grid > * {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

@media (max-width: 900px) {
    .rsp-view-order-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    body.rsp-account-dashboard .rsp-order-row {
        grid-template-columns: 34px minmax(0, 1fr) !important;
        gap: 10px !important;
    }
    body.rsp-account-dashboard .rsp-order-side {
        grid-column: 2 !important;
        align-items: flex-start !important;
        max-width: 100% !important;
        text-align: left !important;
    }

    .rsp-view-order { gap: 14px; }
    .rsp-view-order-header { align-items: flex-start; }
    .rsp-view-order-header h2,
    body.rsp-account-page .rsp-view-order-header h2 { font-size: 24px !important; }
    .rsp-view-order-status { min-height: 36px; padding: 0 14px; font-size: 12px; }
    .rsp-view-order-info-grid { gap: 10px; }
    .rsp-view-order-info-card { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; min-height: 78px; padding: 12px; }
    .rsp-view-order-info-icon { width: 25px; height: 25px; }
    .rsp-view-order-info-copy small { font-size: 10px; }
    .rsp-view-order-info-copy strong { font-size: 14px; }
    .rsp-view-order-card { padding: 16px; }
    .rsp-view-order-section-title h3,
    body.rsp-account-page .rsp-view-order-section-title h3 { font-size: 18px !important; }
    .rsp-view-order-item { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .rsp-view-order-item-image { width: 74px; height: 74px; }
    .rsp-view-order-item-main h4,
    body.rsp-account-page .rsp-view-order-item-main h4 { font-size: 14px !important; }
    .rsp-view-order-item-meta ul { gap: 5px 10px; }
    .rsp-order-meta-label { font-size: 10.5px; }
    .rsp-order-meta-value { font-size: 12px; }
    .rsp-view-order-item-side { grid-column: 2; align-items: flex-end; gap: 5px; min-width: 0; }
    .rsp-view-order-qty { padding: 3px 7px; border-radius: 8px; font-size: 10px; }
    .rsp-view-order-item-total { font-size: 15px; }
    .rsp-view-order-total-row { font-size: 12px; }
    .rsp-view-order-total-row.is-grand-total { font-size: 14px; }
    .rsp-view-order-total-row.is-grand-total strong { font-size: 16px; }
    .rsp-view-order-customer-grid { flex-direction: column; gap: 10px; }
}

@media (max-width: 430px) {
    .rsp-view-order-header { flex-direction: column; gap: 10px; }
    .rsp-view-order-info-grid { grid-template-columns: 1fr 1fr; }
    .rsp-view-order-info-card { grid-template-columns: 1fr; align-content: start; min-height: 96px; }
    .rsp-view-order-info-icon { width: 23px; height: 23px; }
    .rsp-view-order-item { grid-template-columns: 62px minmax(0, 1fr); }
    .rsp-view-order-item-image { width: 62px; height: 62px; }
}
.rsp-view-order-purchase-note {
    margin: 9px 0 0;
    color: var(--rsp-muted);
    font-size: 12px;
    line-height: 1.5;
}
.rsp-view-order-purchase-note p { margin: 0; }
.rsp-view-order-customer-note strong { max-width: 72%; text-align: right; font-weight: 500; }
@media (max-width: 700px) {
    .rsp-view-order-customer-note { align-items: flex-start; }
    .rsp-view-order-customer-note strong { max-width: 68%; }
}

/* Enlaces del producto y acción de volver a comprar. */
.rsp-view-order-item-image > a {
    display: block;
    width: 100%;
    height: 100%;
}
.rsp-view-order-item-main h4 a {
    color: inherit !important;
    text-decoration: none !important;
}
.rsp-view-order-item-main h4 a:hover { color: var(--rsp-accent) !important; }
.rsp-view-order-customer-note-standalone {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--rsp-border);
    color: var(--rsp-muted);
    font-size: 13px;
}
.rsp-view-order-customer-note-standalone strong { color: var(--rsp-text); }
.rsp-view-order-actions { display: flex; align-items: center; gap: 12px; }
.rsp-view-order-actions .rsp-rebuy-product {
    width: auto;
    min-width: 170px;
    margin-top: 0;
    text-decoration: none !important;
}

/* Confirmación personalizada después de comprar. */
body.rsp-order-received-page .woocommerce-order > .woocommerce-notice.woocommerce-notice--success,
body.rsp-order-received-page .woocommerce-order > .woocommerce-order-overview,
body.rsp-order-received-page .woocommerce-order > ul.order_details,
body.rsp-order-received-page .rsp-thankyou-status {
    display: none !important;
}

body.rsp-order-received-page .entry-content > .woocommerce,
body.rsp-order-received-page .woocommerce-order {
    width: min(100%, 920px) !important;
    max-width: 920px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.rsp-thankyou,
.rsp-thankyou * { box-sizing: border-box; }

.rsp-thankyou {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: none;
    color: var(--rsp-text);
}

.rsp-thankyou-hero,
.rsp-thankyou-products,
.rsp-thankyou-summary,
.rsp-thankyou-support {
    border: 1px solid var(--rsp-border);
    border-radius: var(--rsp-radius);
    background: var(--rsp-card-bg);
}

.rsp-thankyou-hero {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 24px 26px;
    background:
        radial-gradient(circle at 92% 15%, color-mix(in srgb, var(--rsp-accent) 16%, transparent), transparent 38%),
        var(--rsp-card-bg);
}
.rsp-thankyou-check {
    position: relative;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border: 2px solid var(--rsp-accent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--rsp-accent) 12%, transparent);
}
.rsp-thankyou-check::before {
    content: '';
    width: 33px;
    height: 18px;
    border-left: 6px solid var(--rsp-text);
    border-bottom: 6px solid var(--rsp-text);
    transform: rotate(-45deg) translate(3px,-3px);
}
.rsp-thankyou-hero-copy { min-width: 0; }
.rsp-thankyou-hero h1,
body.rsp-order-received-page .rsp-thankyou-hero h1 {
    margin: 0 0 6px !important;
    color: var(--rsp-text) !important;
    font-size: 24px !important;
    line-height: 1.16 !important;
}
.rsp-thankyou-hero p {
    margin: 0;
    color: var(--rsp-muted);
    font-size: 13px;
    line-height: 1.4;
}

.rsp-thankyou-products { padding: 14px; }
.rsp-thankyou-product {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--rsp-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--rsp-panel-bg) 65%, transparent);
}
.rsp-thankyou-product + .rsp-thankyou-product { margin-top: 12px; }
.rsp-thankyou-product-image {
    width: 92px;
    height: 92px;
    overflow: hidden;
    border: 1px solid var(--rsp-border);
    border-radius: 14px;
    background: var(--rsp-panel-bg);
}
.rsp-thankyou-product-image a { display: block; width: 100%; height: 100%; }
.rsp-thankyou-product-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0 !important;
}
.rsp-thankyou-product-main { min-width: 0; }
.rsp-thankyou-product-heading {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--rsp-border);
}
.rsp-thankyou-product-heading h2,
body.rsp-order-received-page .rsp-thankyou-product-heading h2 {
    margin: 0 !important;
    color: var(--rsp-text) !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
}
.rsp-thankyou-product-heading h2 a { color: inherit !important; text-decoration: none !important; }
.rsp-thankyou-product-heading h2 a:hover { color: var(--rsp-accent) !important; }
.rsp-thankyou-qty {
    flex: 0 0 auto;
    padding: 5px 11px;
    border: 1px solid color-mix(in srgb, var(--rsp-accent) 40%, var(--rsp-border));
    border-radius: 10px;
    color: var(--rsp-accent);
    background: color-mix(in srgb, var(--rsp-accent) 8%, transparent);
    font-weight: 700;
}
.rsp-thankyou-product-meta { display: grid; gap: 10px; margin-top: 13px; }
.rsp-thankyou-product-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--rsp-muted);
    font-size: 12px;
}
.rsp-thankyou-product-meta strong {
    color: var(--rsp-text);
    text-align: right;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.rsp-thankyou-summary { padding: 6px 18px; }
.rsp-thankyou-summary > div {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) minmax(120px, auto);
    align-items: center;
    gap: 12px;
    min-height: 54px;
    border-top: 1px solid var(--rsp-border);
}
.rsp-thankyou-summary > div:first-child { border-top: 0; }
.rsp-thankyou-summary .rsp-view-order-mini-icon { color: var(--rsp-accent); width: 22px; height: 22px; }
.rsp-thankyou-summary small { color: var(--rsp-muted); font-size: 12px; }
.rsp-thankyou-summary strong {
    color: var(--rsp-text);
    text-align: right;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.rsp-thankyou-summary .rsp-thankyou-total strong { color: var(--rsp-accent); font-size: 16px; }

.rsp-thankyou-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rsp-thankyou-action {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid var(--rsp-border);
    border-radius: 13px;
    background: var(--rsp-card-bg);
    color: var(--rsp-text) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
}
.rsp-thankyou-action.is-primary {
    border-color: color-mix(in srgb, var(--rsp-accent) 55%, var(--rsp-border));
    background: var(--rsp-accent);
    color: #fff !important;
}
.rsp-thankyou-action-label { min-width: 0; color: inherit; overflow-wrap: anywhere; }
.rsp-thankyou-action .rsp-view-order-mini-icon,
.rsp-thankyou-action .rsp-action-icon { width: 23px; height: 23px; color: currentColor; background: currentColor; }
.rsp-thankyou-action b { font-size: 25px; font-weight: 400; }

.rsp-thankyou-support {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 13px;
    padding: 14px 18px;
    color: var(--rsp-text) !important;
    text-decoration: none !important;
}
.rsp-thankyou-support-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--rsp-accent);
    border-radius: 50%;
    color: var(--rsp-accent);
    font-weight: 800;
}
.rsp-thankyou-support > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.rsp-thankyou-support strong { color: var(--rsp-text); font-size: 13px; }
.rsp-thankyou-support small { color: var(--rsp-muted); font-size: 11px; }
.rsp-thankyou-support em { color: var(--rsp-accent); font-style: normal; font-weight: 700; }
.rsp-thankyou-support b { color: var(--rsp-muted); font-size: 24px; font-weight: 400; }

@media (max-width: 700px) {
    body.rsp-order-received-page .content-container.site-container,
    body.rsp-order-received-page #primary.content-area,
    body.rsp-order-received-page .site-main,
    body.rsp-order-received-page article.page,
    body.rsp-order-received-page .entry-content-wrap,
    body.rsp-order-received-page .entry-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    body.rsp-order-received-page .entry-content > .woocommerce {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 10px !important;
        overflow: visible !important;
    }
    body.rsp-order-received-page .woocommerce-order,
    body.rsp-order-received-page .rsp-thankyou,
    body.rsp-order-received-page .rsp-thankyou > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .rsp-thankyou { gap: 10px; }
    .rsp-thankyou-hero,
    .rsp-thankyou-products,
    .rsp-thankyou-summary,
    .rsp-thankyou-support { border-radius: 14px; }
    .rsp-thankyou-hero {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
    }
    .rsp-thankyou-check { width: 50px; height: 50px; }
    .rsp-thankyou-check::before {
        width: 20px;
        height: 12px;
        border-left-width: 4px;
        border-bottom-width: 4px;
    }
    .rsp-thankyou-hero h1,
    body.rsp-order-received-page .rsp-thankyou-hero h1 {
        margin-bottom: 4px !important;
        font-size: clamp(15px, 4.15vw, 18px) !important;
        line-height: 1.2 !important;
        white-space: nowrap;
        letter-spacing: -0.2px;
    }
    .rsp-thankyou-hero p {
        font-size: clamp(10.5px, 3vw, 12.5px);
        line-height: 1.3;
        white-space: nowrap;
        letter-spacing: -0.1px;
    }

    .rsp-thankyou-products { padding: 8px; }
    .rsp-thankyou-product {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }
    .rsp-thankyou-product-image { width: 66px; height: 66px; }
    .rsp-thankyou-product-heading h2,
    body.rsp-order-received-page .rsp-thankyou-product-heading h2 {
        font-size: 13px !important;
        line-height: 1.22 !important;
    }
    .rsp-thankyou-qty { padding: 3px 7px; font-size: 10px; }
    .rsp-thankyou-product-meta { gap: 6px; margin-top: 7px; }
    .rsp-thankyou-product-meta > div,
    .rsp-thankyou-product-meta strong { font-size: 11px; }

    .rsp-thankyou-summary { padding: 3px 12px; }
    .rsp-thankyou-summary > div {
        grid-template-columns: 18px minmax(0, 1fr) minmax(120px, auto);
        gap: 7px;
        min-height: 45px;
    }
    .rsp-thankyou-summary .rsp-view-order-mini-icon { width: 17px; height: 17px; }
    .rsp-thankyou-summary small { font-size: 11px; white-space: nowrap; }
    .rsp-thankyou-summary strong {
        font-size: 12px;
        white-space: nowrap;
        overflow-wrap: normal;
    }
    .rsp-thankyou-summary .rsp-thankyou-total strong { font-size: 15px; }

    .rsp-thankyou-actions { grid-template-columns: 1fr; gap: 10px; }
    .rsp-thankyou-action {
        grid-template-columns: 22px minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 48px;
        padding: 0 12px;
        font-size: 13px;
    }
    .rsp-thankyou-action .rsp-view-order-mini-icon,
    .rsp-thankyou-action .rsp-action-icon { width: 20px; height: 20px; }
    .rsp-thankyou-product-main,
    .rsp-thankyou-product-heading,
    .rsp-thankyou-summary > div,
    .rsp-thankyou-action { min-width: 0; }
}

@media (max-width: 430px) {
    body.rsp-order-received-page .entry-content > .woocommerce {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .rsp-thankyou-hero {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        padding: 13px;
        text-align: left;
    }
    .rsp-thankyou-check { width: 46px; height: 46px; }
    .rsp-thankyou-product {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
    }
    .rsp-thankyou-product-image { width: 60px; height: 60px; }
    .rsp-thankyou-product-meta > div {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .rsp-thankyou-product-meta strong { text-align: right; }
    .rsp-thankyou-summary > div {
        grid-template-columns: 18px minmax(0, 1fr) minmax(108px, auto);
        padding: 8px 0;
    }
    .rsp-thankyou-summary strong {
        grid-column: auto;
        margin-top: 0;
        text-align: right;
    }
    .rsp-thankyou-support { grid-template-columns: 40px minmax(0, 1fr) auto; }
    .rsp-thankyou-support em { display: none; }
}

/* ========================================================================== 
   Acceso / Registro + recuperación de contraseña
   La estructura, Google y seguridad ya viven dentro de este plugin.
   ========================================================================== */

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area * {
    box-sizing: border-box;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    color: var(--rsp-text);
}

/* En escritorio, las dos tarjetas comparten la altura de la más alta.
   Solo se estira la caja; el contenido interior conserva su flujo natural. */
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-account-tabs {
    display: none;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center;
    gap: 24px;
    width: 100% !important;
    margin: 0 !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .u-column1,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .u-column2 {
    float: none !important;
    clear: none !important;
    display: block !important;
    flex: 1 1 0;
    align-self: stretch !important;
    min-width: 0;
    width: 50% !important;
    max-width: 548px !important;
    margin: 0 !important;
    padding: 24px !important;
    overflow: hidden;
    background: var(--rsp-card-bg) !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: max(14px, var(--rsp-radius)) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

/* Títulos e iconos. */
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login h2 {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 22px !important;
    padding: 0 0 10px 30px !important;
    color: var(--rsp-text) !important;
    border: 0 !important;
    font-size: 22px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    background-repeat: no-repeat;
    background-position: left 2px;
    background-size: 18px 18px;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login h2::after {
    content: '';
    display: block;
    width: calc(100% - 30px);
    height: 2px;
    margin-top: 10px;
    margin-left: 30px;
    border-radius: 999px;
    background: var(--rsp-accent);
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .u-column1 h2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322c55e' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3Cpath d='M21 19V5a2 2 0 0 0-2-2h-6'/%3E%3C/svg%3E");
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .u-column2 h2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322c55e' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9.5' cy='7' r='4'/%3E%3Cpath d='M19 8v6'/%3E%3Cpath d='M16 11h6'/%3E%3C/svg%3E");
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login form {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

/* Google arriba. */
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-social-login-box {
    width: 100%;
    margin: 0 0 18px;
    text-align: center;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-social-login-box .nsl-container,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-social-login-box .nsl-container-buttons {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-social-login-box .nsl-button {
    width: 100% !important;
    max-width: none !important;
    min-height: 46px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 20px 0 5px;
    color: var(--rsp-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-social-divider::before,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rsp-border);
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-social-divider span {
    white-space: nowrap;
}

/* Campos manuales. */
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .form-row {
    float: none !important;
    width: 100% !important;
    margin: 0 0 15px !important;
    padding: 0 !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login label {
    display: block;
    margin: 0 0 7px !important;
    color: var(--rsp-text) !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .required {
    color: var(--rsp-accent) !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login input.input-text,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login input[type='text'],
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login input[type='email'],
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login input[type='password'] {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 10px 13px !important;
    background: color-mix(in srgb, var(--rsp-panel-bg) 72%, #000 28%) !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: 9px !important;
    outline: 0 !important;
    color: var(--rsp-text) !important;
    box-shadow: none !important;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login #username,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login #reg_full_name,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login #reg_email,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login #password,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login #reg_password {
    padding-left: 40px !important;
    background-repeat: no-repeat !important;
    background-position: 13px center !important;
    background-size: 16px 16px !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login #username,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login #reg_full_name {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322c55e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login #reg_email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322c55e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' ry='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login #password,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login #reg_password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322c55e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='10' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login input.input-text:focus,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login input[type='text']:focus,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login input[type='email']:focus,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login input[type='password']:focus {
    border-color: color-mix(in srgb, var(--rsp-accent) 72%, var(--rsp-border)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rsp-accent) 12%, transparent) !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .show-password-input {
    color: var(--rsp-muted) !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 1px 0 12px !important;
    color: var(--rsp-muted) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login input[type='checkbox'] {
    accent-color: var(--rsp-accent);
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .lost_password {
    margin: 9px 0 0 !important;
    font-size: 12px !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .lost_password a,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login a {
    color: var(--rsp-accent) !important;
    text-decoration: none !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .lost_password a:hover,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login a:hover {
    text-decoration: underline !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login button.button,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .woocommerce-button,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login input.button {
    width: 100% !important;
    min-height: 44px !important;
    margin: 2px 0 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: var(--rsp-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 44px !important;
    text-decoration: none !important;
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login button.button:hover,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .woocommerce-button:hover,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login input.button:hover {
    filter: brightness(1.06);
}

body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .woocommerce-privacy-policy-text,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .woocommerce-privacy-policy-text p,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .woocommerce-form-register p:not(.form-row) {
    color: var(--rsp-muted) !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

/* Evita el óvalo de foco heredado de Kadence en las pestañas. */
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-account-tab,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-account-tab:hover,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-account-tab:focus,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-account-tab:focus-visible,
body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-account-tab:active {
    outline: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent;
}

/* Contraseña y seguridad integrada. Los tres campos siguen siendo los nativos de WooCommerce. */
body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-wrapper {
    margin-top: 18px;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-card {
    overflow: hidden;
    background: var(--rsp-card-bg);
    border: 1px solid var(--rsp-border);
    border-radius: max(12px, calc(var(--rsp-radius) - 2px));
    color: var(--rsp-text);
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-summary {
    position: relative;
    display: block;
    padding: 16px 52px 16px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-summary::-webkit-details-marker {
    display: none;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-summary::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 19px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--rsp-muted);
    border-bottom: 2px solid var(--rsp-muted);
    transform: translateY(-65%) rotate(45deg);
    transition: transform .16s ease, border-color .16s ease;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-card[open] .rs-security-summary::after {
    border-color: var(--rsp-accent);
    transform: translateY(-35%) rotate(225deg);
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-title {
    display: block;
    margin: 0;
    color: var(--rsp-text);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.35;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-subtitle {
    display: block;
    margin-top: 3px;
    color: var(--rsp-muted);
    font-size: 12px;
    line-height: 1.4;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-content {
    padding: 0 18px 18px;
    border-top: 1px solid transparent;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-card[open] .rs-security-content {
    padding-top: 16px;
    border-top-color: var(--rsp-border);
}

/* Restablecer por correo es la acción principal dentro de Seguridad. */
body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-reset {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 14px 15px;
    border: 1px solid color-mix(in srgb, var(--rsp-accent) 28%, var(--rsp-border));
    border-radius: 10px;
    background: color-mix(in srgb, var(--rsp-accent) 7%, var(--rsp-panel-bg));
    color: var(--rsp-muted);
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-reset-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-reset strong {
    color: var(--rsp-text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-reset small {
    color: var(--rsp-muted);
    font-size: 11.5px;
    line-height: 1.45;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-reset-button {
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: var(--rsp-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    line-height: 40px !important;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-reset-button:hover {
    filter: brightness(1.06);
}

/* Cambio manual: disponible, pero visualmente más compacto. */
body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-manual {
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid var(--rsp-border);
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-manual-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 11px;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-manual-head strong {
    color: var(--rsp-text);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-manual-head small {
    color: var(--rsp-muted);
    font-size: 11px;
    line-height: 1.4;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-native-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    width: 100%;
    max-width: 720px;
    margin: 0;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-native-fields > .form-row:first-child {
    grid-column: 1 / -1;
    max-width: 354px;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-content .form-row {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-content label {
    display: block;
    margin: 0 0 5px !important;
    color: var(--rsp-text) !important;
    font-size: 11.5px !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-content input[type='password'] {
    width: 100% !important;
    min-height: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 7px 11px 7px 35px !important;
    color: var(--rsp-text) !important;
    background-color: color-mix(in srgb, var(--rsp-panel-bg) 72%, #000 28%) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322c55e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='10' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 11px center !important;
    background-size: 14px 14px !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: 8px !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-content input[type='password']:focus {
    border-color: color-mix(in srgb, var(--rsp-accent) 72%, var(--rsp-border)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rsp-accent) 10%, transparent) !important;
}

/* El botón sigue siendo el botón NATIVO de WooCommerce; solo cambia su texto y presentación. */
body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .woocommerce-EditAccountForm button[name='save_account_details'] {
    min-height: 42px !important;
    margin-top: 17px !important;
    padding: 0 21px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 42px !important;
}

/* Cuenta de Google integrada dentro de Mi Cuenta. */
body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-google-account {
    margin-top: 22px;
    padding: 20px;
    background: var(--rsp-card-bg);
    border: 1px solid var(--rsp-border);
    border-radius: max(12px, calc(var(--rsp-radius) - 2px));
    color: var(--rsp-text);
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-google-account__title {
    margin: 0 0 5px;
    color: var(--rsp-text);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.3;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-google-account__text {
    margin: 0 0 15px;
    color: var(--rsp-muted);
    font-size: 13px;
    line-height: 1.5;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-google-account .nsl-container,
body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-google-account .nsl-container-buttons {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-google-account .nsl-button {
    width: 100% !important;
    max-width: none !important;
    min-height: 44px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

/* Recuperación de contraseña. El formulario nativo de WooCommerce queda intacto. */
body.rsp-account-page .rsp-lost-password-card {
    width: calc(100% - 32px);
    max-width: 520px;
    margin: 0 auto !important;
    padding: 26px;
    box-sizing: border-box;
    background: var(--rsp-card-bg);
    border: 1px solid var(--rsp-border);
    border-radius: max(14px, var(--rsp-radius));
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
    color: var(--rsp-text);
}

body.rsp-account-page .rsp-lost-password-head {
    margin-bottom: 21px;
}

body.rsp-account-page .rsp-lost-password-head h2 {
    margin: 0 0 8px !important;
    color: var(--rsp-text) !important;
    font-size: 22px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
}

body.rsp-account-page .rsp-lost-password-head p {
    margin: 0 !important;
    color: var(--rsp-muted) !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

body.rsp-account-page .rsp-lost-password-card form.lost_reset_password {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body.rsp-account-page .rsp-lost-password-card form.lost_reset_password > p:first-child {
    display: none;
}

body.rsp-account-page .rsp-lost-password-card .form-row {
    float: none !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
}

body.rsp-account-page .rsp-lost-password-card label {
    display: block;
    margin: 0 0 7px !important;
    color: var(--rsp-text) !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

body.rsp-account-page .rsp-lost-password-card input#user_login {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 10px 13px 10px 40px !important;
    color: var(--rsp-text) !important;
    background-color: color-mix(in srgb, var(--rsp-panel-bg) 72%, #000 28%) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322c55e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 13px center !important;
    background-size: 16px 16px !important;
    border: 1px solid var(--rsp-border) !important;
    border-radius: 9px !important;
    outline: 0 !important;
    box-shadow: none !important;
}

body.rsp-account-page .rsp-lost-password-card input#user_login:focus {
    border-color: color-mix(in srgb, var(--rsp-accent) 72%, var(--rsp-border)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rsp-accent) 12%, transparent) !important;
}

body.rsp-account-page .rsp-lost-password-card button.button {
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: var(--rsp-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 750 !important;
}

body.rsp-account-page .rsp-lost-password-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--rsp-accent) !important;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none !important;
}

body.rsp-account-page .rsp-lost-password-back:hover {
    text-decoration: underline !important;
}

/* Móvil: una tarjeta de acceso por vez. */
@media (max-width: 768px) {
    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area {
        max-width: 560px;
    }

    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-account-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        margin: 0 0 18px;
        border-bottom: 1px solid var(--rsp-border);
    }

    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-account-tab {
        position: relative;
        min-height: 44px;
        padding: 10px 8px !important;
        color: var(--rsp-muted) !important;
        font-size: 13px !important;
        font-weight: 650 !important;
        line-height: 1.2 !important;
        cursor: pointer;
    }

    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-account-tab.is-active {
        color: var(--rsp-text) !important;
    }

    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-account-tab.is-active::after {
        content: '';
        position: absolute;
        right: 12px;
        bottom: -1px;
        left: 12px;
        height: 2px;
        border-radius: 999px;
        background: var(--rsp-accent);
    }

    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login {
        display: block !important;
        width: 100% !important;
    }

    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .u-column1,
    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .u-column2 {
        display: none !important;
        width: 100% !important;
        max-width: none !important;
        padding: 20px !important;
        border-radius: 14px !important;
        box-shadow: none;
    }

    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .u-column1 {
        display: block !important;
    }

    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login.rs-show-register .u-column1 {
        display: none !important;
    }

    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login.rs-show-register .u-column2 {
        display: block !important;
    }

    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login h2 {
        margin-bottom: 16px !important;
        padding-bottom: 0 !important;
        border-bottom: 0;
        font-size: 21px !important;
    }

    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login h2::after {
        display: none;
    }

    body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-wrapper {
        margin-top: 16px;
    }

    body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-summary {
        padding: 14px 44px 14px 15px;
    }

    body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-title {
        font-size: 15px;
    }

    body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-subtitle {
        font-size: 11.5px;
    }

    body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-content {
        padding-right: 14px;
        padding-left: 14px;
    }

    body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-card[open] .rs-security-content {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-reset {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 13px;
    }

    body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-reset-button {
        width: 100% !important;
    }

    body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-native-fields {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-native-fields > .form-row:first-child {
        grid-column: auto;
        max-width: none;
    }

    body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-security-content input[type='password'] {
        min-height: 40px !important;
        height: 40px !important;
    }

    body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .woocommerce-EditAccountForm button[name='save_account_details'] {
        width: 100% !important;
        margin-top: 15px !important;
    }

    body.rsp-account-page.rsp-integrated-account-on .rsp-account-main .rs-google-account {
        padding: 16px;
    }

    body.rsp-account-page .rsp-lost-password-card {
        width: calc(100% - 24px);
        padding: 20px;
    }
}

@media (max-width: 430px) {
    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .u-column1,
    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login .u-column2 {
        padding: 17px !important;
    }

    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area #customer_login h2 {
        font-size: 19px !important;
    }

    body.rsp-account-page.rsp-integrated-account-on .rs-auth-area .rs-social-login-box .nsl-button {
        min-height: 44px !important;
    }

    body.rsp-account-page .rsp-lost-password-card {
        width: calc(100% - 20px);
        padding: 17px;
    }

    body.rsp-account-page .rsp-lost-password-head h2 {
        font-size: 20px !important;
    }
}
