/**
 * Estilos para RAW WooCommerce Account
 *
 * Este archivo contiene todos los estilos CSS necesarios para personalizar
 * la apariencia de la página de cuenta de WooCommerce según las imágenes proporcionadas.
 */

/* Estilos generales del contenedor principal */
div.wd-my-account-links.wd-grid-g {display:none !important;}

img.avatar {border-radius: 50% !important;}


h3.woocommerce-MyAccount-title.entry-title {display:none;}
.woocommerce-MyAccount-navigation ul li.is-active>a {
    background-color: #ffffff !important;
    cursor: default;
}

/* Estilos del menú de navegación */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
    float: left;
    margin-bottom: 40px;

}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 70%;
    float: right;
    padding-left: 30px;
}

.woocommerce-MyAccount-navigation ul li.is-active>a {
    background-color: #ffffff;
    cursor: default;
}

/* Ajuste del menú */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    padding: 0;
	
	/* Estilos para notificaciones en línea */
.raw-inline-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    display: none;
}
.raw-inline-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.raw-inline-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.raw-inline-message.loading {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
    display: flex;
    align-items: center;
}
.raw-inline-message.loading:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #999;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

#raw-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 300px;
}
.raw-notification {
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}
.raw-notification.show {
    transform: translateX(0);
    opacity: 1;
}
.raw-notification-success {
    background-color: #28a745;
}
.raw-notification-error {
    background-color: #dc3545;
}
.raw-notification-info {
    background-color: #17a2b8;
}
.raw-close-notification {
    float: right;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
}
    margin: 0;
    list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #989898;
}

/* Estilos para las opciones del menú */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    color: var(--Negro-RAW, #111);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
  width: 100%;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    padding-bottom: 12px;
    display: inline-block;
}

/* Estilos para la opción activa del menú */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #E84626;
    border-bottom: 2px solid #E84626;
    padding-bottom: 12px;
}

/* Título de sección principal */
.woocommerce-account .woocommerce-MyAccount-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

/* Estilos para el contenido del profile */
.raw-account-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.raw-account-profile {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

/* Estilos del perfil */
.raw-profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.raw-profile-picture img {
    border-radius: 50% !important;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 1px solid #f2f2f2;
}

.raw-user-name {
    position: relative;
  flex: auto;
}

.raw-user-name h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #888;
    font-weight: 400;
}

.raw-user-name p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

/* ======= PEDIDOS Y DEVOLUCIONES ======= */
.raw-orders-container {
    width: 100%;
}

.raw-orders-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.raw-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.raw-orders-table th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    font-weight: 500;
    color: #666;
}

.raw-orders-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.raw-orders-table .order-status .status-delivered {
    color: #28a745;
    font-weight: 500;
}

.raw-orders-table .order-status .status-canceled {
    color: #dc3545;
    font-weight: 500;
}

.raw-orders-table .order-status .status-refunded {
    color: #ffc107;
    font-weight: 500;
}

.raw-orders-table .order-invoice a {
    display: inline-block;
}

.raw-orders-table .invoice-icon {
    vertical-align: middle;
}

.raw-no-orders {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

.raw-no-orders p {
    margin-bottom: 20px;
    color: #666;
}

/* ======= GESTIÓN DE SUSCRIPCIONES ======= */
.raw-subscription-container {
    width: 100%;
}

.raw-subscription-box {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
}

.raw-subscription-details h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.raw-subscription-details p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

.raw-subscription-actions {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    gap: 15px;
}

.raw-edit-button,
.raw-cancel-button {
    text-decoration: none;
    font-size: 14px;
}

.raw-edit-button {
    color: #E84626;
}

.raw-cancel-button {
    color: #888;
}

.raw-subscription-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.raw-subscription-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #E84626;
    text-decoration: none;
    font-size: 14px;
}

.raw-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.raw-subscription-link:hover {
    text-decoration: underline;
}

.raw-no-subscription {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

.raw-no-subscription p {
    margin-bottom: 20px;
    color: #666;
}

/* ======= MÉTODOS DE PAGO ======= */
.raw-payment-methods-container {
    width: 100%;
}

.raw-payment-method-card {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.raw-payment-method-default {
    width: 130px;
}

.raw-default-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.raw-payment-method-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.raw-card-brand {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.raw-card-logo {
    background-color: #000;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
}

.raw-visa-logo {
    background-color: #1a1f71;
}

.raw-mastercard-logo {
    background-color: #eb001b;
}

.raw-card-details {
    flex: 1;
}

.raw-card-holder {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.raw-card-number,
.raw-card-expiry {
    margin-bottom: 5px;
}

.raw-card-number-label,
.raw-card-expiry-label {
    font-size: 12px;
    color: #666;
    margin-right: 10px;
}

.raw-card-number-value,
.raw-card-expiry-value {
    font-size: 14px;
}

.raw-payment-method-actions {
    text-align: right;
}

.raw-delete-card-button {
    color: #888;
    text-decoration: none;
    font-size: 14px;
}

.raw-add-payment-method {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px 25px;
    display: flex;
    justify-content: center;
}

.raw-add-method-button {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #E84626;
    text-decoration: none;
}

.raw-no-payment-methods {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

.raw-no-payment-methods p {
    margin-bottom: 20px;
    color: #666;
}

.raw-add-first-method-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #E84626;
    text-decoration: none;
}

/* Modal de tarjeta */
.raw-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.raw-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.raw-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

/* ======= LIBRO DE DIRECCIONES ======= */
.raw-address-book-container {
    width: 100%;
}

.raw-address-card {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
}

.raw-address-type {
    width: 27%;
}

.raw-address-default-indicator,
.raw-address-type-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.raw-address-details {
    flex: 1;
}

.raw-address-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.raw-address-lines,
.raw-address-phone {
    margin: 5px 0;
    font-size: 14px;
}

.raw-address-actions {
    text-align: right;
    position: absolute;
    top: 25px;
    right: 25px;
}

.raw-edit-address-button,
.raw-cancel-button {
    color: #E84626;
    text-decoration: none;
    font-size: 14px;
    margin-left: 15px;
}

.raw-cancel-button {
    color: #888;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.raw-add-address {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px 25px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.raw-add-address-button {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #E84626;
    text-decoration: none;
}

/* Formulario de dirección */
.raw-address-form-container form {
    margin-top: 20px;
}

.raw-address-form-container .form-row {
    margin-bottom: 15px;
}

.raw-address-form-container .form-row-first {
    float: left;
    width: 48%;
    margin-right: 4%;
}

.raw-address-form-container .form-row-last {
    float: right;
    width: 48%;
}

.raw-address-form-container .form-row-wide {
    clear: both;
    width: 100%;
}

.raw-address-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.raw-address-form-container .input-text,
.raw-address-form-container select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.raw-address-form-container .button {
    background-color: #E84626;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
}

.raw-address-form-container .woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Estilos para perfil */
.raw-profile-picture-field {
    display: flex;
    align-items: center;
    gap: 20px;
}

.raw-profile-upload {
    flex: 1;
}

.raw-profile-upload input[type="file"] {
    margin-bottom: 5px;
}

.raw-profile-upload small {
    color: #777;
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

/* Credentials */
.raw-credentials-section {
    margin-top: 30px;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.raw-credentials-section h3 {
    color: #888;
    margin-bottom: 15px;
}

.raw-credential-item {
    margin-bottom: 15px;
}

.raw-credential-item span {
    font-weight: bold;
    display: block;
    font-size: 14px;
}

.raw-credential-item p {
    margin: 5px 0 0;
}

/* Personal details */
.raw-personal-section {
    margin-top: 30px;
    position: relative;
}

.raw-personal-section h3 {
    color: #888;
    margin-bottom: 15px;
}

.raw-personal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.raw-personal-item {
    margin-bottom: 15px;
}

.raw-personal-item span {
    font-weight: bold;
    display: block;
    font-size: 14px;
}

.raw-personal-item p {
    margin: 5px 0 0;
}

/* Edit link */
.raw-edit-link {
    position: absolute;
    right: 0;
    top: 0;
    color: #E84626;
    text-decoration: none;
    font-size: 14px;
}
/* Solución para iconos duplicados en los botones de Address Book */
.woocommerce-MyAccount-content a.edit,
.woocommerce-MyAccount-content a.button {
    position: relative;
}

/* Ocultar el primer icono (el que viene del tema) */
.woocommerce-MyAccount-content a.edit svg:first-of-type,
.woocommerce-MyAccount-content a.button svg:first-of-type {
    display: none;
}

/* Mejorar el aspecto de los botones */
.woocommerce-MyAccount-content .woocommerce-Address-title a.edit,
.woocommerce-MyAccount-content a.button {
    background-color: #E84626;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.woocommerce-MyAccount-content .woocommerce-Address-title a.edit:hover,
.woocommerce-MyAccount-content a.button:hover {
    background-color: #d03d20;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 30px;
        border-right: none;
        padding-right: 0;
    }
    
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        margin-right: 15px;
    }
    
    .raw-address-card,
    .raw-payment-method-card {
        flex-direction: column;
    }
    
    .raw-address-type,
    .raw-payment-method-default {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .raw-address-actions,
    .raw-payment-method-actions,
    .raw-subscription-actions {
        position: static;
        margin-top: 15px;
        text-align: left;
    }
    
    .raw-payment-method-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .raw-address-form-container .form-row-first,
    .raw-address-form-container .form-row-last {
        float: none;
        width: 100%;
    }
    
    .raw-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .raw-personal-details {
        grid-template-columns: 1fr;
    }
    
    .raw-profile-section {
        flex-direction: column;
    }
    
    .raw-edit-link {
        position: relative;
        display: inline-block;
        margin-top: 10px;
    }
}

/* Notificaciones en menú */
.woocommerce-MyAccount-navigation-link--notifications a:after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #E84626;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}