/* ==========================================================================
   TIKITOPRO - WooCommerce Account Styles
   Estilos modernizados para área de Mi Cuenta
   ========================================================================== */

/* ==========================================================================
   1. Main Navigation Container
   ========================================================================== */
.woocommerce-MyAccount-navigation {
    background: linear-gradient(180deg, var(--tt-gray-900, #212121) 0%, var(--tt-black, #1a1a1a) 100%);
    border-radius: var(--tt-radius-xl, 20px);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: var(--tt-space-8, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Add a title to the navigation */
.woocommerce-MyAccount-navigation::before {
    content: 'Mi Cuenta';
    display: block;
    padding: var(--tt-space-5, 1.25rem) var(--tt-space-6, 1.5rem);
    font-family: var(--font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-size: var(--tt-text-lg, 1.125rem);
    font-weight: 700;
    color: var(--tt-primary, #e1af1a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   2. Navigation List and Items
   ========================================================================== */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin: 5px 0;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Left bar indicator on hover */
.woocommerce-MyAccount-navigation li:not(.woocommerce-MyAccount-navigation-link--customer-logout)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    background-color: var(--primary-color, #e1af1a);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.woocommerce-MyAccount-navigation li:hover::before {
    opacity: 1;
}

/* Active state styling */
.woocommerce-MyAccount-navigation li.is-active {
    background: linear-gradient(135deg, var(--tt-primary, #e1af1a) 0%, var(--tt-primary-dark, #c99b15) 100%);
    box-shadow: 0 4px 15px rgba(225, 175, 26, 0.35);
    transform: translateX(4px);
}

.woocommerce-MyAccount-navigation li.is-active::before {
    opacity: 0;
}

.woocommerce-MyAccount-navigation li.is-active a {
    color: var(--tt-black, #1a1a1a);
    font-weight: 700;
}

/* ==========================================================================
   3. Navigation Links
   ========================================================================== */
.woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #f5f5f5;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.woocommerce-MyAccount-navigation a:hover {
    color: #ff3a2d;
}

/* Icons in navigation */
.woocommerce-MyAccount-navigation i,
.woocommerce-MyAccount-navigation .fas {
    margin-right: 14px;
    min-width: 22px;
    text-align: center;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.woocommerce-MyAccount-navigation a:hover i,
.woocommerce-MyAccount-navigation a:hover .fas {
    transform: translateX(2px);
}

.woocommerce-MyAccount-navigation li.is-active i,
.woocommerce-MyAccount-navigation li.is-active .fas {
    transform: scale(1.1);
}

.woocommerce-MyAccount-navigation .nav-label {
    font-size: 15px;
    letter-spacing: 0.3px;
    font-weight: 500;
}



/* Special styling for logout link */
.woocommerce-MyAccount-navigation-link--customer-logout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: #ff6b6b;
    /* Red color for logout link only */
}

.woocommerce-MyAccount-navigation-link--customer-logout:hover::before {
    opacity: 1;
}

/* Make the indicator more visible in dark mode */
body.dark-mode .woocommerce-MyAccount-navigation-link--customer-logout::before {
    background-color: #ff7b7b;
    /* Brighter red for dark mode */
}


.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 5px;
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #ff6b6b;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background-color: rgba(255, 107, 107, 0.1);
    color: #ff8a8a;
}

.woocommerce-MyAccount-navigation-link--customer-logout i,
.woocommerce-MyAccount-navigation-link--customer-logout .fas {
    color: #ff6b6b;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:focus,
.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    outline: 2px solid rgba(255, 107, 107, 0.5);
    background-color: rgba(255, 107, 107, 0.15);
}

body.dark-mode .woocommerce-MyAccount-navigation-link--customer-logout a:focus,
body.dark-mode .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    outline: 2px solid rgba(255, 107, 107, 0.5);
    background-color: rgba(255, 107, 107, 0.25);
}

/* ==========================================================================
   5. Content Area
   ========================================================================== */
.woocommerce-MyAccount-content {
    background: var(--tt-bg-primary, #ffffff);
    padding: var(--tt-space-8, 1rem);
    border-radius: var(--tt-radius-xl, 20px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--tt-border-color, #e5e7eb);
}

/* Headings */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-family: var(--font-secondary, 'Plus Jakarta Sans', sans-serif);
    color: var(--tt-text-primary, #1a1a1a);
    margin-top: 0;
    margin-bottom: var(--tt-space-5, 1.25rem);
    position: relative;
    padding-bottom: var(--tt-space-3, 0.75rem);
}

.woocommerce-MyAccount-content h2::after,
.woocommerce-MyAccount-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color, #e1af1a) !important;
    border-radius: 2px;
}

/* Paragraphs */
.woocommerce-MyAccount-content p {
    margin-bottom: var(--tt-space-5, 1.25rem);
    line-height: 1.7;
    color: var(--tt-text-secondary, #666666);
}

.dark-mode .woocommerce-MyAccount-content p {
    margin-bottom: var(--tt-space-5, 1.25rem);
    line-height: 1.7;
    color: #fff;
}

/* Buttons */
.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--tt-space-2, 0.5rem);
    background: linear-gradient(135deg, var(--tt-primary, #e1af1a) 0%, var(--tt-primary-dark, #c99b15) 100%);
    color: var(--tt-black, #1a1a1a);
    border: none;
    padding: var(--tt-space-3, 0.75rem) var(--tt-space-6, 1.5rem);
    border-radius: var(--tt-radius-md, 10px);
    font-family: var(--font-secondary, 'Plus Jakarta Sans', sans-serif);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 175, 26, 0.25);
    text-decoration: none;
}

.woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-MyAccount-content .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 175, 26, 0.35);
}

/* ==========================================================================
   6. Tables
   ========================================================================== */
/* All account tables */
.woocommerce-MyAccount-content table,
.woocommerce-orders-table,
.woocommerce-table--order-downloads,
.woocommerce-table--order-details {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Table headers */
.woocommerce-MyAccount-content table th,
.woocommerce-orders-table th,
.woocommerce-table--order-downloads th,
.woocommerce-table--order-details th {
    background-color: #f8f8f8;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #222222;
    border-bottom: 1px solid #eaeaea;
}

/* Table cells */
.woocommerce-MyAccount-content table td,
.woocommerce-orders-table td,
.woocommerce-table--order-downloads td,
.woocommerce-table--order-details td {
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
}

/* Last row in tables */
.woocommerce-MyAccount-content table tr:last-child td,
.woocommerce-orders-table tr:last-child td,
.woocommerce-table--order-downloads tr:last-child td,
.woocommerce-table--order-details tr:last-child td {
    border-bottom: none;
}

/* Hover effect on table rows */
.woocommerce-MyAccount-content table tr:hover td,
.woocommerce-orders-table tr:hover td,
.woocommerce-table--order-downloads tr:hover td,
.woocommerce-table--order-details tbody tr:hover td {
    background-color: #fafafa;
}

/* ==========================================================================
   7. Addresses
   ========================================================================== */
.woocommerce-MyAccount-content .woocommerce-Address {
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #fafafa;
}

.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    margin-top: 0;
    font-size: 18px;
}

.woocommerce-MyAccount-content .woocommerce-Address address {
    font-style: normal;
    line-height: 1.6;
}

/* ==========================================================================
   8. Forms
   ========================================================================== */
.woocommerce-MyAccount-content form .form-row {
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Form inputs */
.woocommerce-MyAccount-content form .form-row input,
.woocommerce-MyAccount-content form .form-row textarea,
.woocommerce-MyAccount-content form .form-row select,
.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="password"],
.woocommerce-form-register input[type="tel"],
.woocommerce-form-register input[type="date"],
.woocommerce-form-register input[type="select"],
.woocommerce-form-register input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

/* Form focus states */
.woocommerce-MyAccount-content form .form-row input:focus,
.woocommerce-MyAccount-content form .form-row textarea:focus,
.woocommerce-MyAccount-content form .form-row select:focus,
.woocommerce-form-login input[type="text"]:focus,
.woocommerce-form-login input[type="password"]:focus,
.woocommerce-form-register input[type="text"]:focus,
.woocommerce-form-register input[type="password"]:focus,
.woocommerce-form-register input[type="tel"]:focus,
.woocommerce-form-register input[type="date"]:focus,
.woocommerce-form-register input[type="select"]:focus,
.woocommerce-form-register input[type="email"]:focus {
    border-color: #ff3a2d;
    outline: none;
    box-shadow: 0 0 0 2px rgba(225, 175, 26, 0.2);
}

/* ==========================================================================
   9. Dark Mode Compatibility
   ========================================================================== */
body.dark-mode .woocommerce-MyAccount-navigation {
    background-color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

body.dark-mode .woocommerce-MyAccount-navigation::before {
    color: #ff3a2d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .woocommerce-MyAccount-navigation li.is-active {
    background-color: #ff3a2d;
}

body.dark-mode .woocommerce-MyAccount-navigation a {
    color: #f5f5f5;
}

body.dark-mode .woocommerce-MyAccount-content {
    background-color: #252525;
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .woocommerce-MyAccount-content h2,
body.dark-mode .woocommerce-MyAccount-content h3 {
    color: #f5f5f5;
}

body.dark-mode .woocommerce-MyAccount-content table th,
body.dark-mode .woocommerce-orders-table th,
body.dark-mode .woocommerce-table--order-downloads th,
body.dark-mode .woocommerce-table--order-details th {
    background-color: #333;
    color: #f5f5f5;
    border-bottom: 1px solid #444;
}

body.dark-mode .woocommerce-MyAccount-content table td,
body.dark-mode .woocommerce-orders-table td,
body.dark-mode .woocommerce-table--order-downloads td,
body.dark-mode .woocommerce-table--order-details td {
    border-bottom: 1px solid #444;
}

body.dark-mode .woocommerce-MyAccount-content table tr:hover td,
body.dark-mode .woocommerce-orders-table tr:hover td,
body.dark-mode .woocommerce-table--order-downloads tr:hover td,
body.dark-mode .woocommerce-table--order-details tbody tr:hover td {
    background-color: #2a2a2a;
}

body.dark-mode .woocommerce-MyAccount-content .woocommerce-Address {
    border-color: #444;
    background-color: #2a2a2a;
}

body.dark-mode .woocommerce-MyAccount-content form .form-row input,
body.dark-mode .woocommerce-MyAccount-content form .form-row textarea,
body.dark-mode .woocommerce-MyAccount-content form .form-row select {
    background-color: #333;
    border-color: #444;
    color: #f5f5f5;
}

body.dark-mode .woocommerce-MyAccount-content .woocommerce-confirm-logout {
    color: #f5f5f5;
    background-color: #333;
    border: 1px solid #444;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

body.dark-mode .woocommerce-MyAccount-content .woocommerce-confirm-logout p {
    color: #f5f5f5;
    margin-bottom: 15px;
}

body.dark-mode .woocommerce-MyAccount-content .woocommerce-confirm-logout .woocommerce-Button {
    background-color: #ff3a2d;
    color: #222;
    margin-right: 10px;
}

body.dark-mode .woocommerce-MyAccount-content .woocommerce-confirm-logout .woocommerce-Button.button-secondary {
    background-color: transparent;
    border: 1px solid #666;
    color: #f5f5f5;
}

body.dark-mode .woocommerce-MyAccount-content .woocommerce-confirm-logout .woocommerce-Button.button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Improved logout button hover state in dark mode */
body.dark-mode .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background-color: rgba(255, 107, 107, 0.2);
    /* More visible red */
    color: #ff8a8a;
}

/* More vivid red color for logout button in dark mode */
body.dark-mode .woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #ff7b7b;
    /* Brighter red for dark mode */
}

body.dark-mode .woocommerce-MyAccount-navigation-link--customer-logout i,
body.dark-mode .woocommerce-MyAccount-navigation-link--customer-logout .fas {
    color: #ff7b7b;
    /* Brighter red for dark mode */
}

/* ==========================================================================
   10. Responsive Layout
   ========================================================================== */
@media (min-width: 769px) {

    /* Two-column layout on desktop */
    .woocommerce-account .woocommerce {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        flex: 0 0 280px;
        max-height: fit-content;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation::before {
        padding: 15px;
        font-size: 16px;
    }

    .woocommerce-MyAccount-navigation ul {
        padding: 8px;
    }

    .woocommerce-MyAccount-navigation li {
        margin: 3px 0;
    }

    .woocommerce-MyAccount-navigation a {
        padding: 12px 15px;
    }

    .woocommerce-MyAccount-navigation i,
    .woocommerce-MyAccount-navigation .fas {
        margin-right: 10px;
        font-size: 16px;
    }

    .woocommerce-MyAccount-navigation .nav-label {
        font-size: 14px;
    }

    .woocommerce-MyAccount-content {
        padding: 20px;
    }
}

/* ==========================================================================
   11. Mobile-specific Improvements
   ========================================================================== */
@media (max-width: 768px) {

    /* Prevent text overflow on mobile */
    .woocommerce-MyAccount-content {
        padding: 20px;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    /* Improve table display on mobile */
    .woocommerce-MyAccount-content table,
    .woocommerce-orders-table,
    .woocommerce-table--order-downloads,
    .woocommerce-table--order-details {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Responsive fixes for the default Dashboard page */
    .woocommerce-MyAccount-content p {
        margin-bottom: 15px;
        font-size: 14px;
    }

    /* Improve address display on mobile */
    .woocommerce-MyAccount-content .woocommerce-Address {
        padding: 15px;
    }

    .woocommerce-MyAccount-content .woocommerce-Address address {
        font-size: 14px;
    }

    /* Better spacing for form fields */
    .woocommerce-MyAccount-content form .form-row {
        margin-bottom: 15px;
    }

    /* Make sure buttons don't overflow */
    .woocommerce-MyAccount-content .button,
    .woocommerce-MyAccount-content .woocommerce-Button {
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
        min-height: 44px;
        /* Better touch target */
        font-size: 14px;
    }

    /* Improve order details layout */
    .woocommerce-order-details h2,
    .woocommerce-column__title {
        font-size: 18px;
    }

    /* Fix for the logout confirmation screen */
    .woocommerce-MyAccount-content .woocommerce-confirm-logout {
        padding: 15px;
    }

    .woocommerce-MyAccount-content .woocommerce-confirm-logout p {
        margin-bottom: 15px;
        font-size: 14px;
    }

    /* Fix button layout in logout confirmation for better mobile display */
    .woocommerce-MyAccount-content .woocommerce-confirm-logout .button-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .woocommerce-MyAccount-content .woocommerce-confirm-logout .woocommerce-Button {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    /* Improve font size in tables */
    .woocommerce-orders-table td,
    .woocommerce-table--order-downloads td,
    .woocommerce-table--order-details td {
        font-size: 14px;
    }

    /* Prevent horizontal overflow */
    .woocommerce-account .woocommerce {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Ensure headings don't overflow */
    .woocommerce-MyAccount-content h2,
    .woocommerce-MyAccount-content h3 {
        font-size: 18px;
        padding-bottom: 8px;
        margin-bottom: 15px;
    }

    /* Style for WooCommerce notices */
    .woocommerce-message,
    .woocommerce-error,
    .woocommerce-info {
        padding: 12px !important;
        font-size: 14px;
        margin-bottom: 15px !important;
    }
}

/* Extra small screens (under 480px) */
@media (max-width: 480px) {

    /* Even smaller text and padding */
    .woocommerce-MyAccount-content {
        padding: 15px;
    }

    /* Make form labels and inputs more compact */
    .woocommerce-MyAccount-content form .form-row label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .woocommerce-MyAccount-content form .form-row input,
    .woocommerce-MyAccount-content form .form-row textarea,
    .woocommerce-MyAccount-content form .form-row select {
        padding: 8px;
        font-size: 14px;
    }

    /* Smaller titles */
    .woocommerce-MyAccount-navigation::before {
        padding: 12px;
        font-size: 16px;
    }

    /* Improve layout for smaller address boxes */
    .woocommerce-Address-title {
        display: flex;
        flex-direction: column;
    }

    .woocommerce-Address-title .edit {
        margin-top: 5px;
    }

    /* Ensure mobile menu items are properly spaced */
    .woocommerce-MyAccount-navigation li {
        margin: 2px 0;
    }

    .woocommerce-MyAccount-navigation a {
        padding: 10px 12px;
    }

    /* Fix very small screens wrapping issues */
    .woocommerce-MyAccount-navigation .nav-label {
        font-size: 13px;
        letter-spacing: 0;
    }
}

/* ===================================================================
 * CSS para la Tabla de Pedidos de WooCommerce (Mi Cuenta)
 * ===================================================================
 */

/* Estilo general del contenedor de la tabla */
.woocommerce-MyAccount-content table.woocommerce-orders-table,
.woocommerce-MyAccount-content table.my_account_orders,
.woocommerce-MyAccount-content table.account-orders-table {
    width: 100%;
    border-collapse: collapse;
    /* Une los bordes de las celdas */
    margin-bottom: 2rem;
    font-size: 1rem;
    /* Ajusta el tamaño de la fuente base */
    border-radius: 8px;
    /* Bordes redondeados para la tabla */
    overflow: hidden;
    /* Asegura que el contenido respete los bordes redondeados */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Sombra sutil */
    border: none;
}

/* Encabezados de la tabla */
.woocommerce-orders-table thead th,
.my_account_orders thead th {
    background-color: #f8f9fa;
    /* Color de fondo para los encabezados */
    color: #333;
    /* Color del texto del encabezado */
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    /* Texto en negrita */
    text-transform: uppercase;
    /* Mayúsculas para un look más formal */
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

/* Celdas y filas de la tabla */
.woocommerce-orders-table tbody tr {
    border-bottom: 1px solid #dee2e6;
    /* Línea divisoria entre filas */
    transition: background-color 0.3s ease;
    /* Transición suave al pasar el cursor */
}

.woocommerce-orders-table tbody tr:last-child {
    border-bottom: none;
    /* Elimina la línea en la última fila */
}

.woocommerce-orders-table tbody tr:hover {
    background-color: #f1f3f5;
    /* Color de fondo al pasar el cursor */
}

.woocommerce-orders-table tbody td,
.my_account_orders tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    /* Alinea el contenido verticalmente */
    color: #555;
    width: initial !important;
}

/* Enlaces dentro de la tabla */
.woocommerce-orders-table tbody td a {
    color: var(--primary-color);
    /* Usar variable CSS */
    text-decoration: none;
    font-weight: 500;
}

.woocommerce-orders-table tbody td a:hover {
    text-decoration: underline;
}

/* Estilo para los botones de acción (Ver, Pagar, etc.) */
.wocommerce-orders-table .woocommerce-button {
    background-color: var(--btn-bg);
    /* Usar variable CSS */
    color: var(--btn-text) !important;
    /* Usar variable CSS */
    padding: 8px 15px;
    border-radius: var(--btn-radius);
    /* Usar variable CSS */
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: none;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.woocommerce-orders-table .woocommerce-button:hover {
    background-color: var(--btn-hover);
    /* Usar variable CSS */
    color: var(--btn-text) !important;
    /* Usar variable CSS */
    transform: translateY(-2px);
    /* Efecto sutil al pasar el cursor */
}

/* Diseño responsivo para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .shop_table_responsive {
        display: block;
        width: 100%;
    }

    .shop_table_responsive thead {
        display: none;
        /* Oculta los encabezados en móviles */
    }

    .shop_table_responsive tbody,
    .shop_table_responsive tr,
    .shop_table_responsive td {
        display: block;
        width: 100%;
        text-align: right;
        /* Alinea el texto a la derecha */
        position: relative;
    }

    .shop_table_responsive tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
    }

    .shop_table_responsive td {
        padding-left: 50%;
        /* Espacio para la etiqueta del dato */
        border-bottom: 1px solid #f1f3f5;
    }

    .shop_table_responsive td:last-child {
        border-bottom: none;
    }

    /* Agrega la etiqueta del dato usando el atributo data-title */
    .shop_table_responsive td::before {
        content: attr(data-title);
        position: absolute;
        left: 15px;
        font-weight: 600;
        color: #333;
        text-align: left;
    }

    .woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-button {

        text-align: center;
        margin-top: 5px;
    }

}