/* =====================================================================
   Lumivera UI polish: responsive fixes layered on top of Betheme.
   Loaded after the theme stylesheets by includes/lumivera-ui.php
   ===================================================================== */
:root {
    --lv-green: #4d7c5f;
    --lv-green-dark: #1b4d3e;
    --lv-orange: #e86831;
    --lv-line: #ece9e0;
    --lv-soft: #f7f6f2;
    --lv-radius: 12px;
    --lv-gutter: clamp(16px, 4vw, 48px);
}

/* ---------- Never let anything push the page sideways ---------- */
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; } /* "hidden" first = fallback for browsers without "clip" */
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
.entry-content img, .the_content_wrapper img { height: auto; max-width: 100%; }
table { max-width: 100%; }

/* ---------- Containers: use the screen width consistently ---------- */
body.woocommerce-account .section_wrapper,
body.woocommerce-cart .section_wrapper,
body.woocommerce-checkout .section_wrapper,
body.page .the_content .section_wrapper {
    max-width: min(1360px, 100% - (var(--lv-gutter) * 2));
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
body.woocommerce-account .the_content_wrapper,
body.woocommerce-cart .the_content_wrapper,
body.woocommerce-checkout .the_content_wrapper { margin: 0; width: 100%; max-width: 100%; }

/* ---------- Single product: description/tabs must stay inside their column ---------- */
.mfn-woocommerce-tabs,
.mfn-woocommerce-tabs-content,
.mfn-woocommerce-tabs-content .section_wrapper,
.mfn-woocommerce-tabs-content .the_content_wrapper,
.mfn-woocommerce-tabs-content .section,
.mfn-single-product-tmpl-builder .mcb-column-inner { min-width: 0; max-width: 100% !important; width: 100% !important; box-sizing: border-box; }
.mfn-woocommerce-tabs-content img { max-width: 100%; height: auto; }
.mfn-woocommerce-tabs-nav { flex-wrap: wrap; }
@media (max-width: 1023px) {
    .mfn-single-product-tmpl-builder .section_wrapper { flex-wrap: wrap; }
    .mfn-single-product-tmpl-builder .mcb-wrap { flex: 0 0 100%; max-width: 100%; width: 100%; }
}

/* ---------- Buttons: consistent size, no stacking glitches ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { white-space: nowrap; }

/* ---------- Order received / thank-you ---------- */
.woocommerce-order { max-width: 1100px; margin: 0 auto; }
.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; }
.woocommerce-order-overview li { flex: 1 1 160px; min-width: 0; word-break: break-word; border: 1px solid var(--lv-line) !important; border-radius: var(--lv-radius); padding: 14px 16px !important; margin: 0 !important; }
.woocommerce-order-details, .woocommerce-customer-details { overflow-x: auto; }

/* =====================================================================
   MY ACCOUNT
   ===================================================================== */
body.woocommerce-account.logged-in .the_content_wrapper > .woocommerce {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
    padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 6vw, 80px);
    width: 100%;
}
body.woocommerce-account.logged-in .the_content_wrapper > .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-account.logged-in .the_content_wrapper > .woocommerce > .woocommerce-message,
body.woocommerce-account.logged-in .the_content_wrapper > .woocommerce > .woocommerce-error,
body.woocommerce-account.logged-in .the_content_wrapper > .woocommerce > .woocommerce-info { grid-column: 1 / -1; grid-row: 1; }

body.woocommerce-account .woocommerce-MyAccount-navigation {
    grid-column: 1; grid-row: 2;
    float: none !important; width: auto !important; margin: 0 !important;
    position: sticky; top: 190px;
    background: #fff; border: 1px solid var(--lv-line); border-radius: var(--lv-radius); padding: 10px;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
body.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 2px 0; }
body.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px;
    text-decoration: none; transition: background .15s, color .15s;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--lv-soft); }
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--lv-green); color: #fff; }
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a * { color: #fff; }
body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-top: 1px solid var(--lv-line); margin-top: 8px; padding-top: 8px; }

body.woocommerce-account .woocommerce-MyAccount-content {
    grid-column: 2; grid-row: 2;
    float: none !important; width: auto !important; margin: 0 !important; min-width: 0;
    background: #fff; border: 1px solid var(--lv-line); border-radius: var(--lv-radius);
    padding: clamp(18px, 3vw, 36px);
}
body.woocommerce-account .woocommerce-MyAccount-content > *:first-child { margin-top: 0; }
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 { margin-top: 0; }

/* Dashboard tiles (rendered by includes/lumivera-ui.php) */
.lv-dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 24px; }
.lv-dash-tile { display: block; padding: 18px; border: 1px solid var(--lv-line); border-radius: var(--lv-radius); background: var(--lv-soft); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.lv-dash-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(27, 59, 43, .08); }
.lv-dash-tile strong { display: block; font-size: 26px; line-height: 1.1; color: var(--lv-green-dark); }
.lv-dash-tile span { font-size: 13px; opacity: .75; }
.lv-dash-tile.warn { background: #fff4ec; border-color: #f6cfb6; }
.lv-dash-tile.warn strong { color: #b4501c; }

/* Orders table */
body.woocommerce-account table.woocommerce-orders-table { width: 100%; border-collapse: collapse; table-layout: auto; }
body.woocommerce-account table.woocommerce-orders-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 2px solid var(--lv-line); }
body.woocommerce-account table.woocommerce-orders-table td { padding: 14px 12px; border-bottom: 1px solid var(--lv-line); vertical-align: middle; text-align: left; }
body.woocommerce-account .woocommerce-orders-table__cell-order-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
body.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button,
body.woocommerce-account .woocommerce-orders-table__cell-order-actions a {
    margin: 0 !important; padding: 8px 16px !important; font-size: 13px !important; line-height: 1.2 !important;
    height: auto !important; min-height: 0 !important; width: auto !important; float: none !important;
}
body.woocommerce-account .woocommerce-orders-table__cell-order-status { white-space: nowrap; }
body.woocommerce-account tr.woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status,
body.woocommerce-account tr.woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status { color: #b0342a; font-weight: 600; }
body.woocommerce-account tr.woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status,
body.woocommerce-account tr.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status { color: #1e6b32; font-weight: 600; }
body.woocommerce-account tr.woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status { color: #a56a00; font-weight: 600; }

/* Notice banner ("Confirm your email address...") */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message { margin-bottom: 20px; }

/* Addresses */
body.woocommerce-account .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 0; }
body.woocommerce-account .woocommerce-Addresses .woocommerce-Address { float: none !important; width: auto !important; margin: 0 !important; border: 1px solid var(--lv-line); border-radius: var(--lv-radius); padding: 20px; background: var(--lv-soft); }
body.woocommerce-account .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 { margin: 0; }
body.woocommerce-account .woocommerce-Address-title a.edit { margin: 0 !important; text-align: right; float: none !important; position: static !important; }
body.woocommerce-account .woocommerce-Address address { font-style: normal; line-height: 1.7; padding: 0 !important; border: 0 !important; margin: 0; word-break: break-word; }
body.woocommerce-account .woocommerce-Address address::before, body.woocommerce-account .woocommerce-Address::before { display: none !important; }

/* Forms: edit account, edit address, login */
body.woocommerce-account .woocommerce-MyAccount-content form .form-row { margin-bottom: 16px; padding: 0; }
body.woocommerce-account .woocommerce-MyAccount-content form .form-row-first,
body.woocommerce-account .woocommerce-MyAccount-content form .form-row-last { width: calc(50% - 10px) !important; float: left !important; }
body.woocommerce-account .woocommerce-MyAccount-content form .form-row-first { margin-right: 20px; }
body.woocommerce-account .woocommerce-MyAccount-content form .form-row-wide,
body.woocommerce-account .woocommerce-MyAccount-content form .form-row-first + .form-row-last + .form-row { clear: both; }
body.woocommerce-account .woocommerce-MyAccount-content form .form-row-wide { width: 100% !important; clear: both; }
body.woocommerce-account .woocommerce-MyAccount-content form input.input-text,
body.woocommerce-account .woocommerce-MyAccount-content form select,
body.woocommerce-account .woocommerce-MyAccount-content form textarea,
body.woocommerce-account .woocommerce-MyAccount-content form .select2-container { width: 100% !important; max-width: 100%; box-sizing: border-box; }
body.woocommerce-account .woocommerce-MyAccount-content fieldset { clear: both; border: 1px solid var(--lv-line); border-radius: var(--lv-radius); padding: 18px 20px; margin: 20px 0; }
body.woocommerce-account .woocommerce-MyAccount-content fieldset legend { padding: 0 8px; }
body.woocommerce-account .woocommerce-MyAccount-content form button[type=submit] { clear: both; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper::after,
body.woocommerce-account .woocommerce-MyAccount-content form::after { content: ""; display: table; clear: both; }
body.woocommerce-account .password-input { display: block; position: relative; }
body.woocommerce-account .show-password-input { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }

/* Logged-out: login + register side by side, centred, using the width */
body.woocommerce-account:not(.logged-in) .the_content_wrapper > .woocommerce { padding: clamp(24px, 5vw, 64px) 0; }
body.woocommerce-account:not(.logged-in) .u-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
body.woocommerce-account:not(.logged-in) .u-columns .u-column1,
body.woocommerce-account:not(.logged-in) .u-columns .u-column2 { float: none; width: auto; border: 1px solid var(--lv-line); border-radius: var(--lv-radius); padding: 28px; }

/* ---------- Tablets & phones ---------- */
@media (max-width: 959px) {
    body.woocommerce-account.logged-in .the_content_wrapper > .woocommerce { grid-template-columns: minmax(0, 1fr); }
    body.woocommerce-account .woocommerce-MyAccount-navigation { position: static; padding: 6px; grid-column: 1; grid-row: 2; }
    body.woocommerce-account .woocommerce-MyAccount-content { grid-column: 1; grid-row: 3; }
    body.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    body.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
    body.woocommerce-account .woocommerce-MyAccount-navigation li { flex: 0 0 auto; margin: 0; }
    body.woocommerce-account .woocommerce-MyAccount-navigation li a { padding: 9px 14px; white-space: nowrap; }
    body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border: 0; margin: 0; padding: 0; }
}
@media (max-width: 767px) {
    /* Orders: one card per order */
    body.woocommerce-account table.woocommerce-orders-table thead { display: none; }
    body.woocommerce-account table.woocommerce-orders-table, body.woocommerce-account table.woocommerce-orders-table tbody,
    body.woocommerce-account table.woocommerce-orders-table tr, body.woocommerce-account table.woocommerce-orders-table td { display: block; width: 100%; }
    body.woocommerce-account table.woocommerce-orders-table tr { border: 1px solid var(--lv-line); border-radius: var(--lv-radius); margin-bottom: 14px; padding: 6px 0; }
    body.woocommerce-account table.woocommerce-orders-table td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 8px 14px; text-align: right; }
    body.woocommerce-account table.woocommerce-orders-table td::before { content: attr(data-title); font-weight: 600; opacity: .7; text-align: left; flex: 0 0 auto; }
    body.woocommerce-account .woocommerce-orders-table__cell-order-actions { justify-content: flex-end; }
    body.woocommerce-account .woocommerce-orders-table__cell-order-actions::before { display: none; }
    body.woocommerce-account .woocommerce-MyAccount-content form .form-row-first,
    body.woocommerce-account .woocommerce-MyAccount-content form .form-row-last { width: 100% !important; float: none !important; margin-right: 0; }
    .lv-dash-tiles { grid-template-columns: repeat(2, 1fr); }
    .woocommerce-order-overview li { flex-basis: 45%; }
}
@media (max-width: 420px) {
    .lv-dash-tiles { grid-template-columns: 1fr; }
    .woocommerce-order-overview li { flex-basis: 100%; }
}

/* Very large screens: keep line length sensible, centre content */
@media (min-width: 1800px) {
    body.woocommerce-account .section_wrapper, body.woocommerce-cart .section_wrapper, body.woocommerce-checkout .section_wrapper { max-width: 1500px; }
}

/* Phones: breathing room at the screen edge on account/cart/checkout */
@media (max-width: 767px) {
    body.woocommerce-account .the_content_wrapper,
    body.woocommerce-cart .the_content_wrapper,
    body.woocommerce-checkout .the_content_wrapper { padding-left: 14px; padding-right: 14px; box-sizing: border-box; }
}
/* Entrance newsletter popup is disabled site-wide */
.mfn-popup-template-292, .mfn-popup-tmpl.mfn-popup-template-292 { display: none !important; }

/* ---------- Smooth page transitions + AJAX progress bar ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: lv-fade-out .14s ease both; }
::view-transition-new(root) { animation: lv-fade-in .2s ease both; }
.mfn-header-tmpl { view-transition-name: lv-header; }
::view-transition-group(lv-header) { animation-duration: 0s; }
@keyframes lv-fade-out { to { opacity: 0; } }
@keyframes lv-fade-in { from { opacity: 0; } }
#lv-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--lv-orange); z-index: 10000000; opacity: 0; transition: width .35s ease, opacity .25s ease; pointer-events: none; box-shadow: 0 0 8px rgba(232,104,49,.6); }
html[aria-busy="true"] body { cursor: progress; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---------- Addresses: tidy, equal cards ---------- */
body.woocommerce-account .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-Addresses::after,
body.woocommerce-account .col2-set::before,
body.woocommerce-account .col2-set::after { display: none !important; content: none !important; }
body.woocommerce-account .woocommerce-Addresses {
    display: grid !important; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch;
    width: 100% !important; margin: 18px 0 0 !important; padding: 0 !important;
}
body.woocommerce-account .woocommerce-Addresses > .woocommerce-Address,
body.woocommerce-account .woocommerce-Addresses > .col-1,
body.woocommerce-account .woocommerce-Addresses > .col-2 {
    float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; min-width: 0;
    display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; text-align: left !important;
}
body.woocommerce-account .woocommerce-Address-title {
    display: flex !important; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px;
    padding-bottom: 12px; margin: 0 !important; border-bottom: 1px solid var(--lv-line); text-align: left !important;
}
body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 { font-size: 18px !important; line-height: 1.3 !important; text-align: left !important; margin: 0 !important; flex: 1 1 auto; }
body.woocommerce-account .woocommerce-Address-title a.edit {
    flex: 0 0 auto; display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid var(--lv-green); border-radius: 999px;
    font-size: 13px; line-height: 1.2; color: var(--lv-green); text-decoration: none; white-space: nowrap;
}
body.woocommerce-account .woocommerce-Address-title a.edit:hover { background: var(--lv-green); color: #fff; }
body.woocommerce-account .woocommerce-Address address { text-align: left !important; margin: 0 !important; flex: 1 1 auto; }
body.woocommerce-account .woocommerce-MyAccount-content > p:first-child { margin: 0 0 4px; }
/* address / account forms: titles and fields */
body.woocommerce-account .woocommerce-MyAccount-content > form > h2,
body.woocommerce-account .woocommerce-MyAccount-content > form > h3 { font-size: 20px; margin: 0 0 18px; text-align: left; }
body.woocommerce-account .woocommerce-MyAccount-content form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
body.woocommerce-account .woocommerce-MyAccount-content form .required { color: #c0392b; }
body.woocommerce-account .woocommerce-MyAccount-content form em, body.woocommerce-account .woocommerce-MyAccount-content form .description { display: block; margin-top: 4px; font-size: 12px; opacity: .75; }
@media (max-width: 480px) {
    body.woocommerce-account .woocommerce-Address-title { flex-wrap: wrap; }
}
body.woocommerce-account .woocommerce-MyAccount-content form select { height: 40px; border: 1px solid currentColor; border-color: #1b3b2b; border-radius: 0; padding: 0 12px; background-color: #fff; }

/* =====================================================================
   Whole account section: consistent cards, headings, tables, forms
   ===================================================================== */

/* Dashboard */
body.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type { font-size: 20px; line-height: 1.4; margin: 0 0 6px; }
body.woocommerce-account .woocommerce-MyAccount-content > p:nth-of-type(2) { margin: 0 0 4px; opacity: .85; }
.lv-dash-tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; gap: 14px; margin-top: 26px; }
.lv-dash-tile { display: flex !important; align-items: center; gap: 14px; padding: 16px 18px !important; }
.lv-dash-tile .lv-ico { flex: 0 0 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--lv-line); display: inline-flex; align-items: center; justify-content: center; color: var(--lv-green); font-style: normal; }
.lv-dash-tile.warn .lv-ico { color: #b4501c; border-color: #f6cfb6; }
.lv-dash-tile .lv-tile-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.lv-dash-tile strong { font-size: 24px !important; }
.lv-dash-tile .lv-tile-text > span { font-size: 13px; opacity: .8; }
.lv-dash-tile:not(:has(strong)) .lv-tile-text > span { font-size: 14px; opacity: 1; font-weight: 600; }

/* Order view (single order) */
body.woocommerce-account .woocommerce-order-details,
body.woocommerce-account .woocommerce-customer-details { background: none !important; padding: 0 !important; margin: 26px 0 0 !important; overflow: visible; }
body.woocommerce-account .woocommerce-order-details__title,
body.woocommerce-account .woocommerce-column__title,
body.woocommerce-account .woocommerce-order-details h2,
body.woocommerce-account .woocommerce-customer-details h2 { font-size: 20px !important; text-align: left !important; margin: 0 0 14px !important; }
body.woocommerce-account table.shop_table,
body.woocommerce-account table.woocommerce-table--order-details {
    width: 100%; border: 1px solid var(--lv-line) !important; border-radius: var(--lv-radius); border-collapse: separate !important; border-spacing: 0; overflow: hidden; background: #fff !important; margin: 0 !important;
}
body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td { padding: 13px 18px !important; text-align: left; border: 0 !important; border-bottom: 1px solid var(--lv-line) !important; background: transparent !important; vertical-align: middle; }
body.woocommerce-account table.shop_table thead th { background: var(--lv-soft) !important; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
body.woocommerce-account table.shop_table tbody td.woocommerce-table__product-total,
body.woocommerce-account table.shop_table th:last-child, body.woocommerce-account table.shop_table tfoot td { text-align: right; }
body.woocommerce-account table.shop_table tfoot tr:last-child th, body.woocommerce-account table.shop_table tfoot tr:last-child td { border-bottom: 0 !important; }
body.woocommerce-account table.shop_table tfoot td .button, body.woocommerce-account table.shop_table tfoot td a.button { margin: 0 0 0 8px !important; padding: 9px 20px !important; font-size: 13px !important; height: auto !important; line-height: 1.2 !important; }
body.woocommerce-account .woocommerce-customer-details .col2-set { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; width: 100% !important; }
body.woocommerce-account .woocommerce-customer-details .col2-set::before, body.woocommerce-account .woocommerce-customer-details .col2-set::after { display: none !important; }
body.woocommerce-account .woocommerce-customer-details .woocommerce-column { float: none !important; width: auto !important; border: 1px solid var(--lv-line); border-radius: var(--lv-radius); background: var(--lv-soft); padding: 18px 20px; }
body.woocommerce-account .woocommerce-customer-details address { border: 0 !important; padding: 0 !important; font-style: normal; line-height: 1.7; }
body.woocommerce-account .woocommerce-MyAccount-content .order-again { margin-top: 18px; }
body.woocommerce-account mark.order-number, body.woocommerce-account mark.order-date, body.woocommerce-account mark.order-status { background: none; font-weight: 700; color: inherit; }

/* Password show/hide button: a clean icon button instead of a dark box */
.woocommerce .show-password-input, .woocommerce .password-input .show-password-input {
    background: transparent !important; border: 0 !important; box-shadow: none !important; width: 36px !important; height: 36px !important;
    right: 4px !important; top: 50% !important; transform: translateY(-50%); color: #5b6b62 !important; cursor: pointer; padding: 0 !important; opacity: .75;
}
.woocommerce .show-password-input:hover { opacity: 1; }
.woocommerce .password-input input { padding-right: 48px !important; }

/* Logged-out login/register: a centred card, not a full-width stretch */
/* (no :has() here so older Firefox/Safari get the same centred card) */
body.woocommerce-account:not(.logged-in) .the_content_wrapper > .woocommerce > h2,
body.woocommerce-account:not(.logged-in) .the_content_wrapper > .woocommerce > form.woocommerce-form-login,
body.woocommerce-account:not(.logged-in) .the_content_wrapper > .woocommerce > form.lost_reset_password,
body.woocommerce-account:not(.logged-in) .the_content_wrapper > .woocommerce > .woocommerce-notices-wrapper { max-width: 480px; width: 100%; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box; }
body.woocommerce-account:not(.logged-in) form.woocommerce-form-login,
body.woocommerce-account:not(.logged-in) form.woocommerce-form-register { background: #fff; border: 1px solid var(--lv-line); border-radius: var(--lv-radius); padding: 28px 28px 24px !important; margin: 0 !important; box-shadow: 0 8px 30px rgba(27, 59, 43, .06); }
body.woocommerce-account:not(.logged-in) .the_content_wrapper > .woocommerce > h2 { font-size: 26px; margin: 0 0 16px; text-align: left; }
body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .form-row { margin-bottom: 16px; padding: 0; }
body.woocommerce-account:not(.logged-in) form.woocommerce-form-login label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .woocommerce-form-login__submit { width: 100%; margin: 6px 0 0 !important; }
body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; font-weight: 400; }
body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword { text-align: center; margin: 16px 0 0; }

/* Account details */
body.woocommerce-account .woocommerce-EditAccountForm fieldset legend { font-size: 15px; font-weight: 700; }
body.woocommerce-account .woocommerce-EditAccountForm .woocommerce-Button { margin-top: 6px; }

@media (max-width: 767px) {
    body.woocommerce-account table.shop_table th, body.woocommerce-account table.shop_table td { padding: 11px 12px !important; }
    body.woocommerce-account table.shop_table tfoot td .button { margin: 6px 6px 0 0 !important; }
    body.woocommerce-account table.shop_table tfoot td:has(.button) { text-align: left; }
    .lv-dash-tiles { grid-template-columns: 1fr 1fr !important; }
    body.woocommerce-account:not(.logged-in) form.woocommerce-form-login { padding: 22px 18px 20px !important; }
}
@media (max-width: 420px) { .lv-dash-tiles { grid-template-columns: 1fr !important; } }

/* ---------- Account: full width (aligned with the header) and full height (header to footer) ---------- */
body.woocommerce-account #Content .section_wrapper,
body.woocommerce-account .section.the_content .section_wrapper,
body.woocommerce-account .the_content .section_wrapper {
    max-width: none !important; width: auto !important;
    margin-left: clamp(16px, calc(19.4vw - 175px), 260px) !important;
    margin-right: clamp(16px, calc(19.4vw - 175px), 260px) !important;
}
body.woocommerce-account .the_content_wrapper { margin: 0 !important; padding: 0 !important; }
body.woocommerce-account.logged-in .the_content_wrapper > .woocommerce {
    align-items: stretch;
    padding: clamp(20px, 3vw, 40px) 0 clamp(28px, 4vw, 56px) !important;
    min-height: calc(100vh - 230px);
}
body.woocommerce-account .woocommerce-MyAccount-navigation {
    position: static !important; align-self: stretch; display: flex; flex-direction: column;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul { flex: 1 1 auto; display: flex; flex-direction: column; }
body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { margin-top: auto; }
body.woocommerce-account .woocommerce-MyAccount-content { align-self: stretch; display: flex; flex-direction: column; }
body.woocommerce-account .woocommerce-MyAccount-content > * { flex: 0 0 auto; }
body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-Addresses,
body.woocommerce-account .woocommerce-MyAccount-content > .lv-dash-tiles { align-content: start; }
@media (max-width: 959px) {
    body.woocommerce-account.logged-in .the_content_wrapper > .woocommerce { min-height: 0; }
    body.woocommerce-account .woocommerce-MyAccount-navigation { display: block; }
    body.woocommerce-account .woocommerce-MyAccount-navigation ul { flex-direction: row; }
    body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { margin-top: 0; }
}
/* logged-out: vertically centred in the space between header and footer */
body.woocommerce-account:not(.logged-in) .the_content_wrapper > .woocommerce { min-height: calc(100vh - 330px); display: flex; flex-direction: column; justify-content: center; }

/* ---------- Account refinements ---------- */
body.woocommerce-account.logged-in .the_content_wrapper > .woocommerce { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
body.woocommerce-account .woocommerce-customer-details .woocommerce-column,
body.woocommerce-account .woocommerce-customer-details .woocommerce-column--billing-address,
body.woocommerce-account .woocommerce-customer-details .woocommerce-column--shipping-address { margin: 0 !important; }
body.woocommerce-account .woocommerce-customer-details address::before,
body.woocommerce-account .woocommerce-customer-details address::after,
body.woocommerce-account .woocommerce-customer-details .woocommerce-column::before,
body.woocommerce-account .woocommerce-customer-details .woocommerce-column::after,
body.woocommerce-account .woocommerce-Address address::before,
body.woocommerce-account .woocommerce-Address address::after { display: none !important; content: none !important; background: none !important; }
body.woocommerce-account .woocommerce-customer-details address { margin: 0 !important; padding: 0 !important; width: auto !important; min-height: 0 !important; }
body.woocommerce-account .woocommerce-customer-details .woocommerce-column__title { margin-bottom: 10px !important; }

/* Show/hide password: neutral icon button everywhere (account + login) */
body .woocommerce form .password-input .show-password-input,
body .woocommerce-form .password-input .show-password-input,
body .password-input button.show-password-input {
    background: transparent !important; background-color: transparent !important; border: 0 !important; outline: 0 !important; box-shadow: none !important;
    width: 36px !important; height: 36px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 6px;
    right: 6px !important; top: 50% !important; transform: translateY(-50%) !important; opacity: .8;
    display: inline-flex !important; align-items: center; justify-content: center; filter: none !important;
}
body .password-input .show-password-input::after { filter: none !important; opacity: .85; }

/* Dashboard: recent orders */
body.woocommerce-account.logged-in .the_content_wrapper > .woocommerce { padding-top: clamp(8px, 1.5vw, 20px) !important; }
.lv-recent { margin-top: 30px; }
.lv-recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lv-recent-head h3 { margin: 0 !important; font-size: 18px !important; }
.lv-recent-head a { font-size: 14px; text-decoration: none; color: var(--lv-green); }
.lv-order-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--lv-line); border-radius: var(--lv-radius); overflow: hidden; }
.lv-order-list li { display: grid; grid-template-columns: minmax(150px, 1.4fr) auto minmax(110px, auto) auto; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--lv-line); background: #fff; }
.lv-order-list li:last-child { border-bottom: 0; }
.lv-order-main { display: flex; flex-direction: column; text-decoration: none; line-height: 1.3; color: inherit; }
.lv-order-date { font-size: 12px; opacity: .65; }
.lv-order-total { text-align: right; font-weight: 600; }
.lv-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef0ee; color: #4a5a50; white-space: nowrap; justify-self: start; }
.lv-chip.st-failed, .lv-chip.st-cancelled { background: #fdecea; color: #a02a20; }
.lv-chip.st-on-hold, .lv-chip.st-pending { background: #fff4d6; color: #8a6100; }
.lv-chip.st-processing, .lv-chip.st-completed { background: #e3f4e7; color: #1e6b32; }
.lv-order-action { display: inline-flex; padding: 8px 18px; border-radius: 6px; background: var(--lv-green); color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.lv-order-action.ghost { background: transparent; color: var(--lv-green) !important; border: 1px solid var(--lv-green); }
.lv-empty { padding: 18px; border: 1px dashed var(--lv-line); border-radius: var(--lv-radius); margin: 0; }
@media (max-width: 640px) {
    .lv-order-list li { grid-template-columns: 1fr auto; row-gap: 8px; }
    .lv-order-total { text-align: left; }
    .lv-order-action { justify-self: end; }
}

/* Close the gap between the fixed header and the account area (desktop/tablet) */
@media (min-width: 1024px) {
    body.woocommerce-account.logged-in .the_content_wrapper > .woocommerce { margin-top: -44px !important; }
    body.woocommerce-account:not(.logged-in) .the_content_wrapper > .woocommerce { margin-top: -30px !important; }
}

/* My Account is an app-like area: no site footer, content fills the space below the header */
body.woocommerce-account footer.mfn-footer-tmpl,
body.woocommerce-account #Footer,
body.woocommerce-account .mfn-footer { display: none !important; }
body.woocommerce-account.logged-in .the_content_wrapper > .woocommerce { min-height: calc(100vh - 215px); padding-bottom: 28px !important; }
body.woocommerce-account.admin-bar.logged-in .the_content_wrapper > .woocommerce { min-height: calc(100vh - 247px); }
@media (max-width: 959px) { body.woocommerce-account.logged-in .the_content_wrapper > .woocommerce { min-height: 0; } }

/* Side cart: hidden until opened (no flash while the page loads) */
.mfn-cart-holder { visibility: hidden; transition: visibility 0s linear .4s; }
html.mfn-cart-opened .mfn-cart-holder, body.mfn-cart-opened .mfn-cart-holder, .mfn-cart-holder.is-open { visibility: visible !important; transition-delay: 0s; }

/* Side cart footer: breathing room between the totals and the checkout button */
.mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-buttons { margin-top: 16px; }
.mfn-cart-holder .mfn-ch-footer .mfn-chft-total { padding-bottom: 4px; }

/* Account: notice banners with a button (e.g. "Confirm your email address") and the recent-orders list alignment */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px !important; border-radius: var(--lv-radius); }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message .button { margin: 0 !important; flex: 0 0 auto; padding: 10px 18px !important; height: auto !important; line-height: 1.2 !important; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message::before { position: static !important; flex: 0 0 auto; }
ul.lv-order-list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
ul.lv-order-list li { margin: 0 !important; }
/* Account tables: never let the last column hang out of the card */
body.woocommerce-account .woocommerce-MyAccount-content { overflow-x: auto; }

/* =====================================================================
   Form fields (checkout, account, login, order-pay): one consistent, modern style
   ===================================================================== */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.woocommerce-page form .form-row select,
.woocommerce form .form-row .select2-container .select2-selection--single,
.woocommerce-checkout #lumivera-mpesa-form .mpesa-input-wrapper {
    min-height: 48px; border: 1px solid #d9ded9 !important; border-radius: 10px !important; background: #fff !important;
    font-size: 15px; line-height: 1.4; color: #1f2a24; box-shadow: none; transition: border-color .15s, box-shadow .15s; box-sizing: border-box;
}
.woocommerce form .form-row input.input-text,
.woocommerce-page form .form-row input.input-text,
.woocommerce form .form-row select { padding: 12px 14px !important; height: 48px; }
.woocommerce form .form-row textarea { padding: 12px 14px !important; min-height: 110px; }
.woocommerce form .form-row .select2-container .select2-selection--single { display: flex; align-items: center; padding: 0 8px; }
.woocommerce form .form-row .select2-container .select2-selection__rendered { line-height: 46px !important; padding-left: 6px !important; }
.woocommerce form .form-row .select2-container .select2-selection__arrow { height: 46px !important; right: 8px !important; }
.woocommerce form .form-row input.input-text:hover,
.woocommerce form .form-row select:hover,
.woocommerce form .form-row textarea:hover { border-color: #b9c4bd !important; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row .select2-container--focus .select2-selection,
.woocommerce form .form-row .select2-container--open .select2-selection,
.woocommerce-checkout #lumivera-mpesa-form .mpesa-input-wrapper:focus-within {
    border-color: var(--lv-green) !important; box-shadow: 0 0 0 3px rgba(77, 124, 95, .16) !important; outline: none;
}
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select { border-color: #c0392b !important; }
.woocommerce form .form-row label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: 1.3; color: #3b4a42; }
.woocommerce form .form-row .required { color: #c0392b; text-decoration: none; }
.woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce-checkout #lumivera-mpesa-form .mpesa-input-wrapper { overflow: hidden; padding: 0; }
.woocommerce-checkout #lumivera-mpesa-form .mpesa-input-wrapper input { border: 0 !important; box-shadow: none !important; min-height: 46px; padding: 0 14px !important; background: transparent !important; }
.woocommerce-checkout #lumivera-mpesa-form .mpesa-flag { display: flex; align-items: center; padding: 0 12px; background: #f3f5f3; border-right: 1px solid #d9ded9; font-size: 14px; }

/* =====================================================================
   Checkout layout: aligned with the header, billing | order summary side by side
   ===================================================================== */
body.woocommerce-checkout #Content .section_wrapper,
body.woocommerce-checkout .the_content .section_wrapper {
    max-width: none !important; width: auto !important;
    margin-left: clamp(16px, calc(19.4vw - 175px), 260px) !important;
    margin-right: clamp(16px, calc(19.4vw - 175px), 260px) !important;
}
@media (min-width: 960px) {
    /* billing form on the left, order summary + payment on the right, side by side */
    body.woocommerce-checkout form.checkout.woocommerce-checkout {
        display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: flex-start !important;
        gap: clamp(24px, 3vw, 48px);
    }
    body.woocommerce-checkout form.checkout > #customer_details { flex: 1.35 1 0 !important; min-width: 0 !important; width: auto !important; float: none !important; margin: 0 !important; }
    body.woocommerce-checkout form.checkout > #order_review {
        flex: 1 1 0 !important; min-width: 340px !important; width: auto !important; float: none !important; margin: 0 !important;
    }
    body.woocommerce-checkout #order_review #order_review_heading { float: none !important; width: auto !important; margin: 0 0 12px !important; }
}
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 { float: none !important; width: 100% !important; max-width: none !important; }
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row { grid-column: 1 / -1; float: none !important; width: auto !important; margin-right: 0 !important; }
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-first { grid-column: 1; }
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 2; }
@media (max-width: 600px) {
    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
    body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-first,
    body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 1; }
}
/* Order summary: nothing clipped, long values wrap cleanly */
body.woocommerce-checkout #order_review { border-radius: 14px; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table { width: 100%; table-layout: auto; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table td { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; word-break: normal; overflow-wrap: anywhere; vertical-align: top; }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td { white-space: nowrap !important; text-align: right; }
body.woocommerce-checkout #shipping_method { margin: 0; padding: 0; list-style: none; }
body.woocommerce-checkout #shipping_method li { margin: 0; white-space: normal; }
body.woocommerce-checkout #payment { border-radius: 12px; }
body.woocommerce-checkout #payment ul.payment_methods li .payment_box { overflow: hidden; }
body.woocommerce-checkout #place_order { width: 100%; min-height: 52px; border-radius: 10px; font-size: 16px; }

/* Variation selection: the price/stock block fades in instead of popping in */
.single_variation_wrap .woocommerce-variation { animation: lvFadeIn .22s ease both; }
@keyframes lvFadeIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.mfn-vr-labels li a { transition: background-color .15s, border-color .15s, color .15s; }
@media (prefers-reduced-motion: reduce) { .single_variation_wrap .woocommerce-variation { animation: none; } }

/* Product gallery: no hover-zoom layer (it could stick); the image opens the lightbox instead */
.woocommerce-product-gallery .zoomImg { display: none !important; }
.woocommerce-product-gallery__image a { cursor: zoom-in; }
/* a small gutter between the gallery and the summary column */
.mfn-single-product-tmpl-builder .column_product_images .woocommerce-product-gallery { max-width: calc(100% - 24px); }

/* Thank-you / order-pay page: same width rules so nothing is squeezed */
body.woocommerce-order-received #Content .section_wrapper,
body.woocommerce-order-pay #Content .section_wrapper { max-width: min(1200px, 100% - 32px) !important; }
