/* Site-specific overrides layered on top of the theme's custom.css.
   Keep the theme files untouched so they can be updated independently. */

/* The theme blurs whatever is behind the header (backdrop-filter), which leaves a faded light
   line along the top edge of the page. The blur is barely visible over the hero anyway. */
header.main-header .header-sticky {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* The hero and inner-page banners are pulled up 100px to sit behind the header, but the theme's
   1px bottom border made the header 101px tall, leaving a 1px white line at the very top of the page.
   Draw the same line as an inset shadow instead, which takes up no space. */
header.main-header .header-sticky,
header.main-header .header-sticky.active {
    border-bottom: none;
}

header.main-header .header-sticky {
    box-shadow: inset 0 -1px 0 var(--dark-divider-color);
}

header.main-header .header-sticky.active {
    box-shadow: inset 0 -1px 0 var(--divider-color);
}

/* The header floats over the top of the hero / page banner instead of taking up space, so the
   banner always starts at the very top of the page. (The theme pulled the banner up a fixed 100px,
   which left a white bar whenever the header was taller than that.) */
header.main-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.hero,
.page-header {
    margin-top: 0;
}

/* Pages without a banner (e.g. logged-in account pages): the header is a solid green bar
   that takes up its own space, so the page content starts below it. */
body.solid-header header.main-header {
    position: relative;
    background-color: var(--primary-color);
}

/* ---- White menu bar: the shop's pages with their banner turned off (ShopPageHeader) ------------ */

/* A white bar with the full-colour logo and dark green links, also once it sticks to the top on scrolling. */
body.white-header header.main-header,
body.white-header header.main-header .header-sticky.active {
    background-color: var(--white-color);
}

body.white-header header.main-header .header-sticky {
    box-shadow: inset 0 -1px 0 var(--divider-color);
}

body.white-header header.main-header .header-sticky.active {
    box-shadow: 0 4px 20px rgba(11, 61, 44, 0.08);
}

body.white-header .navbar-brand img {
    width: 135px;
}

body.white-header .main-menu ul li a,
body.white-header .main-menu ul li a:hover,
body.white-header .main-menu ul li a:focus {
    color: var(--primary-color);
}

body.white-header .main-menu .navbar-nav > .nav-item > .nav-link:hover,
body.white-header .main-menu .navbar-nav > .nav-item > .nav-link.active {
    color: var(--accent-color);
}

/* The drop-downs keep their green background and white links. */
body.white-header .main-menu ul ul li a {
    color: var(--white-color);
}

body.white-header .main-menu ul ul li a:hover,
body.white-header .main-menu ul ul li a:focus {
    color: var(--primary-color);
}

body.white-header .contact-now-box-content p,
body.white-header .contact-now-box-content h3 {
    color: var(--primary-color);
}

body.white-header .header-account-btn,
body.white-header .header-basket,
body.white-header .header-filters {
    color: var(--primary-color);
    border-color: var(--divider-color);
}

body.white-header .header-account-btn:hover,
body.white-header .header-account-btn:focus,
body.white-header .header-basket:hover,
body.white-header .header-basket:focus-visible,
body.white-header .header-filters:hover,
body.white-header .header-filters:focus-visible {
    color: var(--white-color);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

body.white-header .header-basket-count {
    background-color: var(--accent-color);
    color: var(--white-color);
}

body.white-header .header-filters-on {
    border-color: var(--white-color);
}

/* The slim strip under the white menu bar with the page's title and breadcrumb (Shop/_ShopPageHeader). */
.shop-title-bar {
    padding: 28px 0 24px;
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--divider-color);
}

.shop-title-bar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 30px;
}

.shop-title-bar h1 {
    margin: 0;
    font-size: 34px;
    color: var(--primary-color);
}

.shop-title-bar .breadcrumb {
    margin: 0;
    padding: 0;
}

.shop-title-bar .breadcrumb-item {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    text-transform: capitalize;
}

.shop-title-bar .breadcrumb-item a {
    color: var(--accent-color);
}

@media only screen and (max-width: 767px) {
    .shop-title-bar {
        padding: 20px 0 18px;
    }

    .shop-title-bar h1 {
        font-size: 26px;
    }
}

/* Keep the header on one line: menu items and the phone number never wrap. */
.main-menu ul li a,
.contact-now-box-content p,
.contact-now-box-content h3 {
    white-space: nowrap;
}

/* Laptops: tighten the menu so everything fits. */
@media only screen and (max-width: 1399px) {
    .main-menu ul li {
        margin: 0 2px;
    }

    .main-menu ul li a {
        padding: 14px 10px !important;
    }

    .header-account {
        margin-right: 15px;
    }
}

/* Small laptops: smaller menu text and logo, and just the phone icon (still a tap-to-call link below). */
@media only screen and (max-width: 1199px) {
    .navbar-brand img {
        max-width: 120px;
    }

    .main-menu ul li a {
        padding: 14px 7px !important;
        font-size: 15px;
    }

    .header-account-btn {
        padding: 8px 16px;
    }

    .contact-now-box-content {
        display: none;
    }

    .contact-now-box .icon-box {
        margin-right: 0;
    }
}

/* 992-1099px: not enough room for the full menu, so use the mobile (burger) menu here too.
   Below 992px the theme and Bootstrap already do this. */
@media only screen and (min-width: 992px) and (max-width: 1099px) {
    .navbar-expand-lg .navbar-collapse {
        display: none !important;
    }

    .responsive-menu,
    .navbar-toggle,
    .slicknav_nav li,
    .slicknav_nav ul {
        display: block;
    }

    /* The account links in the burger menu are marked d-lg-none (hidden from 992px up). */
    .slicknav_nav .d-lg-none {
        display: block !important;
    }
}

/* Bootstrap's .navbar-nav .nav-link.active outranks the theme's white menu links,
   turning the current page's link dark. Keep it white like the rest of the menu. */
.main-menu .navbar-nav .nav-link.active {
    color: var(--white-color);
}

/* Header account (login / my account) button, sits left of the phone number */
.header-account {
    display: flex;
    align-items: center;
    margin-right: 25px;
}

.header-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white-color);
    border: 1px solid var(--dark-divider-color);
    border-radius: 100px;
    padding: 10px 22px;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

/* The customer's first name: a long one is cut short rather than pushing the header out. */
.header-account-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-account-btn:hover,
.header-account-btn:focus {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-color);
}

/* "My Account" drop-down (when logged in): opens on hover, or when tabbed to with the keyboard.
   Styled to match the theme's Products drop-down. On touch screens a tap goes to the My Account
   page, which has its own Log Out button. */
.header-account-dropdown {
    position: relative;
}

.header-account-caret {
    font-size: 12px;
    transition: transform 0.3s ease-in-out;
}

.header-account-dropdown:hover .header-account-caret,
.header-account-dropdown:focus-within .header-account-caret {
    transform: rotate(180deg);
}

.header-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    padding: 5px 0;
    border-radius: 20px;
    background-color: var(--accent-color);
    visibility: hidden;
    opacity: 0;
    transform: scaleY(0.8);
    transform-origin: top;
    transition: all 0.3s ease-in-out;
    z-index: 10;
}

/* Invisible bridge over the 10px gap so the menu doesn't close as the pointer moves down to it. */
.header-account-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.header-account-dropdown:hover .header-account-menu,
.header-account-dropdown:focus-within .header-account-menu {
    visibility: visible;
    opacity: 1;
    transform: scaleY(1);
}

.header-account-menu form {
    margin: 0;
}

.header-account-menu a,
.header-account-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--white-color);
    background: none;
    border: none;
    text-align: left;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

.header-account-menu a:hover,
.header-account-menu a:focus,
.header-account-menu button:hover,
.header-account-menu button:focus {
    color: var(--primary-color);
    padding-left: 23px;
}

/* Header basket button (_Header.cshtml): a round button like the account one, with the number of items on it */
.header-basket {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: 20px;
    padding: 0;
    border: 1px solid var(--dark-divider-color);
    border-radius: 50%;
    background: none;
    font-size: 19px;
    color: var(--white-color);
    transition: all 0.3s ease-in-out;
}

.header-basket:hover,
.header-basket:focus-visible {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.header-basket-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 100px;
    background-color: var(--white-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    color: var(--primary-color);
}

.header-basket-count[hidden] {
    display: none;
}

/* With the burger menu (below 1100px): next to the burger, on the right */
@media only screen and (max-width: 1099px) {
    .header-basket {
        width: 40px;
        height: 40px;
        margin: 0 14px 0 auto;
        font-size: 17px;
    }
}

/* Header filter button (_Header.cshtml, shop page only): like the basket button, shown on phones and tablets only,
   where it opens the shop's search & filters (shop.js). A dot on it when filters are on. */
.header-filters {
    display: none;
}

@media only screen and (max-width: 991px) {
    .header-filters {
        position: relative;
        display: inline-flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0 10px 0 auto;
        padding: 0;
        border: 1px solid var(--dark-divider-color);
        border-radius: 50%;
        background: none;
        font-size: 16px;
        color: var(--white-color);
        transition: all 0.3s ease-in-out;
    }

    .header-filters:hover,
    .header-filters:focus-visible {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
    }

    .header-filters-on {
        position: absolute;
        top: -2px;
        right: -2px;
        width: 12px;
        height: 12px;
        border: 2px solid var(--primary-color);
        border-radius: 50%;
        background-color: var(--accent-color);
    }

    .header-filters + .header-basket {
        margin-left: 0;
    }
}

/* Basket flyout (_BasketFlyout.cshtml, basket.js): slides in from the right, in the site's green, slightly see-through */
.basket-flyout {
    position: fixed;
    inset: 0;
    z-index: 1050;   /* above the header and cookie banner */
}

.basket-flyout[hidden] {
    display: none;
}

.basket-flyout-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.basket-flyout-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(420px, 100%);
    background-color: rgba(11, 61, 44, 0.9);   /* --primary-color, slightly see-through */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
    color: var(--white-color);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    outline: none;
}

.basket-flyout.is-open .basket-flyout-backdrop {
    opacity: 1;
}

.basket-flyout.is-open .basket-flyout-panel {
    transform: translateX(0);
}

body.basket-open {
    overflow: hidden;
}

.basket-flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 25px;
    border-bottom: 1px solid var(--dark-divider-color);
}

.basket-flyout-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--white-color);
}

.basket-flyout-count {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.75;
}

.basket-flyout-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--dark-divider-color);
    border-radius: 50%;
    background: none;
    font-size: 18px;
    color: var(--white-color);
    transition: all 0.3s ease-in-out;
}

.basket-flyout-close:hover,
.basket-flyout-close:focus-visible {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.basket-flyout-lines {
    flex: 1;
    margin: 0;
    padding: 10px 25px;
    overflow-y: auto;
    list-style: none;
}

.basket-flyout-line {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--dark-divider-color);
}

.basket-flyout-line img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.basket-flyout-line-details {
    flex: 1;
    min-width: 0;
}

.basket-flyout-line-details h3 {
    margin: 0 0 2px;
    font-size: 17px;
    color: var(--white-color);
}

.basket-flyout-line-details p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5em;
    color: rgba(255, 255, 255, 0.75);
}

.basket-flyout-line-details .basket-flyout-line-qty {
    color: var(--white-color);
}

.basket-flyout-line-total {
    font-weight: 700;
    white-space: nowrap;
}

.basket-flyout-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
}

.basket-flyout-empty i {
    font-size: 40px;
}

.basket-flyout-footer {
    padding: 20px 25px 25px;
    border-top: 1px solid var(--dark-divider-color);
}

.basket-flyout-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

.basket-flyout-note {
    margin: 4px 0 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

/* Narrower than the panel by half the theme's arrow circle, which sits over the button's right-hand end */
.basket-flyout-footer .basket-flyout-checkout {
    display: block;
    width: calc(100% - 21px);
    margin: 0 0 12px;
    text-align: center;
}

.basket-flyout-view {
    display: block;
    font-weight: 600;
    text-align: center;
    text-decoration: underline;
    color: var(--white-color);
}

.basket-flyout-view:hover {
    color: var(--secondary-color);
}

@media (prefers-reduced-motion: reduce) {
    .basket-flyout-backdrop,
    .basket-flyout-panel {
        transition: none;
    }
}

/* Availability list sign-up pop-up (_SubscribePopup.cshtml, subscribe.js) */
.subscribe-popup {
    position: fixed;
    inset: 0;
    z-index: 1060;   /* above the header, cookie banner and basket */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.subscribe-popup[hidden] {
    display: none;
}

.subscribe-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 61, 44, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.subscribe-popup-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 30px;
    /* No white background here (the body has it), or it shows as a thin line round the green band's curved corners */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    outline: none;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.subscribe-popup.is-open .subscribe-popup-backdrop,
.subscribe-popup.is-open .subscribe-popup-dialog {
    opacity: 1;
}

.subscribe-popup.is-open .subscribe-popup-dialog {
    transform: none;
}

body.subscribe-open {
    overflow: hidden;
}

/* Green band at the top, with a faded envelope behind it like the product page's "order online" box */
.subscribe-popup-header {
    position: relative;
    overflow: hidden;
    padding: 35px 35px 30px;
    border-radius: 30px 30px 0 0;   /* its own rounding, so nothing light shows round the corners */
    background-color: var(--primary-color);
    color: var(--white-color);
}

.subscribe-popup-header::after {
    content: '\f658';   /* Font Awesome envelope-open-text */
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-family: 'Font Awesome 6 Free';
    font-size: 160px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.07;
    pointer-events: none;
}

.subscribe-popup-header h2 {
    margin-bottom: 8px;
    font-size: 30px;
    color: var(--white-color);
}

.subscribe-popup-header p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.subscribe-popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 50%;
    background-color: var(--accent-color);
    font-size: 22px;
    color: var(--white-color);
}

.subscribe-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid var(--dark-divider-color);
    border-radius: 50%;
    background: none;
    font-size: 18px;
    color: var(--white-color);
    transition: all 0.3s ease-in-out;
}

.subscribe-popup-close:hover,
.subscribe-popup-close:focus-visible {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.subscribe-popup-body {
    padding: 30px 35px 30px;
    border-radius: 0 0 30px 30px;
    background-color: var(--white-color);
}

/* The sign-up form (pop-up and /subscribe page) */
.subscribe-form label {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.subscribe-required {
    color: var(--accent-color);
}

.subscribe-form .form-control {
    padding: 13px 18px;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    background-color: var(--secondary-color);
    box-shadow: none;
}

.subscribe-form .form-control:focus {
    border-color: var(--accent-color);
    background-color: var(--white-color);
}

/* Off-screen rather than display: none, which some bots look for */
.subscribe-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.subscribe-submit {
    margin-top: 22px;
}

.subscribe-small {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.5em;
    color: #7A807D;
}

.subscribe-small a {
    color: inherit;
    text-decoration: underline;
}

.subscribe-message {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background-color: var(--secondary-color);
    font-size: 15px;
    color: var(--primary-color);
}

.subscribe-message[hidden] {
    display: none;
}

.subscribe-message.is-success {
    background-color: #E3F3E4;
    color: var(--accent-color);
    font-weight: 600;
}

.subscribe-message.is-error {
    background-color: #FBEAEA;
    color: #8E2F32;
}

/* After signing up in the pop-up, just the message (and the small print) */
.subscribe-form.is-done .row,
.subscribe-form.is-done .subscribe-submit {
    display: none;
}

/* The /subscribe page (for visitors without JavaScript) */
.subscribe-page {
    padding: 100px 0;
}

.subscribe-page-box {
    max-width: 680px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 30px;
    background-color: var(--secondary-color);
}

.subscribe-page-box .section-title {
    margin-bottom: 30px;
}

.subscribe-page-box .subscribe-form .form-control {
    background-color: var(--white-color);
}

@media only screen and (max-width: 575px) {
    .subscribe-popup {
        padding: 12px;
    }

    .subscribe-popup-header,
    .subscribe-popup-body {
        padding-left: 22px;
        padding-right: 22px;
    }

    .subscribe-popup-header h2 {
        font-size: 24px;
    }

    .subscribe-page {
        padding: 50px 0;
    }

    .subscribe-page-box {
        padding: 30px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .subscribe-popup-backdrop,
    .subscribe-popup-dialog {
        transition: none;
    }
}

/* ---- Login: the pop-up (_LoginPopup.cshtml, login.js) and /account/login, which share _LoginDialog.cshtml ---- */
.login-popup {
    position: fixed;
    inset: 0;
    z-index: 1060;   /* above the header, cookie banner and basket */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-popup[hidden] {
    display: none;
}

/* The site stays faintly visible behind, blurred and tinted green, so the login has the focus */
.login-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 61, 44, 0.35);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-popup .login-dialog {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.login-popup.is-open .login-popup-backdrop,
.login-popup.is-open .login-dialog {
    opacity: 1;
}

.login-popup.is-open .login-dialog {
    transform: none;
}

.login-popup.is-busy .login-dialog {
    cursor: progress;
}

body.login-open {
    overflow: hidden;
}

/* No background of its own: the green band and white body each draw their half, so no white shows round the
   band's curved top corners (as it does when a white box sits behind a green band with the same rounding). */
.login-dialog {
    position: relative;
    width: min(480px, 100%);
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    outline: none;
}

/* Green band at the top, with a faded person behind it as on the sign-up pop-up */
.login-dialog-header {
    position: relative;
    overflow: hidden;
    padding: 35px 35px 30px;
    border-radius: 30px 30px 0 0;
    background-color: var(--primary-color);
    color: var(--white-color);
}

.login-dialog-header::after {
    content: '\f007';   /* Font Awesome user */
    position: absolute;
    right: -10px;
    bottom: -45px;
    font-family: 'Font Awesome 6 Free';
    font-size: 170px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.07;
    pointer-events: none;
}

.login-dialog-header h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.login-dialog-header h2 {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    font-size: 30px;
    color: var(--white-color);
}

.login-dialog-header p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.login-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 50%;
    background-color: var(--accent-color);
    font-size: 22px;
    color: var(--white-color);
}

.login-dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid var(--dark-divider-color);
    border-radius: 50%;
    background: none;
    font-size: 18px;
    color: var(--white-color);
    transition: all 0.3s ease-in-out;
}

.login-dialog-close:hover,
.login-dialog-close:focus-visible {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.login-dialog-body {
    padding: 30px 35px 35px;
    border-radius: 0 0 30px 30px;
    background-color: var(--white-color);
}

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.login-form .form-control {
    padding: 13px 18px;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    background-color: var(--secondary-color);
    box-shadow: none;
}

.login-form .form-control:focus {
    border-color: var(--accent-color);
    background-color: var(--white-color);
}

.login-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 15px;
}

.login-options .form-check {
    margin: 0;
}

.login-options .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.login-options .form-check-label {
    color: var(--text-color);
}

.login-options a {
    color: var(--accent-color);
    text-decoration: underline;
}

.login-options a:hover {
    color: var(--primary-color);
}

/* Full width, less room for the theme's arrow circle, which sticks out half its width on the right */
.login-submit {
    width: calc(100% - 18px);
    margin-right: 18px;
    text-align: center;
}

.login-submit:disabled {
    opacity: 0.7;
}

.login-message {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5em;
}

.login-message[hidden] {
    display: none;
}

.login-message.is-error {
    background-color: #FBEAEA;
    color: #8E2F32;
}

.login-message.is-success {
    background-color: #E3F3E4;
    color: var(--accent-color);
    font-weight: 600;
}

.login-message.is-info {
    background-color: var(--secondary-color);
    border: 1px solid var(--divider-color);
    color: var(--primary-color);
}

/* The pages' validation summaries (ASP.NET's list of errors), hidden until there's a problem */
.login-message.validation-summary-valid {
    display: none;
}

.login-message ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.login-field-error {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #B3373B;
}

.login-field-last {
    margin-bottom: 26px;
}

/* Read-only email on the set password page: dimmed so it's clearly not editable */
.login-form .form-control[readonly] {
    opacity: 0.75;
    cursor: default;
}

.login-dialog-header p + p {
    margin-top: 8px;
}

/* "Back to login" under the forgotten password form */
.login-links {
    margin-top: 22px;
    font-size: 15px;
    text-align: center;
}

.login-links a {
    color: var(--accent-color);
    font-weight: 600;
}

.login-links a:hover {
    color: var(--primary-color);
}

.login-links i {
    margin-right: 6px;
    font-size: 13px;
}

/* The pop-up's two panels (login and forgotten password): one shows at a time */
.login-popup .login-dialog[hidden],
.login-form[hidden],
.login-done[hidden] {
    display: none;
}

/* The login-related pages (_AccountLayout): the same box, over a blurred photo in place of the page behind */
.login-page {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 80px 0;
}

.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    inset: 0;
}

.login-page::before {
    background: var(--login-page-image) center / cover no-repeat;
    filter: blur(10px) saturate(120%);
    transform: scale(1.08);   /* hides the blur's soft edges */
}

.login-page::after {
    background: rgba(11, 61, 44, 0.35);
}

.login-page .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.login-page .login-dialog {
    animation: login-dialog-in 0.4s ease both;
}

@keyframes login-dialog-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
}

@media only screen and (max-width: 575px) {
    .login-popup {
        padding: 12px;
    }

    .login-dialog-header,
    .login-dialog-body {
        padding-left: 22px;
        padding-right: 22px;
    }

    .login-dialog-header h2 {
        font-size: 24px;
    }

    .login-page {
        padding: 40px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-popup-backdrop,
    .login-popup .login-dialog {
        transition: none;
    }

    .login-page .login-dialog {
        animation: none;
    }
}

/* ---- Page banner with a photo (ViewData["PageHeaderImage"]) ------------------------------ */

/* Stronger tint than the theme's 20% so the white title stays readable on a real photo. */
.page-header.page-header-photo::before {
    opacity: 55%;
}

.page-header .page-header-box {
    position: relative;
    z-index: 1;
}

/* The banner photo behind just the menu bar (ShopPageHeader: banner on, title strip off). The header takes up its own
   space (solid-header), so the photo is exactly as tall as the menu; darkened like the banners so the menu stands out.
   Once the header sticks to the top on scrolling it's the usual green bar. */
body.photo-header header.main-header {
    background-image: linear-gradient(rgba(11, 61, 44, 0.55), rgba(11, 61, 44, 0.55)), var(--header-photo);
    background-position: center center;
    background-size: cover;
}

/* Interior page banners at about half the theme's height. The top padding clears the
   100px header that sits over the banner; the title is a little smaller to suit. */
.page-header {
    padding: 128px 0 34px;
}

.page-header-box h1 {
    font-size: 46px;
}

@media only screen and (max-width: 991px) {
    .page-header {
        padding: 118px 0 30px;
    }

    .page-header-box h1 {
        font-size: 38px;
    }
}

@media only screen and (max-width: 767px) {
    .page-header-box h1 {
        font-size: 30px;
    }
}

/* ---- Public Downloads page ----------------------------------------------------------------- */

/* Latest Availability: theme-style cards (like the theme's icon boxes), then a dark green email box. */
.downloads-availability {
    padding: 100px 0 0;
}

.availability-item {
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    margin-bottom: 30px;
    padding: 40px 30px;
    background-color: var(--secondary-color);
    border-radius: 40px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.availability-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(11, 61, 44, 0.1);
}

.availability-item .icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--white-color);
    font-size: 28px;
    transition: background-color 0.3s ease-in-out;
}

.availability-item:hover .icon-box {
    background-color: var(--primary-color);
}

.availability-item-content {
    flex: 1;
    margin-bottom: 25px;
}

.availability-item-type {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.availability-item-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.availability-item-content p {
    margin: 0;
}

.availability-cta {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 10px;
    padding: 40px 50px;
    background-color: var(--primary-color);
    border-radius: 40px;
}

/* On the home page, under the product range cards */
.home-availability-cta {
    margin-bottom: 30px;
}

.availability-cta-icon {
    position: relative;
    flex: 0 0 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--white-color);
    font-size: 32px;
}

/* Two green rings rippling out from the icon, one after the other (like the live count's dot): the availability email
   box's envelope, and the shop's order deadline banner's truck. */
.availability-cta-icon::before,
.availability-cta-icon::after,
.shop-notice-icon::before,
.shop-notice-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #6FD07A;   /* the live count dot's green: the brand green barely shows on the dark box */
    pointer-events: none;
    animation: availability-cta-pulse 2.4s ease-out infinite;
}

.availability-cta-icon::after,
.shop-notice-icon::after {
    animation-delay: 1.2s;
}

@keyframes availability-cta-pulse {
    from {
        transform: scale(1);
        opacity: 0.7;
    }
    to {
        transform: scale(1.55);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .availability-cta-icon::before,
    .availability-cta-icon::after,
    .shop-notice-icon::before,
    .shop-notice-icon::after {
        animation: none;
        opacity: 0;
    }
}

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

.availability-cta-content h3 {
    font-size: 26px;
    color: var(--white-color);
    margin-bottom: 8px;
}

.availability-cta-content p {
    color: var(--white-color);
    opacity: 0.85;
    margin: 0;
}

/* Catalogues: the theme's light green band (our-services) with service-item cards. */
.downloads-catalogues .service-image img {
    width: 100%;
    aspect-ratio: 1 / 1.3;   /* a little taller than the theme's 1 / 1.19, to suit portrait covers */
    object-position: top;
}

/* The covers have their own printed titles, so the catalogue name goes under the cover rather
   than over it, and the cover isn't darkened until you hover (when the buttons appear). */
.downloads-catalogues .service-image a::after {
    background: none;
}

.downloads-catalogues .service-item:hover .service-image a::after {
    background: var(--primary-color);
    opacity: 80%;
}

.downloads-catalogues .service-title {
    position: static;
    margin-top: 20px;
    text-align: center;
}

.downloads-catalogues .service-title h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.downloads-catalogues .service-body {
    bottom: auto;
    top: 50%;
    right: 30px;
    text-align: center;
    transform: translateY(-40%);
}

.downloads-catalogues .service-item:hover .service-body {
    bottom: auto;
    transform: translateY(-50%);
}

.downloads-catalogues .catalogue-item-btns {
    justify-content: center;
}

.downloads-catalogues .service-item {
    height: auto;
}

.catalogue-item-btns {
    display: flex;
    align-items: center;
    gap: 15px;
}

.catalogue-item-btns .btn-default {
    margin-right: 20px;
}

.catalogue-download-btn {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white-color);
    font-size: 18px;
    transition: all 0.3s ease-in-out;
}

.catalogue-download-btn:hover,
.catalogue-download-btn:focus {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-color);
}

.catalogues-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.catalogues-footer p {
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
}

@media only screen and (max-width: 991px) {
    .downloads-availability {
        padding: 50px 0 0;
    }

    .availability-cta {
        flex-wrap: wrap;
        padding: 30px;
    }

    .availability-cta-image img {
        max-width: 120px;
    }

    /* No hover on touch screens: show the catalogue buttons all the time, over a light green tint. */
    .downloads-catalogues .service-body {
        transform: translateY(-50%);
        opacity: 1;
    }

    .downloads-catalogues .service-body .service-content {
        display: none;
    }

    .downloads-catalogues .service-image a::after {
        background: var(--primary-color);
        opacity: 35%;
    }
}

@media only screen and (max-width: 575px) {
    .availability-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .catalogues-footer {
        flex-direction: column;
    }
}

/* ---- Customer dashboard (logged-in account area) ---------------------------------------- */

/* One colour per SOPS order status, shared by the stat cards and the status badges. */
.dashboard {
    --status-pending: #D98A12;
    --status-despatched: var(--accent-color);
    --status-invoiced: var(--primary-color);
    --status-cancelled: #B5484B;
    --status-unknown: #8A9A93;

    background-color: var(--secondary-color);
    padding: 50px 0 80px;
}

/* Run the portal background down behind the footer's grass edge (which sits in the 130px gap
   above the footer), so there's no white strip between the portal and the footer. "~" not "+", as the
   admin layout puts its hidden pop-ups (media picker, confirm dialog) between the two. */
.dashboard:has(~ .main-footer) {
    padding-bottom: 210px;
}

.dashboard ~ .main-footer {
    margin-top: 0;
}

.dashboard .status-pending      { --status: var(--status-pending); }
.dashboard .status-despatched   { --status: var(--status-despatched); }
.dashboard .status-invoiced     { --status: var(--status-invoiced); }
.dashboard .status-cancelled    { --status: var(--status-cancelled); }
.dashboard .status-unknown      { --status: var(--status-unknown); }

/* Product category colours for the dashboard cards (same --status mechanism as the badges). */
.dashboard .category-alpines    { --status: #4A7FA7; }
.dashboard .category-herbaceous { --status: var(--accent-color); }
.dashboard .category-bulbs      { --status: #8E5BA8; }

/* Welcome, top left */
.dashboard-welcome {
    margin-bottom: 25px;
}

.dashboard-welcome-kicker {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.dashboard-welcome h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.dashboard-welcome h1 span {
    color: var(--accent-color);
}

.dashboard-welcome-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 25px;
    margin: 0;
}

.dashboard-welcome-meta i {
    color: var(--accent-color);
    margin-right: 6px;
}

/* Left-hand navigation */
.dashboard-nav {
    background-color: var(--white-color);
    border: 1px solid var(--divider-color);
    border-radius: 20px;
    padding: 10px;
    position: sticky;
    top: 120px;   /* clear of the sticky header */
}

.dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: 14px;
    background: none;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.dashboard-nav-link i {
    width: 20px;
    text-align: center;
    color: var(--accent-color);
    transition: color 0.3s ease-in-out;
}

.dashboard-nav-link:hover,
.dashboard-nav-link:focus {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.dashboard-nav-link.active {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.dashboard-nav-link.active i {
    color: var(--white-color);
}

.dashboard-nav-logout {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--divider-color);
}

/* The button that opens the menu on tablets and phones (below): not needed here, where the menu's always showing. */
.dashboard-nav-toggle {
    display: none;
}

/* Page heading (Dashboard, Order History...), full width below the welcome */
.dashboard-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 25px;
    margin-bottom: 25px;
    border-top: 1px solid rgba(11, 61, 44, 0.12);
}

.dashboard-page-header h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0;
}

.dashboard-sample-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--status-pending);
    border: 1px dashed var(--status-pending);
    border-radius: 100px;
    padding: 3px 12px;
    white-space: nowrap;
}

/* Customer dashboard: 30 / 60 / 90 days switch */
.dashboard-period {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    background-color: var(--white-color);
    white-space: nowrap;
}

.dashboard-period a {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    transition: background-color 0.2s, color 0.2s;
}

.dashboard-period a:hover {
    color: var(--primary-color);
}

.dashboard-period a.active {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.dashboard-table-note {
    margin: 15px 0 0;
    font-size: 14px;
}

@media only screen and (max-width: 575px) {
    .dashboard-page-header:has(.dashboard-period) {
        flex-wrap: wrap;
    }

    .dashboard-period a {
        padding: 6px 12px;
    }
}

.dashboard-card {
    background-color: var(--white-color);
    border: 1px solid var(--divider-color);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 30px;
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.dashboard-card-header h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 0;
}

.dashboard-card-link {
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

.dashboard-card-link:hover {
    color: var(--primary-color);
}

.dashboard-empty {
    margin: 0;
}

/* Order status stat cards */
/* Account Details: the company and the login side by side, then the balance, contacts and delivery addresses */
.account-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0 20px;
}

.account-details-address {
    margin: 0;
    font-style: normal;
    line-height: 1.6;
}

.account-details-address strong {
    color: var(--primary-color);
}

.account-details-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.account-details-list li {
    margin-bottom: 6px;
}

.account-details-list i,
.account-details-address i {
    width: 18px;
    color: var(--accent-color);
}

.account-details-note {
    margin: 15px 0 10px;
    font-size: 14px;
}

.account-details-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.account-details-addresses .account-details-address {
    padding: 15px;
    border-radius: 14px;
    background-color: var(--secondary-color);
    border: 1px solid var(--divider-color);
    font-size: 14px;
}

/* Delivery Addresses: the address book (with its search, as the Price List's) and, for Manager logins, each address with its
   links to ask for a change or removal, and the requests the office hasn't dealt with yet */
.account-details-note.delivery-address-link {
    margin: 0 0 15px;
}

.delivery-addresses .delivery-address {
    display: flex;
    flex-direction: column;
}

.delivery-address address {
    margin: 0;
    font-style: normal;
    line-height: 1.6;
}

.delivery-address-pending {
    margin: 10px 0 0;
    font-size: 13px;
    color: #9A640A;
}

.delivery-address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: auto 0 0;
    padding-top: 12px;
    font-size: 13px;
    font-weight: 600;
}

.delivery-address-actions a {
    color: var(--accent-color);
    white-space: nowrap;
}

.delivery-address-actions a:hover {
    color: var(--primary-color);
}

/* Contacts (Manager logins): a contact's card is laid out as an address's, with what's worth knowing about them
   (main contact, has a website login) as small labels */
.contact-card address a {
    color: inherit;
    word-break: break-word;
}

.contact-card address a:hover {
    color: var(--accent-color);
}

.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
}

.contact-badge {
    padding: 2px 10px;
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    background-color: var(--white-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.contact-badge i {
    width: auto;
    margin-right: 3px;
    font-size: 11px;
    color: var(--accent-color);
}

/* Delivery Addresses and Contacts: the pop-up for a request (request-popup.js) - changing an address or a contact, a
   new address or removing one. The same backdrop, rounded white dialog and round icon as the "are you sure?" pop-up,
   with the checkout's boxes. */
.request-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.request-popup[hidden] {
    display: none;
}

.request-popup-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(11, 61, 44, 0.55);
    cursor: default;
    animation: site-confirm-fade 0.15s ease-out;
}

.request-popup-dialog {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 100%;
    overflow-y: auto;
    padding: 30px;
    border-radius: 20px;
    background-color: var(--white-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: site-confirm-pop 0.18s ease-out;
}

.request-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.request-popup-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-right: 50px;   /* clear of the close button */
}

.request-popup-header .request-popup-icon {
    flex: none;
    margin-bottom: 0;
}

.request-popup[data-mode="remove"] .request-popup-icon {
    background-color: #F8E5E5;
    color: #B5484B;
}

.request-popup-header h3 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--primary-color);
}

.request-popup-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.request-popup .shop-alert {
    margin-bottom: 20px;
}

.request-popup .shop-alert ul {
    margin-bottom: 0;
}

.request-popup-field {
    margin-bottom: 18px;
}

.request-popup .form-label {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.request-popup .form-control {
    padding: 12px 16px;
    border: 1px solid var(--divider-color);
    border-radius: 15px;
    font-size: 16px;
    color: var(--primary-color);
    box-shadow: none;
}

.request-popup .form-control:focus {
    border-color: var(--accent-color);
}

.request-popup .form-control.is-invalid {
    border-color: var(--error-color);
}

/* A problem with one of the boxes (the contact form's own errors are pale, for its dark green card) */
.request-popup .contact-field-error {
    margin-top: 6px;
    font-weight: 500;
    color: var(--error-color);
}

/* A box that can't be changed for this item (a contact's email address that's their website login), and why */
.request-popup .form-control:disabled {
    background-color: var(--secondary-color);
    color: var(--text-color);
    cursor: not-allowed;
}

.request-popup-locked-note {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.request-popup-locked-note[hidden] {
    display: none;
}

.request-popup-locked-note i {
    margin-right: 2px;
    color: var(--accent-color);
}

.request-popup-locked-note a {
    font-weight: 600;
    color: var(--accent-color);
}

/* The address a removal is about */
.request-popup .delivery-address-chosen {
    margin-bottom: 18px;
    padding: 15px 18px;
    border-radius: 14px;
    background-color: var(--secondary-color);
    border: 1px solid var(--divider-color);
    font-size: 15px;
}

.request-popup-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 14px;
    margin-top: 6px;
    padding-top: 22px;
    border-top: 1px solid var(--divider-color);
}

.request-popup-actions .site-confirm-cancel {
    display: inline-block;
    line-height: 1.2;
}

body.request-popup-open {
    overflow: hidden;
}

@media only screen and (max-width: 767px) {
    .request-popup {
        padding: 10px;
    }

    .request-popup-dialog {
        padding: 22px 18px;
    }

    .request-popup-close {
        top: 14px;
        right: 14px;
    }

    .request-popup-header {
        align-items: flex-start;
    }

    .request-popup-actions {
        justify-content: stretch;
    }

    .request-popup-actions .site-confirm-cancel,
    .request-popup-actions .btn-default {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .request-popup-backdrop,
    .request-popup-dialog {
        animation: none;
    }
}

/* The addresses wrap, so the table fits without scrolling sideways */
.dashboard-table.delivery-address-requests td {
    white-space: normal;
    vertical-align: top;
}

.dashboard-table.delivery-address-requests td:first-child {
    white-space: nowrap;
}

/* Account balance (Manager logins): one card per account, side by side when there are several */
.dashboard-balances {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0 20px;
}

.dashboard-balance-asat {
    font-size: 13px;
    color: var(--text-color);
}

.dashboard-balance-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}

/* Room for the aged balances under it (Account Details) */
.dashboard-balance-main:has(+ .dashboard-balance-aged) {
    margin-bottom: 18px;
}

.dashboard-balance-aged {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.dashboard-balance-aged div {
    padding: 10px 12px;
    border-radius: 12px;
    background-color: var(--secondary-color);
    border: 1px solid var(--divider-color);
}

.dashboard-balance-aged dt {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.dashboard-balance-aged dd {
    margin: 2px 0 0;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Owed for 30 days or more */
.dashboard-balance-aged div.is-overdue dd {
    color: #9A640A;
}

/* Live from Sage */
.dashboard-balance-asat i {
    margin-right: 4px;
    color: var(--accent-color);
}

/* A line under the heading: refreshing the figures from Sage (account-balance.js), or, quietly, that it couldn't */
.dashboard-balance-status {
    margin: -6px 0 12px;
    font-size: 13px;
    color: var(--text-color);
}

.dashboard-balance-status i {
    margin-right: 5px;
    color: var(--accent-color);
}

.dashboard-balance-status.is-old,
.dashboard-balance-status.is-old i {
    color: #9A640A;   /* as an overdue amount */
}

/* The Data Import's copy, older than SopsCustomerApi:ImportStaleAfterMinutes: amber, as on Make a payment. */
.dashboard-balance.is-stale {
    border-color: #f0c36d;
}

.dashboard-balance-status.is-stale {
    margin: -6px 0 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background-color: #fff6e5;
    color: #7a4b00;
}

.dashboard-balance-status.is-stale i,
.dashboard-balance.is-stale .dashboard-balance-asat i {
    color: #b7791f;
}

.dashboard-balance-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
}

@media only screen and (max-width: 575px) {
    .dashboard-balances {
        grid-template-columns: 1fr;
    }

    .dashboard-balance-aged {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--white-color);
    border: 1px solid var(--divider-color);
    border-left: 5px solid var(--status);
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.dashboard-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(11, 61, 44, 0.08);
}

.dashboard-stat-icon {
    flex: 0 0 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 20px;
    color: var(--status);
    background-color: color-mix(in srgb, var(--status) 12%, transparent);
}

.dashboard-stat-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dashboard-stat-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary-color);
}

.dashboard-stat-label {
    font-size: 14px;
    color: var(--text-color);
}

/* Category name above the figure */
.dashboard-stat-name {
    font-weight: 700;
    color: var(--status);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

/* Several linked customer accounts: combined view, or narrow to one */
.account-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.account-filter-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--divider-color);
    background-color: var(--white-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.account-filter-link i {
    color: var(--accent-color);
}

.account-filter-link:hover {
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.account-filter-link.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-color);
}

.account-filter-link.active i {
    color: var(--white-color);
}

.order-account {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.dashboard-partial-note {
    font-size: 14px;
    color: #9A640A;
    margin-bottom: 10px;
}

.dashboard-partial-note i {
    margin-right: 6px;
}

/* Orders table */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    padding: 10px 12px;
    border-bottom: 1px solid var(--divider-color);
    white-space: nowrap;
}

.dashboard-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--divider-color);
    color: var(--primary-color);
    white-space: nowrap;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-table tbody tr:hover td {
    background-color: var(--secondary-color);
}

.order-status {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 100px;
    color: var(--status);
    background-color: color-mix(in srgb, var(--status) 12%, transparent);
}

/* "Coming soon" placeholders */
.dashboard-filter-note {
    margin-bottom: 15px;
}

.dashboard-filter-note i {
    color: var(--accent-color);
    margin-right: 6px;
}

.dashboard-placeholder {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed var(--divider-color);
    border-radius: 16px;
}

.dashboard-placeholder > i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.dashboard-placeholder h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.dashboard-placeholder p {
    max-width: 480px;
    margin: 0 auto;
}

/* Order History (Pages/Account/Orders) and one order (Pages/Account/Order) */
.order-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
}

.order-filter {
    flex: 1 1 140px;
}

.order-filter-search {
    flex: 2 1 220px;
}

.order-filter .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.order-filter-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-filter-actions .btn-default {
    padding-top: 11px;
    padding-bottom: 11px;
}

.order-filter-clear {
    font-weight: 600;
    color: var(--accent-color);
}

.order-count {
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
}

.order-link {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent-color) 50%, transparent);
    text-underline-offset: 3px;
}

.order-link:hover {
    color: var(--accent-color);
}

/* Orders placed on the website: grey globe while the office hasn't picked them up, blue once it has. */
.order-web-number {
    font-weight: 700;
    color: var(--primary-color);
}

.order-web-icon {
    margin-left: 6px;
    font-size: 0.9em;
    cursor: help;
}

.order-web-icon.is-pending {
    color: var(--status-unknown);
}

.order-web-icon.is-downloaded {
    color: #2B7BB9;
}

.order-web-key {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--text-color);
}

.order-web-key .order-web-icon {
    margin: 0 4px 0 0;
    cursor: default;
}

.order-invoice-link {
    display: inline-block;
    padding: 2px 8px;
    font-size: 18px;
    color: var(--accent-color);
}

.order-invoice-link:hover {
    color: var(--primary-color);
}

.order-pager {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    font-weight: 600;
}

.order-pager a {
    color: var(--accent-color);
}

.order-pager a:hover {
    color: var(--primary-color);
}

.order-pager-older {
    margin-left: auto;
}

/* "Page 2 of 7", centred between the newer and older links (whichever are there) */
.order-pager {
    position: relative;
}

.order-pager-page {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

@media only screen and (max-width: 575px) {
    .order-pager {
        flex-wrap: wrap;
    }

    .order-pager-page {
        position: static;
        order: -1;
        width: 100%;
        transform: none;
        text-align: center;
    }
}

.dashboard-card-header h3 .order-status,
.dashboard-card-header h3 .order-account {
    vertical-align: middle;
    margin-right: 8px;
}

.order-invoice-button {
    white-space: nowrap;
}

.order-invoice-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
}

.order-invoice-view {
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

.order-invoice-view:hover {
    color: var(--primary-color);
}

/* The invoice PDF itself, an A4 page tall */
.order-invoice-preview {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.3;
    min-height: 600px;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    background-color: var(--secondary-color);
}

@media only screen and (max-width: 767px) {
    .order-invoice-preview {
        display: none;
    }

    .order-invoice .dashboard-card-header {
        flex-wrap: wrap;
    }
}

.order-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}

.order-details dl,
.order-totals {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 25px;
    margin: 0;
}

.order-details dt,
.order-totals dt {
    font-weight: 600;
    color: var(--primary-color);
}

.order-details dd,
.order-totals dd {
    margin: 0;
}

.order-address h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.order-address p {
    margin: 0;
}

.order-lines-table td.order-line-description {
    white-space: normal;
    min-width: 220px;
}

/* Product thumbnail beside the description (the shop's photo) */
.order-line-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-line-photo {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.order-line-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.order-line-photo.is-none {
    display: flex;
    align-items: center;
    justify-content: center;
    color: color-mix(in srgb, var(--accent-color) 40%, transparent);
}

.order-line-note {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
}

/* Totals under the lines, on the right */
.order-totals {
    width: max-content;
    margin: 20px 0 0 auto;
    text-align: right;
}

.order-totals .order-totals-gross {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

/* The invoice link's word is for screen readers only, except on the phone cards below. */
.order-invoice-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media only screen and (max-width: 767px) {
    .order-details {
        grid-template-columns: 1fr;
    }

    .dashboard-card-header:has(.order-invoice-button) {
        flex-wrap: wrap;
    }

    .order-totals {
        width: 100%;
    }
}

/* The order tables' wrappers: their own width, not the screen's, decides when the rows become cards. */
.order-table-wrap {
    container: order-table / inline-size;
}

/* Long store names and PO numbers wrap, and the cells are a little tighter, so the table fits beside the menu. */
.order-history-table th,
.order-history-table td {
    padding-left: 8px;
    padding-right: 8px;
}

.order-history-table td.order-card-wide,
.order-history-table td.order-card-po {
    white-space: normal;
    min-width: 110px;
    overflow-wrap: anywhere;
}

/* Below this the table (about 740px at its narrowest) wouldn't fit, so it becomes cards. */
@container order-table (max-width: 779px) {
    /* Narrow tables (phones, tablets and the narrower desktop layout): each order, and each line of an order, becomes a small card,
       as Retail Prices does - the order number and status along the top, then the other details side by side with their labels (from data-label). */
    .order-history-table,
    .order-history-table tbody,
    .order-lines-table,
    .order-lines-table tbody {
        display: block;
        width: 100%;
    }

    .order-history-table thead,
    .order-lines-table thead {
        display: none;
    }

    .dashboard-table tr.order-card {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 8px;
        padding: 14px 0;
        border-bottom: 1px solid var(--divider-color);
    }

    .dashboard-table tbody tr.order-card:last-child {
        border-bottom: none;
    }

    .dashboard-table tr.order-card td,
    .dashboard-table tbody tr.order-card:hover td {
        padding: 0;
        border: none;
        background-color: transparent;
        white-space: normal;
        text-align: left !important;   /* over Bootstrap's .text-end / .text-center */
    }

    .dashboard-table tr.order-card td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-color);
    }

    .dashboard-table tr.order-card td.order-card-value {
        font-weight: 600;
    }

    .dashboard-table tr.order-card td.order-card-wide {
        grid-column: 1 / -1;
    }

    /* Order History: the order number (big, unlabelled) and status first, side by side. */
    .order-history-table td.order-card-number {
        grid-column: 1 / 3;
        order: -2;
        font-size: 18px;
    }

    .order-history-table td.order-card-number::before,
    .order-history-table td.order-card-account::before,
    .order-history-table td.order-card-status::before {
        display: none !important;
    }

    /* All accounts shown: the account's badge goes between the number and the status. */
    .order-history-table tr:has(.order-card-account) td.order-card-number {
        grid-column: auto;
    }

    .order-history-table td.order-card-account {
        order: -2;
        align-self: center;
    }

    .order-history-table td.order-card-status {
        order: -1;
        align-self: center;
        text-align: right !important;
    }

    /* The store across the bottom, under the PO, date and total. */
    .order-history-table td.order-card-wide {
        order: 1;
    }

    .order-history-table td.order-card-invoice {
        grid-column: 1 / -1;
        order: 2;
    }

    .order-history-table td.order-card-invoice.is-empty {
        display: none;
    }

    .order-history-table .order-invoice-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 14px;
        border: 1px solid var(--divider-color);
        border-radius: 100px;
        font-size: 14px;
        font-weight: 600;
    }

    .order-history-table .order-invoice-text {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }

    /* Order lines: the product code, then its description across the card. */
    .order-lines-table td.order-card-code {
        grid-column: 1 / -1;
        font-size: 13px;
        color: var(--text-color);
    }

    .order-lines-table td.order-line-description {
        min-width: 0;
        margin-top: -4px;
        font-weight: 600;
    }

    .order-lines-table .order-line-photo {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }
}

/* Retail Prices: the labelling details customers can ask to change */
.special-prices-updated {
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
}

.special-prices-intro {
    margin-bottom: 15px;
}

/* How to fill in an RRP or multibuy: the Retail Prices page and the shop's confirm page. */
.label-details-guidance {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--secondary-color);
    font-size: 14px;
}

.label-details-guidance p {
    margin: 0 0 4px;
}

.label-details-guidance ul {
    margin: 0;
    padding-left: 22px;
}

.special-prices-table th {
    padding: 10px 6px;   /* the same sides as the cells, so the headings line up with their columns */
    white-space: normal;
}

/* The column headings stay at the top (below the site header, when it's showing) while scrolling down the
   prices. Sticky needs the wrapper not to be a scroll box; the table fits without one on wider screens. */
@media only screen and (min-width: 768px) {
    .special-prices .table-responsive {
        overflow: visible;
    }

    .special-prices-table thead th {
        position: sticky;
        top: var(--sticky-header-offset, 0px);
        z-index: 2;
        background-color: var(--white-color);
        border-bottom: none;
        box-shadow: inset 0 -1px 0 var(--divider-color);   /* a collapsed border would scroll away */
        transition: top 0.3s ease-in-out;
    }
}

.special-prices-table td {
    padding: 8px 6px;
    vertical-align: middle;
}

.special-prices-table input {
    min-width: 72px;
}

/* A sales group's heading, with its special prices underneath */
.special-prices-table .special-prices-group th {
    padding: 18px 6px 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
}

.special-prices-table tbody tr.special-prices-group:hover th {
    background-color: transparent;
}

.special-prices-table tr.has-error input {
    border-color: #A12C2C;
}

.special-prices-table .special-prices-note td {
    padding-top: 0;
    font-size: 13px;
    color: #9A640A;
    white-space: normal;
}

.special-prices-table .special-prices-note.is-error td {
    color: #A12C2C;
}

.special-prices-table tr:has(+ .special-prices-note) td {
    border-bottom: none;
}

.special-prices-table tbody tr.special-prices-note:hover td {
    background-color: transparent;
}

.special-prices-submit {
    margin-top: 20px;
}

.special-prices-submit textarea {
    margin-bottom: 15px;
}

/* Phones: each special price becomes a small card - its prices on one line, then the boxes with their own labels
   (from data-label): the barcode across the full width, then RRP, multibuy and multibuy RRP side by side. */
@media only screen and (max-width: 767px) {
    .special-prices-table,
    .special-prices-table tbody,
    .special-prices-table tr,
    .special-prices-table th,
    .special-prices-table td {
        display: block;
        width: 100%;
    }

    .special-prices-table thead {
        display: none;
    }

    .special-prices-table tr.special-prices-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 8px;
        padding: 12px 0;
        border-bottom: 1px solid var(--divider-color);
    }

    .special-prices-table tbody tr.special-prices-row:last-child,
    .special-prices-table tr.special-prices-row:has(+ .special-prices-note) {
        border-bottom: none;
    }

    .special-prices-table tr.special-prices-row td,
    .special-prices-table tbody tr.special-prices-row:hover td {
        padding: 0;
        border: none;
        background-color: transparent;
        white-space: normal;
    }

    .special-prices-table td.special-prices-value {
        text-align: left !important;   /* over Bootstrap's .text-end */
        font-weight: 600;
    }

    .special-prices-table td.is-barcode {
        grid-column: 1 / -1;
    }

    .special-prices-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-color);
    }

    .special-prices-table input {
        min-width: 0;
        width: 100%;
        font-size: 16px;   /* stops iPhones zooming in on the box */
    }

    .special-prices-table .special-prices-group th {
        padding: 18px 0 8px;
    }

    .special-prices-table .special-prices-note td {
        padding: 0 0 12px;
        border-bottom: 1px solid var(--divider-color);
    }
}

/* Price List: the products on the customer's special prices, by sales group */
.price-list-count {
    font-size: 13px;
    color: var(--text-color);
}

.price-list-intro {
    margin-bottom: 15px;
}

.price-list-search {
    margin-bottom: 20px;
}

.price-list-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 15px;
    margin-bottom: 15px;
}

/* While the PDF is being made (pdf-download.js) */
.price-list-actions .btn-default.is-busy {
    opacity: 0.75;
    cursor: progress;
}

.price-list-pdf-status {
    font-size: 14px;
    color: var(--text-color);
}

.price-list-table td {
    padding: 8px 6px;
    vertical-align: middle;
}

.price-list-table .price-list-group th {
    padding: 18px 6px 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
}

.price-list-table tbody tr.price-list-group:hover th {
    background-color: transparent;
}

.price-list-table .price-list-code {
    white-space: nowrap;
}

.price-list-table .price-list-price {
    font-weight: 600;
    white-space: nowrap;
}

/* Tablets and phones: the menu goes above the content, behind a button. */
@media only screen and (max-width: 991px) {
    .dashboard {
        padding: 30px 0 60px;
    }

    /* The footer's grass gap is 100px at this size. */
    .dashboard:has(~ .main-footer) {
        padding-bottom: 160px;
    }

    .dashboard-welcome h1 {
        font-size: 30px;
    }

    /* The menu is closed behind a button naming the page they're on (_DashboardNavToggle, dashboard-nav.js), which
       opens it underneath - rather than a strip of links to scroll sideways. */
    .dashboard-nav {
        position: static;
        margin-bottom: 25px;
        padding: 6px;
    }

    .dashboard-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 12px 16px;
        border: none;
        border-radius: 14px;
        background: none;
        font-size: 16px;
        font-weight: 600;
        text-align: left;
        color: var(--primary-color);
    }

    .dashboard-nav-current {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }

    .dashboard-nav-current i {
        flex: none;
        width: 20px;
        text-align: center;
        color: var(--accent-color);
    }

    .dashboard-nav-current span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-nav-more {
        display: flex;
        flex: none;
        align-items: center;
        gap: 8px;
        padding: 5px 12px;
        border: 1px solid var(--divider-color);
        border-radius: 100px;
        font-size: 13px;
        color: var(--primary-color);
        transition: all 0.3s ease-in-out;
    }

    .dashboard-nav-more .dashboard-nav-badge {
        margin-left: 0;
    }

    .dashboard-nav-more .fa-chevron-down {
        font-size: 11px;
        color: var(--accent-color);
        transition: transform 0.2s ease-in-out;
    }

    .dashboard-nav.is-open .dashboard-nav-more {
        background-color: var(--secondary-color);
    }

    .dashboard-nav.is-open .dashboard-nav-more .fa-chevron-down {
        transform: rotate(180deg);
    }

    .dashboard-nav-links {
        display: none;
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid var(--divider-color);
    }

    .dashboard-nav.is-open .dashboard-nav-links {
        display: block;
    }

    .dashboard-nav-link {
        padding: 12px 16px;
    }

    .dashboard-nav-logout {
        margin-top: 6px;
        padding-top: 6px;
    }

    .dashboard-card {
        padding: 20px;
    }
}

/* Tablets: the open menu is two links across, so it isn't so tall. (After the rules above, which it adds to.) */
@media only screen and (min-width: 576px) and (max-width: 991px) {
    .dashboard-nav.is-open .dashboard-nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 6px;
    }

    .dashboard-nav-links .dashboard-nav-logout {
        grid-column: 1 / -1;
    }
}

/* Phones: compact stat cards, three across. */
@media only screen and (max-width: 575px) {
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
        gap: 10px;
    }

    .dashboard-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }

    .dashboard-stat-icon {
        flex-basis: auto;
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .dashboard-stat-value {
        font-size: 26px;
    }

    .dashboard-stat {
        padding: 12px;
    }

    /* Fit "HERBACEOUS" in a third of a phone screen. */
    .dashboard-stat-name {
        font-size: 11px;
        letter-spacing: 0;
    }

    .dashboard-stat-label {
        font-size: 12px;
    }
}

/* Home page "How Our Ordering Process Works": five steps (PageDefinitions.OrderingStepCount) rather than the theme's
   four - five across on computers, three then two on tablets, and the theme's two a row on phones. The dashed line
   from each number to the next is sized to the column rather than the theme's fixed 255px. */
.how-it-work .how-work-item {
    width: calc(20% - 24px);   /* 4 gaps of 30px shared by 5 */
}

.how-it-work .work-process-no::before {
    width: calc(100% - 45px);   /* from the number to just short of the next one */
}

@media only screen and (max-width: 991px) {
    .how-it-work .how-work-item {
        width: calc(33.333% - 20px);   /* 2 gaps of 30px shared by 3 */
    }

    /* No line off the end of a row */
    .how-it-work .how-work-item:nth-child(3n) .work-process-no::before {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .how-it-work .how-work-item {
        width: calc(50% - 15px);
    }
}

/* The availability box's two rippling green rings, passed along the step numbers with the dashed line lighting up
   between them: each number ripples, then the line to the next number traces across in green, then that number
   ripples, and so on to 5. The lit lines stay lit until the end, then fade and it all starts again (one 10s cycle, 2s
   a step). They start when the steps are scrolled to: function.js adds "is-in-view" to the box then, and everything
   waits 1.5s for the box's fade-in (WOW.js, 0.5s delay) to finish. */
.how-it-work .work-process-no h3 {
    position: relative;
}

.how-it-work .work-process-no h3::before,
.how-it-work .work-process-no h3::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #6FD07A;
    opacity: 0;
    pointer-events: none;
}

.how-it-work .how-work-process-box.is-in-view .work-process-no h3::before,
.how-it-work .how-work-process-box.is-in-view .work-process-no h3::after {
    animation: how-work-step-pulse 10s ease-out infinite;
}

.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(1) .work-process-no h3::before { animation-delay: 1.5s; }
.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(2) .work-process-no h3::before { animation-delay: 3.5s; }
.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(3) .work-process-no h3::before { animation-delay: 5.5s; }
.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(4) .work-process-no h3::before { animation-delay: 7.5s; }
.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(5) .work-process-no h3::before { animation-delay: 9.5s; }
.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(1) .work-process-no h3::after { animation-delay: 2.3s; }
.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(2) .work-process-no h3::after { animation-delay: 4.3s; }
.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(3) .work-process-no h3::after { animation-delay: 6.3s; }
.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(4) .work-process-no h3::after { animation-delay: 8.3s; }
.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(5) .work-process-no h3::after { animation-delay: 10.3s; }

/* A ring takes 1.2s (12% of the cycle) to spread and fade, then waits for its turn to come round again */
@keyframes how-work-step-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    12%, 100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* The lit line: a bolder green, glowing copy of the dashed line (custom.css .work-process-no::before) laid over it,
   hidden until it's revealed from the left. Not on the last step, at the end of a row, or on phones, as the line isn't. */
.how-it-work .work-process-no::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50px;
    width: calc(100% - 45px);
    height: 3px;
    transform: translateY(-50%);
    border-top: 3px dashed #6FD07A;
    filter: drop-shadow(0 0 3px rgba(111, 208, 122, 0.8));
    clip-path: inset(0 100% 0 0);
    pointer-events: none;
}

.how-it-work .how-work-item:last-child .work-process-no::after {
    display: none;
}

@media only screen and (max-width: 991px) {
    .how-it-work .how-work-item:nth-child(3n) .work-process-no::after {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .how-it-work .work-process-no::after {
        display: none;
    }
}

.how-it-work .how-work-process-box.is-in-view .work-process-no::after {
    animation: 10s linear 1.5s infinite;
}

/* Line n traces for 1.1s, from 0.7s after number n starts rippling, and arrives 0.2s before number n+1 ripples (each step is 20% of the cycle) */
.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(1) .work-process-no::after { animation-name: how-work-line-1; }
.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(2) .work-process-no::after { animation-name: how-work-line-2; }
.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(3) .work-process-no::after { animation-name: how-work-line-3; }
.how-it-work .how-work-process-box.is-in-view .how-work-item:nth-child(4) .work-process-no::after { animation-name: how-work-line-4; }

@keyframes how-work-line-1 {
    0%, 7% { clip-path: inset(0 100% 0 0); opacity: 1; }
    18%, 94% { clip-path: inset(0 0 0 0); opacity: 1; }
    100% { clip-path: inset(0 0 0 0); opacity: 0; }
}

@keyframes how-work-line-2 {
    0%, 27% { clip-path: inset(0 100% 0 0); opacity: 1; }
    38%, 94% { clip-path: inset(0 0 0 0); opacity: 1; }
    100% { clip-path: inset(0 0 0 0); opacity: 0; }
}

@keyframes how-work-line-3 {
    0%, 47% { clip-path: inset(0 100% 0 0); opacity: 1; }
    58%, 94% { clip-path: inset(0 0 0 0); opacity: 1; }
    100% { clip-path: inset(0 0 0 0); opacity: 0; }
}

@keyframes how-work-line-4 {
    0%, 67% { clip-path: inset(0 100% 0 0); opacity: 1; }
    78%, 94% { clip-path: inset(0 0 0 0); opacity: 1; }
    100% { clip-path: inset(0 0 0 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .how-it-work .how-work-process-box.is-in-view .how-work-item .work-process-no h3::before,
    .how-it-work .how-work-process-box.is-in-view .how-work-item .work-process-no h3::after,
    .how-it-work .how-work-process-box.is-in-view .how-work-item .work-process-no::after {
        animation: none;
    }
}

/* Home page section flow.
   The Products (our-services) section's bottom wave is drawn in white to blend into a white section,
   but on our home page it's followed by the dark green How It Works section. Re-colour the same wave
   shape to the dark green by using the SVG as a mask, so the two sections join seamlessly. */
.our-services + .how-it-work {
    margin-top: 0;
}

.our-services:has(+ .how-it-work)::after {
    background: var(--primary-color);
    -webkit-mask: url('../images/service-bottom-bg.svg') no-repeat bottom center / cover;
    mask: url('../images/service-bottom-bg.svg') no-repeat bottom center / cover;
}

/* The footer's top scene (footer-top-bg.svg, 1920x129) is drawn "cover" into a fixed-height strip, so on
   screens wider than about 1965px it scaled up past the strip and lost its ground off the bottom. Let the
   strip grow with the width there (129/1920 = 6.72vw) and sit it on the footer, so the whole scene shows;
   narrower screens keep the theme's 132px (100px below 992px), cropping the scene's ends as before. */
.main-footer::after {
    top: auto;
    bottom: calc(100% - 2px);
    height: max(132px, 6.72vw);
}

@media only screen and (max-width: 991px) {
    .main-footer::after {
        height: 100px;
    }
}

/* A light green band (our-services, e.g. Downloads > Catalogues) directly above the footer: drop its
   white bottom grass edge (meant for blending into a white section) and run the light green down
   behind the footer's dark grass instead, so there's no white outline or strip above the footer. */
.our-services:has(+ .main-footer) {
    padding-bottom: 250px;    /* the theme's 120px + the footer's 130px grass gap */
}

.our-services:has(+ .main-footer)::after {
    display: none;
}

.our-services + .main-footer {
    margin-top: 0;
}

@media only screen and (max-width: 991px) {
    .our-services:has(+ .main-footer) {
        padding-bottom: 200px;    /* 100px + the footer's 100px grass gap at this size */
    }
}

/* FAQs and Blog are both white, so Blog gets the light green band (with the same grass
   top edge as Product Range) to separate them. It runs down behind the footer's dark grass
   edge, so there's no white strip between Blog and the footer. */
.our-faqs + .our-blog {
    position: relative;
    background-color: var(--secondary-color);
    margin-top: 130px;
    padding: 100px 0 230px;
}

.our-faqs + .our-blog::before {
    content: '';
    position: absolute;
    top: -130px;
    left: 0;
    right: 0;
    width: 100%;
    height: 132px;
    background: url('../images/service-top-bg.svg') no-repeat top center / cover;
}

.our-faqs + .our-blog + .main-footer {
    margin-top: 0;
}

/* Faded background title: use the theme's light-green-band variant (same as .dark-bg-1). */
.our-faqs + .our-blog .section-bg-title span {
    color: var(--secondary-color);
    background: -webkit-linear-gradient(270deg, rgba(11, 61, 44, 0.08) 68.79%, rgba(11, 61, 44, 0.016) 91%);
    -webkit-background-clip: text;
}

@media only screen and (max-width: 991px) {
    .our-faqs + .our-blog {
        margin-top: 100px;
        padding: 50px 0 150px;
    }

    .our-faqs + .our-blog::before {
        top: -98px;
        height: 100px;
    }
}

/* Home page video hero: plain white behind the video while it loads (instead of the theme's
   green + photo). The green fade on the left stays, so the white heading is readable from the start. */
.hero.hero-video {
    background: var(--white-color, #fff);
}

/* Rotating badge in the top right of the home page hero, over the video
   (same image and rotation as the How It Works section). */
.hero .container {
    position: relative;
}

.hero-circle-img {
    position: absolute;
    top: -80px;
    right: 80px;
    z-index: 2;
    pointer-events: none;
}

/* The badge itself links to the shop; only the space around it lets clicks through to the video. */
.hero-circle-img a {
    display: block;
    border-radius: 50%;
    pointer-events: auto;
}

.hero-circle-img img {
    display: block;
    width: 160px;
    height: auto;
    animation: workrotate 30s infinite linear;
    /* Soft outer glow so the green edge stands out against darker parts of the video.
       drop-shadow follows the round badge (not its square image), and being centred it
       looks the same however far it has rotated. */
    /* filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.3)); */
}

@media only screen and (max-width: 1199px) {
    .hero-circle-img img {
        width: 130px;
    }
}

/* Hidden on tablets and phones, where it would sit on top of the heading. */
@media only screen and (max-width: 991px) {
    .hero-circle-img {
        display: none;
    }
}

/* About Us section (home and About pages): no decorative shape behind the photos on phones */
@media only screen and (max-width: 767px) {
    .about-image {
        background-image: none;
    }
}

/* "Ready to place your order?" box under the hero: rounded all round (the theme squares off its bottom where it sits
   on the strip's bottom edge), and lifted off that edge so the rounded corners have room. */
.customer-consultation-box {
    bottom: 30px;
    border-radius: 40px;
}

@media only screen and (max-width: 767px) {
    /* In the page's flow on phones rather than overlapping the hero */
    .customer-consultation-box {
        margin-bottom: 25px;
        border-radius: 30px;
    }
}

/* "2,990 products available to order now" above the hero's headline: a frosted green pill over the video, with a
   gently pulsing dot to say the number is live. Links to the shop. */
.live-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px 18px 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 100px;
    background-color: rgba(11, 61, 44, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--white-color);
    transition: all 0.3s ease-in-out;
}

.live-count-pill:hover,
.live-count-pill:focus-visible {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--white-color);
}

.live-count-pill-dot {
    position: relative;
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #6FD07A;
}

.live-count-pill-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: inherit;
    animation: live-count-pulse 2s ease-out infinite;
}

@keyframes live-count-pulse {
    from {
        transform: scale(1);
        opacity: 0.7;
    }
    to {
        transform: scale(2.6);
        opacity: 0;
    }
}

@media only screen and (max-width: 575px) {
    .live-count-pill {
        margin-bottom: 16px;
        padding: 7px 14px 7px 12px;
        font-size: 13px;
    }
}

/* The smaller copy under the first ordering step ("Check Availability"), linking on to the shop */
.live-count-pill.live-count-pill-sm {
    gap: 8px;
    margin: 18px 0 0;
    padding: 6px 13px 6px 11px;
    font-size: 13px;
    white-space: nowrap;
}

.live-count-pill-sm .live-count-pill-dot {
    width: 8px;
    height: 8px;
}

/* The narrowest columns (five across on smaller laptops, two across on phones): a little smaller to fit */
@media only screen and (min-width: 992px) and (max-width: 1199px), only screen and (max-width: 575px) {
    .live-count-pill.live-count-pill-sm {
        gap: 7px;
        padding: 5px 11px 5px 10px;
        font-size: 12px;
    }

    /* "2,990 varieties": "available varieties" doesn't fit these columns */
    .live-count-pill-word {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-count-pill-dot::after {
        animation: none;
    }
}

/* Home page blog: a list of articles, each with a thumbnail on the left. */
.blog-list-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(11, 61, 44, 0.1);
}

.blog-list-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.blog-list-image {
    flex: 0 0 280px;
}

.blog-list-image a {
    display: block;
    border-radius: 20px;
}

.blog-list-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s ease-in-out;
}

.blog-list-item:hover .blog-list-image img {
    transform: scale(1.06);
}

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

.blog-list-content .article-meta {
    margin-bottom: 10px;
}

.blog-list-content .article-content {
    margin-bottom: 15px;
}

.blog-list-content .article-content h2 {
    margin-bottom: 10px;
}

.blog-list-content .article-content h2 a:hover {
    color: var(--accent-color);
}

.blog-list-readmore {
    font-weight: 700;
    text-transform: capitalize;
    color: var(--accent-color);
    transition: color 0.3s ease-in-out;
}

.blog-list-readmore i {
    margin-left: 6px;
    transition: transform 0.3s ease-in-out;
}

.blog-list-readmore:hover {
    color: var(--primary-color);
}

.blog-list-readmore:hover i {
    transform: translateX(4px);
}

@media only screen and (max-width: 991px) {
    .blog-list-image {
        flex-basis: 220px;
    }
}

/* Phones: keep the thumbnail on the left, just smaller and square. */
@media only screen and (max-width: 767px) {
    .blog-list-item {
        align-items: flex-start;
        gap: 15px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .blog-list-image {
        flex-basis: 110px;
    }

    .blog-list-image a {
        border-radius: 12px;
    }

    .blog-list-image img {
        aspect-ratio: 1 / 1;
    }

    .blog-list-content .article-meta ul li {
        font-size: 14px;
        margin-right: 10px;
    }

    .blog-list-content .article-content h2 {
        font-size: 18px;
    }
}

/* The theme's magic cursor has been removed, so restore the native pointer
   on the elements where custom.css hid it for the cursor's "View"/"Drag" labels. */
.video-play-button a,
.work-item,
.work-image a,
.highlighted-article-featured-img a,
.post-featured-image a,
.project-gallery a {
    cursor: pointer;
}

.testimonial-slider .swiper-wrapper {
    cursor: grab;
}

.contact-now-box-content h3 a,
.footer-info-box p a {
    color: inherit;
}

/* Footer's bottom links (privacy policy, terms of sale...): smaller than the body text, a little closer together. */
.footer-privacy-policy ul li {
    margin-right: 24px;
    font-size: 14px;
}

.footer-privacy-policy ul li:last-child {
    margin-right: 0;
}

/* The company registration line, small and quieter, under the copyright notice. */
.footer-copyright-text p.footer-company-registration {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.7;
}

/* ---- Admin area (uses the customer dashboard layout styles above) ------------------------ */

.admin-dashboard .admin-stat-total     { --status: var(--primary-color); }
.admin-dashboard .admin-stat-customers { --status: var(--accent-color); }
.admin-dashboard .admin-stat-admins    { --status: #2F7FA3; }
.admin-dashboard .admin-stat-pending   { --status: #D98A12; }
.admin-dashboard .admin-stat-locked    { --status: #B5484B; }

.dashboard-welcome-kicker i {
    margin-right: 6px;
}

.dashboard-page-header .btn-default {
    margin-right: 20px;
}

/* Success / error messages after an action */
.admin-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.admin-alert-success {
    background-color: color-mix(in srgb, var(--accent-color) 12%, white);
    color: var(--primary-color);
}

.admin-alert-success i {
    color: var(--accent-color);
}

.admin-alert-error {
    background-color: #FBEAEA;
    color: #8E2F32;
}

.admin-alert-error ul {
    margin: 0;
    padding-left: 18px;
}

.admin-alert-error.validation-summary-valid {
    display: none;
}

/* A link to part of an admin page (e.g. /admin/downloads#catalogue-…) stops below the sticky header. */
.admin-dashboard [id] {
    scroll-margin-top: 120px;
}

/* The "saved" message, popped up where you are when the page keeps your place (admin-scroll.js). */
.admin-flash-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
    max-width: min(460px, calc(100vw - 32px));
    margin: 0;
    box-shadow: 0 10px 30px rgba(11, 61, 44, 0.18);
    animation: admin-flash-in 0.3s ease-out;
    transition: opacity 0.3s, transform 0.3s;
}

.admin-flash-toast.is-leaving {
    opacity: 0;
    transform: translateY(10px);
}

.admin-flash-close {
    margin-left: auto;
    padding: 0 0 0 10px;
    border: 0;
    background: none;
    color: inherit;
    opacity: 0.7;
}

.admin-flash-close:hover {
    opacity: 1;
}

@keyframes admin-flash-in {
    from { opacity: 0; transform: translateY(10px); }
}

@media only screen and (max-width: 575px) {
    .admin-flash-toast {
        right: 16px;
        left: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-flash-toast {
        animation: none;
        transition: none;
    }
}

/* Download activity figures (dashboard) */
.admin-activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.admin-activity-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 15px;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid var(--divider-color);
    border-radius: 16px;
}

.admin-activity-stat i {
    grid-row: span 2;
    font-size: 22px;
    color: var(--accent-color);
}

.admin-activity-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

.admin-activity-stat-label {
    font-size: 14px;
}

/* User table */
.admin-user-table td {
    white-space: normal;
    vertical-align: middle;
}

.admin-user-name {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
}

.admin-user-name:hover {
    color: var(--accent-color);
}

.admin-user-email {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    word-break: break-all;
}

.admin-muted {
    color: var(--text-color);
    opacity: 0.6;
}

.admin-row-link {
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

.admin-row-link:hover {
    color: var(--primary-color);
}

.admin-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 100px;
    white-space: nowrap;
    color: var(--badge);
    background-color: color-mix(in srgb, var(--badge) 12%, transparent);
}

.admin-badge-admin    { --badge: #2F7FA3; }
.admin-badge-customer { --badge: var(--accent-color); }
.admin-badge-other    { --badge: #6B7C74; }
.admin-badge-active   { --badge: var(--accent-color); }
.admin-badge-pending  { --badge: #C07A0C; }
.admin-badge-locked   { --badge: #B5484B; }

/* Search, filters, paging */
.admin-search {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.admin-search-box {
    position: relative;
    flex: 1;
}

.admin-search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
}

.admin-search-box .form-control,
.admin-form .form-control {
    padding: 12px 18px;
    border: 1px solid var(--divider-color);
    border-radius: 14px;
    box-shadow: none;
    color: var(--primary-color);
}

.admin-search-box .form-control {
    padding-left: 45px;
}

.admin-search-box .form-control:focus,
.admin-form .form-control:focus {
    border-color: var(--accent-color);
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.admin-filter {
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid var(--divider-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.admin-filter:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.admin-filter.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-color);
}

/* The line above the product pages listed below the separator (ProductPage.BelowSeparator): in the Products menu
   (_Header.cshtml), the mobile menu SlickNav copies from it, and the list down the side of product pages. */
.main-menu ul ul li.nav-separator {
    height: 1px;
    margin: 6px 20px;
    background-color: rgba(255, 255, 255, 0.35);
}

.slicknav_nav li.nav-separator {
    height: 1px;
    margin: 6px 20px;
    background-color: rgba(255, 255, 255, 0.35);
}

.page-product .service-catagery-list ul li.product-list-separator {
    height: 1px;
    margin: 4px 10px 14px;
    background-color: var(--divider-color);
}

/* Admin > Product page order: the heading row above the pages listed below the separator */
.admin-product-separator-row td {
    padding-top: 18px;
    border-top: 2px dashed var(--divider-color);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-color);
}

/* Pages: the "Editable pages" and "Product pages" tabs (Admin/Content/Index.cshtml) */
.admin-page-tabs .admin-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    font-size: 15px;
}

.admin-page-tab-count {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 100px;
    background-color: var(--secondary-color);
    font-size: 12px;
    text-align: center;
    color: var(--primary-color);
}

.admin-filter.active .admin-page-tab-count {
    background-color: var(--white-color);
}

.admin-result-count {
    font-size: 14px;
    margin-bottom: 10px;
}

.admin-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
    font-weight: 600;
}

.admin-pager a {
    color: var(--accent-color);
}

/* User details */
.admin-user-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--divider-color);
}

.admin-user-avatar {
    flex: 0 0 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    font-size: 26px;
}

.admin-user-summary-text {
    flex: 1;
    min-width: 0;
}

.admin-user-summary-text h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.admin-user-summary-text p {
    margin-bottom: 8px;
    word-break: break-all;
}

.admin-impersonate-form .btn-default i {
    margin-right: 6px;
}

.admin-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px 30px;
    margin: 0;
}

.admin-facts dt {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.admin-facts dd {
    margin: 2px 0 0;
    color: var(--primary-color);
}

.admin-mono {
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    word-break: break-all;
}

.admin-actions {
    display: flex;
    flex-direction: column;
}

.admin-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    margin: 0;
    border-bottom: 1px solid var(--divider-color);
}

.admin-action:last-child {
    border-bottom: none;
}

.admin-action strong {
    display: block;
    color: var(--primary-color);
}

.admin-action span {
    font-size: 14px;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 9px 18px;
    border: 1px solid var(--accent-color);
    border-radius: 100px;
    background: none;
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

.admin-action-btn:hover,
.admin-action-btn:focus {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.admin-form label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.admin-form .form-check-label {
    display: inline;
    font-weight: 500;
}

.admin-form .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.admin-form .btn-default {
    margin-top: 20px;
}

.admin-field-error {
    display: block;
    font-size: 14px;
    color: #B5484B;
    margin-top: 5px;
}

.admin-intro {
    margin-bottom: 25px;
}

.admin-danger {
    border-color: #F0C9CA;
}

.admin-danger h3 {
    color: #8E2F32 !important;
}

.admin-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 100px;
    background-color: #B5484B;
    color: var(--white-color);
    font-weight: 600;
    transition: background-color 0.3s ease-in-out;
}

.admin-delete-btn:hover {
    background-color: #8E2F32;
}

@media only screen and (max-width: 767px) {
    .admin-search {
        flex-direction: column;
    }

    .admin-user-summary {
        flex-wrap: wrap;
    }

    .admin-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ---- Impersonation bar ("viewing the site as a customer") -------------------------------- */

.impersonation-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 20px;
    background-color: #1D2A24;
    color: var(--white-color);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
}

.impersonation-bar-text i {
    color: #F2B84B;
    margin-right: 8px;
}

.impersonation-bar form {
    margin: 0;
}

.impersonation-bar button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: none;
    border-radius: 100px;
    background-color: var(--accent-color);
    color: var(--white-color);
    font-weight: 600;
    white-space: nowrap;
}

.impersonation-bar button:hover {
    background-color: #F2B84B;
    color: #1D2A24;
}

/* Keep the page's end clear of the bar. */
body:has(.impersonation-bar) {
    padding-bottom: 64px;
}

@media only screen and (max-width: 575px) {
    .impersonation-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 14px;
    }

    body:has(.impersonation-bar) {
        padding-bottom: 110px;
    }
}

/* ---- Cookie notice (same look as the online ordering site's banner) ------------------------ */

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1010;              /* above the impersonation bar */
    padding: 16px;
    transform: translateY(120%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
    pointer-events: none;       /* the strip around the card stays clickable */
}

.cookie-consent.is-visible {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.35s ease;
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background-color: #1D2A24;
    color: var(--white-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
}

.cookie-consent-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.cookie-consent-text i {
    margin-top: 3px;
    font-size: 22px;
    color: #8CC152;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-btn {
    padding: 10px 26px;
    border: none;
    border-radius: 100px;
    background-color: var(--accent-color);
    color: var(--white-color);
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.cookie-consent-btn:hover,
.cookie-consent-btn:focus-visible {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* Accept / Necessary only: side by side, the same size, so declining is as easy as accepting. */
.cookie-consent-actions {
    display: flex;
    gap: 10px;
}

.cookie-consent-btn.is-secondary {
    background-color: transparent;
    box-shadow: inset 0 0 0 2px var(--white-color);
}

.cookie-consent-btn.is-secondary:hover,
.cookie-consent-btn.is-secondary:focus-visible {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* While impersonating, sit above the impersonation bar rather than over it. */
body:has(.impersonation-bar) .cookie-consent {
    bottom: 56px;
}

@media only screen and (max-width: 575px) {
    .cookie-consent {
        padding: 12px;
    }

    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 18px;
    }

    .cookie-consent-btn {
        width: 100%;
        flex: 1;
        padding: 10px 14px;
    }

    body:has(.impersonation-bar) .cookie-consent {
        bottom: 100px;
    }
}

/************************************/
/***     News / blog (public)     ***/
/************************************/

.news-empty {
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
}

.news-all-btn {
    margin-top: 40px;
    text-align: center;
}

/* Article HTML from the admin editor. */
.post-entry img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Videos in articles: YouTube / Vimeo players and uploaded videos, full width at 16:9 */
.post-entry iframe,
.post-entry video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 30px 0;
    border: 0;
    border-radius: 20px;
    background-color: #000;
}

.post-entry figure.image {
    display: table;
    margin: 0 auto 1.6em;
}

.post-entry figure.image img {
    display: block;
}

.post-entry figure.image figcaption {
    display: table-caption;
    caption-side: bottom;
    padding-top: 10px;
    font-size: 14px;
    text-align: center;
    color: var(--text-color);
}

.post-entry table {
    width: 100%;
    margin-bottom: 1.6em;
    border-collapse: collapse;
}

.post-entry table td,
.post-entry table th {
    padding: 10px 14px;
    border: 1px solid var(--divider-color);
}

.post-entry table th {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Sits under the article, whose bottom border (theme .post-entry) already separates the two. */
.news-gallery {
    margin-top: 10px;
}

.news-gallery h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

.news-gallery .project-gallery {
    margin-bottom: 30px;
}

.news-gallery-caption {
    margin: 10px 0 0;
    font-size: 14px;
    text-align: center;
}

/* Shown to admins on a post: draft/scheduled status and an edit link. */
.news-admin-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    margin-bottom: 30px;
    padding: 14px 20px;
    border-radius: 14px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.news-admin-bar.is-preview {
    background-color: #FFF4DC;
}

.news-admin-bar i {
    margin-right: 6px;
    color: var(--accent-color);
}

.news-admin-bar a {
    font-weight: 600;
    color: var(--primary-color);
}

.news-admin-bar a:hover {
    color: var(--accent-color);
}

/************************************/
/***     News / blog (admin)      ***/
/************************************/

.admin-blog-table td {
    vertical-align: middle;
}

.admin-blog-thumb {
    width: 76px;
}

.admin-blog-thumb img,
.admin-blog-thumb span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    max-width: none;   /* the theme's img max-width: 100% lets a table cell squash the image to nothing */
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.admin-blog-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Admin menu: a count, e.g. unread enquiries */
.dashboard-nav-badge {
    min-width: 22px;
    height: 22px;
    margin-left: auto;
    padding: 0 7px;
    border-radius: 100px;
    background-color: var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    color: var(--white-color);
}

/* Enquiries (Pages/Admin/Enquiries) */
a.admin-enquiry-stat {
    color: inherit;
    transition: border-color 0.2s;
}

a.admin-enquiry-stat:hover {
    border-color: var(--accent-color);
}

.admin-enquiry-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-bottom: 20px;
}

.admin-enquiry-filters input[type=search] {
    flex: 1 1 260px;
}

.admin-enquiry-filters .form-check {
    margin: 0;
}

.admin-enquiry-filters .btn-default {
    padding-top: 11px;
    padding-bottom: 11px;
}

.admin-enquiry-table td {
    vertical-align: top;
}

.admin-enquiry-table .admin-enquiry-date {
    white-space: nowrap;
    font-size: 14px;
}

.admin-enquiry-from {
    min-width: 160px;
    white-space: normal;
}

.admin-enquiry-from .admin-muted {
    display: block;
    font-size: 13px;
}

.admin-enquiry-table tr.is-unread .admin-user-name,
.admin-enquiry-table tr.is-unread .admin-faq-answer {
    font-weight: 700;
    color: var(--primary-color);
}

.admin-enquiry-status {
    text-align: right;
}

.admin-enquiry-status .admin-blog-status + .admin-blog-status {
    margin-top: 4px;
}

.admin-enquiry-not-emailed {
    background-color: #FBEAEA;
    color: #8E2F32;
}

.admin-enquiry-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 25px;
    margin-bottom: 25px;
}

.admin-enquiry-details dt {
    font-weight: 600;
    color: var(--primary-color);
}

.admin-enquiry-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* The message as they typed it, line breaks and all */
.admin-enquiry-message {
    padding: 20px 24px;
    border-radius: 16px;
    background-color: var(--secondary-color);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--primary-color);
}

.admin-enquiry-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.admin-enquiry-actions form {
    margin: 0;
}

.admin-enquiry-actions .admin-media-adjust {
    margin-left: 0;
}

.admin-enquiry-actions .admin-enquiry-delete:hover {
    border-color: #B5484B;
    color: #B5484B;
}

.admin-enquiry-read {
    margin: 18px 0 0;
    font-size: 14px;
}

.admin-enquiry-pager {
    margin-top: -10px;
    margin-bottom: 30px;
}

.admin-blog-status-published { background-color: #E3F0DA; color: #3D6B22; }
.admin-blog-status-draft     { background-color: #ECECEC; color: #555555; }
.admin-blog-status-scheduled { background-color: #FFF0D2; color: #8A5A00; }

.admin-blog-actions {
    white-space: nowrap;
    text-align: right;
}

.admin-blog-actions a {
    display: inline-block;
    padding: 4px 8px;
    color: var(--primary-color);
}

.admin-blog-actions a:hover {
    color: var(--accent-color);
}

/* FAQs list: the question column wraps (other columns stay on one line) and takes the spare width,
   and the answer preview is cut to two lines, so the table fits without scrolling sideways. */
.dashboard-table td.admin-faq-question {
    width: 100%;
    min-width: 220px;
    white-space: normal;
}

.admin-faq-answer {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-top: 2px;
    font-size: 14px;
    color: var(--text-color);
}

/* Testimonials list: the same square, rounded photo as on the home page. */
.admin-blog-thumb figure {
    margin: 0;
}

.admin-blog-thumb figure img,
.admin-blog-thumb figure .testimonial-initial {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

/* Move up/down buttons (FAQs list) */
.admin-blog-actions button {
    padding: 4px 8px;
    border: 0;
    background: none;
    color: var(--primary-color);
}

.admin-blog-actions button:hover:not(:disabled) {
    color: var(--accent-color);
}

.admin-blog-actions button:disabled {
    opacity: 0.3;
    cursor: default;
}

.admin-blog-header-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-blog-hint {
    margin: 6px 0 0;
    font-size: 14px;
}

.admin-blog-cover {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.admin-blog-cover > img {
    width: 180px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.admin-blog-cover-fields {
    flex: 1;
}

.admin-blog-form .tox-tinymce {
    border-radius: 14px;
    border-color: var(--divider-color);
}

.admin-blog-dropzone {
    margin-bottom: 25px;
    padding: 30px 20px;
    border: 2px dashed var(--divider-color);
    border-radius: 14px;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.admin-blog-dropzone > i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.admin-blog-dropzone p {
    margin-bottom: 4px;
}

.admin-blog-dropzone label {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.admin-blog-dropzone.is-dragging {
    border-color: var(--accent-color);
    background-color: var(--secondary-color);
}

.admin-blog-dropzone.is-uploading {
    opacity: 0.7;
    pointer-events: none;
}

.admin-blog-upload-status {
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

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

.admin-blog-gallery-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--divider-color);
    border-radius: 14px;
}

.admin-blog-gallery-item.is-cover {
    border-color: var(--accent-color);
}

.admin-blog-gallery-image {
    position: relative;
    display: block;
}

.admin-blog-gallery-image img,
.admin-blog-gallery-image video {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
}

.admin-blog-gallery-image video {
    background: #1d2b24;
}

/* Play button over video tiles (admin gallery and the public post's gallery) */
.admin-blog-gallery-play,
.news-gallery-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.news-gallery-play {
    z-index: 2;
    font-size: 56px;
}

/* The public post's gallery: a video tile, and the video playing in the gallery viewer */
.news-gallery a.mfp-inline {
    position: relative;   /* keeps the play button on its own tile */
    display: block;
}

.news-gallery .project-gallery figure video {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #1d2b24;
}

.news-gallery-video {
    position: relative;
    width: min(960px, 92vw);
    margin: 0 auto;
}

.news-gallery-video video {
    display: block;
    width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    background: #000;
}

.admin-blog-cover-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 10px;
    border-radius: 100px;
    background-color: var(--accent-color);
    color: var(--white-color);
    font-size: 12px;
    font-weight: 600;
}

.admin-blog-gallery-item .form-control {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 10px;
}

.admin-blog-gallery-actions {
    display: flex;
    justify-content: space-between;
}

.admin-blog-gallery-actions button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--divider-color);
    border-radius: 10px;
    background: none;
    color: var(--primary-color);
}

.admin-blog-gallery-actions button:hover:not(:disabled) {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.admin-blog-gallery-actions button:disabled {
    opacity: 0.35;
}

.admin-blog-gallery-actions .admin-blog-danger:hover:not(:disabled) {
    border-color: #B5484B;
    color: #B5484B;
}

.admin-blog-delete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-color: #F0C9CA;
}

.admin-blog-delete h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.admin-blog-delete p {
    margin: 0;
}

.admin-blog-delete .btn-default.admin-blog-delete-btn {
    background-color: #B5484B;
    white-space: nowrap;
}

@media only screen and (max-width: 767px) {
    .admin-blog-cover,
    .admin-blog-delete {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-blog-cover > img {
        width: 100%;
    }
}

/* Details under a banner title, e.g. a news post's author and date. */
.page-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.page-header-meta li {
    font-size: 16px;
    font-weight: 500;
    color: var(--white-color);
}

.page-header-meta i {
    margin-right: 6px;
    color: var(--secondary-color);
}

/* A news post's main image, floated beside the opening paragraphs (the .post-entry clearfix contains it). */
.post-entry .news-post-image {
    float: right;
    width: 40%;
    margin: 6px 0 25px 40px;
}

.news-post-image figure,
.news-post-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
}

@media only screen and (max-width: 767px) {
    .post-entry .news-post-image {
        float: none;
        width: 100%;
        margin: 0 0 25px;
    }
}

/* News list: year filter and search, above the posts. */
.news-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px 30px;
    margin-bottom: 40px;
}

.news-years {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-years a {
    padding: 8px 18px;
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.news-years a span {
    font-weight: 400;
    color: var(--text-color);
}

.news-years a:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.news-years a.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-color);
}

.news-years a.active span {
    color: inherit;
}

.news-search {
    position: relative;
    flex: 0 1 340px;
    margin-left: auto;
}

.news-search input {
    width: 100%;
    padding: 11px 54px 11px 20px;
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    background-color: var(--white-color);
    color: var(--primary-color);
    outline: none;
}

.news-search input:focus {
    border-color: var(--accent-color);
}

.news-search button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--white-color);
}

.news-search button:hover {
    background-color: var(--primary-color);
}

.news-results {
    margin: -20px 0 30px;
}

.news-results a {
    font-weight: 600;
    color: var(--accent-color);
}

.page-pagination ul li.news-page-gap span {
    background: none;
    color: var(--text-color);
}

@media only screen and (max-width: 767px) {
    .news-search {
        flex-basis: 100%;
    }
}

/* Admin gallery: drag-and-drop ordering. */
.admin-blog-drag-hint {
    margin: 0 0 15px;
}

.admin-blog-drag-hint i {
    margin-right: 4px;
    color: var(--accent-color);
}

.admin-blog-order-status {
    margin-left: 6px;
    font-weight: 600;
    color: var(--accent-color);
}

.admin-blog-order-status.is-error {
    color: #B5484B;
}

.admin-blog-order-status a {
    text-decoration: underline;
    color: inherit;
}

.admin-blog-gallery-item {
    cursor: grab;
    background-color: var(--white-color);
}

.admin-blog-gallery-item input,
.admin-blog-gallery-item button {
    cursor: auto;
}

.admin-blog-gallery-item button:not(:disabled) {
    cursor: pointer;
}

.admin-blog-gallery-item.is-drag-chosen {
    cursor: grabbing;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.admin-blog-gallery-item.is-drag-placeholder {
    opacity: 0.35;
    border-style: dashed;
    border-color: var(--accent-color);
}

/* Admin table rows dragged into order (admin-sort-list.js, e.g. FAQs). */
.admin-sort-item {
    cursor: grab;
    background-color: var(--white-color);
}

.admin-sort-item a,
.admin-sort-item button:not(:disabled) {
    cursor: pointer;
}

.admin-sort-item button:disabled {
    cursor: auto;
}

.admin-sort-item.is-drag-chosen {
    cursor: grabbing;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.admin-sort-item.is-drag-placeholder {
    opacity: 0.35;
    outline: 2px dashed var(--accent-color);
    outline-offset: -2px;
}

/************************************/
/***    Downloads (admin)         ***/
/************************************/

.admin-download {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--divider-color);
}

.dashboard-card-header + .admin-download {
    border-top: none;
    padding-top: 5px;
}

.admin-download-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    font-size: 22px;
}

.admin-download-body {
    flex: 1;
    min-width: 0;
}

.admin-download-body h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.admin-download-file {
    margin-bottom: 2px;
    overflow-wrap: anywhere;
}

.admin-download-file a {
    font-weight: 600;
    color: var(--accent-color);
}

/* The link for emails, with its "copy link" button (Admin/Downloads/Index.cshtml) */
.admin-download-share {
    display: flex;
    gap: 8px;
    max-width: 640px;
    margin: 8px 0 6px;
}

.admin-download-share input {
    flex: 1;
    min-width: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 13px;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

.admin-download-copy {
    flex: none;
    padding: 8px 16px;
    font-size: 14px;
}

.admin-download-copy.is-copied {
    background-color: var(--primary-color);
}

.admin-download-when {
    font-size: 14px;
    margin-bottom: 12px;
}

.admin-download-when i {
    margin-right: 4px;
}

.admin-download-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-download-upload .form-control {
    flex: 1 1 260px;
    padding: 9px 14px;
    border: 1px solid var(--divider-color);
    border-radius: 14px;
}

.admin-download-upload .btn-default {
    white-space: nowrap;
}

.admin-download-upload .btn-default:disabled {
    opacity: 0.7;
}

.admin-download-revert button {
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #B5484B;
}

.admin-download-revert button:hover {
    text-decoration: underline;
}

/* Catalogues: "use its first page as the cover" under the upload box, and the button to do it for the current PDF. */
.admin-download-first-page {
    flex-basis: 100%;
    margin: 0;
    font-size: 14px;
}

.admin-download-use-page button {
    color: var(--primary-color);
}

.admin-download-details {
    margin-top: 14px;
}

.admin-download-details summary {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
}

.admin-download-details summary i {
    margin-right: 4px;
    color: var(--accent-color);
}

.admin-download-edited {
    margin-left: 8px;
    font-weight: 400;
    color: var(--text-color);
}

.admin-download-details-form {
    margin-top: 12px;
    padding: 18px;
    border-radius: 14px;
    background-color: var(--secondary-color);
}

.admin-download-details-form .form-control {
    background-color: var(--white-color);
}

.admin-download-cover {
    display: block;
    width: 110px;
    aspect-ratio: 3 / 4;
    margin-bottom: 10px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--divider-color);
}

/************************************/
/***        Contact Us page        ***/
/************************************/

/* Errors on the dark green form card. */
.contact-field-error,
.contact-form-errors {
    display: block;
    color: #FFB4B4;
    font-size: 14px;
    font-weight: 500;
    margin-top: 6px;
}

.contact-form-errors {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: 15px;
    background-color: rgba(230, 87, 87, 0.15);
    font-size: 15px;
}

.contact-form-errors ul {
    margin: 0;
    padding-left: 18px;
}

.contact-form-errors a {
    color: var(--white-color);
    text-decoration: underline;
}

.contact-form-errors.validation-summary-valid {
    display: none;
}

/* The message box keeps the theme's input look but can be resized taller. */
.contact-us-form textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.contact-form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* reCAPTCHA v3: the floating badge is hidden, so Google requires this notice instead. */
.grecaptcha-badge {
    visibility: hidden;
}

.contact-form-recaptcha-note {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

.contact-form-recaptcha-note a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

/* Thank-you message shown in place of the form. */
.contact-form-sent {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 30px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white-color);
}

.contact-form-sent > i {
    font-size: 34px;
    color: #8CC152;
}

.contact-form-sent h3 {
    margin-bottom: 8px;
    font-size: 22px;
    color: var(--white-color);
}

.contact-form-sent p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.contact-form-sent a {
    color: var(--white-color);
    font-weight: 600;
}

/* Phone and email in the contact details are links but should look like the theme's headings. */
.contact-info-content h3 a {
    color: inherit;
    word-break: break-word;
}

.contact-info-content h3 a:hover {
    color: var(--accent-color);
}

.contact-info-directions {
    display: inline-block;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: capitalize;
}

.contact-info-directions i {
    margin-left: 4px;
    font-size: 13px;
    transition: transform 0.3s;
}

.contact-info-directions:hover i {
    transform: translateX(3px);
}

@media only screen and (max-width: 575px) {
    .contact-form-sent {
        flex-direction: column;
        padding: 24px;
    }
}

/* Google map in place of the theme's photo, same size and rounded corners. */
.contact-map {
    border-radius: 40px;
    overflow: hidden;
}

.contact-map iframe {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.7;
    border: 0;
}

/* Side by side: the map grows so the details box below lines up with the bottom of the contact form */
@media (min-width: 992px) {
    .page-contact-us .contact-information {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .page-contact-us .contact-map {
        flex: 1 1 auto;
        min-height: 300px;
    }

    .page-contact-us .contact-map iframe {
        aspect-ratio: auto;
        height: 100%;
    }
}

/************************************/
/***    Admin: email templates     ***/
/************************************/

.admin-emails-intro {
    margin-bottom: 20px;
}

.admin-email-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--divider-color);
}

.admin-email-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    font-size: 20px;
}

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

.admin-email-content h4 {
    margin-bottom: 4px;
    font-size: 18px;
}

.admin-email-content p {
    margin: 0 0 6px;
}

.admin-email-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 14px;
}

.admin-email-meta i {
    margin-right: 4px;
}

.admin-email-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 12px;
    border-radius: 100px;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
}

.admin-email-badge.is-custom {
    background-color: #FFF4DE;
    color: #8A5A00;
}

/* Placeholder buttons above the fields. */
.admin-email-placeholders {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 15px;
    background-color: var(--secondary-color);
}

.admin-email-placeholders > p {
    margin-bottom: 10px;
    font-size: 15px;
}

.admin-email-chip {
    padding: 4px 12px;
    border: 1px solid var(--accent-color);
    border-radius: 100px;
    background-color: var(--white-color);
    color: var(--accent-color);
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    transition: background-color 0.2s, color 0.2s;
}

.admin-email-chip:hover,
.admin-email-chip:focus-visible {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.admin-email-placeholder-help {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: center;
    gap: 6px 14px;
    margin: 0;
    font-size: 13px;
}

.admin-email-placeholder-help dt {
    font-weight: 400;
}

.admin-email-placeholder-help dd {
    margin: 0;
    color: var(--text-color);
}

.admin-email-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 24px;
}

.admin-email-form .admin-email-buttons .btn-default {
    margin: 0;
}

.admin-email-status {
    font-size: 14px;
    font-weight: 500;
}

.admin-email-status.is-success {
    color: var(--accent-color);
}

.admin-email-status.is-error {
    color: #B5484B;
}

/* Preview: the email as the recipient sees it, on its grey background. */
.admin-email-preview-subject {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background-color: #F5F5F5;
    font-size: 15px;
    word-break: break-word;
}

.admin-email-preview {
    display: block;
    width: 100%;
    height: 900px;
    border: 1px solid var(--divider-color);
    border-radius: 15px;
    background-color: #F5F5F5;
}

@media only screen and (max-width: 767px) {
    .admin-email-item {
        flex-wrap: wrap;
    }

    .admin-email-placeholder-help {
        grid-template-columns: 1fr;
    }

    .admin-email-placeholder-help dd {
        margin-bottom: 6px;
    }
}

/************************************/
/***  Downloads: show / hide       ***/
/************************************/

/* Shown on the public Downloads page when every download is hidden. */
.downloads-empty {
    padding: 100px 0;
    text-align: center;
}

.downloads-empty p {
    margin: 0;
    font-size: 18px;
}

/* Admin: title with the "Show on website" switch beside it. */
.admin-download-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px 20px;
}

.admin-download-visibility {
    margin: 0;
    flex-shrink: 0;
}

.admin-download-visibility .form-check {
    margin: 2px 0 0;
}

.admin-download-visibility .form-check-input {
    cursor: pointer;
}

.admin-download-visibility .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.admin-download-visibility .form-check-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
}

.admin-download-hidden-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 100px;
    background-color: #F1F1F1;
    color: #6B6B6B;
    font-size: 13px;
    font-weight: 600;
    vertical-align: middle;
}

/* A hidden download is faded, so it's clear at a glance it isn't on the website. */
.admin-download.is-hidden .admin-download-icon,
.admin-download.is-hidden .admin-download-file {
    opacity: 0.55;
}

.admin-download.is-hidden h4 {
    color: #8A8A8A;
}

/************************************/
/***  Admin: download activity      ***/
/************************************/

.admin-activity-subheading {
    margin: 28px 0 12px;
    font-size: 18px;
}

.admin-activity-recent-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.admin-activity-table td {
    white-space: normal;
    vertical-align: middle;
}

.admin-activity-when {
    white-space: nowrap !important;
    font-size: 14px;
}

/* Download / catalogue view icon before the document name. */
.admin-activity-kind {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 6px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    font-size: 12px;
}

.admin-activity-kind.is-view {
    background-color: #FFF4DE;
    color: #8A5A00;
}

.admin-activity-filters .form-check {
    margin-bottom: 10px;
}

.admin-activity-filters .btn-default {
    margin-right: 16px;
}

/* Activity chart: heading and totals on the left, the period picker on the right. */
.admin-activity-chart-header {
    flex-wrap: wrap;
    align-items: flex-start;
}

.admin-activity-chart-period {
    margin: 4px 0 0;
    font-size: 14px;
}

.admin-activity-period,
.admin-activity-custom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-activity-custom[hidden] {
    display: none;
}

.admin-activity-period .form-select {
    width: auto;
}

.admin-activity-custom .form-control {
    width: auto;
}

.admin-activity-chart {
    position: relative;
    height: 300px;
}

.admin-activity-chart-table {
    margin-top: 16px;
}

.admin-activity-chart-table summary {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.admin-activity-chart-table .table-responsive {
    max-height: 360px;
    margin-top: 10px;
}

.admin-activity-pager {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Home page testimonials: line breaks typed in Admin > Testimonials show. */
.testimonial-content p {
    white-space: pre-line;
}

/* Home page testimonials: the background photo can be changed (Admin > Testimonials > Section background), set as
   --testimonials-image on the section. The theme's green panel is kept over it: the right-hand third on computers,
   the lower part on smaller screens. */
.our-testimonials {
    background-image: linear-gradient(270deg, var(--primary-color) 34%, transparent 34%), var(--testimonials-image, url('../images/testimonials-bg.jpg'));
}

@media only screen and (max-width: 991px) {
    .our-testimonials {
        background-image: linear-gradient(0deg, var(--primary-color) 55%, transparent 55%), var(--testimonials-image, url('../images/testimonials-bg.jpg'));
    }
}

/* Home page testimonials: the first letter of their name when there's no photo (Admin > Testimonials). */
.testimonial-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-color: var(--accent-color);
    color: #FFFFFF;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

@media only screen and (max-width: 767px) {
    .author-image .testimonial-initial {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

/* About page: the admin-editable text (Admin > Page Content) sits where the theme had separate paragraphs. */
.about-us-text p:last-child {
    margin-bottom: 0;
}

/* The small photo: the theme showed it at the file's own size (its 320 x 192 photo). Admins can now choose any
   photo, so it's fixed at that size and shape instead (the theme's mobile max-width of 200px still applies). */
.about-img-2 {
    width: 320px;
}

.about-img-2 img {
    width: 100%;
    aspect-ratio: 320 / 192;
    object-fit: cover;
}

/* Admin: page content editor */
.admin-content-edited {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 20px;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: lowercase;
    vertical-align: middle;
}

.admin-content-image > img {
    object-fit: cover;
    background-color: var(--secondary-color);
}

.admin-content-year {
    max-width: 160px;
}

.admin-content-save {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Tabs for a page with many sections (Edit.cshtml, admin-content.js): the Page Content list's tabs, as buttons */
.admin-content-tabs[hidden],
[data-content-panel][hidden] {
    display: none;
}

.admin-content-tabs .admin-filter {
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}

.admin-content-tabs .admin-filter:not(.active) {
    background-color: var(--white-color);
}

/* An icon field: a grid of the icons to choose from, the chosen one in green */
.admin-icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-icon-option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.admin-icon-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-icon-option-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    background-color: var(--white-color);
    font-size: 18px;
    color: var(--primary-color);
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.admin-icon-option:hover .admin-icon-option-box {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.admin-icon-option input:checked + .admin-icon-option-box {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--white-color);
}

.admin-icon-option input:focus-visible + .admin-icon-option-box {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.admin-page-content-summary p {
    margin-bottom: 15px;
}

/* Admin: media library (Admin > Media) */
.admin-link-button {
    padding: 0;
    border: none;
    background: none;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.admin-media-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.admin-media-filters .form-control {
    flex: 1 1 260px;
}

.admin-media-filters .form-select {
    flex: 0 0 auto;
    width: auto;
    border-radius: 14px;
}

.admin-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

.admin-media-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--divider-color);
    border-radius: 14px;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-media-item:hover,
.admin-media-item:focus-visible {
    border-color: var(--accent-color);
    box-shadow: 0 4px 14px rgba(11, 61, 44, 0.08);
}

.admin-media-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    margin-bottom: 6px;
    border-radius: 10px;
    overflow: hidden;
    background: repeating-conic-gradient(#eef1ef 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}

.admin-media-thumb img,
.admin-media-thumb video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-media-thumb.is-video {
    position: relative;
    background: #1d2b24;
}

.admin-media-thumb.is-video i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 38px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.admin-media-preview video {
    display: block;
    width: 100%;
    max-height: 520px;
    background: #000;
}

.admin-media-name {
    overflow: hidden;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.admin-media-meta,
.admin-media-usage {
    font-size: 13px;
}

.admin-media-usage {
    color: var(--accent-color);
}

.admin-media-usage.is-unused {
    color: #8A8F8C;
}

.admin-media-details {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.admin-media-preview {
    flex: 0 0 45%;
    border-radius: 14px;
    overflow: hidden;
    background: repeating-conic-gradient(#eef1ef 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}

.admin-media-preview img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.admin-media-info {
    flex: 1;
    min-width: 0;
}

.admin-media-info dl {
    margin-bottom: 25px;
}

.admin-media-info dt {
    font-size: 14px;
    color: var(--primary-color);
}

.admin-media-info dd {
    margin-bottom: 12px;
}

.admin-media-url {
    font-size: 14px;
}

/* Admin: product page editor - the save button under the cards of the one form */
.admin-product-save {
    margin-bottom: 30px;
}

/* A product page's sections (Pages/Admin/Products/_SectionEditor.cshtml): each opens in place to edit it */
.admin-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-section {
    border: 1px solid var(--divider-color);
    border-radius: 14px;
    transition: border-color 0.2s;
}

.admin-section.is-open {
    border-color: var(--accent-color);
}

.admin-section[hidden] {
    display: none;
}

.admin-section.is-new {
    margin-top: 12px;
}

.admin-section-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.admin-section-toggle {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}

.admin-section-toggle .admin-blog-thumb {
    flex-shrink: 0;
    width: auto;
}

.admin-section-title {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.admin-section-title strong {
    font-size: 17px;
    color: var(--primary-color);
}

.admin-section-toggle:hover .admin-section-title strong {
    color: var(--accent-color);
}

.admin-section-chevron {
    color: var(--primary-color);
    transition: transform 0.2s;
}

.admin-section.is-open .admin-section-chevron {
    transform: rotate(180deg);
}

.admin-section-saved {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
}

.admin-section-editor {
    padding: 20px;
    border-top: 1px solid var(--divider-color);
}

.admin-section.is-new .admin-section-editor {
    border-top: 0;
}

.admin-section-editor[hidden],
.admin-section-editor .admin-alert[hidden] {
    display: none;
}

.admin-section-new-title {
    margin-bottom: 15px;
    font-size: 20px;
}

.admin-section-editor .admin-alert p {
    margin: 0;
}

/* A product section's photo layout picker: a card per layout, each with a sketch of it */
.admin-photo-layouts legend {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.admin-photo-layout-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 12px;
}

.admin-photo-layout {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.admin-photo-layout input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-photo-layout-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 12px;
    border: 2px solid var(--divider-color);
    border-radius: 14px;
    transition: border-color 0.2s, background-color 0.2s;
}

.admin-photo-layout:hover .admin-photo-layout-card {
    border-color: #B9D6BB;
}

.admin-photo-layout input:checked + .admin-photo-layout-card {
    border-color: var(--accent-color);
    background-color: var(--secondary-color);
}

.admin-photo-layout input:focus-visible + .admin-photo-layout-card {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.admin-photo-layout-card strong {
    font-size: 15px;
    color: var(--primary-color);
}

.admin-photo-layout-card > span:last-child {
    font-size: 13px;
    line-height: 1.45em;
    color: #6B716E;
}

/* The sketch: text bars (.t) above or beside photo blocks (.p) */
.admin-photo-layout-diagram {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 64px;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 8px;
    background-color: var(--white-color);
    box-shadow: inset 0 0 0 1px var(--divider-color);
}

.admin-photo-layout-diagram.is-left,
.admin-photo-layout-diagram.is-right {
    flex-direction: row;
}

.admin-photo-layout-diagram .d-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.admin-photo-layout-diagram.is-left .d-text,
.admin-photo-layout-diagram.is-right .d-text {
    flex: 1.3;
}

.admin-photo-layout-diagram .t {
    display: block;
    height: 4px;
    border-radius: 2px;
    background-color: #C9D0CC;
}

.admin-photo-layout-diagram .t.s {
    width: 60%;
}

.admin-photo-layout-diagram .d-photos {
    position: relative;
    display: flex;
    flex: 1;
    gap: 4px;
}

.admin-photo-layout-diagram .p {
    display: block;
    flex: 1;
    border-radius: 3px;
    background-color: var(--accent-color);
    opacity: 0.75;
}

/* Masonry and "your own sizes" sketches: rows of photos of different widths */
.admin-photo-layout-diagram .p.narrow {
    flex: 0.6;
}

.admin-photo-layout-diagram .d-rows {
    flex-direction: column;
    gap: 3px;
}

.admin-photo-layout-diagram .d-row {
    display: flex;
    flex: 1;
    gap: 4px;
}

.admin-photo-layout-diagram .p.wide {
    flex: 2;
}

/* A section's "preview" button, beside "save section": outlined, so saving stays the main button */
.btn-default.admin-section-preview-btn {
    background-color: transparent;
    box-shadow: inset 0 0 0 2px var(--accent-color);
    color: var(--primary-color);
}

.btn-default.admin-section-preview-btn:hover {
    color: var(--white-color);
}

.btn-default.admin-section-preview-btn[hidden] {
    display: none;
}

/* The section preview pop-up (admin-section-preview.js): the section in a frame, drawn as on the website. The frame is as
   wide as a computer screen (or a phone); the stage shows just the section's column of it. */
.section-preview .media-picker-dialog {
    max-width: 1040px;
}

.section-preview-tools {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.section-preview-layout {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.section-preview-layout .form-control {
    width: auto;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.section-preview-views {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background-color: var(--secondary-color);
}

.section-preview-views button {
    width: 36px;
    height: 32px;
    border: none;
    border-radius: 9px;
    background: none;
    color: var(--primary-color);
}

.section-preview-views button[aria-pressed="true"] {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.section-preview-body {
    flex: 1;
    min-height: 260px;
    margin-top: 15px;
    padding: 20px 25px;
    overflow: auto;
    background-color: var(--secondary-color);
}

.section-preview-status {
    margin: 0 0 15px;
    text-align: center;
}

.section-preview-stage {
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    background-color: var(--white-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: opacity 0.2s;
}

.section-preview-stage.is-loading {
    opacity: 0.45;
}

.section-preview-stage iframe {
    display: block;
    width: 1400px;
    max-width: none;
    height: 600px;
    border: none;
}

@media only screen and (max-width: 767px) {
    .section-preview .media-picker-header {
        flex-wrap: wrap;
    }

    .section-preview-tools {
        order: 3;
        flex-basis: 100%;
        justify-content: space-between;
    }
}

/* Inside the preview's frame (Pages/Admin/Products/_SectionPreview.cshtml, body "section-preview"): less space around
   the section, everything shown at once rather than fading in, and links that don't look clickable. */
body.section-preview .page-service-single {
    padding: 20px 0;
}

body.section-preview .wow {
    visibility: visible !important;
    animation: none !important;
}

body.section-preview a {
    cursor: default;
}

/* "Your own sizes" in the preview: each photo has its size with - and + buttons, and an edge to drag (not at phone width,
   where the sizes aren't used); the photos can be dragged into order. */
body.section-preview.is-arranging .product-section-custom > [data-photo-span] {
    position: relative;
    cursor: grab;
    user-select: none;
}

body.section-preview.is-arranging .product-section-custom img {
    pointer-events: none;
}

body.section-preview.is-arranging .product-section-custom > .is-drag-placeholder {
    opacity: 0.35;
}

.photo-size-tools {
    position: absolute;
    top: 8px;
    left: calc(var(--bs-gutter-x) * 0.5 + 8px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    cursor: default;
}

.photo-size-tools button {
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--accent-color);
    font-size: 10px;
    color: var(--white-color);
}

.photo-size-tools button:disabled {
    opacity: 0.35;
}

.photo-size-handle {
    position: absolute;
    top: 0;
    right: calc(var(--bs-gutter-x) * 0.5 - 9px);
    bottom: 0;
    z-index: 3;
    width: 18px;
    cursor: ew-resize;
    touch-action: none;
}

.photo-size-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 5px;
    width: 8px;
    height: 44px;
    margin-top: -22px;
    border-radius: 4px;
    background-color: var(--white-color);
    box-shadow: 0 0 0 2px var(--accent-color), 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.section-preview .product-section-custom > .is-resizing .project-gallery {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 20px;
}

@media only screen and (max-width: 767px) {
    .photo-size-tools,
    .photo-size-handle {
        display: none;
    }
}

/* Photo lists taking any shape (e.g. masonry): thumbnails show the whole photo */
.admin-media-list:not(.is-fixed) .admin-blog-gallery-image img {
    object-fit: contain;
    background-color: var(--secondary-color);
}

.admin-photo-layout-diagram .d-arrow {
    position: absolute;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -4.5px;
    border-radius: 50%;
    background-color: var(--white-color);
}

.admin-photo-layout-diagram .d-arrow.is-prev {
    left: 3px;
}

.admin-photo-layout-diagram .d-arrow.is-next {
    right: 3px;
}

.admin-photo-layout-diagram .d-auto {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--white-color);
}

.admin-section-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

/* Admin: photo lists (Pages/Admin/_MediaListField.cshtml), e.g. a product page's photos */
.admin-media-list .admin-blog-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    margin-bottom: 15px;
}

.admin-media-list .admin-blog-gallery:empty {
    display: none;
}

.admin-media-list-empty {
    margin-bottom: 15px;
}

.admin-media-rename {
    margin-bottom: 25px;
}

.admin-media-rename-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-media-rename-prefix {
    flex-shrink: 0;
    font-size: 14px;
    color: #8A8F8C;
}

.admin-media-suggest {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 12px 15px;
    border-radius: 14px;
    background: var(--secondary-color);
}

.admin-media-suggest-label {
    margin-right: 4px;
    font-size: 14px;
    color: var(--primary-color);
}

.admin-media-suggest-label i {
    color: var(--accent-color);
}

.admin-media-resize {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 14px;
}

.admin-media-resize label {
    margin: 0 4px 0 0;
    color: var(--primary-color);
}

.admin-media-resize .form-control {
    width: 100px;
}

.admin-media-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.admin-media-editor-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-media-editor-btn {
    padding: 6px 14px;
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    background: #fff;
    font-size: 14px;
    color: var(--primary-color);
}

.admin-media-editor-btn:hover,
.admin-media-editor-btn.is-active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #fff;
}

.admin-media-editor-stage {
    height: 520px;
    border-radius: 14px;
    overflow: hidden;
    background: repeating-conic-gradient(#eef1ef 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}

.admin-media-editor-stage img {
    display: block;
    max-width: 100%;
}

@media (max-width: 767px) {
    .admin-media-editor-stage {
        height: 340px;
    }
}

.admin-media-editor .admin-blog-hint {
    margin-top: 10px;
}

.admin-media-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.admin-media-usages {
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-media-usages li {
    padding: 8px 0;
    border-bottom: 1px solid var(--divider-color);
}

.admin-media-usages li:last-child {
    border-bottom: none;
}

.admin-media-usages i {
    margin-right: 8px;
    color: var(--accent-color);
}

/* Admin: image fields (Pages/Admin/_MediaField.cshtml) */
.admin-media-field-preview {
    flex-shrink: 0;
    width: 180px;
}

/* Very wide fields, e.g. a page banner: the preview goes above the buttons, wide enough to see the picture */
.admin-media-field.is-wide {
    flex-direction: column;
    gap: 12px;
}

.admin-media-field.is-wide .admin-media-field-preview {
    width: 100%;
    max-width: 560px;
}

.admin-media-field-preview img {
    width: 100%;
    aspect-ratio: var(--media-ratio, 4 / 3);   /* a fixed-size field's own shape (_MediaField.cshtml), so it looks as it will on the page */
    object-fit: cover;
    border-radius: 12px;
    background-color: var(--secondary-color);
}

.admin-media-field-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    aspect-ratio: var(--media-ratio, 4 / 3);
    border: 2px dashed var(--divider-color);
    border-radius: 12px;
    font-size: 14px;
    color: #8A8F8C;
}

.admin-media-field-empty[hidden],
.admin-media-field-preview img[hidden] {
    display: none;
}

.admin-media-field .admin-media-choose {
    padding: 10px 20px;
}

.admin-media-chosen {
    display: inline-block;
    margin-left: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
}

.admin-media-chosen[hidden] {
    display: none;
}

/* "choose area": change the part of the image shown, without choosing it again */
.admin-media-adjust {
    margin-left: 10px;
    padding: 9px 16px;
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.admin-media-adjust:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.admin-media-adjust[hidden] {
    display: none;
}

/* Photo lists with a fixed size: thumbnails at that shape, and room for the crop button */
.admin-media-list.is-fixed .admin-blog-gallery {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.admin-media-list.is-fixed .admin-blog-gallery-image img {
    aspect-ratio: var(--media-ratio);
}

/* Lists taking landscape or portrait photos: the whole photo, so portrait ones aren't shown cut to landscape */
.admin-media-list.has-portrait .admin-blog-gallery-image img {
    object-fit: contain;
    background-color: var(--secondary-color);
}

.media-cropper #media-cropper-size.is-warning {
    color: #B5484B;
}

.admin-media-field .form-check {
    margin-top: 10px;
}

/* Narrow columns, e.g. a catalogue cover: picture above the button, at its own shape */
.admin-media-field.is-stacked {
    flex-direction: column;
    gap: 12px;
}

.admin-media-field.is-stacked .admin-media-field-preview {
    width: 100%;
    max-width: 200px;
}

.admin-media-field.is-stacked .admin-media-field-preview img {
    aspect-ratio: var(--media-ratio, auto);
}

.admin-media-field.is-stacked .admin-media-chosen {
    display: block;
    margin: 8px 0 0;
}

/* Admin: "choose image" pop-up (admin-media.js) */
/* Admin: "are you sure?" pop-up (Pages/Admin/_ConfirmDialog.cshtml, confirm.js) */
.site-confirm {
    position: fixed;
    inset: 0;
    z-index: 2100;   /* above the media picker */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.site-confirm[hidden] {
    display: none;
}

.site-confirm-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(11, 61, 44, 0.55);
    animation: site-confirm-fade 0.15s ease-out;
}

.site-confirm-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 30px;
    border-radius: 20px;
    background-color: var(--white-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: site-confirm-pop 0.18s ease-out;
}

.site-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 15px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    font-size: 26px;
    color: var(--accent-color);
}

.site-confirm.is-danger .site-confirm-icon {
    background-color: #F8E5E5;
    color: #B5484B;
}

.site-confirm-dialog h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.site-confirm-dialog p {
    margin-bottom: 25px;
}

.site-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.site-confirm-cancel {
    padding: 12px 24px;
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    background: none;
    font-weight: 600;
    color: var(--primary-color);
}

.site-confirm-cancel:hover {
    background-color: var(--secondary-color);
}

.site-confirm-actions .btn-default.is-danger {
    background-color: #B5484B;
}

body.site-confirm-open {
    overflow: hidden;
}

@keyframes site-confirm-fade {
    from { opacity: 0; }
}

@keyframes site-confirm-pop {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
}

@media (prefers-reduced-motion: reduce) {
    .site-confirm-backdrop,
    .site-confirm-dialog {
        animation: none;
    }
}

/* Account: the invoice preview pop-up (Pages/Account/_InvoicePopup.cshtml, invoice-popup.js) */
.invoice-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.invoice-popup[hidden] {
    display: none;
}

.invoice-popup-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(11, 61, 44, 0.55);
    animation: site-confirm-fade 0.15s ease-out;
}

.invoice-popup-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    height: 100%;
    max-height: 1150px;
    padding: 20px;
    border-radius: 20px;
    background-color: var(--white-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: site-confirm-pop 0.18s ease-out;
}

.invoice-popup-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    margin-bottom: 15px;
}

.invoice-popup-header h3 {
    margin: 0;
    font-size: 22px;
}

.invoice-popup-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--divider-color);
    border-radius: 50%;
    background: none;
    font-size: 18px;
    color: var(--primary-color);
}

.invoice-popup-close:hover {
    background-color: var(--secondary-color);
}

.invoice-popup-frame {
    flex: 1;
    width: 100%;
    min-height: 0;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    background-color: var(--secondary-color);
}

body.invoice-popup-open {
    overflow: hidden;
}

@media only screen and (max-width: 767px) {
    .invoice-popup {
        padding: 10px;
    }

    .invoice-popup-dialog {
        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .invoice-popup-backdrop,
    .invoice-popup-dialog {
        animation: none;
    }
}

body.media-picker-open {
    overflow: hidden;
}

.media-picker {
    position: fixed;
    inset: 0;
    z-index: 2000;   /* above the TinyMCE dialogs that can open it */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.media-picker[hidden] {
    display: none;
}

.media-picker-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(11, 61, 44, 0.55);
}

.media-picker-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    max-height: calc(100vh - 40px);
    border-radius: 20px;
    background-color: var(--white-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.media-picker-header,
.media-picker-toolbar,
.media-picker-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
}

.media-picker-header {
    justify-content: space-between;
    border-bottom: 1px solid var(--divider-color);
}

.media-picker-header h3 {
    margin: 0;
    font-size: 22px;
}

.media-picker-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.media-picker-toolbar {
    padding-bottom: 0;
}

.media-picker-toolbar .form-control {
    flex: 1;
    border-radius: 14px;
}

.media-picker-upload {
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.media-picker-status {
    padding: 0 25px;
    font-size: 14px;
}

.media-picker-status p {
    margin: 10px 0 0;
}

.media-picker-body {
    position: relative;
    flex: 1;
    min-height: 260px;
    padding: 20px 25px;
    overflow-y: auto;
}

/* Crop-to-fit pop-up, after choosing an image for a field with a best size (admin-media.js) */
.media-cropper .media-picker-dialog {
    max-width: 900px;
}

.media-cropper-intro {
    margin: 0;
    padding: 15px 25px 0;
    font-size: 15px;
}

/* "Choose the still from the video" pop-up (FrameGrab in admin-media.js) */
.media-frame-picker .media-picker-dialog {
    max-width: 900px;
}

.media-frame-stage {
    margin: 15px 25px 0;
    border-radius: 14px;
    overflow: hidden;
    background-color: #000;
}

.media-frame-stage video {
    display: block;
    width: 100%;
    max-height: min(55vh, 480px);
}

/* A video field's preview (e.g. the home page hero's video), and its still, at the video's own shape */
.admin-media-field.is-video .admin-media-field-preview img {
    aspect-ratio: auto;
}

.admin-media-field-preview video {
    display: block;
    width: 100%;
    border-radius: 10px;
    background-color: #000;
}

.admin-media-field-preview video[hidden] {
    display: none;
}

/* Above the picture: Landscape / Portrait (for spaces that take either shape) and "add space around the picture" */
.media-cropper-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 12px 25px 0;
}

.media-cropper-shapes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-cropper-space {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.media-cropper-space-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 15px;
    cursor: pointer;
}

.media-cropper-space select {
    width: auto;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 14px;
}

.media-cropper-space select[hidden] {
    display: none;
}

.media-cropper-shapes[hidden] {
    display: none;
}

.media-cropper-shape {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    background-color: var(--white-color);
    font-size: 15px;
    color: var(--primary-color);
}

.media-cropper-shape span {
    font-size: 13px;
    opacity: 0.7;
}

.media-cropper-shape:hover {
    border-color: var(--accent-color);
}

.media-cropper-shape[aria-pressed="true"] {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--white-color);
}

.media-cropper-stage {
    height: min(55vh, 480px);
    margin: 15px 25px 0;
    border-radius: 14px;
    overflow: hidden;
    background: repeating-conic-gradient(#eef1ef 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}

/* The "tilt" handle in a crop box (CropTilt in admin-media.js): drag it round to turn the picture */
.crop-tilt-handle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid var(--white-color);
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    font-size: 13px;
    color: var(--white-color);
    cursor: grab;
    touch-action: none;
}

.crop-tilt-handle:hover,
.cropper-crop-box.is-tilting .crop-tilt-handle {
    background-color: var(--primary-color);
}

.cropper-crop-box.is-tilting .crop-tilt-handle {
    cursor: grabbing;
}

.media-cropper-stage img {
    display: block;
    max-width: 100%;
}

.media-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.media-picker-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    border: 2px solid var(--divider-color);
    border-radius: 12px;
    background: var(--white-color);
    text-align: left;
}

.media-picker-item video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: #1d2b24;
    pointer-events: none;
}

.media-picker-play {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 6px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.media-picker-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: repeating-conic-gradient(#eef1ef 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}

.media-picker-item span {
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.media-picker-item i {
    position: absolute;
    top: 12px;
    right: 12px;
    display: none;
    font-size: 22px;
    color: var(--accent-color);
    background: var(--white-color);
    border-radius: 50%;
}

.media-picker-item:hover {
    border-color: #9cc59e;
}

.media-picker-item.is-selected {
    border-color: var(--accent-color);
    background-color: var(--secondary-color);
}

.media-picker-item.is-selected i {
    display: block;
}

.media-picker-empty {
    padding: 40px 0;
    text-align: center;
    color: #8A8F8C;
}

.media-picker-drop-hint {
    position: absolute;
    inset: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 3px dashed var(--accent-color);
    border-radius: 14px;
    background-color: rgba(240, 255, 240, 0.92);
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-color);
    pointer-events: none;
}

.media-picker-body.is-dragging .media-picker-drop-hint {
    display: flex;
}

.media-picker-footer {
    justify-content: space-between;
    border-top: 1px solid var(--divider-color);
}

.media-picker-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.media-picker-actions .btn-default:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.media-picker-cancel {
    border: none;
    background: none;
    font-weight: 600;
    color: var(--text-color);
}

@media only screen and (max-width: 767px) {
    .admin-media-details {
        flex-direction: column;
    }

    .admin-media-preview {
        flex-basis: auto;
        width: 100%;
    }

    .admin-media-field {
        flex-direction: column;
    }

    .admin-media-field-preview {
        width: 100%;
        max-width: 260px;
    }

    .media-picker {
        padding: 0;
    }

    .media-picker-dialog {
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }

    .media-picker-toolbar,
    .media-picker-footer {
        flex-wrap: wrap;
    }
}

/* Product pages (/products/alpines etc., Pages/Products/Product.cshtml): the theme's service-single layout. */
/* The top of the sidebar stays pinned below the site header (100px when stuck to the top) while scrolling. */
.page-product .service-sidebar {
    top: 120px;
}

.page-product .service-catagery-list li.is-current a {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.page-product .service-catagery-list li.is-current a::after {
    filter: brightness(0) invert(1);
}

/* Shop placeholder page (Pages/Shop.cshtml), until the shop is built */
.shop-placeholder {
    padding: 100px 0;
}

.shop-placeholder-box {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 50px;
    border-radius: 30px;
    background-color: var(--secondary-color);
    text-align: center;
}

.shop-placeholder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    border-radius: 50%;
    background-color: var(--accent-color);
    font-size: 32px;
    color: var(--white-color);
}

.shop-placeholder-box .section-title {
    margin-bottom: 35px;
}

.shop-placeholder-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 30px;
}

.shop-placeholder-buttons .btn-default {
    margin-right: 18px;   /* room for the theme's arrow circle */
}

.shop-placeholder-link {
    font-weight: 600;
    color: var(--primary-color);
}

.shop-placeholder-link:hover {
    color: var(--accent-color);
}

.shop-placeholder-link i {
    margin-left: 6px;
    font-size: 14px;
}

.shop-placeholder-contact {
    margin: 35px 0 0;
    padding-top: 25px;
    border-top: 1px solid var(--divider-color);
}

.shop-placeholder-contact a {
    font-weight: 600;
    color: var(--primary-color);
}

@media only screen and (max-width: 767px) {
    .shop-placeholder {
        padding: 50px 0;
    }

    .shop-placeholder-box {
        padding: 40px 20px;
    }
}

/* Product pages: less space above the content, and a tighter products list, so the "order online" box under it
   is on screen without scrolling on most computers */
.page-product.page-service-single {
    padding-top: 60px;
}

.page-product .service-catagery-list ul li {
    margin-bottom: 10px;
}

.page-product .service-catagery-list ul li a {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* "Order online" box (with the weekly availability), inside a product page's "our products" box (under the list),
   in bright green with a faded basket behind */
.product-order-box {
    position: relative;
    overflow: hidden;
    margin-top: 25px;
    padding: 22px 22px 24px;
    border-radius: 20px;
    background-color: var(--accent-color);
    color: var(--white-color);
}

.product-order-box::after {
    content: '\f291';   /* Font Awesome basket-shopping */
    position: absolute;
    top: -20px;
    right: -20px;
    font-family: 'Font Awesome 6 Free';
    font-size: 130px;
    font-weight: 900;
    line-height: 1;
    color: var(--white-color);
    opacity: 0.08;
    pointer-events: none;
}

.product-order-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.product-order-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--white-color);
    font-size: 18px;
    color: var(--accent-color);
}

/* Not the theme's dark heading bar used for the box's own "our products" heading */
.service-catagery-list .product-order-box h3 {
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    font-size: 24px;
    text-transform: none;
    color: var(--white-color);
}

.product-order-box p {
    margin-bottom: 18px;
    color: var(--white-color);
    opacity: 0.9;
}

.product-order-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    border-radius: 100px;
    background-color: var(--white-color);
    font-size: 16px;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.product-order-btn:hover,
.product-order-btn:focus-visible {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.product-order-btn i {
    transition: transform 0.3s ease-in-out;
}

.product-order-btn:hover i {
    transform: translateX(4px);
}

/* Weekly availability, the second half of the order online box: a fine line above it and an outlined button,
   so ordering stays the main thing */
.product-order-availability {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.product-order-availability .product-order-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
}

.service-catagery-list .product-order-availability h3 {
    font-size: 20px;
}

.product-order-availability p {
    margin-bottom: 14px;
}

.product-order-btn-outline {
    padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid var(--white-color);
    background-color: transparent;
    color: var(--white-color);
}

.product-order-btn-outline:hover,
.product-order-btn-outline:focus-visible {
    border-color: var(--primary-color);
}

.page-product .sidebar-cta-box .cta-contact-item {
    display: block;
}

.product-cta-phone {
    margin: 10px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--white-color);
}

/* Product page photos are cut to ImageSizes.ProductPhoto (2:1) when chosen, so they're shown at that shape
   everywhere - the slider, a single photo, two side by side and the gallery - and nothing more is cropped off. */
.page-product .service-slider-image img,
.page-product .service-entry-image img,
.page-product .product-section-photo img,
.page-product .product-section-gallery .project-gallery img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

/* ...or upright, cut to ImageSizes.ProductPhotoPortrait (3:4) - "is-portrait" from Product.cshtml. Beside the text, two across
   and in the gallery they fill their column; where a photo spans the whole column they're narrower and centred, so they
   aren't huge: in a slider the same height as its 2:1 photos (37.5% wide), and on their own half the width. */
.page-product img.is-portrait {
    aspect-ratio: 3 / 4;
}

.page-product .service-slider-image.is-portrait {
    width: 37.5%;
    margin: 0 auto;
}

.page-product .product-photo-single .service-slider-image.is-portrait,
.page-product .product-section-layout-full .product-section-photo.is-portrait,
.page-product .product-section-layout-slider .product-section-photo.is-portrait {
    width: 50%;
    margin: 0 auto;
}

@media only screen and (max-width: 767px) {
    .page-product .product-photo-single .service-slider-image.is-portrait,
    .page-product .product-section-layout-full .product-section-photo.is-portrait,
    .page-product .product-section-layout-slider .product-section-photo.is-portrait {
        width: 75%;
    }
}

/* The label designer, where a product page's text says [label designer] (_LabelDesigner.cshtml, js/label-designer.js):
   the label beside its controls, the controls underneath on phones. */
.label-designer {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin: 30px 0;
    padding: 30px;
    border-radius: 20px;
    background-color: var(--secondary-color);
}

/* The label, with "Loading the label…" over it until it's drawn */
.label-designer-canvas {
    position: relative;
}

.label-designer-preview canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 842 / 1582;   /* the label's shape, before it loads */
    /* A soft shadow all the way round the label's edge, so it sits into the panel, plus a gentle lift below.
       drop-shadow follows the label's own shape rather than the canvas box. */
    filter:
        drop-shadow(0 0 1px rgba(0, 0, 0, 0.22))
        drop-shadow(0 0 8px rgba(0, 0, 0, 0.12))
        drop-shadow(0 10px 22px rgba(0, 0, 0, 0.14));
}

.label-designer-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 15px;
    text-align: center;
}

.label-designer-loading[hidden] {
    display: none;
}

.label-designer-controls h3 {
    margin-bottom: 12px;
    font-size: 24px;
}

.label-designer-note {
    margin-bottom: 20px;
}

.label-designer-field {
    margin-bottom: 22px;
}

.label-designer-field[hidden] {
    display: none;
}

.label-designer-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-color);
}

.label-designer-upload {
    position: relative;
    cursor: pointer;
}

/* The file box itself is hidden behind the "choose your logo" button */
.label-designer-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.label-designer-upload:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.label-designer-remove {
    margin-left: 12px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: underline;
}

.label-designer-remove[hidden] {
    display: none;
}

.label-designer-field input[type="range"] {
    width: 100%;
    max-width: 320px;
    accent-color: var(--accent-color);
}

.label-designer-field textarea {
    max-width: 320px;
    font-weight: 700;
    resize: vertical;
}

.label-designer-hint {
    margin: 6px 0 0;
    font-size: 14px;
    opacity: 0.8;
}

.label-designer-hint[hidden] {
    display: none;
}

p.label-designer-hint[role="alert"] {
    color: #B5484B;
    opacity: 1;
}

/* The words box while a label without a trowel is chosen */
.label-designer-field.is-disabled .label-designer-label {
    opacity: 0.5;
}

.label-designer-field textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* The labels to switch between, under the label: a thumbnail of each, the one in use outlined.
   Sized so five fit in a row under the label, even on a phone. */
.label-designer-choices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.label-designer-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 82px;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, background-color 0.2s;
}

.label-designer-choice img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.label-designer-choice:hover {
    background: rgba(0, 0, 0, 0.08);
}

.label-designer-choice[aria-pressed="true"] {
    border-color: var(--accent-color);
    background: #fff;
}

.label-designer-choice:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* "crop logo" pop-up */
.label-crop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.label-crop[hidden] {
    display: none;
}

body.label-crop-open {
    overflow: hidden;
}

.label-crop-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.label-crop-box {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 100%;
    overflow-y: auto;
    padding: 25px;
    border-radius: 20px;
    background-color: var(--white-color);
}

.label-crop-box h3 {
    margin-bottom: 6px;
    font-size: 22px;
}

.label-crop-box p {
    margin-bottom: 12px;
}

.label-crop-stage {
    height: min(55vh, 420px);
    border-radius: 12px;
    overflow: hidden;
    background: repeating-conic-gradient(#eef1ef 0% 25%, #fff 0% 50%) 50% / 16px 16px;   /* shows see-through parts */
}

.label-crop-stage img {
    display: block;
    max-width: 100%;
}

.label-crop-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 20px;
    margin-top: 15px;
}

.label-crop-actions .label-designer-remove,
.label-designer-logo-actions .label-designer-remove {
    margin-left: 0;
}

.label-designer-remove[aria-pressed="true"] {
    color: var(--accent-color);
}

.label-designer-inside {
    margin-top: 10px;
    font-size: 15px;
}

.label-designer-inside[hidden] {
    display: none;
}

.label-designer-logo-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-left: 12px;
    vertical-align: middle;
}

@media only screen and (max-width: 767px) {
    .label-designer {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    .label-designer-preview {
        max-width: 260px;
        margin: 0 auto;
    }
}

/* YouTube / Vimeo players in the text (the editors' video button, admin-content.js): full width at 16:9 */
.page-product .product-text iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 25px 0;
    border: 0;
    border-radius: 20px;
    background-color: #000;
}

/* Thumbnails under a slider (Product.cshtml SliderThumbs, js/product-slider.js): each at its own shape, the one showing
   highlighted; they scroll sideways if there are more than fit. */
.product-slider-thumbs {
    position: relative;   /* so the script can measure the thumbnails within it */
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

/* Centred while they fit; from the start once they scroll, so the first isn't cut off */
@supports (justify-content: safe center) {
    .product-slider-thumbs {
        justify-content: safe center;
    }
}

.product-slider-thumb {
    flex: none;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: none;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.product-slider-thumb img {
    display: block;
    height: 64px;
    width: auto;
}

.product-slider-thumb:hover,
.product-slider-thumb:focus-visible {
    opacity: 0.85;
}

.product-slider-thumb.is-active {
    border-color: var(--accent-color);
    opacity: 1;
}

@media only screen and (max-width: 767px) {
    .product-slider-thumb img {
        height: 48px;
    }
}

/* Key points and lists in the text: sentences, so not every word capitalised as in the theme's list. */
.page-product .service-entry ul li {
    text-transform: none;
}

.page-product .product-text ul {
    margin-top: 25px;
}

.product-section {
    scroll-margin-top: 120px;
}

/* A section's photos, laid out as chosen in its editor (Product.cshtml SectionPhotos) */
.product-section-photos,
.product-section-gallery,
.product-section-slider,
.page-product .service-entry-image {
    margin-top: 30px;
}

/* Full width, or beside the text: one photo under another */
.product-section-photos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Two across, and the gallery: rows of photos with a gap between the rows */
.page-product .service-entry-image .row,
.product-section-gallery {
    row-gap: 20px;
}

.product-section-gallery .project-gallery {
    margin-bottom: 0;
}

.product-section-slider {
    margin-bottom: 0;
}

/* Masonry: photos at their own shapes in rows that each fill the width, every photo in a row the same height, so the
   block has straight edges all round (JustifiedRows.cs works the rows out; _ProductSection.cshtml gives each photo its
   shape, --ratio, its share of its row's width, --share, and how many photos are in the row, --count - and the same
   for phones, whose rows hold fewer). A photo's width is its share of the row less the gaps; its height follows from
   its shape, and comes out the same along the row. The empty "row-end" items start a new row. */
.product-section-masonry {
    --gap: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: var(--gap);
    margin-top: 30px;
    margin-bottom: calc(var(--gap) * -1);   /* the last row's gap */
}

.product-section-masonry-item {
    flex: none;
    width: calc((100% - (var(--count) - 1) * var(--gap)) * var(--share));
    aspect-ratio: var(--ratio);
    margin-bottom: var(--gap);
}

.product-section-masonry-row-end {
    flex: none;
    width: 100%;
    height: 0;
}

.product-section-masonry-row-end.is-narrow {
    display: none;
}

.product-section-masonry-item a,
.product-section-masonry-item figure {
    display: block;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.product-section-masonry-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media only screen and (max-width: 767px) {
    .product-section-masonry {
        --gap: 10px;
    }

    .product-section-masonry-item {
        width: calc((100% - (var(--count-narrow) - 1) * var(--gap)) * var(--share-narrow));
    }

    .product-section-masonry-item a,
    .product-section-masonry-item figure {
        border-radius: 12px;
    }

    .product-section-masonry-row-end.is-wide {
        display: none;
    }

    .product-section-masonry-row-end.is-narrow {
        display: block;
    }
}

/* Your own sizes: each photo as wide as it was made in the editor's preview - data-photo-span is twelfths of the row
   (ProductPhotoWidths: a quarter, a third, half, two thirds or all of it). On phones the narrower three are half the
   width and the wider two the full width. They're cells of a Bootstrap row, so they have its gutters. */
.product-section-custom > [data-photo-span] {
    width: 50%;
}

.product-section-custom > [data-photo-span="8"],
.product-section-custom > [data-photo-span="12"] {
    width: 100%;
}

@media only screen and (min-width: 768px) {
    .product-section-custom > [data-photo-span="3"] {
        width: 25%;
    }

    .product-section-custom > [data-photo-span="4"] {
        width: 33.3333%;
    }

    .product-section-custom > [data-photo-span="6"] {
        width: 50%;
    }

    .product-section-custom > [data-photo-span="8"] {
        width: 66.6667%;
    }
}

/* Beside the text: no space above the photos, which line up with the text; a gap between them on phones */
.product-section-beside {
    row-gap: 25px;
}

.product-section-beside .product-section-photos {
    margin-top: 6px;
}


.product-section-photo figure {
    display: block;
    border-radius: 30px;
}

.product-section-photo img {
    width: 100%;
    border-radius: 30px;
}

.product-section-btn {
    margin-top: 30px;
}

@media only screen and (max-width: 991px) {
    .page-product .service-sidebar {
        position: static;
        margin: 0 0 30px;
    }

    .page-product .service-entry h2 {
        font-size: 28px;
    }
}

@media only screen and (max-width: 767px) {
    .page-product .service-entry ul li {
        width: 100%;
    }
}

.page-product .product-text + h3 {
    margin-top: 35px;
}

/************************************/
/***        Online shop            ***/
/************************************/

/* Shop pages (Pages/Shop.cshtml, Pages/Shop/*, shop.js): the theme's greens, rounded cards and pill buttons. */
.shop-page {
    padding: 60px 0 100px;
}

/* Not the theme's section headings: their small heading has the leaf in that padding */
.shop-page h2:not(.section-title h2),
.shop-page h3:not(.section-title h3),
.shop-page legend,
.policy-page h2,
.policy-page h3 {
    padding-left: 0;
}

.shop-page .contact-form-errors {
    color: var(--error-color);
}

.shop-page .contact-field-error {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--error-color);
}

.shop-link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: none;
    font-weight: 600;
    color: var(--accent-color);
    transition: color 0.3s ease-in-out;
}

.shop-link-button:hover {
    color: var(--primary-color);
}

.btn-default.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notices */
/* Order deadline banner: the site's dark green, the deadline in white, when availability was updated on the right */
.shop-notice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    padding: 26px 30px;
    overflow: hidden;
    border-radius: 30px;
    background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.08), transparent 55%), var(--primary-color);
    color: var(--white-color);
}

.shop-notice-icon {
    position: relative;   /* for its pulsing rings */
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.06);
    font-size: 26px;
    color: var(--white-color);
}

.shop-notice-text {
    flex-grow: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 0.01em;
    color: var(--white-color);
}

.shop-notice-text p {
    margin: 0;
    color: inherit;
}

.shop-notice-updated {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding-left: 24px;
    border-left: 1px solid var(--dark-divider-color);
    font-size: 14px;
    line-height: 1.4em;
    color: rgba(255, 255, 255, 0.75);
}

.shop-notice-updated i {
    font-size: 20px;
    color: var(--accent-color);
}

.shop-notice-updated strong {
    font-weight: 600;
    color: var(--white-color);
}

@media only screen and (max-width: 767px) {
    .shop-notice {
        flex-wrap: wrap;
        gap: 16px;
        padding: 22px;
        border-radius: 20px;
    }

    .shop-notice-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .shop-notice-text {
        flex-basis: calc(100% - 66px);
        font-size: 16px;
    }

    .shop-notice-updated {
        width: 100%;
        padding: 14px 0 0;
        border-left: none;
        border-top: 1px solid var(--dark-divider-color);
    }
}

.shop-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 15px;
    font-size: 15px;
    line-height: 1.6em;
}

.shop-alert > i {
    margin-top: 4px;
}

.shop-alert a {
    font-weight: 600;
    text-decoration: underline;
    color: inherit;
}

.shop-alert-info {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* A login with several accounts picks the one it's shopping for (Shop.cshtml) */
.shop-account-switch {
    margin-bottom: 20px;
}

.shop-account-switch-label {
    margin-bottom: 10px;
    font-size: 15px;
}

.shop-account-switch .account-filter {
    margin-bottom: 0;
}

/* The portal's account links (.account-filter-link), as buttons here */
.shop-account-switch .account-filter-link {
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}

.shop-account-switch .account-filter-link.active {
    cursor: default;
}

.shop-alert-warning {
    background-color: #FFF6E0;
    color: #7A5300;
}

.shop-alert-danger {
    background-color: rgba(230, 87, 87, 0.12);
    color: #A12C2C;
}

/* The shop front, when nothing's chosen yet (Shop.cshtml): the search on a banner of slides, why order from us, the
   ranges, then "Looking good this week" in a row that scrolls sideways. The product list itself is styled further down. */

/* Reasons to order, scrolling right to left across the full width of the window, between the page banner and the
   slides (Shop.cshtml): the list twice in a row, moved left by one list's width and round again, so it never ends.
   Pauses while the pointer is on it; still, and wrapped onto as many lines as it needs, for visitors who ask for less
   motion. The speed (--marquee-duration) is set by how long the list is. */
.shop-marquee {
    margin: 0 calc(50% - 50vw) 10px;   /* just 10px above the slides */
    padding: 16px 0;
    overflow: hidden;
    background-color: #EEF5EF;
}

/* Straight under the page banner, with no white between (it's always first on the shop front) */
.shop-page:has(> .container > .shop-marquee:first-child) {
    padding-top: 0;
}

/* A notice under it (the basket, the account being ordered for, the range) gets more room than the slides do */
.shop-marquee:not(:has(+ .shop-hero)) {
    margin-bottom: 30px;
}

.shop-marquee-track {
    display: flex;
    width: max-content;
    animation: shop-marquee var(--marquee-duration, 60s) linear infinite;
}

.shop-marquee-list {
    display: flex;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-marquee-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 44px;
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--primary-color);
}

.shop-marquee-list i {
    font-size: 15px;
    color: var(--accent-color);
}

@keyframes shop-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .shop-marquee-track {
        width: auto;
        padding: 0 16px;
        animation: none;
    }

    .shop-marquee-list {
        flex-wrap: wrap;
        flex-shrink: 1;
        justify-content: center;
        gap: 6px 0;
    }

    .shop-marquee-list[aria-hidden="true"] {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .shop-marquee {
        padding: 12px 0;
    }

    .shop-marquee-list li {
        gap: 10px;
        padding-right: 32px;
        font-size: 15px;
    }
}

/* The banner: "Shop our wholesale ranges", then a slide for each range, sliding by on their own (shop.js), each a photo
   darkened on the left for its words. On large screens the search sits over the right of the slides and stays put;
   below that it's under them. */
.shop-hero {
    position: relative;
    margin-bottom: 30px;
    border-radius: 30px;
    overflow: hidden;
    background-color: var(--primary-color);
}

.shop-hero-stage {
    position: relative;
    overflow: hidden;
}

.shop-hero-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.shop-hero-slide {
    position: relative;
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    min-height: 300px;
    padding: 34px 84px 52px;   /* room for the arrows either side and the dots at the bottom */
    background-color: var(--primary-color);
    background-position: center;
    background-size: cover;
}

.shop-hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 61, 44, 0.94) 0%, rgba(11, 61, 44, 0.82) 40%, rgba(11, 61, 44, 0.35) 75%, rgba(11, 61, 44, 0.15) 100%);
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    width: 50%;
    padding-right: 30px;
}

.shop-hero .section-title {
    margin-bottom: 0;
}

.shop-hero .section-title h3 {
    margin-bottom: 8px;
    color: #A9D8A0;
}

.shop-hero .section-title h2 {
    font-size: 34px;
    line-height: 1.2em;
    color: var(--white-color);
}

.shop-hero .section-title h2 span {
    color: #A9D8A0;
}

/* Two lines at most, so a long description doesn't make every slide taller */
.shop-hero .section-title p {
    display: -webkit-box;
    margin-top: 10px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 15px;
    line-height: 1.55em;
    color: rgba(255, 255, 255, 0.85);
}

/* A range's biggest categories, as on its card: one row, the rest cut off */
.shop-hero-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 68px;   /* two rows of whole buttons (each exactly 30px, 8px apart): any that wrap to a third are hidden */
    margin: 14px 0 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}

.shop-hero-cats a {
    display: inline-block;
    height: 30px;
    padding: 0 12px;
    line-height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 500;
    color: var(--white-color);
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.shop-hero-cats a:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.shop-hero-button {
    margin-top: 18px;
}

/* Which slide is showing, and a click to go to another */
.shop-hero-dots {
    position: absolute;
    bottom: 20px;
    left: 84px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.shop-hero-dots[hidden] {
    display: none;
}

.shop-hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.45);
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.shop-hero-dots button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.shop-hero-dots button[aria-current="true"] {
    width: 30px;
    background-color: var(--white-color);
}

/* Previous and next: either side of the slides (at the bottom, by the dots, below large screens) */
.shop-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background-color: rgba(11, 61, 44, 0.45);
    font-size: 16px;
    color: var(--white-color);
    transform: translateY(-50%);
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.shop-hero-arrow[hidden] {
    display: none;
}

.shop-hero-arrow:hover {
    border-color: var(--white-color);
    background-color: var(--white-color);
    color: var(--primary-color);
}

.shop-hero-arrow.is-prev {
    left: 22px;
}

.shop-hero-arrow.is-next {
    right: 22px;
}

.shop-hero-search {
    position: absolute;
    top: 50%;
    right: 84px;
    z-index: 3;
    width: calc(50% - 114px);
    max-width: 540px;
    transform: translateY(-50%);
}

.shop-front-search {
    padding: 22px 24px;
    border-radius: 20px;
    background-color: var(--white-color);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.shop-front-search label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.shop-front-search .shop-search .form-control {
    padding: 14px 58px 14px 20px;
    font-size: 15px;
}

.shop-front-search .shop-search button {
    right: 6px;
    width: 40px;
    height: 40px;
    font-size: 15px;
}

.shop-front-search-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 20px;
    margin-top: 10px;
}

.shop-front-search-foot .shop-ranges-all {
    margin-top: 0;
}

.shop-front-updated {
    font-size: 13px;
    color: var(--text-color);
}

.shop-front-updated i {
    margin-right: 4px;
    color: var(--accent-color);
}

@media only screen and (max-width: 991px) {
    .shop-hero-slide {
        min-height: 260px;
        padding: 28px 30px 50px;
    }

    .shop-hero-slide::before {
        background: linear-gradient(90deg, rgba(11, 61, 44, 0.92) 0%, rgba(11, 61, 44, 0.7) 100%);
    }

    .shop-hero-content {
        width: 100%;
        padding-right: 0;
    }

    .shop-hero .section-title h2 {
        font-size: 28px;
    }

    .shop-hero-slide {
        padding-left: 30px;
        padding-right: 30px;
    }

    .shop-hero-dots {
        bottom: 20px;
        left: 30px;
    }

    .shop-hero-arrow {
        top: auto;
        bottom: 10px;
        width: 34px;
        height: 34px;
        font-size: 13px;
        transform: none;
    }

    .shop-hero-arrow.is-prev {
        right: 64px;
        left: auto;
    }

    .shop-hero-arrow.is-next {
        right: 22px;
    }

    /* Under the slides, on the banner's green */
    .shop-hero-search {
        position: static;
        width: auto;
        max-width: none;
        padding: 16px 20px 20px;
        transform: none;
    }
}

@media only screen and (max-width: 575px) {
    .shop-hero {
        border-radius: 20px;
    }

    .shop-hero-slide {
        min-height: 0;
        padding: 22px 18px 46px;
    }

    .shop-hero .section-title h2 {
        font-size: 24px;
    }

    .shop-hero .section-title p {
        font-size: 14px;
    }

    /* The category links are on the range cards below, so phones keep the slides short */
    .shop-hero-cats {
        display: none;
    }

    .shop-hero-button {
        margin-top: 14px;
    }

    .shop-hero-slide {
        padding-left: 18px;
        padding-right: 18px;
    }

    .shop-hero-dots {
        bottom: 18px;
        left: 18px;
    }

    .shop-hero-arrow.is-prev {
        right: 54px;
    }

    .shop-hero-arrow.is-next {
        right: 14px;
    }

    .shop-hero-search {
        padding: 12px;
    }

    .shop-front-search {
        padding: 16px;
        border-radius: 14px;
    }

    .shop-front-search label {
        font-size: 16px;
    }
}

/* Why order from us: a row of four, two by two on tablets and phones (smaller, the icon above the words, on phones).
   A deep green strip with a band of light sweeping across it every few seconds. */
.shop-benefits {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    margin: 0 0 60px;
    padding: 0;
    list-style: none;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(120deg, var(--primary-color) 0%, #145A35 45%, var(--accent-color) 100%);
    background-size: 200% 200%;
    box-shadow: 0 18px 40px rgba(11, 61, 44, 0.18);
    animation: shop-benefits-glow 12s ease-in-out infinite alternate;
}

/* The shimmer: a soft diagonal band of light that sweeps left to right, then pauses */
.shop-benefits::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.16) 45%, rgba(255, 255, 255, 0.32) 50%, rgba(255, 255, 255, 0.16) 55%, transparent 65%);
    background-size: 250% 100%;
    background-repeat: no-repeat;
    background-position: 150% 0;
    animation: shop-benefits-shimmer 6s ease-in-out infinite;
}

@keyframes shop-benefits-shimmer {
    0% { background-position: 150% 0; }
    45%, 100% { background-position: -50% 0; }
}

@keyframes shop-benefits-glow {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

.shop-benefits li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    margin-right: -1px;   /* the last in a row has no line at the edge */
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: -1px;
    transition: background-color 0.3s ease;
}

.shop-benefits li:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.shop-benefit-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    font-size: 20px;
    color: var(--white-color);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.shop-benefits li:hover .shop-benefit-icon {
    transform: scale(1.08) rotate(-6deg);
    background-color: var(--white-color);
    color: var(--accent-color);
}

.shop-benefit-text strong {
    display: block;
    font-size: 16px;
    color: var(--white-color);
}

.shop-benefit-text span {
    display: block;
    font-size: 14px;
    line-height: 1.4em;
    color: rgba(255, 255, 255, 0.82);
}

@media (prefers-reduced-motion: reduce) {
    .shop-benefits,
    .shop-benefits::after {
        animation: none;
    }

    .shop-benefits::after {
        display: none;
    }

    .shop-benefits li:hover .shop-benefit-icon {
        transform: none;
    }
}

/* The headings of the shop front's sections: smaller than the theme's, as on a shop's home page */
.shop-front-heading {
    margin-bottom: 25px;
}

.shop-front-heading h2 {
    margin: 0;
    font-size: 32px;
}

@media only screen and (max-width: 767px) {
    .shop-benefits {
        margin-bottom: 45px;
    }

    .shop-front-heading h2 {
        font-size: 26px;
    }
}

/* Phones: two by two, the icon above the words */
@media only screen and (max-width: 575px) {
    .shop-benefits {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 18px;
    }

    .shop-benefits li {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 14px 10px;
        text-align: center;
    }

    .shop-benefit-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .shop-benefit-text strong {
        font-size: 14px;
        line-height: 1.3em;
    }

    .shop-benefit-text span {
        font-size: 12px;
        line-height: 1.35em;
    }
}

/* Shop by range: the home page's Product Range cards (the theme's .service-item, custom.css), with the range's product
   count under its name, or a "pre-order soon" label for one with nothing to order yet */
.shop-ranges {
    margin-bottom: 40px;   /* plus the cards' own 30px */
}

/* The ordering system's range photos are only 350 wide, narrower than the card: stretch them across it */
.shop-range-card .service-image img {
    width: 100%;
}

.shop-range-card .service-title h3 {
    margin-bottom: 0;
}

/* The product count: the home page hero's pill (.live-count-pill), under the name. Not a link here (the card is), so no
   hover of its own. */
.live-count-pill.shop-range-card-count {
    margin: 10px 0 0;
}

.live-count-pill.shop-range-card-count:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background-color: rgba(11, 61, 44, 0.55);
}

.shop-range-card-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 100px;
    background-color: var(--white-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Nothing to order yet: no zoom, and the photo a little faded */
.shop-range-card.is-soon .service-image img {
    filter: grayscale(0.5);
}

.shop-range-card.is-soon:hover .service-image img {
    transform: none;
}

/* "Looking good this week" (featured products): on a light green band across the full width of the window - out to
   the window's edges, with padding bringing the contents back to the container's width (html and body clip anything
   past the edge, so it can't scroll sideways). */
.shop-band {
    position: relative;
    margin-inline: calc(50% - 50vw);
    padding: 70px calc(50vw - 50%);
    background-color: #EEF5EF;
}

.shop-featured-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.shop-featured .section-title {
    margin-bottom: 0;
}

/* When the shop opens: one row that scrolls sideways, a card at a time, with arrows (shop.js) */
.shop-featured.is-carousel .shop-product-list.is-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 4);   /* four whole cards (20px gaps), fewer on narrower screens */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;   /* no scroll bar: the arrows, a swipe or the keyboard move it */
}

.shop-featured.is-carousel .shop-product-list.is-grid::-webkit-scrollbar {
    display: none;
}

.shop-featured.is-carousel .shop-product {
    scroll-snap-align: start;
}

.shop-featured.is-carousel .shop-product-list:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.shop-carousel-arrows {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.shop-carousel-arrows[hidden] {
    display: none;
}

.shop-carousel-arrows button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--white-color);
    transition: background-color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.shop-carousel-arrows button:hover:not(:disabled) {
    background-color: var(--primary-color);
}

.shop-carousel-arrows button:disabled {
    opacity: 0.35;
    cursor: default;
}

@media only screen and (max-width: 1199px) {
    .shop-featured.is-carousel .shop-product-list.is-grid {
        grid-auto-columns: calc((100% - 40px) / 3);
    }
}

@media only screen and (max-width: 991px) {
    .shop-featured.is-carousel .shop-product-list.is-grid {
        grid-auto-columns: calc((100% - 20px) / 2);
    }
}

@media only screen and (max-width: 767px) {
    .shop-featured.is-carousel .shop-product-list.is-grid {
        grid-auto-columns: 78%;   /* the next card peeks in, so it's clear the row scrolls */
    }

    .shop-carousel-arrows button {
        width: 40px;
        height: 40px;
    }
}

/* When the shop opens, "Looking good this week" is the last thing on the page: its light green runs down behind the
   footer's scene (footer-top-bg.svg, drawn above the footer in its top margin), so there's no white strip between
   them - as for .our-services above the footer. The band's own 70px, plus the scene's height. */
.shop-page:has(.shop-featured.is-carousel) {
    padding-bottom: 0;
}

.shop-featured.is-carousel {
    padding-bottom: calc(70px + max(132px, 6.72vw));
}

.shop-page:has(.shop-featured.is-carousel) ~ .main-footer {
    margin-top: 0;
}

@media only screen and (max-width: 991px) {
    .shop-featured.is-carousel {
        padding-bottom: 150px;   /* 50px + the scene's 100px at this size */
    }
}

/* Four of them at random under the basket and checkout */
.shop-checkout-page .shop-featured {
    margin-top: 70px;
}

/* "view all products" */
.shop-ranges-all {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--accent-color);
}

.shop-ranges-all i {
    margin-left: 4px;
    transition: transform 0.3s ease-in-out;
}

.shop-ranges-all:hover i {
    transform: translateX(4px);
}

/* Sidebar: search, ranges and filters */
.shop-sidebar {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 25px;
    border-radius: 30px;
    background-color: var(--secondary-color);
    scrollbar-width: thin;
}

.shop-widget {
    margin: 0 0 25px;
    padding: 0 0 25px;
    border: none;
    border-bottom: 1px solid var(--divider-color);
}

.shop-widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.shop-widget h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.shop-widget legend {
    margin: 0;
    float: none;
}

.shop-search {
    position: relative;
}

.shop-search .form-control {
    padding: 12px 44px 12px 16px;   /* room for the button; tight, so "Name or product code" fits in the sidebar */
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    font-size: 14px;
    color: var(--primary-color);
    box-shadow: none;
}

.shop-search .form-control:focus {
    border-color: var(--accent-color);
}

.shop-search button {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-50%);
}

.shop-tree,
.shop-tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-tree ul {
    margin: 4px 0 8px 5px;
    padding-left: 12px;
    border-left: 2px solid var(--divider-color);
}

.shop-tree a,
.shop-tree summary {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    font-size: 15px;
    line-height: 1.4em;
    color: var(--text-color);
    cursor: pointer;
}

.shop-tree summary {
    list-style: none;
    font-weight: 600;
    color: var(--primary-color);
}

.shop-tree summary::-webkit-details-marker {
    display: none;
}

.shop-tree summary::before {
    content: '\f105';   /* Font Awesome angle-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    /* A one-line box at the top, so a name that wraps doesn't stretch it (rotated, a tall box would cover the text) */
    align-self: flex-start;
    width: 12px;
    height: 1.4em;
    flex-shrink: 0;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.shop-tree details[open] > summary::before {
    transform: rotate(90deg);
}

.shop-tree summary > span,
.shop-tree a > span {
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.8;
}

.shop-tree a:hover,
.shop-tree a.active,
.shop-tree summary.active {
    color: var(--accent-color);
}

.shop-tree a.active {
    font-weight: 700;
}

.shop-tree .is-empty a {
    opacity: 0.45;
}

.shop-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-filter {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.shop-filter input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shop-filter span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    background-color: var(--white-color);
    font-size: 14px;
    color: var(--primary-color);
    transition: all 0.2s ease-in-out;
}

.shop-filter:hover span {
    border-color: var(--accent-color);
}

.shop-filter input:checked + span {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--white-color);
}

.shop-filter input:focus-visible + span {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.shop-widget-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.shop-filter-apply.is-js {
    display: none;
}

.shop-filter-clear {
    font-weight: 600;
    color: var(--accent-color);
}

.shop-filters-toggle,
.shop-sidebar-header,
.shop-filters-backdrop {
    display: none;
}

/* Toolbar above the products */
.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--divider-color);
}

.shop-toolbar h2 {
    margin: 0 0 4px;
    font-size: 28px;
}

.shop-toolbar p {
    margin: 0;
    font-size: 15px;
}

.shop-toolbar-controls {
    display: flex;
    gap: 15px;
}

.shop-toolbar-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.shop-toolbar-controls .form-select {
    width: auto;
    padding: 8px 36px 8px 16px;
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    font-size: 14px;
    color: var(--primary-color);
    box-shadow: none;
}

/* A product */
.shop-product-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.shop-product {
    display: flex;
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--divider-color);
    border-radius: 25px;
    background-color: var(--white-color);
    scroll-margin-top: 120px;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.shop-product:hover {
    box-shadow: 0 10px 30px rgba(11, 61, 44, 0.08);
}

.shop-product.is-in-basket {
    border-color: var(--accent-color);
    box-shadow: inset 4px 0 0 var(--accent-color);
}

.shop-product-media {
    flex-shrink: 0;
    width: 140px;
}

.shop-product-image {
    position: relative;
    height: 140px;
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.shop-product-photo {
    display: block;
    width: 100%;
    height: 100%;
}

.shop-product-photo[hidden] {
    display: none;
}

a.shop-product-photo[href] {
    cursor: zoom-in;
}

a.shop-product-photo[href]:hover img {
    transform: scale(1.06);
}

/* "Looking good" on a featured product's photo in the shop list */
.shop-product-featured {
    position: absolute;
    z-index: 1;   /* above the photo while it zooms on hover */
    left: 8px;
    top: 8px;
    padding: 3px 10px;
    border-radius: 100px;
    background-color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    color: var(--white-color);
    pointer-events: none;   /* a click on it opens the photo */
}

/* Small copies of the main and feature photos under the photo, half its width, to choose which one shows */
.shop-photo-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.shop-photo-thumb {
    display: block;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--secondary-color);
    transition: border-color 0.3s ease-in-out;
}

.shop-photo-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-photo-thumb:hover,
.shop-photo-thumb:focus-visible,
.shop-photo-thumb.is-active {
    border-color: var(--accent-color);
}

.shop-product-in-basket {
    position: absolute;
    z-index: 1;   /* above the photo while it zooms on hover */
    left: 8px;
    bottom: 8px;
    pointer-events: none;   /* a click on it opens the photo */
    padding: 3px 10px;
    border-radius: 100px;
    background-color: var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    color: var(--white-color);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease-in-out;
}

.shop-product.is-in-basket .shop-product-in-basket {
    opacity: 1;
    transform: none;
}

/* The basket icon replaces the tick and words on mobile (below) */
.shop-product-in-basket .fa-basket-shopping {
    display: none;
}

.shop-product-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-product-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.shop-product-code {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--accent-color);
}

.shop-product-title h3 {
    margin: 2px 0 4px;
    font-size: 18px;
    line-height: 1.35em;
}

.shop-product-range {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    background-color: var(--secondary-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.shop-product-price {
    flex-shrink: 0;
    text-align: right;
}

.shop-product-price strong {
    display: block;
    font-size: 22px;
    line-height: 1.2em;
    color: var(--primary-color);
}

.shop-product-price span {
    display: block;
    font-size: 13px;
}

.shop-product-price .shop-product-tag {
    margin-top: 4px;
    font-weight: 700;
    color: var(--accent-color);
}

.shop-product-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
}

.shop-product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0;
    font-size: 14px;
}

.shop-product-details dt {
    font-weight: 600;
    color: var(--primary-color);
}

.shop-product-details dd {
    margin: 0;
}

.shop-product-badges {
    display: flex;
    gap: 6px;
}

.shop-product-badges img {
    width: 30px;
    height: 30px;
}

.shop-product-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--divider-color);
}

.shop-product-options.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

.shop-product-options-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.shop-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid var(--accent-color);
    border-radius: 100px;
    background-color: var(--white-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    transition: all 0.2s ease-in-out;
}

.shop-option:hover {
    background-color: var(--secondary-color);
}

.shop-option.is-chosen {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.shop-option-remove {
    width: 36px;
    height: 36px;
    margin-left: auto;
    border: 1px solid var(--divider-color);
    border-radius: 50%;
    background: none;
    color: var(--error-color);
    transition: all 0.2s ease-in-out;
}

.shop-option-remove[hidden] {
    display: none;
}

.shop-option-remove:hover {
    border-color: var(--error-color);
    background-color: var(--error-color);
    color: var(--white-color);
}

/* List or grid switch in the toolbar */
.shop-view-toggle {
    display: flex;
    align-self: center;
    padding: 3px;
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    background-color: var(--white-color);
}

.shop-view-toggle a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 32px;
    border-radius: 100px;
    color: var(--text-color);
    transition: all 0.2s ease-in-out;
}

.shop-view-toggle a:hover {
    color: var(--accent-color);
}

.shop-view-toggle a.active {
    background-color: var(--accent-color);
    color: var(--white-color);
}

/* Grid view: the same product cards side by side - photo on top, then the name, price, details and buying options
   (kept at the bottom, so the cards in a row line up). Uses the 140px thumbnails, so the photo is kept to 180px. */
.shop-product-list.is-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.shop-product-list.is-grid .shop-product {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
}

.shop-product-list.is-grid .shop-product.is-in-basket {
    box-shadow: inset 0 4px 0 var(--accent-color);
}

.shop-product-list.is-grid .shop-product-media {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
}

.shop-product-list.is-grid .shop-product-image {
    height: auto;
    aspect-ratio: 1;
}

.shop-product-list.is-grid .shop-product-body {
    gap: 10px;
}

.shop-product-list.is-grid .shop-product-top {
    flex-direction: column;
    gap: 6px;
}

.shop-product-list.is-grid .shop-product-title h3 {
    font-size: 17px;
}

.shop-product-list.is-grid .shop-product-price {
    text-align: left;
}

.shop-product-list.is-grid .shop-product-price strong,
.shop-product-list.is-grid .shop-product-price span {
    display: inline;
    margin-right: 6px;
}

.shop-product-list.is-grid .shop-product-price strong {
    font-size: 20px;
}

.shop-product-list.is-grid .shop-product-details {
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.shop-product-list.is-grid .shop-product-details > div {
    display: flex;
    gap: 6px;
}

.shop-product-list.is-grid .shop-product-badges img {
    width: 26px;
    height: 26px;
}

.shop-product-list.is-grid .shop-product-options-label {
    display: none;
}

.shop-product-list.is-grid .shop-option {
    padding: 6px 12px;
    font-size: 13px;
}

.shop-empty {
    padding: 60px 20px;
    border-radius: 30px;
    background-color: var(--secondary-color);
    text-align: center;
}

.shop-empty > i {
    margin-bottom: 15px;
    font-size: 44px;
    color: var(--accent-color);
}

.shop-empty h3 {
    margin-bottom: 10px;
}

/* Pages of products */
.shop-pager ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.shop-pager a,
.shop-pager-gap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 100px;
    background-color: var(--secondary-color);
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.2s ease-in-out;
}

.shop-pager-gap {
    background: none;
}

.shop-pager a:hover,
.shop-pager .active a {
    background-color: var(--accent-color);
    color: var(--white-color);
}

/* The running total along the bottom of the shop page */
.shop-basket-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 12px 0;
    background-color: rgba(11, 61, 44, 0.82);   /* --primary-color, see-through like the basket flyout */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    color: var(--white-color);
}

.shop-basket-bar[hidden] {
    display: none;
}

body:has(.shop-basket-bar:not([hidden])) footer {
    padding-bottom: 80px;
}

/* The sidebar stops above the bar, so its end ("clear all") can be scrolled to (on phones it's a panel over the bar) */
@media only screen and (min-width: 992px) {
    body:has(.shop-basket-bar:not([hidden])) .shop-sidebar {
        max-height: calc(100vh - 130px - 80px);
    }
}

.shop-basket-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 25px;
}

.shop-basket-bar-figures {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 25px;
    font-size: 15px;
}

.shop-basket-bar-figures i {
    margin-right: 4px;
    opacity: 0.8;
}

.shop-basket-bar-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.shop-basket-bar-actions .btn-default {
    margin-right: 18px;
    padding-top: 11px;
    padding-bottom: 11px;
}

.shop-basket-bar-view {
    font-weight: 600;
    text-decoration: underline;
    color: var(--white-color);
}

.shop-basket-bar-view:hover {
    color: var(--secondary-color);
}

/* Steps along the top of the basket, checkout and confirm pages */
.shop-steps {
    display: flex;
    gap: 10px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

.shop-steps li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 100px;
    background-color: var(--secondary-color);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.shop-steps li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.shop-step-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--white-color);
    font-size: 14px;
    line-height: 30px;
    text-align: center;
}

.shop-steps li.is-done .shop-step-number {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.shop-steps li.is-current {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.shop-steps li.is-current .shop-step-number {
    background-color: var(--accent-color);
    color: var(--white-color);
}

/* Basket table */
.shop-basket-table {
    margin-bottom: 25px;
    border: 1px solid var(--divider-color);
    border-radius: 25px;
    overflow: hidden;
}

.shop-basket-table table {
    width: 100%;
    border-collapse: collapse;
}

.shop-basket-table th {
    padding: 14px 15px;
    background-color: var(--secondary-color);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: left;
}

.shop-basket-table td {
    padding: 12px 15px;
    border-top: 1px solid var(--divider-color);
    font-size: 15px;
    vertical-align: middle;
}

.shop-basket-table .num {
    text-align: right;
    white-space: nowrap;
}

.shop-basket-table del {
    display: block;
    font-size: 13px;
    opacity: 0.7;
}

.shop-basket-photo {
    width: 76px;
}

.shop-basket-photo img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.shop-basket-table strong {
    color: var(--primary-color);
}

.shop-basket-code {
    display: block;
    font-size: 13px;
}

/* Outside the logged-in customer's limited range: greyed out, and not ordered. */
.shop-basket-table tr.is-unavailable td:not(.shop-basket-remove) {
    opacity: 0.5;
}

.shop-basket-table tr.is-unavailable img {
    filter: grayscale(1);
}

.shop-basket-unavailable,
.basket-flyout-line-details .basket-flyout-line-unavailable {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
}

.basket-flyout-line.is-unavailable img,
.basket-flyout-line.is-unavailable h3 {
    opacity: 0.5;
    filter: grayscale(1);
}

.shop-basket-label {
    margin-left: 4px;
    color: var(--accent-color);
}

.shop-basket-remove {
    width: 56px;
    text-align: right;
}

.shop-basket-remove button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--divider-color);
    border-radius: 50%;
    background: none;
    color: var(--error-color);
}

.shop-basket-remove button:hover {
    background-color: var(--error-color);
    border-color: var(--error-color);
    color: var(--white-color);
}

.shop-basket-footer {
    row-gap: 25px;
}

/* An option with a tick box (colour labels) */
/* Special prices without price label details (confirm page): Gedney's details, or the customer's own. */
.shop-labels {
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid var(--divider-color);
    border-radius: 20px;
}

.shop-labels.is-invalid,
.shop-labels-price.is-invalid {
    border-color: #c0392b;
}

.shop-labels-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 12px 0;
    padding: 0;
    border: 0;
}

/* Their own details only when they've chosen to give them (shown anyway in a browser without :has). */
.shop-labels:not(:has(input[value="own"]:checked)) .shop-labels-own {
    display: none;
}

.shop-labels-price {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
}

.shop-labels-price h4 {
    margin: 0;
    font-size: 16px;
}

.shop-labels-products {
    margin: 2px 0 8px;
    font-size: 13px;
}

.shop-labels-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 12px;
}

.shop-labels-fields label {
    flex: 1 1 140px;
    font-size: 13px;
    font-weight: 700;
}

.shop-labels-or {
    padding-bottom: 6px;
    font-size: 13px;
    font-style: italic;
}

.shop-labels-note {
    margin: 12px 0 0;
    font-size: 13px;
}

.shop-option-box {
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid var(--divider-color);
    border-radius: 20px;
}

.shop-option-box p {
    margin: 6px 0 0 34px;
    font-size: 14px;
    line-height: 1.6em;
}

.shop-option-box > p:first-child {
    margin: 0 0 8px;
}

.shop-option-box-update {
    margin: 10px 0 0 34px;
    padding: 4px 14px;
    border: 1px solid var(--accent-color);
    border-radius: 100px;
    background: none;
    font-size: 13px;
    color: var(--accent-color);
}

.shop-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    cursor: pointer;
    color: var(--primary-color);
}

.shop-check input {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.shop-check a {
    font-weight: 600;
    text-decoration: underline;
    color: var(--accent-color);
}

/* Totals */
.shop-totals {
    margin: 0 0 20px;
    padding: 20px 25px;
    border-radius: 25px;
    background-color: var(--secondary-color);
}

.shop-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 6px 0;
}

.shop-totals dt {
    font-weight: 500;
}

.shop-totals dd {
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.shop-totals-discount dd {
    color: var(--accent-color);
}

.shop-totals > .shop-totals-total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--divider-color);
    font-size: 20px;
}

.shop-totals-total dt,
.shop-totals-total dd {
    font-weight: 700;
    color: var(--primary-color);
}

.shop-totals-total small {
    font-size: 13px;
    font-weight: 500;
}

.shop-totals-fill {
    font-size: 13px;
    opacity: 0.85;
}

.shop-checkout-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px 25px;
    margin-top: 10px;
}

.shop-checkout-buttons .btn-default {
    margin-right: 18px;
}

/* Checkout form */
.shop-form fieldset {
    margin-bottom: 15px;
    padding: 30px;
    border: 1px solid var(--divider-color);
    border-radius: 30px;
}

.shop-form legend {
    float: none;
    width: auto;
    margin: 0 0 10px;
    padding: 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.shop-form label {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.shop-form label small {
    font-weight: 400;
    color: var(--text-color);
}

.shop-form .form-control,
.shop-form .form-select {
    padding: 12px 16px;
    border: 1px solid var(--divider-color);
    border-radius: 15px;
    font-size: 16px;
    color: var(--primary-color);
    box-shadow: none;
}

.shop-form .form-control:focus,
.shop-form .form-select:focus {
    border-color: var(--accent-color);
}

.shop-form .input-validation-error {
    border-color: var(--error-color);
}

.shop-postcode {
    text-transform: uppercase;
}

.shop-form .shop-postcode-confirm {
    margin-top: 10px;
    font-weight: 500;
}

.shop-form-hint {
    margin: -4px 0 18px;
    font-size: 14px;
}

/* Checkout: log in or check out as a guest (visitors who aren't logged in) */
.shop-checkout-choice {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.shop-checkout-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    border: 1px solid var(--divider-color);
    border-radius: 30px;
}

.shop-checkout-option > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    font-size: 22px;
    color: var(--accent-color);
}

.shop-checkout-option h2 {
    margin-bottom: 10px;
    font-size: 22px;
}

.shop-checkout-option p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.shop-checkout-guest {
    margin-bottom: 20px;
    padding: 14px 20px;
    border-radius: 15px;
    background-color: var(--secondary-color);
    font-size: 15px;
}

.shop-checkout-guest i {
    margin-right: 6px;
    color: var(--accent-color);
}

.shop-checkout-guest a {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: underline;
}

@media only screen and (max-width: 767px) {
    .shop-checkout-choice {
        grid-template-columns: 1fr;
    }
}

/* Order summary beside the checkout and confirm pages */
.shop-summary {
    padding: 30px;
    border-radius: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
}

.shop-summary-sticky {
    position: sticky;
    top: 110px;
}

.shop-summary h3 {
    margin-bottom: 15px;
    color: var(--white-color);
}

.shop-summary .shop-totals {
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white-color);
}

.shop-summary .shop-totals dd,
.shop-summary .shop-totals-total dt,
.shop-summary .shop-totals-total dd {
    color: var(--white-color);
}

.shop-summary .shop-totals > .shop-totals-total {
    border-top-color: var(--dark-divider-color);
}

.shop-summary .shop-totals-discount dd {
    color: #B7F0A0;
}

.shop-summary-note {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.6em;
    opacity: 0.8;
}

/* The collection and availability list ticks on the confirm page */
.shop-summary-options {
    padding-bottom: 5px;
    border-bottom: 1px solid var(--dark-divider-color);
}

.shop-summary .shop-summary-options .shop-check {
    margin: 0;
}

.shop-summary-options p {
    margin: 4px 0 15px 34px;
    font-size: 13px;
    line-height: 1.6em;
    opacity: 0.8;
}

.shop-summary .shop-check {
    margin: 20px 0 10px;
    font-size: 14px;
    line-height: 1.6em;
    color: var(--white-color);
}

.shop-summary .shop-check a {
    color: #B7F0A0;
}

.shop-summary .shop-terms.is-invalid {
    padding: 10px;
    border-radius: 12px;
    outline: 2px solid var(--error-color);
}

.shop-summary .contact-field-error,
.shop-summary .contact-form-errors {
    color: #FFB4B4;
}

.shop-payment {
    margin: 20px 0 0;
    padding: 0;
    border: none;
}

.shop-payment legend {
    float: none;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white-color);
}

.shop-payment-option {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid var(--dark-divider-color);
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.5em;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.shop-payment-option:has(input:checked) {
    border-color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.shop-payment-option input {
    margin-top: 3px;
    accent-color: var(--accent-color);
}

.shop-payment-option strong {
    display: block;
    font-size: 15px;
}

.shop-payment-option strong i {
    margin-right: 6px;
}

.shop-place-order {
    width: calc(100% - 18px);
    margin: 10px 0 0;
    text-align: center;
}

.shop-place-order:disabled {
    opacity: 0.7;
}

/* Confirm page */
.shop-confirm-details {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    margin-bottom: 30px;
    padding: 25px 30px;
    border: 1px solid var(--divider-color);
    border-radius: 25px;
}

.shop-confirm-details h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.shop-confirm-details p {
    margin: 0;
    line-height: 1.7em;
}

.shop-confirm-details .shop-confirm-comments {
    margin-top: 8px;
}

/* "This order is for account STOCK", above the details on the confirm page */
.shop-confirm-account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 20px;
    padding: 16px 25px;
    border-radius: 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 16px;
}

.shop-confirm-account i {
    color: var(--accent-color);
    font-size: 20px;
}

.shop-confirm-account strong {
    padding: 2px 14px;
    border-radius: 8px;
    background-color: var(--white-color);
    color: var(--primary-color);
    font-size: 18px;
    letter-spacing: 0.5px;
}

.shop-confirm-edit {
    position: absolute;
    top: 22px;
    right: 25px;
}

.shop-section-heading {
    margin: 10px 0 15px;
    font-size: 22px;
}

.shop-page .shop-link-button + .shop-section-heading {
    margin-top: 35px;
}

/* "Please wait" while an order is placed */
.shop-overlay {
    position: fixed;
    inset: 0;
    z-index: 1070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(240, 255, 240, 0.94);   /* --secondary-color */
}

.shop-overlay[hidden],
.shop-overlay-box [hidden] {
    display: none;
}

.shop-overlay-box {
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 30px;
    background-color: var(--white-color);
    box-shadow: 0 25px 60px rgba(11, 61, 44, 0.15);
    text-align: center;
}

.shop-overlay-box h3 {
    margin-bottom: 8px;
    padding-left: 0;
}

.shop-overlay-box p {
    margin: 0;
}

.shop-overlay-box .shop-overlay-small {
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.75;
}

.shop-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 22px;
    border: 5px solid var(--divider-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: shop-spin 0.8s linear infinite;
}

@keyframes shop-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Thank-you and payment pages */
.shop-result-box {
    max-width: 680px;
    margin: 0 auto;
    padding: 50px 40px;
    border-radius: 30px;
    background-color: var(--secondary-color);
    text-align: center;
}

.shop-result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    font-size: 34px;
    line-height: 80px;
    color: var(--white-color);
}

.shop-result-icon.is-done {
    background-color: var(--accent-color);
}

.shop-result-icon.is-waiting {
    background-color: #D99B1C;
}

.shop-result-icon.is-problem {
    background-color: var(--error-color);
}

.shop-result-box h2 {
    margin-bottom: 15px;
    font-size: 30px;
}

.shop-result-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.shop-result-details > div {
    min-width: 160px;
    padding: 15px 20px;
    border-radius: 20px;
    background-color: var(--white-color);
}

.shop-result-details dt {
    font-size: 13px;
    font-weight: 500;
}

.shop-result-details dd {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    word-break: break-all;
}

.shop-result-note {
    font-size: 15px;
}

/* Thank-you page: where the goods are going, beside a map of it */
.shop-result-delivery {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px;
    margin: 0 0 25px;
    padding: 20px;
    border-radius: 20px;
    background-color: var(--white-color);
    text-align: left;
}

.shop-result-delivery-address h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.shop-result-delivery-address h3 i {
    margin-right: 6px;
    color: var(--accent-color);
}

.shop-result-delivery-address p {
    margin: 0;
    line-height: 1.7em;
}

.shop-result-map {
    border-radius: 15px;
    overflow: hidden;
    min-height: 220px;
}

.shop-result-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    border: 0;
}

@media only screen and (max-width: 575px) {
    .shop-result-delivery {
        grid-template-columns: 1fr;
    }
}

.shop-result-box .shop-alert {
    text-align: left;
}

.shop-result-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px 30px;
    margin-top: 25px;
}

/* Basket flyout extras (the rest is with the header basket, near the top of this file) */
.basket-flyout-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.basket-flyout-fill {
    display: flex;
    gap: 15px;
    margin: 4px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.basket-flyout-fill i {
    margin-right: 4px;
}

.basket-flyout-line form {
    flex-shrink: 0;
}

.basket-flyout-remove {
    width: 30px;
    height: 30px;
    border: 1px solid var(--dark-divider-color);
    border-radius: 50%;
    background: none;
    font-size: 12px;
    color: var(--white-color);
    transition: all 0.2s ease-in-out;
}

.basket-flyout-remove:hover {
    background-color: var(--error-color);
    border-color: var(--error-color);
}

.basket-flyout-line img {
    background-color: var(--white-color);
}

/* Policy pages (terms of sale, help & returns, customer service) */
.policy-page {
    padding: 80px 0 100px;
}

.policy-page-body h3 {
    margin: 35px 0 12px;
    font-size: 22px;
}

.policy-page-body h3:first-child {
    margin-top: 0;
}

.policy-page-body ul {
    margin: 0 0 1.6em;
    padding-left: 22px;
}

.policy-page-body li {
    margin-bottom: 6px;
    line-height: 1.7em;
}

.policy-page-body li::marker {
    color: var(--accent-color);
}

.policy-page-body a {
    font-weight: 600;
    text-decoration: underline;
    color: var(--accent-color);
}

.policy-page-sidebar {
    position: sticky;
    top: 110px;
}

.policy-page-box {
    margin-bottom: 25px;
    padding: 30px;
    border-radius: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
}

.policy-page-box h3 {
    margin-bottom: 10px;
    color: var(--white-color);
}

.policy-page-box p {
    margin-bottom: 10px;
    line-height: 1.6em;
}

.policy-page-box p a {
    color: var(--white-color);
}

.policy-page-box i {
    width: 20px;
    margin-right: 6px;
}

.policy-page-box .btn-default {
    margin-top: 10px;
}

.policy-page-links {
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.policy-page-links a {
    padding: 15px 25px;
    border-bottom: 1px solid var(--divider-color);
    font-weight: 600;
    color: var(--primary-color);
}

.policy-page-links a:last-child {
    border-bottom: none;
}

.policy-page-links a:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.policy-page-links i {
    width: 22px;
    margin-right: 8px;
}

/* Shop on tablets and phones */
@media only screen and (max-width: 991px) {
    .shop-page {
        padding: 40px 0 80px;
    }

    .shop-filters-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin-bottom: 20px;
        padding: 12px 20px;
        border: 1px solid var(--accent-color);
        border-radius: 100px;
        background-color: var(--white-color);
        font-weight: 700;
        color: var(--accent-color);
    }

    .shop-filters-toggle-on {
        padding: 1px 9px;
        border-radius: 100px;
        background-color: var(--accent-color);
        font-size: 12px;
        color: var(--white-color);
    }

    /* The sidebar becomes a panel that slides in from the right, like the basket flyout (shop.js) */
    .shop-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;   /* above the header and cookie banner */
        width: min(380px, 90%);
        max-height: none;
        padding: 0 25px 25px;
        border-radius: 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
        overscroll-behavior: contain;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.35s ease, visibility 0s linear 0.35s;
    }

    .shop-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.35s ease;
    }

    .shop-filters-backdrop {
        display: block;
    }

    .shop-sidebar-header {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 -25px 25px;
        padding: 18px 25px;
        border-bottom: 1px solid var(--divider-color);
        background-color: var(--secondary-color);
    }

    .shop-sidebar-header h2 {
        margin: 0;
        font-size: 22px;
    }

    .shop-sidebar-close {
        width: 40px;
        height: 40px;
        border: 1px solid var(--divider-color);
        border-radius: 50%;
        background: none;
        font-size: 18px;
        color: var(--primary-color);
        transition: all 0.3s ease-in-out;
    }

    .shop-sidebar-close:hover,
    .shop-sidebar-close:focus-visible {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
        color: var(--white-color);
    }

    .shop-filters-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1049;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0s linear 0.35s;
    }

    .shop-filters-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.35s ease;
    }

    body.shop-filters-open {
        overflow: hidden;
    }

    .shop-summary-sticky,
    .policy-page-sidebar {
        position: static;
    }

    .shop-summary {
        margin-top: 30px;
    }

    .shop-steps li {
        padding: 8px 12px;
        font-size: 13px;
    }

    .policy-page {
        padding: 50px 0 80px;
    }

    .policy-page-sidebar {
        margin-top: 30px;
    }
}

@media only screen and (max-width: 767px) {
    /* Photo beside the name and price; details and buying options across the whole card */
    .shop-product {
        display: grid;
        grid-template-columns: 84px 1fr;
        gap: 12px 15px;
        padding: 15px;
    }

    .shop-product-media {
        width: 84px;
    }

    .shop-product-image {
        height: 84px;
    }

    /* "Looking good" becomes a round icon, as the photo is too small for the words (kept for screen readers) */
    .shop-product-featured {
        left: 6px;
        top: 6px;
        width: 22px;
        height: 22px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
    }

    .shop-product-featured-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .shop-photo-thumbs {
        gap: 4px;
        margin-top: 4px;
    }

    .shop-photo-thumb {
        border-radius: 8px;
    }

    /* "In basket" pill becomes a round green basket icon, as the photo is too small for the words */
    .shop-product-in-basket {
        left: 6px;
        bottom: 6px;
        width: 26px;
        height: 26px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .shop-product-in-basket .fa-check {
        display: none;
    }

    /* Words kept for screen readers only */
    .shop-product-in-basket-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .shop-product-in-basket .fa-basket-shopping {
        display: inline-block;
    }

    .shop-product-body {
        display: contents;
    }

    .shop-product-info,
    .shop-product-options {
        grid-column: 1 / -1;
    }

    .shop-option {
        padding: 6px 12px;
        font-size: 13px;
    }

    .shop-product-top {
        flex-direction: column;
        gap: 6px;
    }

    .shop-product-price {
        text-align: left;
    }

    .shop-product-price strong,
    .shop-product-price span {
        display: inline;
        margin-right: 6px;
    }

    /* The toolbar's sort, page size and list/grid switch wrap onto more lines rather than running off the screen */
    .shop-toolbar-controls {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Grid view: two cards across, photo on top (not the list's photo-beside-name layout above). The height, spread and
       flowering details are left out to keep the cards short - the list view shows them. */
    .shop-product-list.is-grid .shop-product-details {
        display: none;
    }

    .shop-product-list.is-grid .shop-product-range {
        font-size: 11px;
        line-height: 1.4em;
    }

    .shop-product-list.is-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .shop-product-list.is-grid .shop-product {
        display: flex;
        gap: 10px;
        padding: 12px;
        border-radius: 20px;
    }

    .shop-product-list.is-grid .shop-product-media {
        width: 100%;
    }

    .shop-product-list.is-grid .shop-product-image {
        height: auto;
    }

    .shop-product-list.is-grid .shop-product-body {
        display: flex;
        gap: 8px;
    }

    .shop-product-list.is-grid .shop-product-title h3 {
        font-size: 15px;
    }

    .shop-product-list.is-grid .shop-product-price strong {
        font-size: 17px;
    }

    .shop-product-list.is-grid .shop-product-options {
        gap: 6px;
        padding-top: 10px;
    }

    .shop-product-list.is-grid .shop-option {
        padding: 5px 10px;
        font-size: 12px;
    }


    /* Steps: just the numbers, except the current one */
    .shop-steps li:not(.is-current) {
        flex: 0 0 auto;
        gap: 0;
        padding: 6px;
        font-size: 0;
    }

    .shop-steps li:not(.is-current) a {
        gap: 0;
    }

    .shop-steps li:not(.is-current) .shop-step-number {
        font-size: 14px;
    }

    .shop-basket-bar-figures > span:nth-child(n+3) {
        display: none;
    }

    .shop-basket-bar-actions {
        gap: 15px;
    }

    .shop-basket-table thead {
        display: none;
    }

    .shop-basket-table tr {
        display: grid;
        grid-template-columns: 70px 1fr auto;
        padding: 12px 15px;
        border-top: 1px solid var(--divider-color);
    }

    .shop-basket-table tbody tr:first-child {
        border-top: none;
    }

    .shop-basket-table td {
        padding: 2px 0;
        border-top: none;
        text-align: left;
    }

    .shop-basket-table td.shop-basket-photo {
        grid-row: span 5;
        width: auto;
    }

    .shop-basket-table td[data-label] {
        grid-column: 2 / span 2;
    }

    .shop-basket-table td.num[data-label]::before {
        content: attr(data-label) ': ';
        font-size: 13px;
    }

    .shop-basket-table .num {
        text-align: left;
    }

    .shop-basket-table td.shop-basket-remove {
        grid-column: 3;
        grid-row: 1;
    }

    .shop-confirm-details {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .shop-form fieldset {
        padding: 20px;
    }

    .shop-result-box {
        padding: 35px 20px;
    }
}

/************************************/
/***    Account: Make a Payment   ***/
/************************************/

.payment-intro {
    margin-bottom: 25px;
}

/* How up to date the figures are (Make a payment and the balance cards), with a Refresh button; amber when old. */
.payment-freshness {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 12px 18px;
    border-radius: 12px;
    background-color: var(--secondary-color);
    border: 1px solid var(--divider-color);
    font-size: 14px;
}

.payment-freshness p {
    margin: 0;
}

.payment-freshness i {
    color: var(--accent-color);
    margin-right: 4px;
}

.payment-freshness.is-stale {
    background-color: #fff6e5;
    border-color: #f0c36d;
    color: #7a4b00;
}

.payment-freshness.is-stale i,
.payment-freshness.is-stale strong {
    color: #7a4b00;
}

.payment-freshness-failed {
    display: block;
    margin-top: 4px;
    color: #A12C2C;
}

.payment-refresh {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 100px;
    background-color: var(--accent-color);
    color: var(--white-color);
    font-weight: 600;
    white-space: nowrap;
}

.payment-refresh i {
    color: inherit !important;
    margin-right: 4px;
}

.payment-refresh:hover,
.payment-refresh:focus-visible {
    background-color: var(--primary-color);
}

.payment-refresh:disabled {
    opacity: 0.6;
}

@media only screen and (max-width: 575px) {
    .payment-freshness {
        flex-direction: column;
        align-items: stretch;
    }
}

.payment-table td {
    white-space: normal;
    vertical-align: top;
}

.payment-table .payment-choose {
    width: 36px;
    padding-right: 0;
}

.payment-table .payment-choose .form-check-input {
    margin: 2px 0 0;
    cursor: pointer;
}

.payment-table label {
    margin: 0;
    cursor: pointer;
}

.payment-table .payment-amount {
    text-align: right;
    white-space: nowrap;
}

.payment-table .payment-details {
    font-size: 14px;
    color: var(--text-color);
}

.payment-table tr.is-chosen td {
    background-color: color-mix(in srgb, var(--accent-color) 8%, transparent);
}

.payment-table tr.is-held td {
    color: var(--text-color);
}

.payment-table td.is-overdue {
    color: #A12C2C;
    font-weight: 600;
}

.payment-part,
.payment-held {
    display: block;
    font-size: 13px;
    color: var(--text-color);
}

.payment-held i {
    color: var(--accent-color);
    margin-right: 4px;
}

.payment-note {
    font-size: 14px;
    margin: 0 0 15px;
}

.payment-for-orders {
    margin-bottom: 30px;
}

.payment-for-orders i,
.payment-all-clear {
    color: var(--accent-color);
    margin-right: 6px;
}

.payment-summary dl {
    margin: 0 0 15px;
}

.payment-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 6px 0;
}

.payment-summary dt {
    font-weight: 500;
    color: var(--text-color);
}

.payment-summary dd {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.payment-summary .payment-summary-total {
    border-top: 1px solid var(--divider-color);
    margin-top: 6px;
    padding-top: 12px;
    font-size: 20px;
}

.payment-summary .payment-summary-total dt {
    color: var(--primary-color);
    font-weight: 700;
}

.payment-summary-problem {
    color: #A12C2C;
    font-size: 14px;
    margin: 0 0 15px;
}

.payment-summary-problem:empty {
    display: none;
}

.payment-summary-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.payment-summary .btn-default.is-secondary {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: inset 0 0 0 2px var(--accent-color);
}

.payment-summary .btn-default.is-secondary:hover {
    color: var(--white-color);
}

/* The theme's arrow circle, outlined to match the outlined button. */
.payment-summary .btn-default.is-secondary::before {
    box-shadow: 0 0 0 2px var(--accent-color);
}

.payment-bank {
    margin: 0 0 15px;
    padding: 15px 20px;
    border-radius: 12px;
    background-color: var(--secondary-color);
    border: 1px solid var(--divider-color);
}

.payment-bank div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 5px 0;
}

.payment-bank dt {
    font-weight: 500;
    color: var(--text-color);
}

.payment-bank dd {
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

.payment-bank .payment-bank-reference dd {
    color: var(--accent-color);
    font-size: 18px;
}

.payment-summary .btn-default:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-outcome-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.payment-outcome-heading i {
    font-size: 28px;
    color: var(--text-color);
}

.payment-outcome-heading.is-paid i {
    color: var(--accent-color);
}

.payment-outcome-heading.is-failed i {
    color: #A12C2C;
}

.payment-outcome-heading h3 {
    margin: 0;
    font-size: 22px;
    color: var(--primary-color);
}

.payment-outcome-back {
    margin: 20px 0 0;
}

.dashboard-balance-pay {
    margin: 15px 0 0;
}

@media only screen and (max-width: 575px) {
    .payment-table th:nth-child(4),
    .payment-table td:nth-child(4) {
        display: none;
    }

    .payment-summary .btn-default {
        width: 100%;
    }
}

/* Available Ranges: a login's limited range and which ranges it can order from */
.available-ranges-login {
    margin-bottom: 0;
}

.available-ranges fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.available-ranges fieldset:disabled {
    opacity: 0.6;
}

/* The range list while Limited range is off (inside a disabled form it's already faded once) */
.available-ranges fieldset:enabled .available-ranges-list:disabled {
    opacity: 0.45;
}

.available-ranges-list:disabled .form-check-input,
.available-ranges-list:disabled label {
    cursor: not-allowed;
}

.available-ranges-off-note {
    display: none;
    margin: 0 0 10px;
}

.available-ranges:has(.available-ranges-list:disabled) .available-ranges-off-note {
    display: block;
}

.available-ranges-setting {
    margin: 0 0 20px;
}

.available-ranges-setting p {
    margin: 4px 0 0;
}

.available-ranges .form-check-input {
    cursor: pointer;
}

.available-ranges .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.available-ranges-table td:last-child,
.available-ranges-table th:last-child {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

.available-ranges-table .form-check {
    display: inline-block;
    margin: 0;
    min-height: 0;
}

.available-ranges-table label {
    margin: 0;
    cursor: pointer;
}

.available-ranges-actions {
    margin: 20px 0 0;
}
