/*
Theme Name: WooRest
Theme URI: https://www.woorest.com
Author: WooRest Team
Author URI: https://www.woorest.com
Description: Online food ordering for WooCommerce
Version: 1.2.1
Tested up to: 6.8
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: woorest
Domain Path: /languages
Tags: ecommerce, woocommerce, block-styles, custom-logo, custom-menu, editor-style
*/

:root {
    --background-color: #f7f7f7;
    --primary-color: #c9386f;
    --primary-hover: #b92a61;
    --text-color: #323232;
    --text-hover: #313131;
    --secondary-text: #6b6b6b;
    --button-bg: #c9386f;
    --button-text-color: #ffffff;
    --button-on-hover: #b92a61;
    --header-bg: #ffffff;
    --footer-bg: #ffffff;
    --footer-bottom-bg: #ffffff;
    --border-color: #e4e4e4;

    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* WooRest Sidebar Variables */
    --woorest-header-h: 50px; /* fallback */
    --woorest-footer-h: 0;  /* fallback */
    --woorest-sidebar-w: 350px;
    --woorest-bottom-gap: 0; /* computed dynamically near footer */
}

/* FOUC prevention */
html {
	visibility: hidden;
	opacity: 0;
	font-display: swap;
}

html.loaded {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.1s ease-in-out;
}


/* =================================
   Font Performance
   ================================= */
.critical-text {
    font-display: block;
}

.non-critical-text {
    font-display: optional;
}

/* =================================
   Base (Body)
   ================================= */
body {
    margin: 0;
    background-color: var(--background-color);
    font-family:
        "Open Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans",
        "Liberation Sans",
        system-ui,
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    font-variant-ligatures: common-ligatures;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =================================
   Plugin Placeholder Helpers
   ================================= */
.woorest-shortcode-placeholder {
	margin: 1.5rem auto;
	padding: 1.25rem 1.5rem;
	max-width: 640px;
	border: 1px dashed rgba(201, 56, 111, 0.45);
	border-radius: 12px;
	background: rgba(201, 56, 111, 0.05);
	text-align: center;
	color: var(--text-color);
}

.woorest-shortcode-placeholder strong {
	display: block;
	font-size: 1rem;
	margin-bottom: 0.35rem;
	color: var(--primary-color);
}

.woorest-shortcode-placeholder a {
	color: var(--primary-color);
	font-weight: var(--font-semibold);
	text-decoration: underline;
}

.woorest-shortcode-placeholder a:focus,
.woorest-shortcode-placeholder a:hover {
	color: var(--primary-hover);
}

/* =================================
   404 Page
   ================================= */
.woorest-404 {
    margin: clamp(60px, 12vw, 120px) auto;
    padding: clamp(32px, 8vw, 64px) clamp(24px, 6vw, 56px);
    max-width: 640px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 5vw, 28px);
}

.woorest-404__badge {
    font-size: clamp(3rem, 12vw, 6.5rem);
    font-weight: var(--font-semibold);
    color: rgba(17, 24, 39, 0.08);
    letter-spacing: 0.12em;
}

.woorest-404__title {
    margin: 0;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: var(--font-semibold);
    color: var(--text-color);
}

.woorest-404__message {
    margin: 0 auto;
    max-width: 480px;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--secondary-text);
}

.woorest-404__actions {
    display: flex;
    justify-content: center;
}

.woorest-404__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: #ffffff;
    background: var(--primary-color);
    border-radius: 999px;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.woorest-404__link:hover,
.woorest-404__link:focus-visible {
    background: var(--primary-hover);
}

.woorest-404__link:focus-visible {
    outline: none;
}


@media (max-width: 639px) {
    .woorest-404__actions {
        flex-direction: column;
        gap: 16px;
    }
}

/* =================================
   Layout (Sticky Footer)
   ================================= */
/* Update: General heading — Sticky footer layout. */
html, body {
    height: 100%;
}

/* =================================
   Header
   ================================= */
.woorest-top-bar {
    --woorest-top-bar-bg: #1f1f1f;
    --woorest-top-bar-text: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    text-align: center;
    background-color: var(--woorest-top-bar-bg);
    color: var(--woorest-top-bar-text);
    border-bottom: 1px solid var(--border-color);
}

.woorest-top-bar__inner {
    width: 100%;
    max-width: min(100%, 1200px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 0.75rem;
}

.woorest-top-bar__text {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    color: inherit;
}

.woorest-top-bar a {
    color: var(--woorest-top-bar-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.woorest-top-bar a:hover,
.woorest-top-bar a:focus {
    opacity: 0.85;
}

.site-header {
    background-color: var(--header-bg);
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Mobile header (hidden by default; visible <= 767px) */
.mobile-header {
    display: none;
}

.mobile-header__toggle {
    display: none;
    appearance: none;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: 999px;
    padding: 0;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}
.mobile-header__toggle:hover {
    background-color: var(--background-color);
}
.mobile-header__toggle:active {
    transform: scale(0.98);
}
.mobile-header__toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hamburger icon (3 bars) with animation to X */
.mobile-header__icon {
    position: relative;
    display: block;
    width: 16px;
    height: 2px;
    background-color: currentColor;
    color: var(--text-color);
    border-radius: 1px;
    transition: background-color 180ms ease, transform 200ms ease;
}
.mobile-header__icon::before,
.mobile-header__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transition: top 200ms ease, transform 200ms ease, opacity 200ms ease;
}
.mobile-header__icon::before {
    top: -5px;
}
.mobile-header__icon::after {
    top: 5px;
}

/* Active (expanded) state: morph to X */
.mobile-header__toggle[aria-expanded="true"] .mobile-header__icon {
    background-color: transparent;
}
.mobile-header__toggle[aria-expanded="true"] .mobile-header__icon::before {
    top: 0;
    transform: rotate(45deg);
}
.mobile-header__toggle[aria-expanded="true"] .mobile-header__icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mobile-header__toggle,
    .mobile-header__icon,
    .mobile-header__icon::before,
    .mobile-header__icon::after {
        transition: none;
    }
}

/* Branding */
.site-branding {
    display: flex;
    align-items: center;
    min-width: 0; /* prevent overflow */
}
.site-branding .custom-logo-link img,
.site-branding img.custom-logo {
    height: 32px;
    width: auto;
}
.site-branding .site-logo-image {
    height: auto;
    width: auto;
    max-height: 60px; /* Fallback max height */
    transition: all 0.3s ease;
}
.site-branding .site-title,
.site-branding a {
    text-decoration: none;
}

/* Navigation (center) */
.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}
.main-navigation a {
    text-decoration: none;
    padding: 0.5rem 0.25rem;
}/* Actions (right) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.btn-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    background-color: var(--button-bg);
    color: #ffffff;
    text-decoration: none;
}
.btn-signin:hover,
.btn-signin:focus {
    background-color: var(--button-on-hover);
}

/* =================================
   Typography
   ================================= */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.75em 0;
}

/* =================================
   WooRest Sidebar (fixed right)
   ================================= */
/* Update: General heading — Fixed right sidebar for WooRest pages, dynamic header/footer spacing. */
 .woorest-sidebar {
    position: fixed;
    top: var(--woorest-header-h);
    right: 0;
    width: var(--woorest-sidebar-w);
    bottom: var(--woorest-bottom-gap);
    background: #fff;
    border-left: 1px solid var(--border-color);
    border-top: none;
    border-bottom: none;
    box-shadow: none;
    overflow: auto;
    z-index: 1;
}

/* Stick to header exactly when page scrolls */
.woorest-sidebar.is-stuck {
    top: var(--woorest-header-h);
}

/* Push main content to the left when sidebar is active */
.has-woorest-sidebar .site-main {
    padding-right: var(--woorest-sidebar-w);
}

/* Update: General heading — Add 15px spacing on both sides for >=1200px */
@media (min-width: 1200px) {
    .has-woorest-sidebar .site-main {
        margin: 0 15px;
        padding-right: calc(var(--woorest-sidebar-w) + 15px);
    }
}

/* Sidebar widgets */
.woorest-sidebar .woorest-sidebar-widget + .woorest-sidebar-widget {
    margin-top: 16px;
}
.woorest-sidebar .woorest-sidebar-widget-title {
    margin: 0 0 8px;
}

/* Consolidated styles for <= 1024px screens */
@media (max-width: 1024px) {

    /* Sidebar hidden and layout compensation */
    .woorest-sidebar { display: none; }
    .has-woorest-sidebar .site-main { padding: 0; }

    /* Products pages: remove outer padding so cards can touch edges */
    body:has(.woorest-products-shortcode) .site-main,
    body:has(.wp-block-woorest-products) .site-main {
        padding: 0;
        margin: 0;
    }
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
    margin: 0 0 1em 0;
    max-width: 65ch;
}em, i {
    font-style: italic;
}ul, ol {
    margin: 0 0 1em 0;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.25em;
}

a {
    color: #000000;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: rgba(201, 56, 111, 0.05);
    font-style: italic;
}

code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    padding: 0.125rem 0.25rem;
    background-color: #f3f4f6;
    border-radius: 4px;
}

/* =================================
   Text Utility Classes
   ================================= */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

.font-feature-numeric {
    font-variant-numeric: tabular-nums;
}

.font-feature-oldstyle {
    font-variant-numeric: oldstyle-nums;
}

.text-no-wrap {
    white-space: nowrap;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* =================================
   Content
   ================================= */
.site-main {
    flex: 1 0 auto;
    padding: 1rem;
}

@media (min-width: 1024px) {
    body.woocommerce-checkout .site-main {
        padding: 4rem;
    }
}


/* =================================
   WooCommerce: Checkout
   ================================= */
body.woocommerce-checkout .wc-proceed-to-checkout,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal + .woocommerce-checkout-review-order-table__row,
body.woocommerce-checkout .return-to-shop,
body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button,
body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-button.is-link {
    display: none;
}


@media (max-width: 768px) {
    body.woocommerce-checkout .site-main {
        padding: 16px;
        border-radius: 12px;
    }

    body.woocommerce-checkout #place_order,
    body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
    body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-button {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 734px) {
    body.woocommerce-checkout .wc-block-checkout__actions .wp-block-woocommerce-checkout-order-summary-block,
    body.woocommerce-checkout .wp-block-woocommerce-checkout-actions-block .wp-block-woocommerce-checkout-order-summary-block {
        display: none;
    }

    body.woocommerce-checkout #place_order,
    body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
        display: block;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 1080px) {
    .header-inner {
        padding: 0.5rem 0.75rem;
    }
    .main-navigation {
        display: none;
    }
    .btn-signin {
        display: none;
    }
    .mobile-header {
        display: flex;
        align-items: center;
    }
    .mobile-header__toggle {
        display: inline-flex;
    }
}

/* =================================
   Footer
   ================================= */
.site-footer {
    background-color: var(--footer-bg);
}

.footer-inner {
    margin: 0 auto;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.footer-brand {
    display: grid;
    gap: 0.5rem;
}

.footer-logo {
    text-decoration: none;
}.footer-tagline {
    margin: 0;
}

.footer-nav .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}
.footer-nav .footer-menu a {
    text-decoration: none;
}.footer-legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.site-footer .site-info {
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Footer Widgets */
.footer-widgets {
    padding: 2rem 0 0 0;
}

.footer-widgets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-widget-title {
    margin: 0 0 1rem 0;
    padding: 0;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget ul li a {
    text-decoration: none;
    transition: color 0.2s ease;
}.footer-widget p {
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .footer-inner {
        padding: 0.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-widgets-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    .footer-widgets {
        padding: 1.5rem 0;
    }
}

/* =================================
   Footer Bottom
   ================================= */
/* Update: General heading — Footer Bottom styles. */
.site-footer-bottom {
    background-color: var(--footer-bottom-bg);
    border-top: 1px solid var(--border-color);
}

.site-footer-bottom__inner {
    margin: 0 auto;
    padding: 1rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer-bottom__info {
    margin: 0;
    text-align: center;
}

/* =================================
   Mobile Navigation Drawer
   ================================= */
.mobile-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.mobile-nav-drawer--open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 160ms ease;
}

.mobile-nav-drawer--open .mobile-nav-drawer__overlay {
    opacity: 1;
}

.mobile-nav-drawer__panel {
    position: relative;
    width: min(280px, 90vw);
    height: 100%;
    padding: 1.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    transform: translateX(100%);
    transition: transform 200ms ease;
    box-shadow: -4px 0 18px rgba(15, 23, 42, 0.12);
}

.mobile-nav-drawer--open .mobile-nav-drawer__panel {
    transform: translateX(0);
}

.mobile-nav-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.mobile-nav-drawer__close:focus-visible {
    outline: none;
}

.mobile-nav-drawer__menu {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-nav-drawer__menu::-webkit-scrollbar {
    display: none;
}

.mobile-nav-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-drawer__item {
    margin: 0;
}

.mobile-nav-drawer__link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.98rem;
    color: #000000;
    text-decoration: none;
}

.mobile-nav-drawer__link:hover,
.mobile-nav-drawer__link:focus {
    text-decoration: underline;
}

.mobile-nav-drawer__link:focus-visible {
    outline: none;
}

.mobile-nav-drawer__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
    padding-top: 0.25rem;
}

.mobile-nav-drawer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.mobile-nav-drawer__cta svg {
    flex-shrink: 0;
}

.mobile-nav-drawer__btn-account,
.mobile-nav-drawer__btn-login {
    color: #ffffff;
    background-color: var(--primary-color);
}

.mobile-nav-drawer__btn-account:hover,
.mobile-nav-drawer__btn-account:focus,
.mobile-nav-drawer__btn-login:hover,
.mobile-nav-drawer__btn-login:focus {
    background-color: var(--primary-hover);
}

.mobile-nav-drawer__btn-logout,
.mobile-nav-drawer__btn-signup {
    color: var(--heading-color);
    background-color: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
}

.mobile-nav-drawer__btn-logout:hover,
.mobile-nav-drawer__btn-logout:focus,
.mobile-nav-drawer__btn-signup:hover,
.mobile-nav-drawer__btn-signup:focus {
    background-color: rgba(15, 23, 42, 0.05);
}

.mobile-nav-drawer__cta:focus-visible {
    outline: none;
}

body.mobile-nav-drawer-open {
    overflow: hidden;
    height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav-drawer,
    .mobile-nav-drawer__overlay,
    .mobile-nav-drawer__panel,
    .mobile-nav-drawer__close,
    .mobile-nav-drawer__link,
    .mobile-nav-drawer__cta {
        transition: none;
    }
}

@media (min-width: 1025px) {
    .mobile-nav-drawer {
        display: none;
    }
}

/* WooRest Sidebar Layout - Only show on desktop */
@media (min-width: 1025px) {
    .page-with-sidebar {
        display: flex;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .main-content {
        flex: 1;
        min-width: 0;
    }

    .woorest-sidebar-widget {
        margin-bottom: 2rem;
    }

    .woorest-sidebar-widget:last-child {
        margin-bottom: 0;
    }

    .woorest-sidebar-widget-title {
        margin: 0 0 1rem 0;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--primary-color);
    }
}

/* 1025–1199px: 5px gutters for products area */
@media (min-width: 1025px) and (max-width: 1199px) {
    /* Cancel default centering margins and apply 5px gutters */
    .has-woorest-sidebar .site-main { padding-right: calc(var(--woorest-sidebar-w) + 5px); }
}

/* >=1200px: ensure 5px gap between content and sidebar */
@media (min-width: 1200px) {
    .has-woorest-sidebar .site-main {
    padding-right: calc(var(--woorest-sidebar-w) + 5px);
    }
}


/* =================================
   Home Banner Styles
   ================================= */
.woorest-banner-container {
    width: 100%;
    padding: 1rem 0 0 0;
    background-color: #ffffff;
    border-radius: 0;
    box-sizing: border-box;
    overflow: hidden; /* Prevent inner overflow */
    min-height: 310px;
    display: flex;
    align-items: center;
}

/* Desktop: limit container width to end exactly at the left edge of the fixed right sidebar */
@media (min-width: 1025px) {
    .has-woorest-sidebar .woorest-banner-container {
        width: calc(100% - var(--woorest-sidebar-w));
        margin: 0;
    }
}


.woorest-home-banner {
    margin: 5px;
    padding: 0 .5rem;
    width: calc(100% - 10px);
    max-width: calc(100% - 10px);
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    position: relative;
}


.woorest-banner-image {
    display: block;
    border-radius: 8px;
    width: 100%;
    height: auto;
    max-height: 290px;
    object-fit: cover;
    filter: brightness(0.7);
}

/* Banner Logo Styles */
.woorest-banner-logo {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 10;
}

.woorest-banner-logo:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.woorest-logo-image {
    display: block;
    max-height: 40px;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .woorest-banner-container {
        margin: 0;
        padding: 0.5rem 0;
        border-radius: 0;
    }

    .woorest-banner-image {
        border-radius: 6px;
        width: 100%;
        object-fit: cover;
    }

    .woorest-banner-image:hover {
        transform: none;
    }

    .woorest-logo-image {
        max-height: 50px;
        max-width: 80px;
        border-radius: 4px;
    }

    .woorest-banner-logo:hover {
        transform: none;
    }
}

@media (max-width: 600px) {
    .woorest-banner-container {
        padding: 0.5rem 0;
        margin: 0;
    }

    .woorest-banner-image {
      min-height: 290px;
    }
}

/* --- Banner info button (use existing stylesheet) --- */

.woorest-banner-info-btn {
  position: absolute;
  right: 30px;
  bottom: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #7b7b7b80;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.woorest-banner-info-btn::before {
  content: "i";
  font-size: 20px;
  font-weight: 700;
}
.woorest-banner-info-btn:focus { outline: none; }

.woorest-banner-info-panel {
  position: absolute;
  right: 16px;
  bottom: 70px;
  width: min(90vw, 320px);
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0,0,0,.18), 0 8px 16px rgba(0,0,0,.12);
  backdrop-filter: saturate(160%) blur(6px);
  padding: 14px 16px;
  z-index: 15;
  transform-origin: 100% 100%;
  opacity: 0;
  transform: scale(.96) translateY(6px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.woorest-banner-info-panel.is-open { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }

.woorest-banner-info-content { display: flex; flex-direction: column; gap: 6px; }
.woorest-info-title { font-size: 14px; font-weight: 700; color: #111827; }
.woorest-info-text { font-size: 13px; color: #4b5563; margin: 0; white-space: pre-wrap; }

@media (max-width: 480px) {
  .woorest-banner-info-btn { right: 20px; bottom: 20px; }
  .woorest-banner-info-panel { right: 12px; bottom: 64px; }
}

/* =================================
   WooCommerce: My Account Navigation
   ================================= */
.woocommerce-account .woocommerce-MyAccount-navigation {
  margin-bottom: 16px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: #fff;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  border-color: var(--primary-color);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

/* Active/Current state */
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a[aria-current="page"] {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(201,56,111,0.18);
}

/* Keyboard focus */
.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Small screens: chip-like horizontal scroll (keeps desktop vertical list) */
@media (max-width: 640px) {
  nav.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
  }
  nav.woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
  }
  nav.woocommerce-MyAccount-navigation a {
    border-radius: 9999px;
    white-space: nowrap;
  }
  nav.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { height: 6px; }
  nav.woocommerce-MyAccount-navigation ul::-webkit-scrollbar-track { background: transparent; }
  nav.woocommerce-MyAccount-navigation ul::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 999px; }
}

/* =================================
   WooCommerce: My Account Dashboard
   ================================= */
.woocommerce-account .woorest-dashboard {
  margin-bottom: 16px;
}

.woocommerce-account .woorest-dashboard__card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.woocommerce-account .woorest-dashboard__greeting {
  margin: 0 0 8px 0;
}.woocommerce-account .woorest-dashboard__summary {
  margin: 0;
}

/* Links inside dashboard text */
.woocommerce-account .woorest-dashboard a {
  text-decoration: none;
}

.woocommerce-account .woorest-dashboard a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce-account .woorest-dashboard a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Compact on small screens */
@media (max-width: 640px) {
  .woocommerce-account .woorest-dashboard__card {
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
  }
  .woocommerce-account .woorest-dashboard__greeting {
    margin-bottom: 6px;
  }
}

/* =================================
   WooCommerce: My Account spacing fix (>=769px)
   - Keep WooCommerce float layout intact
   - Add inner padding to content using border-box to avoid layout overflow
   ================================= */
@media (min-width: 769px) {
  .woocommerce-account .woocommerce-MyAccount-content {
    box-sizing: border-box;
    padding-left: 24px;
  }
}

/* =================================
   WooCommerce: My Account stack (<=768px) to avoid overflow
   ================================= */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }
  /* Add a little space between navigation and content on small screens */
  .woocommerce-account .woocommerce-MyAccount-navigation { margin: 0 0 12px; }
  .woocommerce-account .woocommerce-MyAccount-content { margin: 0; }
}

/* =================================
   WooCommerce: My Account Addresses
   ================================= */
.woocommerce-account .woorest-addresses { margin-top: 8px; }
.woocommerce-account .woocommerce-addresses-description {
  margin: 0 0 12px;
}

.woocommerce-account .woocommerce-Address {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.woocommerce-account .woocommerce-Address + .woocommerce-Address {
  margin-top: 12px;
}

.woocommerce-account .woocommerce-Address .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}

.woocommerce-account .woocommerce-address-title {
  margin: 0;
}

.woocommerce-account .woocommerce-Address .edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: #fff;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .1s ease;
}
.woocommerce-account .woocommerce-Address .edit:hover {
  border-color: var(--primary-color);
  background-color: #f6f6f6;
  transform: translateY(-1px);
}
.woocommerce-account .woocommerce-Address .edit:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.woocommerce-account .woocommerce-Address address,
.woocommerce-account .woorest-address__content {
  margin: 0;
}

.woocommerce-account .woorest-addresses__grid {
  display: grid;
  gap: 16px 24px;
  align-items: start;
}
.woocommerce-account .woorest-addresses__grid .u-column1,
.woocommerce-account .woorest-addresses__grid .u-column2,
.woocommerce-account .woorest-addresses__grid .col-1,
.woocommerce-account .woorest-addresses__grid .col-2 {
  float: none;
  width: auto;
  margin: 0;
}

@media (max-width: 768px) {
  .woocommerce-account .woorest-addresses__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .woocommerce-account .woocommerce-Address {
    padding: 14px;
    border-radius: 12px;
  }
}

/* =================================
   WooCommerce: Edit Address Forms (Billing/Shipping)
   ================================= */
.woocommerce-account .woorest-edit-address {
  margin-top: 8px;
}

.woocommerce-account .woorest-edit-address__header {
  margin: 0 0 16px;
}

.woocommerce-account .woorest-edit-address__title {
  margin: 0;
}

.woocommerce-account .woorest-edit-address__form {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

/* Form fields grid: responsive 2-column layout */
.woocommerce-account .woorest-edit-address__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 20px;
  margin: 0 0 24px;
}

/* Full-width fields (textarea, wide selects) */
.woocommerce-account .woorest-edit-address__fields .form-row-wide,
.woocommerce-account .woorest-edit-address__fields .form-row-full {
  grid-column: 1 / -1; /* span all columns */
}

/* Form field styling */
.woocommerce-account .woocommerce-form-row {
  margin: 0;
}

.woocommerce-account .woocommerce-form-row label {
  display: block;
  margin: 0 0 4px;
}.woocommerce-account .woocommerce-form-row input[type="text"],
.woocommerce-account .woocommerce-form-row input[type="email"],
.woocommerce-account .woocommerce-form-row input[type="tel"],
.woocommerce-account .woocommerce-form-row select,
.woocommerce-account .woocommerce-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.woocommerce-account .woocommerce-form-row input:focus,
.woocommerce-account .woocommerce-form-row select:focus,
.woocommerce-account .woocommerce-form-row textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(201, 56, 111, 0.1);
}

.woocommerce-account .woocommerce-form-row textarea {
  min-height: 80px;
  resize: vertical;
}

/* Action buttons */
.woocommerce-account .woorest-edit-address__actions {
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-color);
}

.woocommerce-account .woorest-edit-address__actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
}

.woocommerce-account .woorest-edit-address__actions .button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.woocommerce-account .woorest-edit-address__actions .button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Error/validation messages */
.woocommerce-account .woocommerce-form-row .woocommerce-invalid {
  border-color: #dc3545;
}

.woocommerce-account .woocommerce-form-row .woocommerce-error {
  margin: 4px 0 0;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .woocommerce-account .woorest-edit-address__fields {
    grid-template-columns: 1fr; /* single column on small screens */
    gap: 12px;
  }
  .woocommerce-account .woorest-edit-address__form {
    padding: 16px;
    border-radius: 12px;
  }
  .woocommerce-account .woorest-edit-address__actions .button {
    width: 100%; /* full-width button */
  }
}

/* =================================
   WooCommerce: Reset Password (Lost/Change)
   ================================= */
.woocommerce-account .woorest-reset { margin-top: 8px; }
.woocommerce-account .woorest-reset__card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  max-width: 560px;
}
.woocommerce-account .woorest-reset__title { margin: 0 0 12px; font-size: var(--text-xl); }
.woocommerce-account .woorest-reset__message { margin: 0 0 12px; color: var(--secondary-text); }

/* Inputs consistent with account details */
.woocommerce-account .woorest-reset__form .woocommerce-form-row label { display: block; margin: 0 0 4px; font-weight: 500; font-size: var(--text-sm); }
.woocommerce-account .woorest-reset__form input[type="text"],
.woocommerce-account .woorest-reset__form input[type="email"],
.woocommerce-account .woorest-reset__form input[type="password"],
.woocommerce-account .woorest-reset__form select,
.woocommerce-account .woorest-reset__form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.woocommerce-account .woorest-reset__form input:focus,
.woocommerce-account .woorest-reset__form select:focus,
.woocommerce-account .woorest-reset__form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(201,56,111,.1); }

/* Neutralize floats, enforce spacing */
.woocommerce-account .woorest-reset__form .form-row,
.woocommerce-account .woorest-reset__form .form-row-wide { float: none; width: auto; margin: 0 0 12px; }

.woocommerce-account .woorest-reset__actions { margin: 8px 0 0; display: flex; justify-content: flex-end; direction: ltr; }
.woocommerce-account .woorest-reset__actions .button { padding: 10px 18px; border-radius: 8px; background: var(--primary-color); color: #ffffff; border: none; font-weight: 500; transition: background-color .2s ease, transform .1s ease; }
.woocommerce-account .woorest-reset__actions .button:hover { background: var(--primary-hover); transform: translateY(-1px); }

@media (max-width: 640px) {
  .woocommerce-account .woorest-reset__card { padding: 16px; border-radius: 12px; }
  .woocommerce-account .woorest-reset__actions { justify-content: stretch; }
  .woocommerce-account .woorest-reset__actions .button { width: 100%; }
}

/* =================================
   WooCommerce: Auth (Login / Register)
   ================================= */
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register {
  background: #ffffff;
}
.woocommerce-account .woorest-auth__title { margin: 0 0 12px; font-size: var(--text-xl); }

/* Inputs consistent styling */
.woocommerce-account .woorest-auth__card .woocommerce-form-row label { display: block; margin: 0 0 4px; font-weight: 500; font-size: var(--text-sm); }
.woocommerce-account .woorest-auth__card .woocommerce-form-row input[type="text"],
.woocommerce-account .woorest-auth__card .woocommerce-form-row input[type="email"],
.woocommerce-account .woorest-auth__card .woocommerce-form-row input[type="password"],
.woocommerce-account .woorest-auth__card .woocommerce-form-row select,
.woocommerce-account .woorest-auth__card .woocommerce-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdcdc; /* match account details intensity */
  border-radius: 8px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.woocommerce-account .woorest-auth__card .woocommerce-form-row input:focus,
.woocommerce-account .woorest-auth__card .woocommerce-form-row select:focus,
.woocommerce-account .woorest-auth__card .woocommerce-form-row textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(201,56,111,.1); }

/* Actions row */
.woocommerce-account .woorest-auth__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 0; }
.woocommerce-account .woorest-auth__actions .button { padding: 10px 18px; border-radius: 8px; background: var(--primary-color); color: #ffffff; border: none; font-weight: 500; transition: background-color .2s ease, transform .1s ease; }
.woocommerce-account .woorest-auth__actions .button:hover { background: var(--primary-hover); transform: translateY(-1px); }
.woocommerce-account .lost_password { margin: 8px 0 0; direction: ltr; }

/* Single-column container when only login is present */
.woocommerce-account .woorest-auth__single .woorest-auth__card { max-width: 560px; margin: 0; }

@media (max-width: 768px) {
  .woocommerce-account .woorest-auth__grid { grid-template-columns: 1fr; gap: 12px; }
  .woocommerce-account .woorest-auth__actions { flex-direction: column; align-items: stretch; }
  .woocommerce-account .woorest-auth__actions .button { width: 100%; }
}

/* =================================
   WooCommerce: My Account Downloads
   ================================= */
.woocommerce-account .woorest-downloads { margin-top: 8px; }
.woocommerce-account .woorest-downloads__container { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.woocommerce-account .woorest-downloads__table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; }

/* Head */
.woocommerce-account .woorest-downloads__table thead th { background: #fafafa; color: var(--secondary-text); font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; padding: 12px 14px; border-bottom: 1px solid var(--border-color); }

/* Body */
.woocommerce-account .woorest-downloads__table tbody th,
.woocommerce-account .woorest-downloads__table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.woocommerce-account .woorest-downloads__table tbody tr:last-child th,
.woocommerce-account .woorest-downloads__table tbody tr:last-child td { border-bottom: 0; }

/* Actions column button */
.woocommerce-account .woorest-downloads__table .button:hover { background: var(--primary-hover); transform: translateY(-1px); }
.woocommerce-account .woorest-downloads__table .button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* Small screens: allow horizontal scroll */
@media (max-width: 640px) {
  .woocommerce-account .woorest-downloads__table { display: block; width: 100%; min-width: 560px; overflow-x: auto; }
}

/* =================================
   WooCommerce: Account Details
   ================================= */
.woocommerce-account .woorest-account-details { margin-top: 8px; }

.woocommerce-account .woorest-account-details__header { margin: 0 0 16px; }
.woocommerce-account .woorest-account-details__title { margin: 0; font-size: var(--text-xl); color: var(--text-color); }

.woocommerce-account .woorest-account-details__form {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.woocommerce-account .woorest-account-details__fields {
  display: grid;
  grid-template-columns: 1fr; /* single column on all sizes */
  gap: 12px 0;
  margin: 0 0 16px;
}
/* Neutralize WC float-based columns inside this form */
.woocommerce-account .woorest-account-details__fields .form-row,
.woocommerce-account .woorest-account-details__fields .form-row-first,
.woocommerce-account .woorest-account-details__fields .form-row-last,
.woocommerce-account .woorest-account-details__fields .form-row-wide {
  float: none;
  width: auto;
  margin: 0;
}
/* Add vertical spacing between rows */
.woocommerce-account .woorest-account-details__fields .woocommerce-form-row { margin: 0 0 12px; }
.woocommerce-account .woorest-account-details__fields .clear { display: none; }

.woocommerce-account .woorest-account-details__password { margin: 8px 0 0; border: 0; padding: 0; }
.woocommerce-account .woorest-account-details__password legend { margin: 0 0 8px; font-size: var(--text-lg); font-weight: 600; }

.woocommerce-account .woorest-account-details__actions { margin: 0; padding: 16px 0 0; border-top: 1px solid var(--border-color); }
.woocommerce-account .woorest-account-details__actions .button { padding: 12px 24px; border-radius: 8px; background-color: var(--button-bg); color: #ffffff; border: none; font-weight: 500; transition: background-color .2s ease, transform .1s ease; }
.woocommerce-account .woorest-account-details__actions .button:hover { background-color: var(--button-on-hover); color: #ffffff;}
.woocommerce-account .woorest-account-details__actions .button:focus-visible { outline: none; }

/* Inputs: make borders consistent and less pale (match password fields) */
.woocommerce-account .woorest-account-details__form input[type="text"],
.woocommerce-account .woorest-account-details__form input[type="email"],
.woocommerce-account .woorest-account-details__form input[type="tel"],
.woocommerce-account .woorest-account-details__form select,
.woocommerce-account .woorest-account-details__form textarea {
  border: 1px solid #dcdcdc; /* darker than var(--border-color) */
}

.woocommerce-account .woorest-account-details__form input:focus,
.woocommerce-account .woorest-account-details__form select:focus,
.woocommerce-account .woorest-account-details__form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(201, 56, 111, 0.1);
}

@media (max-width: 640px) {
  .woocommerce-account .woorest-account-details__form { padding: 16px; border-radius: 12px; }
  .woocommerce-account .woorest-account-details__fields { grid-template-columns: 1fr; gap: 12px; }
  .woocommerce-account .woorest-account-details__actions .button { width: 100%; }
}

/* =================================
   WooCommerce: My Account Orders
   ================================= */
.woocommerce-account .woorest-orders-modern {
  margin-top: 8px;
}

.woocommerce-account .woorest-orders-modern__container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.woocommerce-account .woorest-orders-modern__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

/* Table head */
.woocommerce-account .woorest-orders-modern__table thead th {
  background: #fafafa;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
}

/* Body cells */
.woocommerce-account .woorest-orders-modern__table tbody th,
.woocommerce-account .woorest-orders-modern__table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.woocommerce-account .woorest-orders-modern__table tbody tr:last-child th,
.woocommerce-account .woorest-orders-modern__table tbody tr:last-child td {
  border-bottom: 0;
}

/* Subtle hover */
.woocommerce-account .woorest-orders-modern__table tbody tr:hover {
  background-color: #fafafa;
}

/* Emphasize order number link */
.woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-number a {
  text-decoration: none;
}
.woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-number a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Align numeric/total and actions to the right for cleaner scan */
.woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-total,
.woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-actions {
  text-align: right;
  white-space: nowrap;
}

/* Action buttons minimal */
.woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  background-color: var(--button-bg);
  color: #ffffff;
  border: none;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: background-color .2s ease, transform .1s ease;
}
.woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-actions .button:hover {
  background-color: var(--button-on-hover);
  transform: translateY(-1px);
}
.woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-actions .button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Pagination */
.woocommerce-account .woorest-orders-modern__pagination {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}
.woocommerce-account .woorest-orders-modern__pagination .woocommerce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: #fff;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.woocommerce-account .woorest-orders-modern__pagination .woocommerce-button:hover {
  background-color: #f6f6f6;
  border-color: #eaeaea;
}

@media (min-width: 769px) {
  .woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__header-order-total,
  .woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-total {
    text-align: right;
    white-space: nowrap;
    min-width: 220px;
  }

  .woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__header-order-actions,
  .woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-actions {
    text-align: right;
    min-width: 120px;
  }

  .woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-total,
  .woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-total::before,
  .woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-actions::before {
    grid-column: 1;
  }

  .woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-total > *,
  .woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-actions > * {
    grid-column: 2;
  }

  .woocommerce-account .woorest-orders-modern__table .woocommerce-orders-table__cell-order-actions {
    gap: 8px;
    justify-content: end;
  }
}

/* =================================
   WooCommerce: My Account View Order
   ================================= */
/* Top overview line */
.woocommerce-account .woocommerce-MyAccount-content > p {
  margin: 0 0 12px;
}
.woocommerce-account .woocommerce-MyAccount-content > p .order-number,
.woocommerce-account .woocommerce-MyAccount-content > p .order-date {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f6f6f6;
  border: 1px solid var(--border-color);
}
.woocommerce-account .woocommerce-MyAccount-content > p .order-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(201,56,111,0.08);
  border: 1px solid rgba(201,56,111,0.18);
}

/* Order details table */
.woocommerce-account .woocommerce-order-details { margin-top: 12px; }
.woocommerce-account .woocommerce-order-details__title {
  margin: 0 0 8px;
}
.woocommerce-account .woocommerce-table--order-details {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}
.woocommerce-account .woocommerce-table--order-details thead th {
  background: #fafafa;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
}

.woocommerce-account .woocommerce-table--order-details thead th:first-child { text-align: left; }
.woocommerce-account .woocommerce-table--order-details thead th:last-child { text-align: right; width: 1%; white-space: nowrap; }
.woocommerce-account .woocommerce-table--order-details tbody th,
.woocommerce-account .woocommerce-table--order-details tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}
.woocommerce-account .woocommerce-table--order-details tbody tr:last-child th,
.woocommerce-account .woocommerce-table--order-details tbody tr:last-child td { border-bottom: 0; }

.woocommerce-account .woocommerce-table--order-details .woocommerce-table__product-name a {
  text-decoration: none;
}
.woocommerce-account .woocommerce-table--order-details .woocommerce-table__product-name a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.woocommerce-account .woocommerce-table--order-details .wc-item-meta {
  margin: 4px 0 0;
}

.woocommerce-account .woocommerce-table--order-details tbody td:last-child,
.woocommerce-account .woocommerce-table--order-details tbody th:last-child { text-align: right; white-space: nowrap; width: 1%; }
.woocommerce-account .woocommerce-table--order-details .woocommerce-table__product-total { text-align: right; white-space: nowrap; }
.woocommerce-account .woocommerce-table--order-details .woocommerce-table__product-name { word-break: break-word; }
.woocommerce-account .woocommerce-table--order-details tfoot th {
  text-align: left;
}
.woocommerce-account .woocommerce-table--order-details tfoot td {
  text-align: right;
}
.woocommerce-account .woocommerce-table--order-details tfoot .order-total th,
.woocommerce-account .woocommerce-table--order-details tfoot .order-total td {
  border-top: 2px solid var(--border-color);
}

/* Order mode badge inside View Order table */
.woocommerce-account .woocommerce-table--order-details .woorest-order-mode-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid transparent;
}
.woocommerce-account .woocommerce-table--order-details .woorest-order-mode-badge--delivery {
  background-color: rgba(16, 122, 43, 0.08);
  border-color: rgba(16, 122, 43, 0.15);
}
.woocommerce-account .woocommerce-table--order-details .woorest-order-mode-badge--pickup {
  background-color: rgba(26, 86, 219, 0.08);
  border-color: rgba(26, 86, 219, 0.15);
}

/* Customer details */
.woocommerce-account .woocommerce-customer-details { margin-top: 16px; }
.woocommerce-account .woocommerce-customer-details .woocommerce-column__title {
  margin: 0 0 8px;
}
.woocommerce-account .woocommerce-customer-details .customer_details {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.woocommerce-account .woocommerce-customer-details .customer_details th,
.woocommerce-account .woocommerce-customer-details .customer_details td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
}
.woocommerce-account .woocommerce-customer-details .customer_details tr:last-child th,
.woocommerce-account .woocommerce-customer-details .customer_details tr:last-child td { border-bottom: 0; }

/* Order type pill */
.woocommerce-account .woorest-order-mode {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #fafafa;
  border: 1px solid var(--border-color);
}


.woocommerce-account .woocommerce-OrderUpdates {
  margin: 12px 0;
  padding-left: 0;
}
.woocommerce-account .woocommerce-OrderUpdates .woocommerce-OrderUpdate-inner {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
}
.woocommerce-account .woocommerce-OrderUpdate-meta {
  margin: 0 0 4px;
}
.woocommerce-account .woocommerce-OrderUpdate-description p { margin: 0; }


@media (max-width: 640px) {
  .woocommerce-account .woocommerce-table--order-details {
    display: block;
    width: 100%;
    min-width: 560px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Woocommerce Place Order Button */
.wp-element-button, .wp-block-button__link {
  background-color: var(--button-bg);
  color: #ffffff;
}
.wp-element-button:hover, .wp-block-button__link:hover {
  background-color: var(--button-on-hover);
  color: #ffffff;
}

/* =================================
   WooCommerce: Order Received Page
   ================================= */
.woocommerce-order-received .woocommerce-order-details .woocommerce-table__product-name a {
  pointer-events: none;
  cursor: default;
  color: var(--text-color);
  text-decoration: none;
}

/* Order details table footer td values in single line */
.woocommerce-account .woocommerce-table--order-details tfoot td,
.woocommerce-order-details .woocommerce-table--order-details tfoot td {
  white-space: nowrap;
}

/* Lazy image animation */
.woorest-lazy-image {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

.woorest-lazy-image.woorest-lazy-loaded {
  opacity: 1;
  transform: none;
}

.woocommerce-order .woorest-order-timeline {
  --timeline-padding-top: 1.75rem;
  --timeline-padding-inline: clamp(0.75rem, 2vw, 1.75rem);
  margin: 1.25rem 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  column-gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: var(--timeline-padding-top) var(--timeline-padding-inline) 2.25rem;
  position: relative;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  margin-inline: auto;
  background: rgba(50, 50, 50, 0.04);
  border-radius: 5px;
  border: 1px solid rgba(50, 50, 50, 0.05);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.woocommerce-order .woorest-order-timeline::before {
  content: "";
  position: absolute;
  top: calc(var(--timeline-padding-top) + 30px);
  left: var(--timeline-padding-inline);
  right: var(--timeline-padding-inline);
  height: 1px;
  background: rgba(50, 50, 50, 0.12);
}

.woocommerce-order .woorest-order-timeline__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3rem clamp(0.5rem, 2vw, 1rem) 0;
  text-align: center;
  box-sizing: border-box;
  height: 100%;
}

.woocommerce-order .woorest-order-timeline__marker {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(50, 50, 50, 0.18);
  background-color: #ffffff;
  transition: border-color 200ms ease, background-color 200ms ease;
}

@keyframes woorestTimelinePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(201, 56, 111, 0.3);
  }
  70% {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 0 10px rgba(201, 56, 111, 0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(201, 56, 111, 0);
  }
}

.woocommerce-order .woorest-order-timeline__item.is-active .woorest-order-timeline__marker,
.woocommerce-order .woorest-order-timeline__marker.is-animated {
  border-color: rgba(201, 56, 111, 1);
  background-color: rgba(201, 56, 111, 1);
  box-shadow: 0 0 0 6px rgba(201, 56, 111, 0.18);
  animation: woorestTimelinePulse 1.5s ease-in-out infinite;
}

.woocommerce-order .woorest-order-timeline__item.is-complete .woorest-order-timeline__marker {
  border-color: rgba(201, 56, 111, 1);
  background-color: rgba(201, 56, 111, 1);
  box-shadow: 0 0 0 6px rgba(201, 56, 111, 0.18);
  animation: none;
}

.woocommerce-order .woorest-order-timeline__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  flex: 1;
  min-height: 130px;
  margin-top: 0.5rem;
  padding: 1.5rem clamp(0.875rem, 3vw, 1.5rem);
  border: 1px solid rgba(50, 50, 50, 0.1);
  border-radius: 18px;
  background-color: #ffffff;
  transition: border-color 200ms ease, background-color 200ms ease;
  box-sizing: border-box;
}

.woocommerce-order .woorest-order-timeline__title {
  margin: 0;
  font-size: clamp(1rem, 1.2rem, var(--text-lg));
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.woocommerce-order .woorest-order-timeline__description {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--secondary-text);
  text-wrap: balance;
}

.woocommerce table.shop_table td {
  font-size: 14px;
  font-weight: 600;
}

.woocommerce .woorest-order-item-toppings {
  padding-left: 10px;
}

.woocommerce .woorest-order-item-toppings__list {
  display: grid;
  gap: 0.25rem;
}

.woocommerce .woorest-order-item-toppings__title {
  font-size: 0.875rem;
  font-weight: 600;
}

.woocommerce .woorest-order-item-topping {
  display: block;
  font-size: 0.8125rem;
}

.woocommerce-order .woorest-order-timeline__item.is-active .woorest-order-timeline__body {
  border-color: rgba(201, 56, 111, 0.32);
  background-color: rgba(201, 56, 111, 0.08);
}

.woocommerce-order-received .entry-header {
  display: none;
}

.woocommerce-order .woocommerce-notice.woocommerce-thankyou-order-received {
  display: none;
}

.woocommerce-order .woorest-order-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  margin: 0 auto;
  width: 100%;
  max-width: min(100%, 1040px);
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(50, 50, 50, 0.08);
}

.woocommerce-order .woorest-order-headline__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-color);
  text-align: center;
}

@media (max-width: 1024px) {
  .woocommerce-order .woorest-order-timeline {
    --timeline-padding-top: 1.25rem;
    --timeline-padding-inline: clamp(0.75rem, 4vw, 1.5rem);
    display: grid;
    grid-template-columns: 1fr;
  }

  .woocommerce-order .woorest-order-timeline::before {
    display: none;
  }

  .woocommerce-order .woorest-order-timeline__item {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .woocommerce-order .woorest-order-timeline__item::before {
    display: none;
  }

  .woocommerce-order .woorest-order-timeline__marker {
    top: 30px;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .woocommerce-order .woorest-order-timeline__body {
    align-items: center;
    min-height: 130px;
  }

  .woocommerce-order .woorest-order-timeline__description,
  .woocommerce-order .woorest-order-headline__title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .woocommerce-order .woorest-order-timeline {
    --timeline-padding-top: 1.1rem;
    --timeline-padding-inline: clamp(0.75rem, 6vw, 1.25rem);
  }

  .woocommerce-order .woorest-order-headline {
    padding: 1.25rem clamp(1rem, 5vw, 1.75rem);
    border-radius: 16px;
  }
}