/* ═══════════════════════════════════════════════════════════════
   Pawwell Pro Addons — WooCommerce
   ═══════════════════════════════════════════════════════════════ */


.woocommerce-account.woo-right-sidebar .row,
.woocommerce-account.woo-left-sidebar .row {
    display: block;
    gap: 0;
}

.woocommerce-account.woo-right-sidebar .row > .col-md-12,
.woocommerce-account.woo-left-sidebar .row > .col-md-12 {
    width: 100%;
    max-width: 100%;
    flex: none;
}

.logged-in.woocommerce-account .woocommerce-MyAccount-navigation,
.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
}

.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

.logged-in.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 260px !important;
    flex-shrink: 0 !important;
    margin-top: 15px;
}

/* Ensure the parent flex container is properly set */
.logged-in.woocommerce-account .woocommerce {
    display: flex !important;
}

/* Ensure content area children fill available space */
.logged-in.woocommerce-account .woocommerce-MyAccount-content > * {
    max-width: 100% !important;
}

/* Orders table fills full width */
.logged-in.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table {
    width: 100% !important;
}

.logged-in.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive {
    width: 100% !important;
}


/* ═══════════════════════════════════════════════════════════════
   Orders Page — Enhanced Button Design
   ═══════════════════════════════════════════════════════════════ */

/* View Order button — in the orders table actions column */
.woocommerce-MyAccount-content .woocommerce-orders-table .order-actions a,
.woocommerce-MyAccount-content .woocommerce-orders-table .order-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background: var(--brand-dark);
    border: 1.5px solid var(--brand-dark);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    font-family: var(--font-sans);
    line-height: 1.4;
    white-space: nowrap;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .order-actions a:hover,
.woocommerce-MyAccount-content .woocommerce-orders-table .order-actions button:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.woocommerce-MyAccount-content .woocommerce-orders-table .order-actions a:active,
.woocommerce-MyAccount-content .woocommerce-orders-table .order-actions button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* General My Account buttons — refined design */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--brand-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
    text-decoration: none;
    letter-spacing: 0.2px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    line-height: 1.5;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--terracotta);
    color: #fff;
}

.woocommerce-MyAccount-content .button:active,
.woocommerce-MyAccount-content button[type="submit"]:active,
.woocommerce-MyAccount-content input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.woocommerce-MyAccount-content .button:focus,
.woocommerce-MyAccount-content button[type="submit"]:focus,
.woocommerce-MyAccount-content input[type="submit"]:focus {
    outline: none;
    box-shadow: var(--shadow-sm), 0 0 0 3px rgba(196, 91, 62, 0.3);
}

/* Hide theme toast notification on single product pages after add-to-cart.
   The pawwell theme's product-single.js shows a #pawwell-toast element;
   the mini-cart drawer update serves as sufficient feedback instead. */
.single-product #pawwell-toast {
    display: none !important;
}

/* Info/Notice buttons — "Browse products", etc. */
.woocommerce-MyAccount-content .woocommerce-info .button,
.woocommerce-MyAccount-content .woocommerce-info .woocommerce-Button,
.woocommerce-MyAccount-content .woocommerce-message .button,
.woocommerce-MyAccount-content .woocommerce-message .woocommerce-Button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: var(--brand-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    font-family: var(--font-sans);
    box-shadow: var(--shadow-sm);
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.woocommerce-MyAccount-content .woocommerce-info .button:hover,
.woocommerce-MyAccount-content .woocommerce-info .woocommerce-Button:hover,
.woocommerce-MyAccount-content .woocommerce-message .button:hover,
.woocommerce-MyAccount-content .woocommerce-message .woocommerce-Button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--terracotta);
    color: #fff;
}

.woocommerce-MyAccount-content .woocommerce-info .button:active,
.woocommerce-MyAccount-content .woocommerce-info .woocommerce-Button:active,
.woocommerce-MyAccount-content .woocommerce-message .button:active,
.woocommerce-MyAccount-content .woocommerce-message .woocommerce-Button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.woocommerce-MyAccount-content .woocommerce-info .button:focus,
.woocommerce-MyAccount-content .woocommerce-info .woocommerce-Button:focus,
.woocommerce-MyAccount-content .woocommerce-message .button:focus,
.woocommerce-MyAccount-content .woocommerce-message .woocommerce-Button:focus {
    outline: none;
    box-shadow: var(--shadow-sm), 0 0 0 3px rgba(196, 91, 62, 0.3);
}

/* Order Again button */
.woocommerce-order-details .order-again .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: var(--brand-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-sans);
}

.woocommerce-order-details .order-again .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--terracotta);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════
   My Account — Addresses Section
   ═══════════════════════════════════════════════════════════════ */

/* Two-column grid for Billing / Shipping */
.woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

/* Address card */
.woocommerce-MyAccount-content .woocommerce-Address {
    background: var(--brand-bg-secondary);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.woocommerce-MyAccount-content .woocommerce-Address:hover {
    border-color: var(--brand-dark);
    box-shadow: var(--shadow-md);
}

/* Address title header */
.woocommerce-MyAccount-content .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--brand-border);
}

.woocommerce-MyAccount-content .woocommerce-Address-title h2,
.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-text);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Edit / Add address link — styled as pill button */
.woocommerce-MyAccount-content .woocommerce-Address-title .edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--brand-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    line-height: 1.4;
    letter-spacing: 0.2px;
    border: none;
    font-family: var(--font-sans);
}

.woocommerce-MyAccount-content .woocommerce-Address-title .edit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--terracotta);
    color: #fff;
}

.woocommerce-MyAccount-content .woocommerce-Address-title .edit:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.woocommerce-MyAccount-content .woocommerce-Address-title .edit:focus {
    outline: none;
    box-shadow: var(--shadow-sm), 0 0 0 3px rgba(196, 91, 62, 0.3);
}

/* Address content */
.woocommerce-MyAccount-content .woocommerce-Address address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--brand-muted);
    margin: 0;
    padding: 0;
}


/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 899px) {
    .logged-in.woocommerce-account .woocommerce {
        flex-direction: column !important;
        gap: 24px !important;
    }

    .logged-in.woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100% !important;
    }

    .logged-in.woocommerce-account .woocommerce-MyAccount-content {
        width: 100% !important;
    }

    /* Stack address cards on smaller screens */
    .woocommerce-MyAccount-content .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════
   Cart Page — Empty Cart Overrides
   ═══════════════════════════════════════════════════════════════ */

/* Hide WooCommerce default "Return to shop" button — the plugin's custom
   cart-empty.php template replaces it with the theme's "Start Shopping" CTA. */
.woocommerce-cart .return-to-shop {
    display: none !important;
}

/* Hide WooCommerce's default empty cart notice when our custom template is active */
.woocommerce-cart .cart-empty.woocommerce-info {
    display: none !important;
}

a.btn-primary {
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════════
   Extra Product Tabs — Nutrition & Shipping & Returns
   Markup is injected by pawwell-pro-addons into the theme's
   .pawwell-tabs-section. Content lives inside .pawwell-tab-content
   (already styled by the theme), so only the nutrition table needs
   bespoke styling here.
   ═══════════════════════════════════════════════════════════════ */

.pawwell-tab-content--nutrition .pawwell-nutrition-table {
    width: 100%;
    max-width: 560px;
    border-collapse: collapse;
    margin: 20px 0 28px;
    font-size: 14px;
    border: 1px solid var(--border, #E8E2DA);
    border-radius: var(--radius-md, 14px);
    overflow: hidden;
}

.pawwell-tab-content--nutrition .pawwell-nutrition-table th,
.pawwell-tab-content--nutrition .pawwell-nutrition-table td {
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border, #E8E2DA);
}

.pawwell-tab-content--nutrition .pawwell-nutrition-table thead th {
    background: var(--cream, #FAF6F1);
    color: var(--charcoal, #1E1E1E);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pawwell-tab-content--nutrition .pawwell-nutrition-table tbody td {
    color: var(--charcoal-soft, #2D2D2D);
}

.pawwell-tab-content--nutrition .pawwell-nutrition-table tbody tr:last-child td {
    border-bottom: none;
}

.pawwell-tab-content--nutrition .pawwell-nutrition-table td:last-child {
    text-align: right;
    font-weight: 700;
    font-family: var(--font-accent, 'Space Grotesk', 'Inter', sans-serif);
    color: var(--charcoal, #1E1E1E);
}

@media (max-width: 480px) {
    .pawwell-tab-content--nutrition .pawwell-nutrition-table th,
    .pawwell-tab-content--nutrition .pawwell-nutrition-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

