/* ======================================
   Marketplace Layout – Clean Centered Layout
   Applies to WC Vendors and WooCommerce pages
   ====================================== */

/* Match all vendor-related pages and WooCommerce pages */
body[class*="vendor-"],
body[class*="wcvendors"],
body[class*="wcv-pro"],
body.page-id-138, /* vendor dashboard page ID */
body.woocommerce-account,
body.woocommerce-page,
body.woocommerce {
    /* One-container mode adjustments */
}

body[class*="vendor-"] .inside-article,
body[class*="vendor-"] .entry-content,
body[class*="vendor-"] .wcvendors-pro-dashboard-wrapper,
body.page-id-138 .inside-article,
body.page-id-138 .entry-content,
body.woocommerce-page .inside-article,
body.woocommerce-page .entry-content,
body.woocommerce .inside-article,
body.woocommerce .entry-content {
    /* Center content and remove excess side padding */
    max-width: 1200px !important; /* Important to override the full-width override below */
    margin-left: auto !important;
    margin-right: auto !important;
      /* restore vertical rhythm */
    padding-bottom: 30px;
    box-sizing: border-box;
}

body.woocommerce-account .inside-article,
body.woocommerce-account .entry-content {
    /* Center content and remove excess side padding */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
      /* restore vertical rhythm */
    padding-bottom: 30px;
    box-sizing: border-box;
}

/* Optional: reduce the huge 40px global padding only on these pages */
body[class*="vendor-"] .inside-article,
body.page-id-138 .inside-article,
body.woocommerce-account .inside-article,
body.woocommerce-page .inside-article,
body.woocommerce .inside-article {
    padding: 30px 1.5rem;
}

/* Add box shadow to inside-article on my-account pages */
body.woocommerce-account .inside-article {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #fff;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Add light blue background to woocommerce-archive-wrapper on shop page */
body.woocommerce-shop .woocommerce-archive-wrapper {
    background-color: var(--color-section-bg, #f4f8fb);
}

/* Outer wrapper for content and sidebar - adds left/right padding */
.abc-content-sidebar-wrapper {
    padding-left: 5%;
    padding-right: 5%;
    box-sizing: border-box;
    display: flow-root; /* Contain floats - makes wrapper visible */
}

/* Minimal CSS to replicate GeneratePress's native sidebar layout when .site-content wrapper is missing */
/* Widths add up to 100% to eliminate gap */
/* Works for both one-container and separate-containers */
body.woocommerce-shop.right-sidebar > .content-area,
.abc-content-sidebar-wrapper > .content-area {
    width: 80%; /* 80% of wrapper - increased from 70% */
    float: left;
    overflow: visible; /* Allow top bar to break out */
    margin-left: 0; /* Reset margin since wrapper has padding */
}

body.woocommerce-shop.right-sidebar > .widget-area.sidebar,
.abc-content-sidebar-wrapper > .widget-area.sidebar {
    width: 20%; /* 20% of wrapper - decreased from 30%, adds up to 100% with content */
    float: right;
    margin-right: 0; /* Reset margin since wrapper has padding */
}

/* Clear floats on mobile */
@media (max-width: 768px) {
    body.woocommerce-shop.right-sidebar > .content-area,
    body.woocommerce-shop.right-sidebar > .widget-area.sidebar,
    .abc-content-sidebar-wrapper > .content-area,
    .abc-content-sidebar-wrapper > .widget-area.sidebar {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-right: 0;
    }
}


/* Style product list items on shop page with white background and light blue border */
body.woocommerce-shop .products li.product {
    background-color: #ffffff !important;
    border: 1px solid var(--color-section-border, #e5e5e5) !important;
}

/* Change grid gap for products on shop page */
body.woocommerce-shop .wc-columns-container .products,
body.woocommerce-shop .woocommerce .related ul.products,
body.woocommerce-shop .woocommerce .up-sells ul.products {
    grid-gap: 25px !important;
}

/* Product button margin - Removed (only navigation buttons are styled) */

/* Hide br element above buttons in product list items */
.woocommerce ul.products li.product .wcvendors_sold_by_in_loop + br {
    display: none !important;
}

/* Ensure consistent image display on mobile and tablet */
@media (max-width: 1024px) {
    .woocommerce ul.products li.product .inside-wc-product-image {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 250px !important;
        height: auto !important;
    }
    
    .woocommerce ul.products li.product .inside-wc-product-image img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        display: block !important;
    }
}

/* Add light blue background to MyAccount content area and make it fill 50% minimum height */
body.woocommerce-account .woocommerce-MyAccount-content {
    background-color: var(--color-section-bg, #f4f8fb);
    padding: 1.5rem;
    border-radius: 8px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
}

/* Hide registration form on account page when logged out - show only login form */
body.woocommerce-account:not(.logged-in) .u-column2 {
    display: none !important;
}

/* Center and style login form when logged out - match other form styling */
body.woocommerce-account:not(.logged-in) .u-columns {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 2rem auto;
}

body.woocommerce-account:not(.logged-in) .u-column1 {
    width: 100%;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin: 0;
}

/* Style login form inputs */
body.woocommerce-account:not(.logged-in) .woocommerce-form-login input[type="text"],
body.woocommerce-account:not(.logged-in) .woocommerce-form-login input[type="email"],
body.woocommerce-account:not(.logged-in) .woocommerce-form-login input[type="password"] {
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #ffffff;
    color: var(--color-text, #222222);
    min-height: 50px;
    box-sizing: border-box;
    width: 100%;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login input:focus {
    outline: none;
    border-color: var(--color-primary, #00426a);
    box-shadow: 0 0 0 2px rgba(0, 66, 106, 0.1);
    background-color: #ffffff;
}

/* Style login form labels */
body.woocommerce-account:not(.logged-in) .woocommerce-form-login label {
    font-weight: 600;
    color: var(--color-text, #222222);
    margin-bottom: 0.5rem;
    display: block;
}

/* Login form button - Removed (only navigation buttons are styled) */

/* Responsive adjustments for login form */
@media (max-width: 768px) {
    body.woocommerce-account:not(.logged-in) .u-column1 {
        padding: 30px 20px;
        margin: 1rem auto;
    }
}

/* Style h2 text in MyAccount content area */
body.woocommerce-account .woocommerce-MyAccount-content h2 {
    font-size: 24px;
    margin-bottom: 1.5rem;
}

/* Left align text in address containers */
body.woocommerce-account .woocommerce-Address {
    text-align: left;
}

body.woocommerce-account .woocommerce-Address header,
body.woocommerce-account .woocommerce-Address-title,
body.woocommerce-account .woocommerce-Address address {
    text-align: left;
}

/* Float edit links to the left */
.woocommerce-account .addresses .title .edit {
    float: left;
}

/* Apply form styles to WooCommerce Edit Account form */
body.woocommerce-account .woocommerce-EditAccountForm {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0.8rem auto;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: system-ui, sans-serif;
    text-align: left;
}

body.woocommerce-account .woocommerce-EditAccountForm label {
    font-weight: 600;
    color: var(--color-text, #222222);
    margin-bottom: 0.25rem;
    display: block;
}

body.woocommerce-account .woocommerce-EditAccountForm .woocommerce-Input,
body.woocommerce-account .woocommerce-EditAccountForm input[type="text"],
body.woocommerce-account .woocommerce-EditAccountForm input[type="email"],
body.woocommerce-account .woocommerce-EditAccountForm input[type="password"] {
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #ffffff;
    color: var(--color-text, #222222);
    min-height: 50px;
    box-sizing: border-box;
    width: 100%;
}

/* Make first and last name inputs full width like display name and email */
body.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
body.woocommerce-account .woocommerce-EditAccountForm .form-row-last {
    width: 100%;
    float: none;
    clear: both;
}

body.woocommerce-account .woocommerce-EditAccountForm .woocommerce-Input:focus,
body.woocommerce-account .woocommerce-EditAccountForm input:focus {
    outline: none;
    border-color: var(--color-primary, #00426a);
    box-shadow: 0 0 0 2px rgba(0, 66, 106, 0.1);
    background-color: #ffffff;
}

/* Edit account form button - Removed (only navigation buttons are styled) */

/* Form row spacing */
body.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row {
    margin-bottom: 0.5rem;
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1.5rem;
}

/* Reduce margin-bottom for all elements inside the form by 50% */
body.woocommerce-account .woocommerce-EditAccountForm * {
    margin-bottom: calc(var(--form-element-mb, 1rem) * 0.5);
}

body.woocommerce-account .woocommerce-EditAccountForm p {
    margin-bottom: 0.5rem;
}

body.woocommerce-account .woocommerce-EditAccountForm legend {
    font-weight: 600;
    color: var(--color-primary, #00426a);
    padding: 0 0.5rem;
}

/* Cart page buttons - Removed (only navigation buttons are styled) */

/* Style table headers with light blue background - apply to all WooCommerce pages */
body.woocommerce-cart table thead th,
body.woocommerce-cart .shop_table thead th,
body.woocommerce-page table thead th,
body.woocommerce-page .shop_table thead th,
body.woocommerce table thead th,
body.woocommerce .shop_table thead th,
body.woocommerce-account table thead th,
body.woocommerce-account .shop_table thead th {
    background-color: var(--color-section-bg, #f4f8fb) !important;
    color: var(--color-text, #222222) !important;
    border: 1px solid var(--color-section-border, #e5e5e5) !important;
    padding: 1rem !important;
    font-weight: 600 !important;
}

/* Style table body th elements with light blue background and border - apply to all WooCommerce pages */
body.woocommerce-cart table tbody th,
body.woocommerce-cart .shop_table tbody th,
body.woocommerce-page table tbody th,
body.woocommerce-page .shop_table tbody th,
body.woocommerce table tbody th,
body.woocommerce .shop_table tbody th,
body.woocommerce-account table tbody th,
body.woocommerce-account .shop_table tbody th {
    background-color: var(--color-section-bg, #f4f8fb) !important;
    color: var(--color-text, #222222) !important;
    border: 1px solid var(--color-section-border, #e5e5e5) !important;
    padding: 1rem !important;
    font-weight: 600 !important;
}

/* Style table footer th elements with light blue background and border - apply to all WooCommerce pages */
body.woocommerce-cart table tfoot th,
body.woocommerce-cart .shop_table tfoot th,
body.woocommerce-page table tfoot th,
body.woocommerce-page .shop_table tfoot th,
body.woocommerce table tfoot th,
body.woocommerce .shop_table tfoot th,
body.woocommerce-account table tfoot th,
body.woocommerce-account .shop_table tfoot th {
    background-color: var(--color-section-bg, #f4f8fb) !important;
    color: var(--color-text, #222222) !important;
    border: 1px solid var(--color-section-border, #e5e5e5) !important;
    padding: 1rem !important;
    font-weight: 600 !important;
}

/* Cart-specific totals table th elements */
body.woocommerce-cart .cart-subtotal th,
body.woocommerce-cart .woocommerce-shipping-totals th,
body.woocommerce-cart .order-total th,
body.woocommerce-cart tfoot .cart-subtotal th,
body.woocommerce-cart tfoot .woocommerce-shipping-totals th,
body.woocommerce-cart tfoot .order-total th {
    background-color: var(--color-section-bg, #f4f8fb) !important;
    color: var(--color-text, #222222) !important;
    border: 1px solid var(--color-section-border, #e5e5e5) !important;
    padding: 1rem !important;
    font-weight: 600 !important;
}

/* Add light blue border to entire tables - apply to all WooCommerce pages */
body.woocommerce-cart table.shop_table,
body.woocommerce-cart .shop_table,
body.woocommerce-cart .woocommerce-cart-form table.shop_table,
body.woocommerce-cart .cart-collaterals table.shop_table,
body.woocommerce-page table.shop_table,
body.woocommerce-page .shop_table,
body.woocommerce table.shop_table,
body.woocommerce .shop_table,
body.woocommerce-account table.shop_table,
body.woocommerce-account .shop_table {
    border: 1px solid var(--color-section-border, #e5e5e5) !important;
}

/* Set cart page max width to 1000px */
body.woocommerce-cart .inside-article,
body.woocommerce-cart .entry-content {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Set checkout page max width to 1000px */
body.woocommerce-checkout .inside-article,
body.woocommerce-checkout .entry-content {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Checkout page buttons - Removed (only navigation buttons are styled) */

/* Style checkout form to match other forms */
body.woocommerce-checkout .woocommerce-checkout {
    font-family: system-ui, sans-serif;
    text-align: left;
}

body.woocommerce-checkout .woocommerce-billing-fields label,
body.woocommerce-checkout .woocommerce-shipping-fields label,
body.woocommerce-checkout .woocommerce-checkout label {
    font-weight: 600 !important;
    color: var(--color-text, #222222) !important;
    margin-bottom: 0.25rem !important;
    display: block !important;
}

body.woocommerce-checkout .woocommerce-billing-fields input[type="text"],
body.woocommerce-checkout .woocommerce-billing-fields input[type="email"],
body.woocommerce-checkout .woocommerce-billing-fields input[type="tel"],
body.woocommerce-checkout .woocommerce-billing-fields input[type="password"],
body.woocommerce-checkout .woocommerce-billing-fields select,
body.woocommerce-checkout .woocommerce-shipping-fields input[type="text"],
body.woocommerce-checkout .woocommerce-shipping-fields input[type="email"],
body.woocommerce-checkout .woocommerce-shipping-fields input[type="tel"],
body.woocommerce-checkout .woocommerce-shipping-fields select,
body.woocommerce-checkout .woocommerce-checkout input[type="text"],
body.woocommerce-checkout .woocommerce-checkout input[type="email"],
body.woocommerce-checkout .woocommerce-checkout input[type="tel"],
body.woocommerce-checkout .woocommerce-checkout input[type="password"],
body.woocommerce-checkout .woocommerce-checkout select,
body.woocommerce-checkout .input-text,
body.woocommerce-checkout textarea {
    padding: 12px 16px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    background-color: #ffffff !important;
    color: var(--color-text, #222222) !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

body.woocommerce-checkout .woocommerce-billing-fields input:focus,
body.woocommerce-checkout .woocommerce-shipping-fields input:focus,
body.woocommerce-checkout .woocommerce-checkout input:focus,
body.woocommerce-checkout .input-text:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout textarea:focus {
    outline: none !important;
    border-color: var(--color-primary, #00426a) !important;
    box-shadow: 0 0 0 2px rgba(0, 66, 106, 0.1) !important;
    background-color: #ffffff !important;
}

body.woocommerce-checkout .woocommerce-form-row {
    margin-bottom: 0.5rem !important;
}

body.woocommerce-checkout textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

/* ======================================
   Responsive Styles for Cart and Checkout
   ====================================== */

/* Tablet - Maintain padding as desktop shrinks until transition */
@media (max-width: 1024px) {
    /* Cart page responsive */
    body.woocommerce-cart .inside-article,
    body.woocommerce-cart .entry-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Checkout page responsive */
    body.woocommerce-checkout .inside-article,
    body.woocommerce-checkout .entry-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Cart tables - make scrollable on tablet */
    body.woocommerce-cart table.shop_table,
    body.woocommerce-cart .shop_table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    body.woocommerce-cart table.shop_table thead th,
    body.woocommerce-cart table.shop_table tbody td,
    body.woocommerce-cart table.shop_table tfoot td {
        padding: 0.75rem;
    }
    
    /* Checkout form adjustments for tablet */
    body.woocommerce-checkout .woocommerce-checkout {
        padding: 1.5rem 0;
    }
    
    body.woocommerce-checkout .woocommerce-billing-fields,
    body.woocommerce-checkout .woocommerce-shipping-fields,
    body.woocommerce-checkout .woocommerce-additional-fields {
        padding: 0;
    }
}

/* Mobile - Phone and small tablets */
@media (max-width: 768px) {
    /* Cart page mobile responsive */
    body.woocommerce-cart .inside-article,
    body.woocommerce-cart .entry-content {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    /* Checkout page mobile responsive */
    body.woocommerce-checkout .inside-article,
    body.woocommerce-checkout .entry-content {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    /* Cart tables - mobile optimization */
    body.woocommerce-cart table.shop_table,
    body.woocommerce-cart .shop_table {
        font-size: 12px;
        border: none;
    }
    
    body.woocommerce-cart table.shop_table thead {
        display: none; /* Hide table headers on mobile */
    }
    
    body.woocommerce-cart table.shop_table tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid var(--color-section-border, #e5e5e5);
        border-radius: 4px;
        padding: 1rem;
        background: #fff;
    }
    
    body.woocommerce-cart table.shop_table tbody td {
        display: block;
        text-align: left !important;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    body.woocommerce-cart table.shop_table tbody td:last-child {
        border-bottom: none;
    }
    
    body.woocommerce-cart table.shop_table tbody td::before {
        content: attr(data-title) ": ";
        font-weight: 600;
        display: inline-block;
        width: 40%;
        color: var(--color-text, #222222);
    }
    
    /* Cart totals table mobile */
    body.woocommerce-cart table.shop_table tfoot tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--color-section-border, #e5e5e5);
        border-radius: 4px;
        padding: 1rem;
        background: var(--color-section-bg, #f4f8fb);
    }
    
    body.woocommerce-cart table.shop_table tfoot th,
    body.woocommerce-cart table.shop_table tfoot td {
        display: block;
        text-align: left !important;
        padding: 0.5rem 0;
        border: none;
    }
    
    body.woocommerce-cart table.shop_table tfoot th {
        font-size: 14px;
        margin-bottom: 0.25rem;
    }
    
    /* Cart actions mobile */
    body.woocommerce-cart .coupon {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    body.woocommerce-cart #coupon_code,
    body.woocommerce-cart input[name="coupon_code"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0;
    }
    
    /* Cart coupon and actions buttons - Removed (only navigation buttons are styled) */
    
    /* Checkout form mobile */
    body.woocommerce-checkout .woocommerce-checkout {
        padding: 1rem 0;
    }
    
    body.woocommerce-checkout .woocommerce-billing-fields,
    body.woocommerce-checkout .woocommerce-shipping-fields,
    body.woocommerce-checkout .woocommerce-additional-fields {
        padding: 0;
    }
    
    /* Checkout form inputs mobile */
    body.woocommerce-checkout .woocommerce-billing-fields input,
    body.woocommerce-checkout .woocommerce-shipping-fields input,
    body.woocommerce-checkout .woocommerce-checkout input,
    body.woocommerce-checkout .woocommerce-checkout select,
    body.woocommerce-checkout .input-text {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    /* Checkout columns mobile - stack them */
    body.woocommerce-checkout .woocommerce .col2-set .col-1,
    body.woocommerce-checkout .woocommerce .col2-set .col-2 {
        width: 100%;
        float: none;
        margin-bottom: 2rem;
    }
    
    /* Place order button mobile - Removed (only navigation buttons are styled) */
}

/* Make coupon code input same height as button */
body.woocommerce-cart #coupon_code,
body.woocommerce-cart input[name="coupon_code"] {
    height: auto;
    min-height: 48px; /* Button height: 12px top + 24px content + 12px bottom = 48px */
    padding: 12px 16px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 17px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    margin-right: 1rem !important;
}

/* Shop page buttons - Removed (only navigation buttons are styled) */

/* Related and upsell product buttons - Removed (only navigation buttons are styled) */

/* Single product page add to cart button - Removed (only navigation buttons are styled) */

/* Make MyAccount navigation links bold */
body.woocommerce-account .woocommerce-MyAccount-navigation-link a {
    font-weight: bold;
}

/* Hide SVG icons in MyAccount navigation and remove spacing */
body.woocommerce-account .woocommerce-MyAccount-navigation-link svg,
body.woocommerce-account .woocommerce-MyAccount-navigation-link a svg {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove any spacing reserved for icons in navigation links */
body.woocommerce-account .woocommerce-MyAccount-navigation-link--vendor-dashboard a::before,
body.woocommerce-account .woocommerce-MyAccount-navigation-link a::before {
    display: none !important;
    content: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link a {
    padding-left: 0 !important;
    text-indent: 0 !important;
}

/* Style woocommerce-info messages with white background and normal colors */
body.woocommerce-account .woocommerce-info,
body.woocommerce-page .woocommerce-info,
body.woocommerce .woocommerce-info {
    background-color: #fff !important;
    color: var(--color-text, #222222) !important;
    border: 1px solid var(--color-section-border, #e5e5e5) !important;
    border-left: 4px solid var(--color-primary, #00426a) !important;
    border-radius: 4px;
    padding: 1rem;
}

body.woocommerce-account .woocommerce-info a,
body.woocommerce-page .woocommerce-info a,
body.woocommerce .woocommerce-info a {
    color: var(--color-link, #0099cc) !important;
    font-weight: bold !important;
}

body.woocommerce-account .woocommerce-info a:hover,
body.woocommerce-page .woocommerce-info a:hover,
body.woocommerce .woocommerce-info a:hover {
    color: var(--color-primary-hover, #006bb3) !important;
}

/* Style woocommerce-message the same as woocommerce-info */
body.woocommerce-account .woocommerce-message,
body.woocommerce-page .woocommerce-message,
body.woocommerce .woocommerce-message {
    background-color: #fff !important;
    color: var(--color-text, #222222) !important;
    border: 1px solid var(--color-section-border, #e5e5e5) !important;
    border-left: 4px solid var(--color-primary, #00426a) !important;
    border-radius: 4px;
    padding: 1rem;
}

body.woocommerce-account .woocommerce-message a,
body.woocommerce-page .woocommerce-message a,
body.woocommerce .woocommerce-message a {
    color: var(--color-link, #0099cc) !important;
    font-weight: bold !important;
}

body.woocommerce-account .woocommerce-message a:hover,
body.woocommerce-page .woocommerce-message a:hover,
body.woocommerce .woocommerce-message a:hover {
    color: var(--color-primary-hover, #006bb3) !important;
}

/* Style the button inside woocommerce-message */
body.woocommerce-account .woocommerce-message .button,
body.woocommerce-page .woocommerce-message .button,
body.woocommerce .woocommerce-message .button,
body.woocommerce-account .woocommerce-message .wc-forward,
body.woocommerce-page .woocommerce-message .wc-forward,
body.woocommerce .woocommerce-message .wc-forward {
    background-color: var(--color-primary, #00426a) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
    margin-left: 0.5rem;
}

body.woocommerce-account .woocommerce-message .button:hover,
body.woocommerce-page .woocommerce-message .button:hover,
body.woocommerce .woocommerce-message .button:hover,
body.woocommerce-account .woocommerce-message .wc-forward:hover,
body.woocommerce-page .woocommerce-message .wc-forward:hover,
body.woocommerce .woocommerce-message .wc-forward:hover {
    background-color: var(--color-primary-hover, #006bb3) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2) !important;
}

/* Make sure the background or container spans full width */
/* Only apply these overrides when there's no sidebar - let GeneratePress handle sidebar layout */
/* Exclude vendor-login (page-id-174) and vendor-registration pages - they should be centered */
body[class*="vendor-"]:not(.right-sidebar):not(.left-sidebar):not(.page-template-local_marketplace-vendor_login):not(.page-template-local_marketplace-vendor_registration):not(.page-id-174) .site-main,
body[class*="vendor-"]:not(.right-sidebar):not(.left-sidebar):not(.page-template-local_marketplace-vendor_login):not(.page-template-local_marketplace-vendor_registration):not(.page-id-174) .content-area,
body.page-id-138:not(.right-sidebar):not(.left-sidebar):not(.page-id-174) .site-main,
body.page-id-138:not(.right-sidebar):not(.left-sidebar):not(.page-id-174) .content-area,
body.woocommerce-account:not(.right-sidebar):not(.left-sidebar):not(.page-id-174) .site-main,
body.woocommerce-account:not(.right-sidebar):not(.left-sidebar):not(.page-id-174) .content-area,
body.woocommerce-page:not(.right-sidebar):not(.left-sidebar):not(.page-id-174) .site-main,
body.woocommerce-page:not(.right-sidebar):not(.left-sidebar):not(.page-id-174) .content-area,
body.woocommerce:not(.right-sidebar):not(.left-sidebar):not(.page-id-174) .site-main,
body.woocommerce:not(.right-sidebar):not(.left-sidebar):not(.page-id-174) .content-area {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure vendor-login and vendor-registration pages are centered */
/* These pages need to override the full-width rule above */
body.page-id-174 .site-main,
body.page-id-174 .content-area,
body[class*="vendor-login"] .site-main,
body[class*="vendor-login"] .content-area,
body[class*="vendor-registration"] .site-main,
body[class*="vendor-registration"] .content-area,
body.page-template-local_marketplace-vendor_login .site-main,
body.page-template-local_marketplace-vendor_login .content-area,
body.page-template-local_marketplace-vendor_registration .site-main,
body.page-template-local_marketplace-vendor_registration .content-area {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

body.page-id-174 .inside-article,
body.page-id-174 .entry-content,
body[class*="vendor-login"] .inside-article,
body[class*="vendor-login"] .entry-content,
body[class*="vendor-registration"] .inside-article,
body[class*="vendor-registration"] .entry-content,
body.page-template-local_marketplace-vendor_login .inside-article,
body.page-template-local_marketplace-vendor_login .entry-content,
body.page-template-local_marketplace-vendor_registration .inside-article,
body.page-template-local_marketplace-vendor_registration .entry-content {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Vendor Registration Link on My Account Page (Logged Out) */
body.woocommerce-account:not(.logged-in) .vendor-registration-link-wrapper {
    margin-top: 1.5rem;
    text-align: center;
}

body.woocommerce-account:not(.logged-in) .vendor-registration-link-wrapper p {
    margin-bottom: 0.5rem;
}

body.woocommerce-account:not(.logged-in) .vendor-registration-link-wrapper p:first-of-type {
    color: var(--color-muted, #666666);
}

body.woocommerce-account:not(.logged-in) .vendor-registration-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-primary, #00426a);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.2s ease;
}

body.woocommerce-account:not(.logged-in) .vendor-registration-link:hover {
    background-color: var(--color-primary-hover, #006bb3);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

body.woocommerce-account:not(.logged-in) .vendor-login-link {
    color: var(--color-link, #0099cc);
    text-decoration: none;
}

body.woocommerce-account:not(.logged-in) .vendor-login-link:hover {
    color: var(--color-primary-hover, #006bb3);
    text-decoration: underline;
}