/* Nova 365 shared styles (web portal and shop). MudBlazor provides the base;
   the palette lives in Theme/GreenWingsTheme.cs and these tokens follow it. One face (Inter) everywhere. */

:root {
    --gw-ink: var(--mud-palette-text-primary);
    --gw-muted: var(--mud-palette-text-secondary);
    --gw-line: var(--mud-palette-lines-default);
    --gw-rule: var(--mud-palette-table-lines);
    --gw-active: rgba(26, 33, 28, 0.07);
    --gw-display: "Inter", "Noto Sans Tamil", "Noto Sans Kannada", "Noto Sans Telugu", "Noto Sans Malayalam", "Segoe UI", Roboto, sans-serif;
    /* Selected menu item: deep leaf green with white text. */
    --gw-nav-selected: #1F5A35;
    /* Placeholder grounds per product kind, used when a product has no photograph yet. */
    --gw-kind-vegetable: #E7EEDF;
    --gw-kind-fruit: #F5E9D6;
    --gw-kind-egg: #F1ECE2;
    --gw-kind-meat: #F2E3DE;
    --gw-kind-dairy: #E8EDF1;
    --gw-kind-other: #ECE9E1;
}

h1:focus {
    outline: none;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Shell: a quiet light bar and a drawer on the page ground ---------- */

.mud-appbar.gw-appbar {
    border-bottom: 1px solid var(--gw-line);
    box-shadow: none;
}

.gw-wordmark {
    font-family: var(--gw-display);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--gw-ink);
    white-space: nowrap;
}

.gw-mark {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mud-palette-primary);
    color: #fff;
    font-family: var(--gw-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    flex: none;
}

.mud-drawer.gw-drawer {
    border-right: 1px solid var(--gw-line);
    box-shadow: none;
}

.gw-drawer .mud-navmenu.mud-navmenu-bordered .mud-nav-link.active:not(.mud-nav-link-disabled) {
    border-inline-end: 0;
}

.gw-drawer .mud-nav-link {
    margin: 1px 10px;
    width: calc(100% - 20px);
    border-radius: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 0.9rem;
    color: var(--mud-palette-drawer-text);
}

.gw-drawer .mud-nav-link:hover:not(.mud-nav-link-disabled) {
    background: var(--gw-active);
}

.gw-drawer .mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background: var(--gw-nav-selected);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(31, 90, 53, 0.25);
}

.gw-drawer .mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled):hover {
    background: #164428;
}

.gw-drawer .mud-nav-link.active .mud-nav-link-icon {
    color: #fff;
}

/* Colourful section icons: each part of the app keeps one hue, drawn on a soft tile of the same hue. */
.gw-hue-green { --hue: #2F8A4A; --hue-bg: #E3F1E6; }
.gw-hue-blue { --hue: #2563A6; --hue-bg: #E3ECF8; }
.gw-hue-amber { --hue: #B7791F; --hue-bg: #F8EEDB; }
.gw-hue-orange { --hue: #C2410C; --hue-bg: #FBE7DC; }
.gw-hue-teal { --hue: #0F766E; --hue-bg: #DDF1EE; }
.gw-hue-pink { --hue: #BE185D; --hue-bg: #FBE4EE; }
.gw-hue-red { --hue: #B42318; --hue-bg: #FBE6E4; }
.gw-hue-slate { --hue: #475569; --hue-bg: #E8ECF1; }
.gw-hue-brown { --hue: #8A5A2B; --hue-bg: #F1E7DC; }

.gw-drawer [class*="gw-hue-"] .mud-nav-link-icon {
    box-sizing: content-box;
    width: 18px;
    height: 18px;
    padding: 5px;
    border-radius: 8px;
    color: var(--hue);
    background: var(--hue-bg);
    transition: transform .2s cubic-bezier(.2, .7, .2, 1), background-color .2s, color .2s;
}

.gw-drawer [class*="gw-hue-"] .mud-nav-link:hover .mud-nav-link-icon {
    transform: scale(1.08) rotate(-4deg);
}

.gw-drawer [class*="gw-hue-"] .mud-nav-link.active .mud-nav-link-icon,
.gw-drawer .mud-nav-link[class*="gw-hue-"].active .mud-nav-link-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

/* Menu items inside a group carry their own colour (the hue class sits on the link itself). */
.gw-drawer .mud-nav-link[class*="gw-hue-"] .mud-nav-link-icon {
    box-sizing: content-box;
    width: 16px;
    height: 16px;
    padding: 4px;
    border-radius: 7px;
    color: var(--hue);
    background: var(--hue-bg);
    transition: transform .2s cubic-bezier(.2, .7, .2, 1), background-color .2s, color .2s;
}

.gw-drawer .mud-nav-link[class*="gw-hue-"]:hover .mud-nav-link-icon {
    transform: scale(1.08) rotate(-4deg);
}

/* Collapsible groups: the arrow turns smoothly and the items slide in one after another. */
.gw-drawer .mud-nav-group .mud-nav-link-expand-icon {
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.gw-drawer .mud-nav-group .mud-collapse-container {
    transition: height .3s cubic-bezier(.2, .7, .2, 1) !important;
}

.gw-drawer .mud-nav-group .mud-collapse-entering .mud-nav-link {
    animation: gw-nav-in .32s cubic-bezier(.2, .7, .2, 1) both;
}

.gw-drawer .mud-nav-group .mud-collapse-exiting .mud-nav-link {
    animation: gw-nav-out .2s ease-in both;
}

.gw-drawer .mud-nav-group .mud-collapse-container .mud-navmenu > :nth-child(2) .mud-nav-link { animation-delay: .03s; }
.gw-drawer .mud-nav-group .mud-collapse-container .mud-navmenu > :nth-child(3) .mud-nav-link { animation-delay: .06s; }
.gw-drawer .mud-nav-group .mud-collapse-container .mud-navmenu > :nth-child(4) .mud-nav-link { animation-delay: .09s; }
.gw-drawer .mud-nav-group .mud-collapse-container .mud-navmenu > :nth-child(n+5) .mud-nav-link { animation-delay: .12s; }

@keyframes gw-nav-in {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: none; }
}

@keyframes gw-nav-out {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: translateX(-6px); }
}

.gw-drawer .mud-nav-group > .mud-nav-link {
    font-weight: 600;
    color: var(--gw-ink);
}

.gw-drawer .mud-navmenu .mud-nav-group .mud-collapse-container .mud-nav-link {
    padding-inline-start: 22px;
}

/* Menu hierarchy. A section header is a solid colour tile with bold text; the pages under it sit on a guide line
   with smaller tinted icons. The header takes a tint when one of its pages is open. */
.gw-drawer .mud-nav-group {
    margin-top: 6px;
}

.gw-drawer .mud-nav-group > .mud-nav-link {
    margin: 2px 10px;
    width: calc(100% - 20px);
    padding: 7px 10px 7px 6px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--gw-ink);
    transition: background-color .2s;
}

.gw-drawer .mud-nav-group > .mud-nav-link .mud-nav-link-icon {
    box-sizing: content-box;
    width: 16px;
    height: 16px;
    padding: 6px;
    border-radius: 9px;
    color: #fff;
    background: var(--hue);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
    transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s;
}

.gw-drawer .mud-nav-group > .mud-nav-link:hover .mud-nav-link-icon {
    transform: scale(1.06) rotate(-4deg);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.gw-drawer .mud-nav-group > .mud-nav-link .mud-nav-link-expand-icon {
    color: var(--gw-muted, #6B7280);
    font-size: 20px;
}

.gw-drawer .mud-nav-group:has(.mud-collapse-container .mud-nav-link.active) > .mud-nav-link {
    background: var(--hue-bg);
    color: var(--hue);
}

.gw-drawer .mud-nav-group > .mud-collapse-container {
    position: relative;
    margin-left: 26px;
    padding-bottom: 4px;
}

.gw-drawer .mud-nav-group > .mud-collapse-container::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 14px;
    left: -10px;
    width: 2px;
    border-radius: 2px;
    background: var(--hue-bg);
    box-shadow: inset 0 0 0 1px var(--hue);
    opacity: .55;
}

.gw-drawer .mud-nav-group .mud-collapse-container .mud-nav-link {
    margin: 1px 8px 1px 2px;
    width: calc(100% - 10px);
    padding: 5px 10px 5px 8px;
    font-size: 0.86rem;
    font-weight: 500;
}

.gw-drawer .mud-nav-group .mud-collapse-container [class*="gw-hue-"] .mud-nav-link-icon {
    width: 14px;
    height: 14px;
    padding: 4px;
    border-radius: 6px;
}

.gw-drawer .mud-nav-group .mud-collapse-container .mud-nav-link.active {
    font-weight: 600;
}

/* Language switch: the current language in its own script, on a colour of its own. */
.gw-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 8px 0 4px;
    margin: 0 4px;
    border: 1px solid var(--gw-line);
    border-radius: 999px;
    background: var(--mud-palette-surface);
    color: var(--gw-ink);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.gw-lang:hover {
    border-color: var(--mud-palette-lines-inputs);
    box-shadow: 0 2px 8px rgba(26, 33, 28, 0.06);
}

.gw-lang:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.gw-lang-glyph {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    background: var(--lang);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
}

.gw-lang-chevron.mud-icon-root {
    font-size: 1.1rem;
    color: var(--gw-muted);
}

.gw-lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
}

/* ---------- Surfaces: hairlines instead of resting shadows ---------- */

.mud-paper.mud-elevation-1:not(.mud-popover):not(.mud-appbar):not(.mud-drawer),
.mud-card.mud-elevation-1 {
    box-shadow: none;
    border: 1px solid var(--gw-line);
}

.mud-paper-outlined {
    border-color: var(--gw-line);
}

.mud-button-root {
    letter-spacing: 0;
}

.mud-button-filled.mud-button-filled-primary {
    box-shadow: none;
}

.mud-button-filled.mud-button-filled-primary:hover {
    box-shadow: none;
}

.mud-chip.mud-chip-outlined {
    border-color: var(--mud-palette-lines-inputs);
}

.mud-alert {
    border-radius: 10px;
}

/* Tables: sentence-case grey headers, row rules only, figures that line up. */
.mud-table-root .mud-table-head .mud-table-cell {
    color: var(--gw-muted);
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: none;
}

.mud-table-cell,
.gw-num {
    font-variant-numeric: tabular-nums;
}

.mud-table.mud-elevation-1 {
    box-shadow: none;
    border: 1px solid var(--gw-line);
}

.gw-display {
    font-family: var(--gw-display);
    letter-spacing: -0.015em;
}

/* ---------- Storefront ---------- */

.gw-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 24px 48px;
    align-items: end;
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--gw-line);
    margin-bottom: 20px;
}

.gw-hero h1 {
    font-family: var(--gw-display);
    font-weight: 700;
    font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
    margin: 0 0 12px;
    color: var(--gw-ink);
    max-width: 18ch;
    text-wrap: balance;
}

.gw-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: var(--gw-muted);
    font-size: 0.9375rem;
}

.gw-hero-meta span + span::before {
    content: "·";
    margin-right: 18px;
    color: var(--mud-palette-lines-inputs);
}

.gw-hero-search .mud-input.mud-input-outlined {
    background: var(--mud-palette-surface);
    border-radius: 12px;
}

.gw-hero-search .mud-input-outlined-border {
    border-radius: 12px;
}

@media (max-width: 760px) {
    .gw-hero {
        grid-template-columns: 1fr;
        padding-top: 12px;
        gap: 16px;
    }
}

.gw-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.gw-categories::-webkit-scrollbar {
    display: none;
}

.gw-category {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--gw-line);
    background: var(--mud-palette-surface);
    color: var(--gw-ink);
    border-radius: 999px;
    padding: 5px 16px 5px 6px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s;
}

.gw-category img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    padding: 3px;
    box-sizing: border-box;
    background: var(--gw-kind-other);
    transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}

.gw-category:hover img {
    transform: rotate(-8deg) scale(1.08);
}

.gw-category[aria-pressed="true"] img,
.gw-category.is-active img {
    background: #fff;
}

.gw-category:hover {
    border-color: var(--mud-palette-lines-inputs);
}

.gw-category[aria-pressed="true"],
.gw-category.is-active {
    background: var(--gw-ink);
    border-color: var(--gw-ink);
    color: var(--mud-palette-surface);
}

.gw-category:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.gw-offers {
    border: 1px solid var(--gw-line);
    border-radius: 12px;
    background: var(--mud-palette-surface);
    margin-bottom: 20px;
}

.gw-offer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 12px 16px;
    font-size: 0.9rem;
}

.gw-offer + .gw-offer {
    border-top: 1px solid var(--gw-rule);
}

.gw-offer-name {
    font-weight: 600;
}

.gw-offer-code {
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px dashed var(--mud-palette-secondary);
    color: #7A4F0E;
    background: #FBF3E4;
}

.gw-offer-until {
    color: var(--gw-muted);
    margin-left: auto;
}

.gw-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.gw-section-head h2 {
    font-family: var(--gw-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.015em;
    margin: 0;
}

.gw-section-head span {
    color: var(--gw-muted);
    font-size: 0.875rem;
}

.gw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px 16px;
}

@media (max-width: 600px) {
    .gw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }
}

.gw-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: 14px;
    outline-offset: 4px;
}

.gw-tile:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
}

.gw-tile-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--gw-kind-other);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
}

.gw-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.gw-tile:hover .gw-tile-image img {
    transform: scale(1.03);
}

/* Product illustrations (wwwroot/art) until a product has its own photograph. */
.gw-tile-image img.gw-art {
    width: 62%;
    height: 62%;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(26, 33, 28, 0.08));
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.gw-tile:hover .gw-tile-image img.gw-art {
    transform: translateY(-6px) scale(1.06) rotate(-3deg);
}

:is(.gw-tile-image, .gw-product-media).gw-kind-Vegetable { background: var(--gw-kind-vegetable); }
:is(.gw-tile-image, .gw-product-media).gw-kind-Fruit { background: var(--gw-kind-fruit); }
:is(.gw-tile-image, .gw-product-media).gw-kind-Egg { background: var(--gw-kind-egg); }
:is(.gw-tile-image, .gw-product-media):is(.gw-kind-Meat, .gw-kind-LiveAnimal) { background: var(--gw-kind-meat); }
:is(.gw-tile-image, .gw-product-media).gw-kind-Dairy { background: var(--gw-kind-dairy); }

.gw-tile-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gw-ink);
    white-space: nowrap;
}

.gw-tile-badge.gw-preorder {
    color: #7A4F0E;
}

.gw-tile-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 2px;
}

.gw-tile-name {
    font-weight: 600;
    font-size: 0.975rem;
    line-height: 1.3;
    color: var(--gw-ink);
}

.gw-tile-price {
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
    color: var(--gw-ink);
}

.gw-tile-price b {
    font-weight: 600;
}

.gw-tile-price span {
    color: var(--gw-muted);
}

.gw-tile-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--gw-muted);
}

.gw-tile-rating .mud-icon-root {
    font-size: 0.95rem;
    color: var(--mud-palette-secondary);
}

.gw-tile.gw-unavailable .gw-tile-image img {
    opacity: .55;
    filter: grayscale(.5);
}

.gw-tile-image {
    transition: box-shadow .3s, transform .3s cubic-bezier(.2, .7, .2, 1);
}

.gw-tile:hover .gw-tile-image {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -12px rgba(26, 33, 28, 0.25);
}

/* Product page */
.gw-product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gw-kind-other);
}

.gw-product-media img.gw-art {
    width: 52%;
    height: 72%;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(26, 33, 28, 0.1));
    animation: gw-float 5s ease-in-out infinite;
}

.gw-product-hero {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 18px;
    background: var(--gw-kind-other);
}

.gw-product-title {
    font-family: var(--gw-display);
    font-weight: 700;
    font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 4px 0 6px;
}

.gw-product-price {
    font-variant-numeric: tabular-nums;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gw-ink);
}

.gw-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
}

.gw-variant {
    border: 1px solid var(--mud-palette-lines-inputs);
    background: var(--mud-palette-surface);
    color: var(--gw-ink);
    border-radius: 10px;
    padding: 10px 14px;
    font: inherit;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
    transition: border-color .15s, box-shadow .15s;
}

.gw-variant b {
    font-weight: 600;
}

.gw-variant span {
    color: var(--gw-muted);
    font-variant-numeric: tabular-nums;
}

.gw-variant[aria-pressed="true"] {
    border-color: var(--gw-ink);
    box-shadow: inset 0 0 0 1px var(--gw-ink);
}

.gw-variant:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.gw-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--gw-muted);
}

.gw-stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.gw-stock.gw-in { color: var(--mud-palette-success); }
.gw-stock.gw-out { color: var(--mud-palette-error); }

/* An icon on a soft tile of its hue (HueIcon.razor). */
.gw-hue-tile {
    width: var(--tile, 32px);
    height: var(--tile, 32px);
    border-radius: calc(var(--tile, 32px) * .3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    color: var(--hue);
    background: var(--hue-bg);
}

.gw-hue-tile .mud-icon-root {
    width: 56%;
    height: 56%;
    font-size: inherit;
}

.gw-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* Quick links on a department's dashboard */
.gw-quick {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    min-height: 136px;
    padding: 20px 12px;
    border: 1px solid var(--gw-line);
    border-radius: 14px;
    background: var(--mud-palette-surface);
    color: var(--gw-ink);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.925rem;
    transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s, border-color .2s;
}

.gw-quick:hover {
    transform: translateY(-3px);
    border-color: var(--mud-palette-lines-inputs);
    box-shadow: 0 12px 24px -16px rgba(26, 33, 28, 0.35);
}

.gw-quick:hover .gw-hue-tile {
    transform: scale(1.06) rotate(-4deg);
}

.gw-quick .gw-hue-tile {
    transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}

.gw-quick:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* Admin figures (StatTile) */
.gw-stat-label {
    color: var(--gw-muted);
    font-size: 0.8125rem;
}

.gw-stat-value {
    font-variant-numeric: tabular-nums;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.gw-stat-hint {
    color: var(--gw-muted);
    font-size: 0.8125rem;
}

.gw-qr svg {
    width: 100%;
    height: auto;
}

/* Large-text mode for older customers. */
.gw-large-text {
    font-size: 118%;
}

/* Printable QR labels (thermal printer, 50 x 30 mm). */
@media print {
    body * {
        visibility: hidden;
    }

    .gw-print, .gw-print * {
        visibility: visible;
    }

    .gw-print {
        position: absolute;
        left: 0;
        top: 0;
    }

    .gw-label {
        width: 50mm;
        height: 30mm;
        page-break-after: always;
        display: flex;
        gap: 2mm;
        align-items: center;
        font-family: sans-serif;
        font-size: 7pt;
    }

    .gw-label .gw-qr {
        width: 26mm;
    }
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Bar chart (BarChart.razor) */
.gw-bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 8px; }
.gw-bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.gw-bar-fill { background: var(--mud-palette-primary); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .3s; }
.gw-bar:hover .gw-bar-fill { background: var(--mud-palette-primary-darken); }
.gw-bar-label { font-size: 10px; text-align: center; color: var(--mud-palette-text-secondary); white-space: nowrap; overflow: hidden; margin-top: 4px; }

/* Preformatted log / audit text (System page) */
.gw-pre { white-space: pre-wrap; word-break: break-word; font-family: Consolas, "Cascadia Mono", monospace; font-size: 12px; background: var(--mud-palette-background-gray); padding: 8px; border-radius: 6px; margin: 4px 0 0; max-height: 360px; overflow: auto; }
.gw-pre-small { max-height: 140px; padding: 4px 6px; font-size: 11px; background: transparent; }

/* Privacy notice and terms */
.gw-legal { max-width: 760px; margin: 0 auto; line-height: 1.65; }
.gw-legal h1 { font-size: 2rem; margin: 0 0 4px; }
.gw-legal h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.gw-legal p, .gw-legal li { font-size: 0.975rem; }
.gw-legal ul { padding-left: 1.25rem; }
.gw-legal li { margin-bottom: 6px; }
.gw-legal-meta { color: var(--mud-palette-text-secondary); font-size: 0.875rem; }
.gw-legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 0.95rem; }
.gw-legal-table th, .gw-legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--mud-palette-lines-default); }
.gw-legal-table th { background: var(--mud-palette-background-gray); }
@media (max-width: 600px) { .gw-legal-table, .gw-legal-table tbody, .gw-legal-table tr, .gw-legal-table td { display: block; } .gw-legal-table thead { display: none; } .gw-legal-table td:first-child { font-weight: 600; border-bottom: 0; padding-bottom: 0; } }

/* Site footer: the page fills the screen, so on a short page the footer stays at the bottom edge
   instead of rising up under the content; on a long page it follows the content. */
.mud-main-content.gw-main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; box-sizing: border-box; }
.gw-main > .gw-page { flex: 1 0 auto; width: 100%; }
.gw-main > .gw-footer { flex: none; }

/* Site footer */
.gw-footer { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding: 16px 24px 24px; margin-top: 0; border-top: 1px solid var(--mud-palette-lines-default); color: var(--mud-palette-text-secondary); font-size: 0.85rem; }
.gw-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.gw-footer a { color: inherit; }
.gw-footer a:hover { color: var(--mud-palette-primary); }

/* Narrow screens: links first as a centred row of tappable chips, then the copyright line. */
@media (max-width: 600px) {
    .gw-footer {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
        font-size: 0.8rem;
        background: var(--mud-palette-surface);
    }
    .gw-footer nav { justify-content: center; gap: 8px; }
    .gw-footer nav a, .gw-footer nav span {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0 12px;
        border: 1px solid var(--gw-line);
        border-radius: 999px;
        background: var(--mud-palette-background);
    }
    .gw-footer > span { line-height: 1.5; }
}

.gw-nowrap { white-space: nowrap; }

/* Company logo in the app bar (Setup -> Company) */
.gw-logo { height: 40px; width: auto; max-width: 150px; object-fit: contain; border-radius: 4px; background: #fff; padding: 2px; }

/* ---------- Motion: screens and tiles arrive, controls answer the press ---------- */

@keyframes gw-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes gw-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes gw-pop {
    0% { transform: scale(.6); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Each new screen eases in; persistent banners only animate the first time. */
.gw-page > * {
    animation: gw-enter .42s cubic-bezier(.2, .7, .2, 1) both;
}

.gw-page > *:nth-child(2) { animation-delay: .04s; }
.gw-page > *:nth-child(3) { animation-delay: .08s; }
.gw-page > *:nth-child(n+4) { animation-delay: .12s; }

/* Product tiles rise in one after another (ProductTile sets --i). */
.gw-rise {
    animation: gw-enter .5s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(var(--i, 0) * 45ms + 80ms);
}

.mud-button-root:active:not(.mud-button-disabled),
.gw-category:active,
.gw-variant:active,
.gw-lang:active {
    transform: scale(.97);
}

.mud-button-root,
.gw-category,
.gw-variant {
    transition: transform .12s ease, background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}

.mud-badge.mud-badge-overlap .mud-badge {
    animation: gw-pop .35s cubic-bezier(.2, .7, .2, 1);
}

.mud-paper.mud-elevation-1:not(.mud-popover):not(.mud-appbar):not(.mud-drawer),
.mud-card.mud-elevation-1,
.mud-paper-outlined {
    transition: border-color .2s, box-shadow .2s;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- Shop landing page ---------- */

.gw-landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 1fr);
    gap: 24px 40px;
    align-items: center;
    padding: 28px 32px;
    margin-bottom: 24px;
    border-radius: 24px;
    background:
        radial-gradient(120% 140% at 100% 0%, #E3F1E6 0%, transparent 55%),
        radial-gradient(90% 120% at 0% 100%, #F8EEDB 0%, transparent 60%),
        var(--mud-palette-surface);
    border: 1px solid var(--gw-line);
    overflow: hidden;
}

.gw-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mud-palette-primary);
    margin-bottom: 10px;
}

/* The tagline: big and bold, words rise in one after another; the last words carry a slow green-to-turmeric sweep. */
.gw-tagline {
    font-family: var(--gw-display);
    font-weight: 800;
    font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 0 0 16px;
    color: var(--gw-ink);
    max-width: 16ch;
    text-wrap: balance;
}

.gw-tagline-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.45em) rotate(2deg);
    filter: blur(6px);
    animation: gw-word-in .7s cubic-bezier(.2, .8, .2, 1) forwards;
    animation-delay: calc(var(--i) * 90ms + 120ms);
}

.gw-tagline-accent {
    background: linear-gradient(100deg, #1F5A35 0%, #2F8A4A 30%, #B7791F 55%, #2F8A4A 80%, #1F5A35 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gw-word-in .7s cubic-bezier(.2, .8, .2, 1) forwards, gw-sweep 6s ease-in-out 1.2s infinite;
    animation-delay: calc(var(--i) * 90ms + 120ms), 1.2s;
}

@keyframes gw-word-in {
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes gw-sweep {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gw-landing-lead {
    font-size: 1.0625rem;
    color: var(--gw-muted);
    max-width: 46ch;
    margin: 0 0 20px;
    opacity: 0;
    animation: gw-enter .6s ease-out .9s forwards;
}

.gw-landing-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.gw-landing-art {
    position: relative;
    min-height: 260px;
    display: grid;
    place-items: center;
}

.gw-art-main { width: min(220px, 70%); animation: gw-float 6s ease-in-out infinite; }

.gw-art-float {
    position: absolute;
    width: 72px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(26, 33, 28, 0.08);
    animation: gw-float 5s ease-in-out infinite;
}

.gw-art-float.a { top: 4%; left: 6%; animation-delay: -1s; }
.gw-art-float.b { top: 8%; right: 4%; animation-delay: -2.5s; }
.gw-art-float.c { bottom: 6%; left: 2%; animation-delay: -3.5s; }
.gw-art-float.d { bottom: 2%; right: 10%; animation-delay: -0.5s; }

.gw-categories > a.gw-category:not(.is-active) { color: var(--gw-ink); }

.gw-more-row { display: flex; justify-content: center; margin: 20px 0 8px; }

.gw-landing-section { margin-top: 40px; }

.gw-landing-section h2 {
    font-family: var(--gw-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
}

.gw-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.gw-service {
    padding: 20px;
    border-radius: 18px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--gw-line);
    transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}

.gw-service:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(26, 33, 28, 0.08); }

.gw-service-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--hue);
    background: var(--hue-bg);
    margin-bottom: 12px;
}

.gw-service h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.gw-service p { margin: 0; color: var(--gw-muted); font-size: 0.9rem; line-height: 1.5; }

.gw-about {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr);
    gap: 24px 40px;
    padding: 28px;
    border-radius: 22px;
    background: #F1F7F2;
    border: 1px solid #DCEADF;
    scroll-margin-top: 80px;
}

.gw-about-text { font-size: 1.0625rem; line-height: 1.65; margin: 0; white-space: pre-line; }

.gw-about-facts { margin: 0; display: grid; gap: 14px; align-content: start; }
.gw-about-facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gw-muted); }
.gw-about-facts dd { margin: 2px 0 0; font-weight: 600; }
.gw-about-facts a { color: var(--mud-palette-primary); }

.gw-blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.gw-blog-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--gw-line);
    background: var(--mud-palette-surface);
    color: inherit;
    text-decoration: none;
    transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .2s;
}

.gw-blog-card:hover { transform: translateY(-3px); border-color: var(--mud-palette-lines-inputs); }
.gw-blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 4px; }
.gw-blog-date { font-size: 0.75rem; color: var(--gw-muted); }
.gw-blog-excerpt { font-size: 0.875rem; color: var(--gw-muted); line-height: 1.5; }

/* ---------- All products page ---------- */

.gw-page-title {
    font-family: var(--gw-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
    letter-spacing: -0.025em;
    margin: 0 0 2px;
}

.gw-muted { color: var(--gw-muted); }

.gw-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 4px 0 18px;
}

.gw-filter-bar .gw-filter-search { flex: 1 1 260px; max-width: 420px; }
.gw-filter-bar .gw-filter-sort { flex: 0 1 220px; }

@media (max-width: 760px) {
    .gw-landing-hero { grid-template-columns: 1fr; padding: 22px 18px; border-radius: 18px; }
    .gw-landing-art { min-height: 170px; order: -1; }
    .gw-art-main { width: 130px; }
    .gw-art-float { width: 52px; padding: 7px; border-radius: 14px; }
    .gw-about { grid-template-columns: 1fr; padding: 20px; }
}

/* ---------- Setup → Roles & permissions ---------- */

.gw-perm-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.gw-perm-roles {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: sticky;
    top: 76px;
}

.gw-perm-role {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gw-line);
    border-radius: 12px;
    background: var(--mud-palette-surface);
    color: var(--gw-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, transform .15s;
}

.gw-perm-role:hover { border-color: var(--mud-palette-lines-inputs); transform: translateX(2px); }
.gw-perm-role.is-active { background: var(--gw-nav-selected); border-color: var(--gw-nav-selected); color: #fff; }
.gw-perm-role.is-active .gw-perm-role-meta { color: rgba(255, 255, 255, 0.8); }
.gw-perm-role-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.gw-perm-role-meta { font-size: 0.75rem; color: var(--gw-muted); }

.gw-perm-grid {
    background: var(--mud-palette-surface);
    border: 1px solid var(--gw-line);
    border-radius: 16px;
    padding: 18px;
    min-width: 0;
}

.gw-perm-table-wrap { overflow-x: auto; }

.gw-perm-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.gw-perm-table th, .gw-perm-table td { padding: 8px 10px; border-bottom: 1px solid var(--gw-rule); text-align: center; }
.gw-perm-table th[scope="row"], .gw-perm-table thead th:first-child { text-align: left; font-weight: 500; }
.gw-perm-table thead th { position: sticky; top: 0; background: var(--mud-palette-surface); font-weight: 600; z-index: 1; }
.gw-perm-group th { text-align: left !important; padding-top: 16px; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gw-muted); }
.gw-perm-page { display: inline-flex; align-items: center; gap: 8px; }
.gw-perm-page .mud-icon-root { color: var(--hue); background: var(--hue-bg); border-radius: 7px; padding: 3px; box-sizing: content-box; }
.gw-perm-check { width: 18px; height: 18px; accent-color: var(--gw-nav-selected); cursor: pointer; }
.gw-perm-check:disabled { cursor: not-allowed; }
.gw-perm-na { color: var(--mud-palette-lines-inputs); }

.gw-perm-col {
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--gw-ink);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 8px;
}

.gw-perm-col:hover:not(:disabled) { background: var(--gw-active); }

@media (max-width: 900px) {
    .gw-perm-layout { grid-template-columns: 1fr; }
    .gw-perm-roles { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
    .gw-perm-role { width: auto; flex: none; }
    .gw-perm-grid { padding: 12px; }
}

.gw-denied { max-width: 560px; margin: 48px auto; text-align: center; display: grid; gap: 12px; justify-items: center; }
.gw-denied .gw-denied-icon { font-size: 44px; width: 72px; height: 72px; padding: 14px; border-radius: 22px; box-sizing: border-box; color: #B42318; background: #FBE6E4; }

/* ---------- Header search ---------- */

.gw-header-search { display: flex; align-items: center; margin: 0 12px; flex: 0 1 440px; min-width: 0; }
.gw-header-search .gw-search-toggle { display: none; }
.gw-header-search .gw-search-box { flex: 1; min-width: 0; }
.gw-header-search .mud-input.mud-input-outlined { border-radius: 999px; background: var(--mud-palette-background); }
.gw-header-search .mud-input-outlined-border { border-radius: 999px; }
.gw-header-search .mud-input-control { margin: 0; }

.gw-search-hit { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.gw-search-hit-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; color: var(--hue); background: var(--hue-bg); }
.gw-search-hit-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gw-search-hit-text strong { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-search-hit-text small { color: var(--gw-muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-search-kind { flex: none; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gw-muted); }
.gw-search-empty { padding: 12px 16px; color: var(--gw-muted); }
.gw-search-popover .mud-list-item { padding-top: 4px; padding-bottom: 4px; }

.gw-search-group { margin-top: 24px; }
.gw-search-group h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; display: flex; gap: 8px; align-items: baseline; }
.gw-search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.gw-search-result {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; min-width: 0;
    border: 1px solid var(--gw-line); background: var(--mud-palette-surface); color: inherit; text-decoration: none;
    transition: transform .2s cubic-bezier(.2, .7, .2, 1), border-color .2s;
}
.gw-search-result:hover { transform: translateY(-2px); border-color: var(--mud-palette-lines-inputs); }

/* Narrow screens: a search icon in the bar opens a full-width search under it; the wordmark gives way. */
@media (max-width: 900px) {
    .gw-header-search { flex: none; margin: 0 4px; }
    .gw-header-search .gw-search-toggle { display: inline-flex; }
    .gw-header-search .gw-search-box {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        top: var(--mud-appbar-height);
        padding: 10px 12px;
        background: var(--mud-palette-surface);
        border-bottom: 1px solid var(--gw-line);
        box-shadow: 0 10px 24px rgba(26, 33, 28, 0.08);
        z-index: 1300;
    }
    .gw-header-search.is-open .gw-search-box { display: block; animation: gw-enter .2s ease-out; }
}

@media (max-width: 480px) {
    .mud-appbar.gw-appbar .gw-wordmark { display: none !important; }
    .mud-appbar.gw-appbar .mud-toolbar { gap: 2px; padding-left: 8px; padding-right: 8px; }
}

/* Left menu names in title case ("All Orders", "Products & Prices"). Indic scripts are unaffected. */
.gw-drawer .mud-nav-link-text { text-transform: capitalize; }

/* Wider screens: the search sits in the exact centre of the header bar. */
@media (min-width: 901px) {
    .mud-appbar.gw-appbar .mud-toolbar { position: relative; }
    .gw-header-search {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: min(460px, 36vw);
        margin: 0;
        z-index: 1;
    }
}

/* ---------- Date and time fields (Flatpickr) ---------- */

.gw-date { display: inline-flex; flex-direction: column; gap: 4px; min-width: 150px; width: 100%; max-width: 100%; }
.mud-stack-row > .gw-date, .mud-stack > .gw-date { width: auto; }
.gw-date-label { font-size: 0.75rem; font-weight: 500; color: var(--gw-muted); line-height: 1.2; }
.gw-date-field { position: relative; display: flex; align-items: center; }
.gw-date-field .gw-date-icon { position: absolute; left: 10px; color: var(--mud-palette-primary); pointer-events: none; z-index: 1; }
.gw-date-raw { display: none; }
.gw-date-input {
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: 10px;
    background: var(--mud-palette-surface);
    color: var(--gw-ink);
    font: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.gw-date-input:hover { border-color: var(--gw-ink); }
.gw-date-input:focus, .gw-date-input.active { outline: none; border-color: var(--mud-palette-primary); box-shadow: 0 0 0 3px rgba(31, 90, 53, 0.15); }
.gw-date-input::placeholder { color: var(--gw-muted); }
.gw-date.is-disabled .gw-date-input { background: var(--mud-palette-background-gray); color: var(--gw-muted); cursor: not-allowed; }
.gw-date-help { font-size: 0.75rem; color: var(--gw-muted); }

/* The calendar itself, in the app's colours and face. */
.flatpickr-calendar {
    font-family: var(--gw-display);
    border-radius: 16px;
    border: 1px solid var(--gw-line);
    box-shadow: 0 16px 40px rgba(26, 33, 28, 0.14);
    padding: 6px;
    width: auto;
}
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { display: none; }
.flatpickr-months { padding: 4px 4px 8px; }
.flatpickr-months .flatpickr-month { height: 36px; color: var(--gw-ink); }
.flatpickr-current-month { font-size: 1rem; font-weight: 700; padding-top: 6px; }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 700; border-radius: 8px; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { padding: 8px 12px; border-radius: 10px; top: 6px; }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--mud-palette-primary); }
span.flatpickr-weekday { color: var(--gw-muted); font-weight: 600; font-size: 0.75rem; }
.flatpickr-day { border-radius: 10px; color: var(--gw-ink); font-weight: 500; }
.flatpickr-day:hover, .flatpickr-day:focus { background: #E3F1E6; border-color: #E3F1E6; }
.flatpickr-day.today { border-color: var(--mud-palette-primary); }
.flatpickr-day.today:hover { background: #E3F1E6; color: var(--gw-ink); }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover {
    background: var(--gw-nav-selected);
    border-color: var(--gw-nav-selected);
    color: #fff;
}
.flatpickr-day.inRange { background: #E3F1E6; border-color: #E3F1E6; box-shadow: -5px 0 0 #E3F1E6, 5px 0 0 #E3F1E6; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: rgba(26, 33, 28, 0.3); }
.flatpickr-time { border-top: 1px solid var(--gw-line); }
.flatpickr-time input, .flatpickr-time .flatpickr-am-pm { font-weight: 600; color: var(--gw-ink); }
.flatpickr-time input:hover, .flatpickr-time .flatpickr-am-pm:hover, .flatpickr-time input:focus { background: #E3F1E6; }
.gw-fp-footer { display: flex; justify-content: space-between; gap: 8px; padding: 8px 6px 4px; border-top: 1px solid var(--gw-line); margin-top: 6px; }
.gw-fp-footer button {
    border: 0;
    background: #E3F1E6;
    color: var(--mud-palette-primary);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
}
.gw-fp-footer button:hover { background: #D2E8D7; }
.gw-fp-footer .gw-fp-clear { background: transparent; color: var(--gw-muted); }
.gw-fp-footer .gw-fp-clear:hover { background: var(--gw-active); }

/* ---------- Service icons: each one moves the way it works ---------- */

.gw-service-icon { position: relative; overflow: hidden; }
.gw-service-icon .mud-icon-root { position: relative; z-index: 1; }

/* Truck drives in from the left, across, and out to the right, over moving road dashes. */
.gw-anim-drive .mud-icon-root { animation: gw-icon-drive 2.6s cubic-bezier(.45, .05, .55, .95) infinite; }
.gw-anim-drive::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--hue) 0 5px, transparent 5px 10px);
    opacity: .5; animation: gw-icon-road .6s linear infinite;
}
@keyframes gw-icon-drive {
    0% { transform: translateX(-28px); }
    35%, 65% { transform: translateX(0) translateY(-1px); }
    100% { transform: translateX(28px); }
}
@keyframes gw-icon-road { from { background-position: 0 0; } to { background-position: -10px 0; } }

/* QR code: a scan line sweeps down and back. */
.gw-anim-scan::after {
    content: ""; position: absolute; left: 6px; right: 6px; top: 8px; height: 2px; border-radius: 2px;
    background: var(--hue); box-shadow: 0 0 8px var(--hue); z-index: 2;
    animation: gw-icon-scan 1.8s ease-in-out infinite alternate;
}
@keyframes gw-icon-scan { from { transform: translateY(0); } to { transform: translateY(26px); } }

/* Repeat: the arrows turn round. */
.gw-anim-spin .mud-icon-root { animation: gw-icon-spin 3s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes gw-icon-spin { 0%, 20% { transform: rotate(0); } 80%, 100% { transform: rotate(360deg); } }

/* Payment: the note bounces and a rupee coin drops in. */
.gw-anim-coin .mud-icon-root { animation: gw-icon-bounce 1.6s ease-in-out infinite; }
.gw-anim-coin::after {
    content: "\20B9"; position: absolute; top: -14px; right: 6px; width: 16px; height: 16px; border-radius: 50%;
    background: #F6B54A; color: #fff; font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; z-index: 2;
    animation: gw-icon-coin 1.6s ease-in infinite;
}
@keyframes gw-icon-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px) scale(1.05); } }
@keyframes gw-icon-coin { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(28px); opacity: 1; } 100% { transform: translateY(30px); opacity: 0; } }

/* ---------- Farm story slider (about a minute, 10 s per scene) ---------- */

.gw-story {
    position: relative;
    height: clamp(300px, 34vw, 400px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--gw-line);
    background: var(--mud-palette-surface);
}

.gw-story-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
    opacity: 0;
    animation: gw-story-show var(--cycle, 60s) infinite;
    animation-delay: calc(var(--n) * var(--slot, 10s));
}

/* gw-story-show and gw-story-bar are generated by FarmStorySlider for the number of scenes. */
}

.gw-story-text { padding: 28px 8px 28px 36px; z-index: 1; }
.gw-story-step { font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mud-palette-primary); }
.gw-story-text h3 { font-family: var(--gw-display); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.5vw, 2.1rem); line-height: 1.12; letter-spacing: -.02em; margin: 8px 0 10px; }
.gw-story-text p { color: var(--gw-muted); font-size: 1rem; line-height: 1.55; margin: 0; max-width: 36ch; }

.gw-story-art { height: 100%; }
.gw-story-art svg { width: 100%; height: 100%; display: block; }
.gw-story-art svg [class*="gw-a-"] { transform-box: fill-box; transform-origin: center; }

.gw-story-progress { position: absolute; left: 36px; right: 36px; bottom: 16px; display: flex; gap: 6px; z-index: 2; }
.gw-story-progress span { flex: 1; height: 4px; border-radius: 4px; background: rgba(26, 33, 28, .12); overflow: hidden; position: relative; }
.gw-story-progress span::after {
    content: ""; position: absolute; inset: 0; background: var(--mud-palette-primary); transform-origin: left; transform: scaleX(0);
    animation: gw-story-bar var(--cycle, 60s) linear infinite; animation-delay: calc(var(--n) * var(--slot, 10s));
}

.gw-story:hover .gw-story-slide, .gw-story:hover .gw-story-progress span::after,
.gw-story:hover .gw-story-art svg * { animation-play-state: paused; }

/* Scene motions */
.gw-a-rise { animation: gw-sun-rise 5.00s ease-out infinite; }
@keyframes gw-sun-rise { from { transform: translateY(70px); } 60%, to { transform: translateY(0); } }
.gw-a-drift { animation: gw-drift 9.00s linear infinite; animation-delay: var(--d, 0.00s); }
@keyframes gw-drift { from { transform: translateX(-120px); } to { transform: translateX(640px); } }
.gw-a-sway { transform-origin: bottom center !important; animation: gw-sway 1.40s ease-in-out infinite alternate; animation-delay: var(--d, 0.00s); }
@keyframes gw-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.gw-a-fall { animation: gw-seed-fall 1.10s ease-in infinite; animation-delay: var(--d, 0.00s); }
@keyframes gw-seed-fall { 0% { transform: translateY(-20px); opacity: 0; } 15% { opacity: 1; } 80% { transform: translateY(125px); opacity: 1; } 100% { transform: translateY(130px); opacity: 0; } }
.gw-a-grow { transform-origin: bottom center !important; animation: gw-grow 2.00s ease-out infinite; }
@keyframes gw-grow { 0% { transform: scale(.1); } 60%, 100% { transform: scale(1); } }
.gw-a-bob { animation: gw-bob 1.20s ease-in-out infinite; }
@keyframes gw-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.gw-a-drop { animation: gw-drop 1.05s cubic-bezier(.5, 0, .9, .5) infinite; animation-delay: var(--d, 0.00s); }
@keyframes gw-drop { 0% { transform: translateY(-40px); opacity: 0; } 15% { opacity: 1; } 75% { transform: translateY(140px); opacity: 1; } 100% { transform: translateY(150px); opacity: 0; } }
.gw-a-walk { animation: gw-walk 4.50s linear infinite; animation-delay: var(--d, 0.00s); transform-box: view-box !important; transform-origin: 0 0 !important; }
@keyframes gw-walk { from { transform: translate(180px, 262px); } to { transform: translate(680px, 262px); } }
.gw-a-peck { animation: gw-peck 0.60s ease-in-out infinite; }
@keyframes gw-peck { 0%, 60%, 100% { transform: rotate(0); } 75% { transform: rotate(18deg); } }
.gw-a-scan { animation: gw-qr-scan 0.80s ease-in-out infinite alternate; transform-box: view-box !important; transform-origin: 0 0 !important; }
@keyframes gw-qr-scan { from { transform: translateY(2px); } to { transform: translateY(60px); } }
.gw-a-twinkle { animation: gw-twinkle 0.80s ease-in-out infinite; }
@keyframes gw-twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .4; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
.gw-a-road { animation: gw-road 0.50s linear infinite; }
@keyframes gw-road { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -48; } }
.gw-a-drive { animation: gw-drive 5.00s cubic-bezier(.25, .1, .25, 1) infinite; transform-box: view-box !important; transform-origin: 0 0 !important; }
@keyframes gw-drive { 0% { transform: translate(-220px, 214px); } 70%, 100% { transform: translate(270px, 214px); } }

/* ---------- About us ---------- */

.gw-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 40px;
    padding: 24px;
    align-items: center;
}

.gw-about-scene {
    position: relative;
    aspect-ratio: 640 / 420;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(26, 33, 28, .1);
}
.gw-about-scene > svg { width: 100%; height: 100%; display: block; }
.gw-about-scene > svg [class*="gw-a-"] { transform-box: fill-box; transform-origin: center; }

.gw-a-spin-slow { animation: gw-spin-slow 12.00s linear infinite; transform-box: view-box !important; }
@keyframes gw-spin-slow { to { transform: rotate(360deg); } }
.gw-a-van {
    offset-path: path("M150 262 C260 300 380 270 520 292");
    offset-rotate: auto;
    animation: gw-van 3.50s ease-in-out infinite;
    transform-box: view-box !important;
    transform-origin: 0 0 !important;
}
@keyframes gw-van { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.gw-a-pin { animation: gw-pin 1.60s cubic-bezier(.3, 1.5, .5, 1) infinite; }
@keyframes gw-pin { 0% { transform: translateY(-90px); opacity: 0; } 20% { transform: translateY(0); opacity: 1; } 30% { transform: translateY(-10px); } 40%, 100% { transform: translateY(0); opacity: 1; } }
.gw-a-pin-shadow { animation: gw-pin-shadow 1.60s cubic-bezier(.3, 1.5, .5, 1) infinite; }
@keyframes gw-pin-shadow { 0% { transform: scale(.3); opacity: 0; } 20%, 100% { transform: scale(1); opacity: .18; } 30% { transform: scale(.8); } }

.gw-about-pin-label, .gw-about-sell-label {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 20px rgba(26, 33, 28, .12);
    color: var(--gw-ink);
}
.gw-about-pin-label { top: 14px; left: 14px; animation: gw-enter .3.00s ease-out .2.00s both; }
.gw-about-pin-label .mud-icon-root { color: #D7372B; }
.gw-about-sell-label { left: 14px; right: 14px; bottom: 14px; animation: gw-enter .3.00s ease-out .4.00s both; }
.gw-about-sell-label .mud-icon-root { color: var(--mud-palette-primary); }
.gw-about-pin-label small, .gw-about-sell-label small { display: block; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gw-muted); }
.gw-about-pin-label strong, .gw-about-sell-label strong { display: block; font-size: .9rem; line-height: 1.25; }

/* What we sell: bubbles rise out of the fields one after another. */
.gw-about-bubbles { position: absolute; inset: 0; pointer-events: none; }
.gw-about-bubble {
    position: absolute;
    bottom: 26%;
    left: calc(14% + var(--i) * (60% / max(var(--n) - 1, 1)));
    display: grid;
    justify-items: center;
    gap: 2px;
    animation: gw-bubble 3.00s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.60s);
    opacity: 0;
}
.gw-about-bubble img { width: 46px; height: 46px; padding: 7px; box-sizing: border-box; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px rgba(26, 33, 28, .15); }
.gw-about-bubble em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--gw-ink); background: rgba(255, 255, 255, .85); padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
@keyframes gw-bubble {
    0% { transform: translateY(30px) scale(.6); opacity: 0; }
    15% { opacity: 1; transform: translateY(0) scale(1); }
    70% { opacity: 1; transform: translateY(-70px) scale(1); }
    100% { opacity: 0; transform: translateY(-110px) scale(.9); }
}

.gw-about-body h2 { margin-bottom: 10px; }
.gw-about-values { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gw-about-values li { display: flex; gap: 10px; align-items: flex-start; }
.gw-about-value-icon { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--hue); background: var(--hue-bg); }
.gw-about-values strong { display: block; font-size: .9rem; }
.gw-about-values small { display: block; color: var(--gw-muted); font-size: .8rem; line-height: 1.4; }

/* Grown, Harvested, Packed, Delivered: a dot travels along the line. */
.gw-about-journey { list-style: none; margin: 22px 0 0; padding: 0; display: flex; justify-content: space-between; position: relative; counter-reset: step; }
.gw-about-journey::before { content: ""; position: absolute; top: 13px; left: 14px; right: 14px; height: 2px; background: #CFE3D3; }
.gw-about-journey::after {
    content: ""; position: absolute; top: 9px; left: 14px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--mud-palette-primary); box-shadow: 0 0 0 4px rgba(31, 90, 53, .2);
    animation: gw-journey 2.00s ease-in-out infinite;
}
@keyframes gw-journey { from { left: 14px; } to { left: calc(100% - 24px); } }
.gw-about-journey li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: .78rem; font-weight: 600; z-index: 1; }
.gw-about-journey li::before {
    counter-increment: step; content: counter(step);
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: #fff; border: 2px solid var(--mud-palette-primary); color: var(--mud-palette-primary); font-weight: 800; font-size: .8rem;
}

.gw-about-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

@media (max-width: 900px) {
    .gw-about { grid-template-columns: 1fr; padding: 16px; }
    .gw-story { height: auto; min-height: 520px; }
    .gw-story-slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .gw-story-text { padding: 20px 20px 0; }
    .gw-story-art { min-height: 260px; }
}

@media (max-width: 480px) {
    .gw-about-values { grid-template-columns: 1fr; }
    .gw-about-bubble img { width: 36px; height: 36px; padding: 5px; }
}

/* Phones: a taller picture so the labels and rising bubbles have room. */
@media (max-width: 600px) {
    .gw-about-scene { aspect-ratio: 4 / 4.2; }
    .gw-about-pin-label, .gw-about-sell-label { padding: 6px 10px; border-radius: 12px; }
    .gw-about-pin-label strong, .gw-about-sell-label strong { font-size: .8rem; }
    .gw-about-bubble { bottom: 34%; }
}

/* ---------- Record lists: person cells and status pills ---------- */

.gw-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gw-person > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.gw-person strong { font-weight: 600; }
.gw-person small { color: var(--gw-muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-avatar {
    flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: #E3F1E6; color: #1F5A35; font-weight: 700; font-size: .8rem;
}
.gw-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.gw-pill-green { background: #E3F1E6; color: #1F6B3A; }
.gw-pill-red { background: #FBE6E4; color: #B42318; }
.gw-pill-amber { background: #F8EEDB; color: #8A5A10; }
.gw-pill-blue { background: #E3ECF8; color: #1F4F86; }
.gw-pill-slate { background: #E8ECF1; color: #475569; }

/* ---------- Reach out to us ---------- */

.gw-reach {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px 40px;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(90% 120% at 0% 0%, #E3F1E6 0%, transparent 60%),
        radial-gradient(80% 100% at 100% 100%, #F8EEDB 0%, transparent 60%),
        var(--mud-palette-surface);
    border: 1px solid var(--gw-line);
    scroll-margin-top: 80px;
}
.gw-reach h2 { margin-bottom: 8px; }
.gw-reach-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.gw-reach-list li { display: flex; align-items: center; gap: 12px; }
.gw-reach-list small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gw-muted); }
.gw-reach-list a { color: var(--gw-ink); font-weight: 600; text-decoration: none; }
.gw-reach-list a:hover { color: var(--mud-palette-primary); }
.gw-reach-icon {
    flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    color: var(--hue); background: var(--hue-bg); animation: gw-bob 1.50s ease-in-out infinite;
}
.gw-reach-list li:nth-child(2) .gw-reach-icon { animation-delay: .2.00s; }
.gw-reach-list li:nth-child(3) .gw-reach-icon { animation-delay: .4.00s; }
.gw-reach-list li:nth-child(4) .gw-reach-icon { animation-delay: 0.60s; }
.gw-reach-form { background: var(--mud-palette-surface); border: 1px solid var(--gw-line); border-radius: 18px; padding: 22px; box-shadow: 0 14px 34px rgba(26, 33, 28, .06); }
.gw-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gw-reach-done { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 28px 8px; }
.gw-reach-done h3 { margin: 6px 0 0; font-size: 1.4rem; font-weight: 800; }
.gw-reach-tick {
    display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    background: var(--gw-nav-selected); color: #fff; animation: gw-pop .2.50s cubic-bezier(.2, .8, .2, 1.3) both;
}
.gw-reach-tick .mud-icon-root { font-size: 34px; }

@media (max-width: 900px) {
    .gw-reach { grid-template-columns: 1fr; padding: 18px; }
    .gw-reach-form { padding: 16px; }
}

/* ---------- The Nova 365 loader ---------- */

.gw-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px 0; }
.gw-loader.is-inline { flex-direction: row; padding: 0; gap: 8px; display: inline-flex; vertical-align: middle; }
.gw-loader-mark { position: relative; width: var(--gw-loader-size); height: var(--gw-loader-size); flex: none; }

/* A soft conic ring in the brand colours, turning. */
.gw-loader-ring {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, #2F8A4A, #B7791F, #E8483C, #2563A6, #2F8A4A);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    animation: gw-loader-spin 0.55s linear infinite;
}

/* Three little fruits circling in the other direction. */
.gw-loader-orbit { position: absolute; inset: 14%; animation: gw-loader-spin 0.90s linear infinite reverse; }
.gw-loader-orbit i { position: absolute; width: 18%; height: 18%; border-radius: 50%; }
.gw-loader-orbit .a { top: -4%; left: 41%; background: #E8483C; }
.gw-loader-orbit .b { bottom: 8%; left: 2%; background: #F2A33A; }
.gw-loader-orbit .c { bottom: 8%; right: 2%; background: #4CAF50; border-radius: 0 50% 50% 50%; }

/* The sprout in the middle, growing and settling. */
.gw-loader-sprout { position: absolute; inset: 27%; width: 46%; height: 46%; overflow: visible; }
.gw-loader-sprout .stem { stroke: #1F5A35; stroke-width: 2.4; stroke-linecap: round; fill: none; stroke-dasharray: 12; animation: gw-loader-stem 0.80s ease-in-out infinite; }
.gw-loader-sprout .leaf { fill: #2F8A4A; transform-box: fill-box; animation: gw-loader-leaf 0.80s ease-in-out infinite; }
.gw-loader-sprout .leaf.l { transform-origin: 100% 100%; }
.gw-loader-sprout .leaf.r { transform-origin: 0% 100%; fill: #4CAF50; animation-delay: .7.50s; }

.gw-loader-text { font-size: .875rem; font-weight: 600; color: var(--gw-muted); }
.gw-loader.is-inline .gw-loader-text { font-size: .8125rem; }

@keyframes gw-loader-spin { to { transform: rotate(360deg); } }
@keyframes gw-loader-stem { 0% { stroke-dashoffset: 12; } 45%, 100% { stroke-dashoffset: 0; } }
@keyframes gw-loader-leaf { 0%, 30% { transform: scale(0); } 60% { transform: scale(1.12); } 75%, 100% { transform: scale(1); } }

/* The global "working on it" pill at the top of the screen. */
.gw-global-busy {
    position: fixed;
    top: calc(var(--mud-appbar-height) + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--gw-line);
    box-shadow: 0 12px 30px rgba(26, 33, 28, .14);
    animation: gw-busy-in .12.50s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes gw-busy-in { from { opacity: 0; transform: translate(-50%, -8px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* Extra story scenes */
.gw-a-drip { animation: gw-drip 1.4s ease-in infinite; animation-delay: var(--d, 0s); }
@keyframes gw-drip { 0% { transform: translateY(-6px) scale(.4); opacity: 0; } 30% { opacity: 1; transform: translateY(0) scale(1); } 100% { transform: translateY(26px) scale(.8); opacity: 0; } }
.gw-a-pop { animation: gw-pop-in 3s cubic-bezier(.2, .8, .2, 1.4) infinite; animation-delay: var(--d, 0s); }
@keyframes gw-pop-in { 0% { transform: translateY(-50px) scale(.4); opacity: 0; } 20%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
.gw-a-graze { animation: gw-graze 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes gw-graze { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(26px); } }
.gw-a-head { animation: gw-head 2s ease-in-out infinite; transform-origin: 0% 100% !important; }
@keyframes gw-head { 0%, 40%, 100% { transform: rotate(0); } 60%, 80% { transform: rotate(28deg); } }
.gw-a-scanx { animation: gw-scanx 3s ease-in-out infinite; transform-box: view-box !important; transform-origin: 0 0 !important; }
@keyframes gw-scanx { 0% { transform: translate(220px, 200px); } 50% { transform: translate(330px, 190px); } 100% { transform: translate(220px, 200px); } }
.gw-a-steam { animation: gw-steam 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes gw-steam { 0% { transform: translateY(10px); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-24px); opacity: 0; } }

/* ---------- Record pages: header, status tabs, tables ---------- */

.gw-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

.gw-status-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 6px; scrollbar-width: thin; }
.gw-status-tab {
    flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--gw-line); background: var(--mud-palette-surface); color: var(--gw-ink);
    font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s;
}
.gw-status-tab:hover { border-color: var(--hue); transform: translateY(-1px); }
.gw-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hue); }
.gw-status-tab.is-active { background: var(--hue-bg); border-color: var(--hue); color: var(--hue); }

.gw-orders-filters { background: var(--mud-palette-surface); border: 1px solid var(--gw-line); border-radius: 14px; padding: 10px 14px; }

.mud-table.gw-table { border: 1px solid var(--gw-line); border-radius: 16px; overflow: hidden; background: var(--mud-palette-surface); }
.gw-table .mud-table-head .mud-table-cell {
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gw-muted);
    background: var(--mud-palette-background); border-bottom: 1px solid var(--gw-line);
}
.gw-table .mud-table-body .mud-table-cell { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--gw-rule); vertical-align: middle; }
.gw-table .mud-table-body .mud-table-row:hover .mud-table-cell { background: #F5F9F6; }
.gw-table .mud-table-body .mud-table-row:last-child .mud-table-cell { border-bottom: 0; }
.gw-table small { display: block; }

.gw-order-ref { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gw-pay { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: .85rem; }
.gw-pay .mud-icon-root { color: var(--gw-muted); }
.gw-empty { display: grid; justify-items: center; gap: 6px; padding: 32px; color: var(--gw-muted); }
.gw-empty .mud-icon-root { font-size: 36px; }

@media (max-width: 600px) {
    .gw-table .mud-table-body .mud-table-row { border-bottom: 1px solid var(--gw-line); display: block; padding: 6px 0; }
    .gw-table .mud-table-body .mud-table-cell { border-bottom: 0; padding-top: 6px; padding-bottom: 6px; }
}

/* ---------- Home: services flip to a detail side ---------- */
.gw-service { perspective: 900px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.gw-service:hover, .gw-service:focus-visible { transform: none; box-shadow: none; }
.gw-service-inner { position: relative; min-height: 230px; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.gw-service:hover .gw-service-inner, .gw-service:focus-visible .gw-service-inner { transform: rotateY(180deg); }
.gw-service-face {
    position: absolute; inset: 0; padding: 20px; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    background: var(--mud-palette-surface); border: 1px solid var(--gw-line); box-shadow: 0 10px 26px rgba(26, 33, 28, .06);
}
.gw-service-back {
    transform: rotateY(180deg); color: #fff;
    background: linear-gradient(150deg, var(--hue) 0%, #1A211C 140%); border-color: transparent;
}
.gw-service-back h3 { color: #fff; }
.gw-service-back ul { margin: 6px 0 0; padding: 0 0 0 18px; display: grid; gap: 8px; font-size: .9rem; line-height: 1.4; }
.gw-service-back li { animation: gw-enter .5s ease-out both; }
.gw-service-back li:nth-child(2) { animation-delay: .12s; }
.gw-service-back li:nth-child(3) { animation-delay: .24s; }
.gw-service-hint { display: inline-block; margin-top: 10px; font-size: .75rem; font-weight: 600; color: var(--hue); }
.gw-service-front h3 { margin-top: 10px; }

/* ---------- Home: the four-step progress bar ---------- */
.gw-journey { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: relative; }
.gw-journey li { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 4px; padding-top: 4px; animation: gw-enter .6s ease-out both; animation-delay: calc(var(--i) * .15s + .2s); }
.gw-journey-node {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--mud-palette-surface); color: var(--hue); border: 2px solid var(--hue); box-shadow: 0 0 0 5px var(--hue-bg);
    animation: gw-node-pulse 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * .4s);
}
.gw-journey li strong { font-size: .9rem; color: var(--gw-ink); }
.gw-journey li small { font-size: .75rem; color: var(--gw-muted); }
.gw-journey-track { position: absolute; left: 12.5%; right: 12.5%; top: 27px; height: 6px; border-radius: 6px; background: #E3EDE5; overflow: visible; z-index: 0; }
.gw-journey-fill {
    position: absolute; inset: 0; border-radius: 6px; transform-origin: left;
    background: linear-gradient(90deg, #2F8A4A, #B7791F, #E8483C, #2563A6); transform: scaleX(0);
    animation: gw-fill 2.4s cubic-bezier(.3, .7, .2, 1) .4s forwards, gw-fill-shine 3s linear 2.8s infinite;
}
.gw-journey-truck {
    position: absolute; top: -12px; left: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--mud-palette-primary); color: #fff; box-shadow: 0 6px 14px rgba(31, 90, 53, .35);
    animation: gw-ride 2.4s cubic-bezier(.3, .7, .2, 1) .4s both, gw-bounce .6s ease-in-out 2.8s infinite alternate;
}
@keyframes gw-fill { to { transform: scaleX(1); } }
@keyframes gw-ride { from { left: 0; } to { left: calc(100% - 30px); } }
@keyframes gw-bounce { to { transform: translateY(-3px); } }
@keyframes gw-fill-shine { 0% { filter: brightness(1); } 50% { filter: brightness(1.15); } 100% { filter: brightness(1); } }
@keyframes gw-node-pulse { 0%, 100% { box-shadow: 0 0 0 5px var(--hue-bg); } 50% { box-shadow: 0 0 0 11px transparent; } }
@media (max-width: 600px) { .gw-journey { gap: 4px; } .gw-journey-node { width: 40px; height: 40px; } .gw-journey li strong { font-size: .8rem; } .gw-journey li small { display: none; } }

/* ---------- Home: exactly three blog posts, full width ---------- */
.gw-blog-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px; }
.gw-blog-card img { aspect-ratio: 16 / 9; }
.gw-blog-card strong { font-size: 1.05rem; line-height: 1.3; }
@media (max-width: 760px) { .gw-blog-cards { grid-template-columns: 1fr !important; } }

/* ---------- Home: the farm slider heading in the same coloured style as the tagline ---------- */
.gw-story-heading { font-family: var(--gw-display); font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 14px; text-align: center; }
.gw-story-heading::after { content: "to your door"; display: none; }
.gw-story-text { display: flex; flex-direction: column; justify-content: flex-start; text-align: center; align-items: center; padding-top: 34px !important; }
.gw-story-text p { margin-inline: auto; }
.gw-story-text h3 .gw-story-accent {
    background: linear-gradient(100deg, #1F5A35 0%, #2F8A4A 30%, #B7791F 55%, #2F8A4A 80%, #1F5A35 100%);
    background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: gw-sweep 6s ease-in-out infinite;
}

/* Invoice preview frame */
.gw-pdf-frame { width: 100%; height: min(74vh, 900px); border: 1px solid var(--gw-line); border-radius: 12px; background: #fff; }

/* Printing the QR labels on one A4 sheet: three columns, every label on the same page. */
.gw-print.gw-sheet { display: grid; grid-template-columns: repeat(3, 64mm); gap: 3mm; justify-content: start; }
.gw-print.gw-sheet .gw-label { max-width: none !important; width: 64mm; height: 36mm; box-sizing: border-box; page-break-inside: avoid; break-inside: avoid; }
.gw-print.gw-sheet .gw-label .gw-qr { width: 28mm; }
@media print {
    .gw-print.gw-sheet { gap: 2mm; grid-template-columns: repeat(3, 64mm); }
    .gw-print.gw-sheet .gw-label { page-break-after: auto; }
}
