/* ===================================================================
   GLOBAL CLEAN BUILD — Snack Strong Foods
   Polished + Stable
=================================================================== */

/* ---------------------------------------------------------------
   BASE RESET
---------------------------------------------------------------- */
body {
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    font-family: "Inter", Arial, sans-serif;
    color: #222;
}

h1, h2, h3, h4 {
    font-weight: 600;
    margin: 0 0 12px 0;
}

/* ===================================================================
   REMOVE STOREFRONT DEFAULT HEADER COMPLETELY
=================================================================== */
.site-header,
.storefront-header,
.storefront-full-width-header,
.storefront-primary-navigation,
.storefront-secondary-navigation,
.storefront-product-search,
.storefront-header-cart {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}
/* ===================================================================
   FIXED SSF HEADER — matches real HTML
=================================================================== */

#ssf-header {
    width: 100%;
    background: #e8f5e9; /* pale green */
    border-bottom: 1px solid #c8d8c8;
    padding: 6px 0; /* compact height */
}

.ssf-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO — this finally applies correctly */
.ssf-logo {
    height: 48px !important;
    width: auto !important;
    display: block;
}

/* NAVIGATION — real class is .ssf-nav */
.ssf-nav {
    display: flex;
    gap: 32px;       /* space BETWEEN menu items */
}

.ssf-nav a {
    color: #1a331a;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.ssf-nav a:hover {
    color: #2b7a2b;
}


/* ===================================================================
   PAGE CONTAINER – FIX TABLE TOUCHING EDGE
=================================================================== */
.ssf-page-wrap {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 28px;
}

/* Apply automatically to WooCommerce pages */
.woocommerce,
.woocommerce-cart,

.woocommerce-account {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 28px;
}

.woocommerce-breadcrumb {
    display: none !important;
}

/* ===================================================================
   FILTER BAR
=================================================================== */
.ssf-filter-bar {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ssf-filter-bar select {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* ===================================================================
   PRODUCT TABLE
=================================================================== */
.ssf-catalog-table {
    width: 100%;
    background: #ffffff;
    border-collapse: collapse;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.ssf-catalog-table th {
    background: #f4f4f4;
    padding: 14px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    border-bottom: 1px solid #ddd;
}

.ssf-catalog-table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.ssf-catalog-table tbody tr:hover {
    background: #f9f9f9;
}

.ssf-catalog-table img {
    width: 90px;
    border-radius: 6px;
}

.ssf-qty {
    width: 65px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #bbb;
}

.ssf-check {
    width: 18px;
    height: 18px;
}

/* ===================================================================
   BUTTONS
=================================================================== */
button,
ssf-bulk-add {
    background: #2c3e50;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

button:hover,
ssf-bulk-add:hover {
    background: #1e73be;
}

/* ===================================================================
   PAGINATION
=================================================================== */
.ssf-pagination {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.ssf-pagination a {
    margin-right: 10px;
    font-weight: 600;
    text-decoration: none;
    color: #2c3e50;
}

.ssf-pagination a:hover {
    color: #1e73be;
}

/* ===================================================================
   CART / CHECKOUT / ACCOUNT
=================================================================== */

/* Cart / Account card wrappers */
.woocommerce-cart table.cart,
.woocommerce-cart .cart_totals,
.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
}




/* FINAL override — force logo image smaller */
ssf-header img.ssf-logo-img {
    height: 55px !important;
    width: auto !important;
    max-width: 200px !important;
    display: block !important;
}

/* ===================================================================
   SSF ORDERS TABLE CARD
   =================================================================== */

.ssf-orders-card {
    background: #ffffff;
    border: 2px solid #f5c75a;
    border-radius: 10px;
    padding: 28px;
}

.ssf-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0e395b;
}

/* Table styling */
.ssf-orders-table th {
    background: #eef2f5;
    padding: 14px;
    text-transform: uppercase;
    color: #0e395b;
    font-size: 15px;
}

.ssf-orders-table td {
    padding: 14px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.ssf-orders-table a {
    color: #0a6db3;
    font-weight: 600;
}

.ssf-orders-table a:hover {
    color: #084f83;
}

/* Buttons */
.ssf-btn {
    background: #7ac043 !important;
    color: #0e395b !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-block;
}

.ssf-btn:hover {
    background: #5ca130 !important;
}

/* ===================================================================
   SSF ADDRESS PAGE
   =================================================================== */

.ssf-address-wrapper {
    background: #ffffff;
    border: 2px solid #f5c75a;
    border-radius: 10px;
    padding: 28px;
}

.ssf-address-grid {
    display: flex;
    gap: 28px;
}

.ssf-address-box {
    flex: 1;
    background: #ffffff;
    border: 2px solid #f5c75a;
    border-radius: 10px;
    padding: 20px;
}

.ssf-address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ssf-address-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0e395b;
}

.ssf-address-edit {
    font-weight: 700;
    color: #0a6db3;
    text-decoration: none;
}

.ssf-address-edit:hover {
    color: #084f83;
}

.ssf-address-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #1d2c23;
}

/* ===================================================================
   SSF PAYMENT METHODS
   =================================================================== */

.ssf-payment-card {
    background: #ffffff;
    border: 2px solid #f5c75a;
    border-radius: 10px;
    padding: 28px;
}

.ssf-payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.ssf-payment-table th {
    background: #eef2f5;
    text-align: left;
    padding: 14px;
    text-transform: uppercase;
    font-size: 14px;
    color: #0e395b;
}

.ssf-payment-table td {
    padding: 14px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.ssf-payment-add {
    margin-top: 10px;
}

/* Green action buttons (reuse SSF button system) */
.ssf-btn {
    background: #7ac043 !important;
    color: #0e395b !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.ssf-btn:hover {
    background: #5ca130 !important;
}

/* ===================================================================
   SSF ACCOUNT DETAILS FORM
   =================================================================== */

.ssf-accountdetails-card {
    background: #ffffff;
    border: 2px solid #f5c75a;
    border-radius: 10px;
    padding: 28px;
}

.ssf-accountdetails-card label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0e395b;
    font-size: 15px;
}

.ssf-accountdetails-card input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    margin-bottom: 20px;
    background: #fff;
}

.ssf-subsection-title {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #0e395b;
}

.ssf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ssf-col-12 {
    flex: 0 0 100%;
}

.ssf-col-6 {
    flex: 0 0 calc(50% - 10px);
}

/* Save Button (re-use SSF button system) */
.ssf-btn {
    background: #7ac043 !important;
    color: #0e395b !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

.ssf-btn:hover {
    background: #5ca130 !important;
}


/* ===================================================================
   SSF VIEW ORDER PAGE
   =================================================================== */

.ssf-vieworder-card {
    background: #ffffff;
    border: 2px solid #f5c75a;
    border-radius: 10px;
    padding: 28px;
}

/* HEADER */

.ssf-vieworder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ssf-vieworder-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.ssf-status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    color: #fff;
    text-transform: capitalize;
}

/* Status Colors */
.ssf-status-completed { background: #7ac043; }
.ssf-status-processing { background: #0a6db3; }
.ssf-status-pending { background: #b38b0a; }
.ssf-status-cancelled { background: #b30a0a; }

.ssf-vieworder-date {
    margin-bottom: 20px;
    color: #444;
}

/* ACTION BUTTONS */

.ssf-vieworder-actions {
    margin-bottom: 24px;
}

.ssf-vieworder-actions .ssf-btn {
    margin-right: 12px;
}

/* ITEMS TABLE */

.ssf-vieworder-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
}

.ssf-vieworder-table th {
    background: #eef2f5;
    padding: 14px;
    font-size: 14px;
    text-transform: uppercase;
    color: #0e395b;
}

.ssf-vieworder-table td {
    padding: 14px;
    border-bottom: 1px solid #ddd;
}

.ssf-right {
    text-align: right;
}

/* TOTALS TABLE */

.ssf-totals-table {
    width: 100%;
    margin-bottom: 40px;
}

.ssf-totals-table th {
    text-align: left;
    padding: 6px 0;
}

.ssf-totals-table td {
    text-align: right;
    padding: 6px 0;
    font-weight: 700;
}

/* ADDRESSES */

.ssf-address-section {
    display: flex;
    gap: 28px;
}

.ssf-address-box {
    flex: 1;
    background: #ffffff;
    border: 2px solid #f5c75a;
    border-radius: 10px;
    padding: 20px;
}

/* ===================================================================
   SSF DASHBOARD
   =================================================================== */

.ssf-dashboard-box {
    background: #ffffff;
    border: 2px solid #f5c75a;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 20px;
}

.ssf-dashboard-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0e395b;
}

.ssf-dashboard-title small {
    font-size: 14px;
    font-weight: 400;
    margin-left: 6px;
}

.ssf-dashboard-text {
    font-size: 16px;
    line-height: 1.6;
    color: #1d2c23;
}

.ssf-dashboard-text a {
    color: #0a6db3;
    font-weight: 600;
    text-decoration: none;
}

.ssf-dashboard-text a:hover {
    color: #084f83;
}


/* --------------------------------------------
   SSF MY ACCOUNT – GLOBAL LAYOUT + STYLING
   -------------------------------------------- */

/* GENERAL PAGE WRAPPER */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 40px;
}

/* --------------------------------------------
   LEFT NAVIGATION (STYLE B)
   -------------------------------------------- */
.woocommerce-MyAccount-navigation {
    width: 240px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 10px;
}

.woocommerce-MyAccount-navigation a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #1F3157; /* SSF dark blue */
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.woocommerce-MyAccount-navigation a:hover {
    background: #25406f;
}

.woocommerce-MyAccount-navigation .is-active a {
    background: #7CB343; /* SSF green */
    color: #ffffff;
    border: 2px solid #E9B94A; /* yellow border */
}

/* --------------------------------------------
   MAIN CONTENT (RIGHT SIDE)
   -------------------------------------------- */
.woocommerce-MyAccount-content {
    flex: 1;
}

.ssf-dashboard-box,
.woocommerce-account .woocommerce form,
.woocommerce-Addresses,
.woocommerce-MyAccount-content > *:not(.woocommerce-MyAccount-navigation) {
    background: #ffffff;
    border: 2px solid #E9B94A;
    border-radius: 10px;
    padding: 25px 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* --------------------------------------------
   HEADINGS
   -------------------------------------------- */
.woocommerce-MyAccount-content h2,
.ssf-dashboard-title {
    color: #1F3157; /* SSF navy */
    font-weight: 700;
    margin-bottom: 20px;
}

/* --------------------------------------------
   INPUT FIELDS
   -------------------------------------------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 10px;
    font-size: 15px;
}

.woocommerce form .form-row input:focus {
    border-color: #7CB343;
    box-shadow: 0 0 0 1px #7CB343;
}

/* --------------------------------------------
   BUTTONS – SSF UNIVERSAL STYLE
   -------------------------------------------- */
button.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: #7CB343; /* SSF green */
    border: 2px solid #E9B94A; /* yellow border */
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

button.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #6AA03B;
    border-color: #d6a63f;
}

/* "Save changes" alignment */
.woocommerce form .form-row-last button.button {
    margin-top: 10px;
}

/* --------------------------------------------
   TABLE STYLING (ORDERS, VIEW ORDER)
   -------------------------------------------- */
table.shop_table {
    border: none;
    border-collapse: collapse;
    width: 100%;
}

table.shop_table th {
    background: #ffffff;
    font-weight: 700;
    color: #1F3157;
    border-bottom: 2px solid #E9B94A;
}

table.shop_table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
}

/* --------------------------------------------
   ADDRESS BOXES
   -------------------------------------------- */
.woocommerce-Addresses .woocommerce-Address {
    background: #ffffff;
    border: 2px solid #E9B94A;
    border-radius: 10px;
    padding: 20px;
}

/* --------------------------------------------
   RESPONSIVE FIXES
   -------------------------------------------- */
@media (max-width: 900px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation {
        width: 100%;
    }

    .woocommerce-MyAccount-navigation a {
        justify-content: flex-start;
        gap: 10px;
    }
}

/* =======================================================
   SSF DASHBOARD NEW LAYOUT
   ======================================================= */

.ssf-dashboard-box {
    background: #ffffff;
    border: 2px solid #E9B94A;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

/* Welcome Banner */
.ssf-dashboard-banner h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1F3157;
    margin-bottom: 5px;
}

.ssf-dashboard-banner p {
    color: #444;
    margin-bottom: 25px;
}

/* Quick Link Wide Panels */
.ssf-quicklinks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
}

.ssf-quicklink {
    display: block;
    padding: 16px 20px;
    background: #1F3157;
    color: #ffffff;
    border: 2px solid #7CB343;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ssf-quicklink:hover {
    background: #25406f;
}

/* Recent Orders table */
.ssf-recent-orders th {
    border-bottom: 2px solid #E9B94A;
}

.ssf-recent-orders td {
    padding: 10px 12px;
}
/* Remove unused quicklink styles */
.ssf-quicklinks,
.ssf-quicklink {
    display: none !important;
}

/* ================================================
   SSF LEFT NAVIGATION – TEXT ONLY VERSION
   ================================================ */

.woocommerce-MyAccount-navigation {
    width: 240px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 10px;
}

/* Default (inactive) button */
.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 14px 18px;
    background: #1F3157;      /* SSF dark blue */
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* Hover */
.woocommerce-MyAccount-navigation a:hover {
    background: #25406F;
}

/* Active (current page) */
.woocommerce-MyAccount-navigation .is-active a {
    background: #7CB343;      /* SSF green */
    color: #ffffff;
    border-color: #E9B94A;    /* SSF yellow border */
}

/* Remove WooCommerce default navigation icons */
.woocommerce-MyAccount-navigation li:before,
.woocommerce-MyAccount-navigation ul li:before {
    display: none !important;
    content: none !important;
}


/* Force active nav item green */
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li.is-active a:visited {
    background: #7CB343 !important;     /* SSF green */
    border-color: #E9B94A !important;   /* SSF yellow */
    color: #ffffff !important;
}

/* Make navigation buttons full-width */
.woocommerce-MyAccount-navigation a {
    width: 100% !important;
    white-space: nowrap !important;
}
/* FORCE ACTIVE STATE */
.woocommerce-MyAccount-navigation li.is-active a {
    background: #7CB343 !important;
    border-color: #E9B94A !important;
    color: white !important;
}

/* REMOVE DEFAULT ICONS */
.woocommerce-MyAccount-navigation ul li:before {
    content: none !important;
    display: none !important;
}

/* FULL-WIDTH BUTTONS */
.woocommerce-MyAccount-navigation a {
    width: 100% !important;
    display: block;
    white-space: nowrap;
}


/* ==========================================
   SSF ORDERS TABLE
   ========================================== */

.ssf-orders-box {
    margin-top: 20px;
}

.ssf-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.ssf-orders-table th {
    background: #ffffff;
    color: #1F3157;  /* SSF navy */
    border-bottom: 2px solid #E9B94A; /* SSF yellow */
    padding: 12px 10px;
    font-weight: 700;
}

.ssf-orders-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Buttons in the orders table */
.ssf-orders-table .button.ssf-btn {
    background: #7CB343;
    border: 2px solid #E9B94A;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 6px;
    display: inline-block;
}

.ssf-orders-table .button.ssf-btn:hover {
    background: #6AA03B;
    border-color: #d6a63f;
}

/* ===============================================
   SSF VIEW ORDER PAGE
   =============================================== */

.ssf-view-order-box,
.ssf-items-box,
.ssf-totals-box,
.ssf-address-box,
.ssf-payment-box {
    margin-bottom: 30px;
}

/* Subtitles */
.ssf-subtitle {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1F3157;
    font-weight: 700;
}

/* Order metadata */
.ssf-order-meta {
    margin-top: 5px;
    line-height: 1.6;
    font-size: 15px;
}

/* Items table */
.ssf-items-table th {
    border-bottom: 2px solid #E9B94A;
    padding: 12px 10px;
    color: #1F3157;
}

.ssf-items-table td {
    border-bottom: 1px solid #eee;
    padding: 12px 10px;
}

/* Totals table */
.ssf-totals-table th {
    text-align: left;
    padding: 8px 10px;
    color: #1F3157;
}

.ssf-totals-table td {
    text-align: right;
    padding: 8px 10px;
}

/* Address grid */
.ssf-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .ssf-address-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   SSF ADDRESSES PAGE – GRID + BOXES + FORM
   =============================================== */

/* Address wrapper box */
.ssf-address-wrapper {
    margin-top: 20px;
}

/* Two-column grid for Billing + Shipping */
.ssf-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Individual address box */
.ssf-address-box address {
    margin-bottom: 15px;
    font-style: normal;
    line-height: 1.6;
    color: #444;
}

/* Edit Address form fields */
.ssf-edit-address-form .form-row input,
.ssf-edit-address-form .form-row select {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
}

/* Mobile */
@media (max-width: 900px) {
    .ssf-address-grid {
        grid-template-columns: 1fr;
    }
}

/* SSF Payment Methods */
.ssf-payments-box {
    margin-top: 20px;
}

/* ===========================================
   SSF ACCOUNT DETAILS PAGE
   =========================================== */

.ssf-account-details-box {
    margin-top: 20px;
}

.ssf-account-details-box label {
    font-weight: 600;
    color: #1F3157;
    margin-bottom: 5px;
    display: block;
}

/* Form spacing */
.woocommerce-EditAccountForm .form-row {
    margin-bottom: 20px;
}

/* SSF Input Styling */
.woocommerce-EditAccountForm input.input-text,
.woocommerce-EditAccountForm input[type="password"] {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    width: 100%;
}

/* Description text */
.woocommerce-EditAccountForm .description {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* Full responsiveness */
@media (max-width: 900px) {
    .form-row-first,
    .form-row-last {
        width: 100%;
    }
}


/* =====================================================
   SSF CART PAGE
   ===================================================== */

.ssf-cart-wrapper {
    margin-bottom: 40px;
}

.ssf-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.ssf-cart-table th {
    background: #ffffff;
    color: #1F3157;
    border-bottom: 2px solid #E9B94A;
    padding: 12px;
    font-weight: 700;
}

.ssf-cart-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Quantity styling */
.ssf-cart-table input.qty {
    width: 70px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f7f7f7;
}

/* Update Cart Button */
.ssf-cart-actions button.ssf-btn {
    margin-top: 15px;
}

/* Cart Totals Box */
.ssf-cart-totals {
    margin-top: 30px;
}

/* Totals table */
.cart_totals table {
    width: 200%;
}

.cart_totals th {
    text-align: left;
    color: #1F3157;
    padding: 10px;
}

.cart_totals td {
    text-align: right;
    padding: 10px;
}



/* SSF Catalog layout */

.ssf-catalog-wrapper {
    max-width: 1200px;
    margin: 0 auto 2rem;   /* center horizontally */
    padding: 0 1rem;       /* a little breathing room on mobile */
}

.ssf-filter-bar {
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
}

.ssf-catalog-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto 1.5rem;
}

.ssf-catalog-table th,
.ssf-catalog-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
}
/* SSF Catalog – image sizing */
.ssf-catalog-table td img {
    max-width: 90px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* centers the image inside the cell */
}


/* SSF Catalog – center layout */
.ssf-catalog-wrapper {
    max-width: 1200px;
    margin: 0 auto;        /* centers the whole block */
    padding: 0 20px;       /* a little side breathing room */
}

.ssf-catalog-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;     /* centers the table inside wrapper */
}


/* SSF Catalog – center the whole block */
.ssf-catalog-wrapper {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 20px;
}

/* Center the table within the wrapper and keep it off the extreme edges */
.ssf-catalog-wrapper .ssf-catalog-table {
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Make the filter bar and pagination align with the centered table */
.ssf-catalog-wrapper .ssf-filter-bar,
.ssf-catalog-wrapper .ssf-pagination {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}



/* Center the Catalog page content container */
body.page-id-123 .site-main,
body.page-id-123 .content-area,
body.page-id-123 .col-full {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1200px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* SSF Catalog – hard 90x90 image box */
.ssf-catalog-table td img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}


/* SSF Catalog – remove theme padding on the Catalog page */
body.page-slug-catalog .site-content,
body.page-slug-catalog .site-main,
body.page-slug-catalog .site-main .col-full {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* ==========================================================
   SSF – CART LAYOUT
   Match catalog look: centered, clean, B2B feel
   ========================================================== */

/* Center main cart content like catalog */
.woocommerce-cart .site-main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Cart table styling */
.woocommerce-cart table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px auto;
    font-size: 14px;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
    padding: 10px 8px;
    vertical-align: middle;
}

/* Numeric columns right-aligned for readability */
.woocommerce-cart table.shop_table td.product-subtotal,
.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-quantity {
    text-align: right;
}

/* Cart thumbnails in a 90x90 box, like catalog */
.woocommerce-cart table.shop_table td.product-thumbnail img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Cart totals box – keep it clean and compact */
.woocommerce-cart .cart_totals {
    max-width: 600px;
    margin-left: auto;
    margin-right: 0;
}

.woocommerce-cart .cart_totals table {
    width: 100%;
}

/* Make update/checkout buttons align nicely */
.woocommerce-cart .wc-proceed-to-checkout {
    text-align: right;
}

/* ==========================================
   SSF Checkout – compact B2B form styling
   (no layout changes – just size/spacing)
   ========================================== */

/* 1) Tighter spacing between rows */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row,
body.woocommerce-checkout .woocommerce-additional-fields .form-row {
    margin-bottom: 6px !important;   /* was much larger */
}

/* 2) Smaller labels */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper label,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper label,
body.woocommerce-checkout .woocommerce-additional-fields label {
    font-size: 11px !important;
    margin-bottom: 2px !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* 3) Smaller inputs/selects (single-line fields) */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper input.input-text,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper input.input-text,
body.woocommerce-checkout .woocommerce-additional-fields input.input-text,
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper select,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper select,
body.woocommerce-checkout .woocommerce-additional-fields select {
    font-size: 12px !important;
    padding: 3px 6px !important;
    height: 26px !important;
    min-height: 26px !important;
    box-sizing: border-box;
}

/* 4) Textareas – compact but still usable (no fixed height) */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper textarea,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper textarea,
body.woocommerce-checkout .woocommerce-additional-fields textarea {
    font-size: 12px !important;
    padding: 4px 6px !important;
    box-sizing: border-box;
}

/* 5) Match Select2 dropdown height to inputs */
body.woocommerce-checkout .select2-container .select2-selection--single {
    height: 26px !important;
    min-height: 26px !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    box-sizing: border-box;
}

/* 6) Slightly smaller order review table text */
body.woocommerce-checkout #order_review table.shop_table {
    font-size: 13px;
}

body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
    padding: 6px 6px;
}

/* ==========================================
   SSF Checkout – City / State / ZIP in one row
   ========================================== */
@media (min-width: 769px) {

    /* Billing row */
    body.woocommerce-checkout #billing_city_field,
    body.woocommerce-checkout #billing_state_field,
    body.woocommerce-checkout #billing_postcode_field,
    /* Shipping row */
    body.woocommerce-checkout #shipping_city_field,
    body.woocommerce-checkout #shipping_state_field,
    body.woocommerce-checkout #shipping_postcode_field {
        float: left;
        clear: none;
        margin-bottom: 6px !important;
    }

    /* City ~45% */
    body.woocommerce-checkout #billing_city_field,
    body.woocommerce-checkout #shipping_city_field {
        width: 45%;
        margin-right: 2%;
    }

    /* State ~20% */
    body.woocommerce-checkout #billing_state_field,
    body.woocommerce-checkout #shipping_state_field {
        width: 20%;
        margin-right: 2%;
    }

    /* ZIP ~30% */
    body.woocommerce-checkout #billing_postcode_field,
    body.woocommerce-checkout #shipping_postcode_field {
        width: 30%;
        margin-right: 0;
    }
}
/* SSF Checkout – hide Country/Region field */
body.woocommerce-checkout #billing_country_field,
body.woocommerce-checkout #shipping_country_field {
    display: none !important;
}





    .woocommerce-cart .cart_totals {
        flex: 0 0 520px;
        margin: 0;
    }
}


/* === SSF CART – CLEAN REBUILD === */

/* Outer cart container: centered, wide */
body.woocommerce-cart .site-main,
body.woocommerce-cart .site-content,
body.woocommerce-cart .content-area,
body.woocommerce-cart .col-full {
    max-width: 1360px;
    margin: 24 auto;
    padding: 0 24px;
}

/* Cart table looks normal, full width inside its column */
body.woocommerce-cart table.shop_table {
    width: 100%;
    border-collapse: collapse;
}

/* Desktop: simple 2-column layout (items left, totals right) */
@media (min-width: 1300px) {
    body.woocommerce-cart .woocommerce {
        display: grid;
        grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); /* ~50% / 50% */
        gap: 10px;
        align-items: flex-start;
    }

    /* Let children just fill their grid tracks */
    body.woocommerce-cart form.woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals,
    body.woocommerce-cart .cart_totals {
        margin: 0;
        width: auto;
        max-width: none;
        float: none;
    }
}

/* Cart totals – override WooCommerce core width */
body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-cart .cart-collaterals .shipping_calculator {
    width: 100% !important;
    float: none !important;
}
/* === SSF CART – COMPACT CART TOTALS TYPOGRAPHY === */

/* Main Cart totals table text */
body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
    font-size: 13px;
    padding: 6px 6px;
}

/* "Cart totals" heading */
body.woocommerce-cart .cart_totals h2 {
    font-size: 16px;
    margin-bottom: 8px;
}

/* Shipping method label + note */
body.woocommerce-cart .cart_totals .woocommerce-shipping-totals label,
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination {
    font-size: 12px;
    line-height: 1.4;
}

/* Shipping calculator link + form fields */
body.woocommerce-cart .cart_totals .shipping-calculator-button,
body.woocommerce-cart .cart_totals .shipping-calculator-form label,
body.woocommerce-cart .cart_totals .shipping-calculator-form input,
body.woocommerce-cart .cart_totals .shipping-calculator-form select,
body.woocommerce-cart .cart_totals .shipping-calculator-form button.button {
    font-size: 12px;
}

/* Keep the grand total amount slightly emphasized */
body.woocommerce-cart .cart_totals .order-total td .amount {
    font-size: 14px;
    font-weight: 700;
}

/* === SSF CART – TWO-COLUMN LAYOUT (DESKTOP) === */

@media (min-width: 960px) {

    /* Make the main cart wrapper a flex row */
    body.woocommerce-cart .woocommerce {
        display: flex;
        align-items: flex-start;
        gap: 32px;   /* space between table and totals */
    }

    /* Left column: cart table/form */
    body.woocommerce-cart form.woocommerce-cart-form {
        flex: 1 1 auto;   /* take remaining space */
        margin: 0;
        max-width: none;
        float: none;
    }

    /* Right column: cart totals */
    body.woocommerce-cart .cart-collaterals {
        flex: 0 0 400px;  /* fixed-ish width for totals */
        max-width: 560px;
        margin: 0;
        float: none;
    }
}
/* CART – let the whole content area be wider on desktop */
@media (min-width: 960px) {
    body.woocommerce-cart .site-content,
    body.woocommerce-cart .site-main,
    body.woocommerce-cart .content-area,
    body.woocommerce-cart .col-full,
    body.woocommerce-cart .woocommerce {
        max-width: 1400px !important;   /* bump this as high as you like */
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 16px !important;   /* was 28 – gives you extra room */
        padding-right: 16px !important;
    }
}
/* CART – hide legacy row buttons (Update / Continue) */
body.woocommerce-cart td.actions .button {
    display: none !important;
}

/* =========================================
   SSF HOME PAGE
   ========================================= */

.home .ssf-home-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 28px;
}

.home .ssf-home-title {
    font-size: 24px;
    font-weight: 700;
    color: #1F3157;          /* SSF navy */
    margin-bottom: 20px;
}

/* Features grid */
.home .ssf-home-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.home .ssf-feature {
    background: #ffffff;
    border: 2px solid #E9B94A;  /* SSF yellow */
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    color: #1F3157;
}

/* Newsletter box */
.home .ssf-home-newsletter {
    background: #ffffff;
    border: 2px solid #E9B94A;
    border-radius: 10px;
    padding: 28px;
}

.home .ssf-home-newsletter p {
    font-size: 15px;
    color: #333;
}


/* Wider My Account content (affects dashboard + orders + etc.) */
.woocommerce-account .woocommerce-MyAccount-content {
    max-width: 1200px !important;
    width: 125% !important;
    margin: 0 auto !important;
}


/* ================================
   SSF DASHBOARD → RECENT ORDERS
   (<table class="shop_table ssf-recent-orders">)
================================ */

/* 1. Make the SSF dashboard box use full width of account content */
.ssf-dashboard-box.ssf-dashboard {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure the table stretches fully */
.ssf-dashboard-box .ssf-recent-orders {
    width: 100%;
    table-layout: auto;
}

/* 2. Widen the STATUS column (3rd column) */
.ssf-dashboard-box .ssf-recent-orders th:nth-child(3),
.ssf-dashboard-box .ssf-recent-orders td:nth-child(3) {
    width: 22%;              /* tweak as needed: 20–30% */
    white-space: nowrap;
}

/* Optional: gently constrain other columns to give Status more room */
.ssf-dashboard-box .ssf-recent-orders th:nth-child(1),
.ssf-dashboard-box .ssf-recent-orders td:nth-child(1) {
    width: 14%;
}

.ssf-dashboard-box .ssf-recent-orders th:nth-child(2),
.ssf-dashboard-box .ssf-recent-orders td:nth-child(2) {
    width: 20%;
}

.ssf-dashboard-box .ssf-recent-orders th:nth-child(4),
.ssf-dashboard-box .ssf-recent-orders td:nth-child(4) {
    width: 20%;
}

/* 3. Stack action buttons (Pay / View) same width & height, with spacing */
.ssf-dashboard-box .ssf-recent-orders td:nth-child(5) .button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 8px;         /* gap between buttons when there are 2+ */
    padding: 8px 10px;
    text-align: center;
    border-radius: 4px;
}

/* Remove extra space under the last button */
.ssf-dashboard-box .ssf-recent-orders td:nth-child(5) .button:last-child {
    margin-bottom: 0;
}

/* =========================================
   SSF DASHBOARD → RECENT ORDERS TABLE
   <table class="shop_table ssf-recent-orders">
========================================= */

/* 1. Make the dashboard box + table use full width */
.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box.ssf-dashboard {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box .ssf-recent-orders {
    width: 100% !important;
    table-layout: auto !important;
}

/* 2. Widen STATUS column (3rd column) and rebalance others */
.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box .ssf-recent-orders th:nth-child(1),
.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box .ssf-recent-orders td:nth-child(1) {
    width: 12% !important;   /* Order */
}

.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box .ssf-recent-orders th:nth-child(2),
.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box .ssf-recent-orders td:nth-child(2) {
    width: 22% !important;   /* Date */
}

/* STATUS column – give this the most room */
.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box .ssf-recent-orders th:nth-child(3),
.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box .ssf-recent-orders td:nth-child(3) {
    width: 26% !important;   /* adjust 24–30% as needed */
    white-space: nowrap !important;
}

.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box .ssf-recent-orders th:nth-child(4),
.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box .ssf-recent-orders td:nth-child(4) {
    width: 20% !important;   /* Total */
}

/* 3. Stack Action buttons (Pay / View) same width & height, with spacing */
.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box .ssf-recent-orders th:nth-child(5),
.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box .ssf-recent-orders td:nth-child(5) {
    width: 20% !important;   /* Action column */
}

.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box .ssf-recent-orders td:nth-child(5) .button {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 0 8px !important;   /* gap between Pay / View */
    padding: 8px 10px !important; /* consistent height */
    text-align: center;
    border-radius: 4px;
}

/* Remove extra gap under last button */
.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box .ssf-recent-orders td:nth-child(5) .button:last-child {
    margin-bottom: 0 !important;
}

/* Stack Pay / View buttons vertically, full width, with spacing */
.woocommerce-account .woocommerce-orders-table--recent-orders td.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account table.shop_table.my_account_orders td.woocommerce-orders-table__cell-order-actions .button {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 0 8px !important;    /* space between buttons */
    padding: 8px 10px !important;  /* consistent height */
    text-align: center;
}

/* Remove extra bottom gap on the last button */
.woocommerce-account .woocommerce-orders-table--recent-orders td.woocommerce-orders-table__cell-order-actions .button:last-child,
.woocommerce-account table.shop_table.my_account_orders td.woocommerce-orders-table__cell-order-actions .button:last-child {
    margin-bottom: 0 !important;
}

/* =========================================
   MY ACCOUNT → ORDERS TAB TABLE LAYOUT
   (full-width + wider Status column)
========================================= */

/* Make the Orders tab table span full width of content */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table--orders {
    width: 100% !important;
    table-layout: auto !important;
}

/* Column widths: Order | Date | Status | Total | Actions */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders th:nth-child(1),
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders td:nth-child(1) {
    width: 12% !important;   /* Order */
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders th:nth-child(2),
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders td:nth-child(2) {
    width: 20% !important;   /* Date */
}

/* STATUS column – give this the most space */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders th:nth-child(3),
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders td:nth-child(3) {
    width: 28% !important;   /* tweak 24–32% as needed */
    white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders th:nth-child(4),
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders td:nth-child(4) {
    width: 18% !important;   /* Total */
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders th:nth-child(5),
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders td:nth-child(5) {
    width: 22% !important;   /* Actions */
}

/* You already have this part, but keep it (stack Pay/View vertically) */
/* Stack Pay / View buttons vertically, full width, with spacing */
.woocommerce-account .woocommerce-orders-table--recent-orders td.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account table.shop_table.my_account_orders td.woocommerce-orders-table__cell-order-actions .button {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 0 8px !important;    /* space between buttons */
    padding: 8px 10px !important;  /* consistent height */
    text-align: center;
}

/* Remove extra bottom gap on the last button */
.woocommerce-account .woocommerce-orders-table--recent-orders td.woocommerce-orders-table__cell-order-actions .button:last-child,
.woocommerce-account table.shop_table.my_account_orders td.woocommerce-orders-table__cell-order-actions .button:last-child {
    margin-bottom: 0 !important;
}

/* =========================================
   MY ACCOUNT → SINGLE ORDER VIEW ("View" page)
   Widen container + details table
========================================= */

/* Widen the single order wrapper inside account content */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Make the order details table full width */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order table.shop_table.order_details,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.woocommerce-table--order-details {
    width: 100% !important;
    table-layout: auto !important;
}

/* Optional: if you want the whole content area wider on all account pages */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 18% !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 80% !important;
    float: right !important;
}

/* =========================================
   MY ACCOUNT → VIEW ORDER PAGE
   Widen SSF custom boxes + tables
========================================= */

/* Make the main My Account content wider (if not already) */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 18% !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 80% !important;
    float: right !important;
}

/* 1. Widen all SSF dashboard boxes on the View Order page */
.woocommerce-account .woocommerce-MyAccount-content .ssf-dashboard-box,
.woocommerce-account .woocommerce-MyAccount-content .ssf-address-grid {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto 24px !important;  /* center + space between sections */
}

/* 2. Ensure the items + totals tables fill the box */
.woocommerce-account .woocommerce-MyAccount-content .ssf-items-table,
.woocommerce-account .woocommerce-MyAccount-content .ssf-totals-table {
    width: 100% !important;
    table-layout: auto !important;
}

/* 3. Make address boxes sit nicely in two columns on desktop */
.woocommerce-account .woocommerce-MyAccount-content .ssf-address-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.woocommerce-account .woocommerce-MyAccount-content .ssf-address-grid .ssf-address-box {
    flex: 1 1 48%;
}

/* (Optional) On small screens, stack address boxes full-width */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-content .ssf-address-grid .ssf-address-box {
        flex: 1 1 100%;
    }
}


/* =========================================
   MY ACCOUNT → ORDERS TAB TABLE LAYOUT
========================================= */

/* Full-width orders table inside account content */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders {
    width: 100% !important;
    table-layout: auto !important;
}

/* Column widths: Order | Date | Status | Total | Actions */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders th:nth-child(1),
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders td:nth-child(1) {
    width: 12% !important;   /* Order */
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders th:nth-child(2),
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders td:nth-child(2) {
    width: 20% !important;   /* Date */
}

/* STATUS column – give this more space */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders th:nth-child(3),
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders td:nth-child(3) {
    width: 28% !important;   /* tweak 24–32% if needed */
    white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders th:nth-child(4),
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders td:nth-child(4) {
    width: 18% !important;   /* Total */
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders th:nth-child(5),
.woocommerce-account .woocommerce-MyAccount-content table.shop_table.my_account_orders td:nth-child(5) {
    width: 22% !important;   /* Actions */
}

/* Keep Pay / View stacked vertically, full width, with spacing */
.woocommerce-account table.shop_table.my_account_orders td.woocommerce-orders-table__cell-order-actions .button {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 0 8px !important;    /* space between buttons */
    padding: 8px 10px !important;  /* consistent height */
    text-align: center;
}

.woocommerce-account table.shop_table.my_account_orders td.woocommerce-orders-table__cell-order-actions .button:last-child {
    margin-bottom: 0 !important;
}


/* =========================================
   MY ACCOUNT LAYOUT (ALL TABS)
========================================= */

/* Use a flex layout for nav + content on My Account pages */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 32px;
}

/* Left navigation (Dashboard / Orders / etc.) */
.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 220px;
}

/* Right content area (Dashboard, Orders, View Order, etc.) */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 1 auto;
    max-width: 1200px;
    width: 150%;
}
/* =========================================
   MY ACCOUNT → VIEW ORDER PAGE (SSF boxes)
========================================= */

/* Widen all SSF boxes + the address grid in the content area */
.woocommerce-account .woocommerce-MyAccount-content .ssf-view-order-box,
.woocommerce-account .woocommerce-MyAccount-content .ssf-items-box,
.woocommerce-account .woocommerce-MyAccount-content .ssf-totals-box,
.woocommerce-account .woocommerce-MyAccount-content .ssf-address-grid,
.woocommerce-account .woocommerce-MyAccount-content .ssf-payment-box {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Make the Items and Totals tables fill their boxes */
.woocommerce-account .woocommerce-MyAccount-content .ssf-items-table,
.woocommerce-account .woocommerce-MyAccount-content .ssf-totals-table {
    width: 100% !important;
    table-layout: auto !important;
}

/* Lay out Billing / Shipping address boxes in two columns on desktop */
.woocommerce-account .woocommerce-MyAccount-content .ssf-address-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.woocommerce-account .woocommerce-MyAccount-content .ssf-address-grid .ssf-address-box {
    flex: 1 1 48%;
}

/* Stack addresses on smaller screens */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-content .ssf-address-grid .ssf-address-box {
        flex: 1 1 100%;
    }
}

/* TEMP – remove after confirming */
.woocommerce-account .woocommerce-MyAccount-content .ssf-view-order-box {
    outline: 2px solid red !important;
}
