/**
 * Ezra Resources template
 * (C) 2026 The Design Company. GNU GPL v2 or later.
 */

/* ---------------------------------------------------------------- Fonts */

@font-face {
    font-family: "Work Sans";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/WorkSans-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Work Sans";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/WorkSans-italic.woff2") format("woff2");
}

@font-face {
    font-family: "Arbutus Slab";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/ArbutusSlab-normal.woff2") format("woff2");
}

/* --------------------------------------------------------------- Tokens */

:root {
    --ez-maroon: #962521;
    --ez-maroon-dark: #7a1d1a;
    --ez-navy: #213476;
    --ez-navy-dark: #18275a;
    --ez-slate: #2e3655;
    --ez-slate-dark: #222842;
    --ez-charcoal: #464747;
    --ez-ink: #1f2123;
    --ez-text: #2b2d2f;
    --ez-muted: #6b6e72;
    --ez-line: #dedede;
    --ez-line-soft: #ececec;
    --ez-band: #f2f2f2;
    --ez-band-dark: #e5e5e5;
    --ez-surface: #ffffff;
    --ez-footer: #333333;
    --ez-footer-heading: #b8c5f0;

    --ez-font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ez-font-heading: "Arbutus Slab", Georgia, "Times New Roman", serif;

    --ez-container: 1160px;
    --ez-gutter: clamp(1rem, 3vw, 1.5rem);
    --ez-radius: 8px;
    --ez-radius-sm: 5px;
    --ez-shadow: 0 1px 2px rgba(20, 24, 40, .06), 0 4px 14px rgba(20, 24, 40, .06);
    --ez-shadow-hover: 0 2px 4px rgba(20, 24, 40, .08), 0 10px 26px rgba(20, 24, 40, .12);
    --ez-focus: 0 0 0 3px rgba(33, 52, 118, .35);
    --ez-section-y: clamp(2.5rem, 6vw, 4.5rem);
}

/* ----------------------------------------------------------------- Base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 4.5rem;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--ez-surface);
    color: var(--ez-text);
    font-family: var(--ez-font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
    vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 .6em;
    color: var(--ez-navy);
    font-family: var(--ez-font-heading);
    font-weight: 400;
    line-height: 1.25;
    text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.15rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); }
h4 { font-size: 1.2rem; }
h5,
h6 { font-size: 1.05rem; }

p,
ul,
ol,
blockquote,
table,
figure {
    margin: 0 0 1.1em;
}

a {
    color: var(--ez-maroon);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--ez-maroon-dark);
}

:focus-visible {
    outline: none;
    box-shadow: var(--ez-focus);
    border-radius: 3px;
}

hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--ez-line);
}

blockquote,
.ez-quote {
    margin: 1.4em 0;
    padding: .4em 0 .4em 1.2em;
    border-left: 3px solid var(--ez-maroon);
    color: var(--ez-charcoal);
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--ez-line);
    text-align: left;
    vertical-align: top;
}

.ez-visually-hidden,
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ez-skip {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: .6rem 1rem;
    background: var(--ez-navy);
    color: #fff;
}

.ez-skip:focus {
    top: 1rem;
}

.ez-container {
    width: 100%;
    max-width: calc(var(--ez-container) + var(--ez-gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--ez-gutter);
}

/* -------------------------------------------------------------- Buttons */

.ez-btn,
.btn,
.button,
button.btn,
input[type="submit"],
.vm-button-correct,
.addtocart-button,
.details-button input,
.postbox-form-wrapper .postbox-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 2.75rem;
    padding: .6rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--ez-radius-sm);
    background: var(--ez-navy);
    color: #fff;
    font-family: var(--ez-font-body);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ez-btn:hover,
.btn:hover,
.button:hover,
input[type="submit"]:hover,
.vm-button-correct:hover,
.addtocart-button:hover,
.postbox-form-wrapper .postbox-button:hover {
    background: var(--ez-navy-dark);
    color: #fff;
    transform: translateY(-1px);
}

.ez-btn--maroon { background: var(--ez-maroon); }
.ez-btn--maroon:hover { background: var(--ez-maroon-dark); }

.ez-btn--slate,
.ez-btn--donate { background: var(--ez-slate); }
.ez-btn--slate:hover,
.ez-btn--donate:hover { background: var(--ez-slate-dark); }

.ez-btn--light {
    background: #e2e2e2;
    color: var(--ez-ink);
}

.ez-btn--light:hover {
    background: #d4d4d4;
    color: var(--ez-ink);
}

.ez-btn--outline {
    border-color: currentColor;
    background: transparent;
    color: var(--ez-navy);
}

.ez-btn--outline:hover {
    background: var(--ez-navy);
    color: #fff;
}

.ez-link-more {
    display: inline-block;
    color: var(--ez-maroon);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .3em;
}

/* --------------------------------------------------------------- Forms */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="date"],
select,
textarea,
.inputbox {
    width: 100%;
    max-width: 100%;
    min-height: 2.75rem;
    padding: .55rem .8rem;
    border: 1px solid #c9cbcf;
    border-radius: var(--ez-radius-sm);
    background: #fff;
    color: var(--ez-ink);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease;
}

textarea {
    min-height: 8rem;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ez-navy);
    outline: none;
    box-shadow: var(--ez-focus);
}

label {
    font-weight: 500;
}

input[type="checkbox"],
input[type="radio"],
input[type="checkbox"].inputbox,
input[type="radio"].inputbox {
    width: 1.1rem;
    height: 1.1rem;
    min-height: 0;
    margin: 0 .45rem 0 0;
    padding: 0;
    vertical-align: -.15em;
    accent-color: var(--ez-navy);
}

/* ------------------------------------------------- Account pages (com_users) */

.ez-account {
    max-width: 30rem;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--ez-line);
    border-radius: var(--ez-radius);
    background: #fff;
    box-shadow: var(--ez-shadow);
}

.ez-account:has(.com-users-registration) {
    max-width: 40rem;
}

.ez-account__title {
    margin-bottom: 1.5rem;
    font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
}

.ez-account fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.ez-account legend {
    margin-bottom: 1rem;
    color: var(--ez-navy);
    font-family: var(--ez-font-heading);
    font-size: 1.2rem;
}

.ez-account .control-group,
.ez-account .com-users-login__remember {
    margin-bottom: 1.1rem;
}

.ez-account .control-label label {
    display: block;
    margin-bottom: .35rem;
}

.ez-account .star,
.ez-account .form-control-feedback {
    color: var(--ez-maroon);
}

.ez-account .input-group {
    display: flex;
}

.ez-account .input-group > input {
    flex: 1;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Show-password toggle: Joomla's icon font is not loaded, so draw the eye here */
.input-password-toggle {
    flex: 0 0 2.9rem;
    min-height: 2.75rem;
    padding: 0;
    border: 1px solid #c9cbcf;
    border-left: 0;
    border-radius: 0 var(--ez-radius-sm) var(--ez-radius-sm) 0;
    background: var(--ez-band);
    color: var(--ez-navy);
}

.input-password-toggle:hover {
    background: var(--ez-band-dark);
    color: var(--ez-navy);
    transform: none;
}

.input-password-toggle [class^="icon-eye"]::before {
    content: "";
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    margin: auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ez-account .com-users-login__submit .controls {
    display: flex;
    flex-direction: column-reverse;
    gap: .75rem;
}

.ez-account .com-users-login__submit button[type="submit"],
.ez-account .com-users-registration__submit button[type="submit"],
.ez-account .com-users-reset__submit button,
.ez-account .com-users-remind__submit button {
    width: 100%;
}

/* Passkey sign-in: a quiet secondary button with a small icon */
.plg_system_webauthn_login_button {
    width: 100%;
    gap: .6rem;
    border: 1px solid var(--ez-line) !important;
    background: #fff !important;
    color: var(--ez-navy) !important;
    font-size: .8rem !important;
}

.plg_system_webauthn_login_button:hover {
    border-color: var(--ez-navy) !important;
    background: #f4f6fb !important;
}

.plg_system_webauthn_login_button svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.com-users-login__options {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ez-line);
    font-size: .9rem;
}

/* VirtueMart order lookup and login */
.vm-orders-information:empty {
    display: none;
}

.vm-orders-list h1 {
    margin-bottom: 1.5rem;
}

.vm-orders-list h2 {
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.vm-orders-list form,
.vm-orders-list fieldset.userdata {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem 1rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.vm-orders-list fieldset.userdata > div:first-child,
.vm-orders-list form > input[type="hidden"],
.vm-orders-list .clr {
    flex-basis: 100%;
}

.vm-orders-list .width30 {
    float: none;
    width: auto;
    flex: 1 1 12rem;
}

.vm-orders-list .width30 br {
    display: none;
}

.vm-orders-list #com-form-order-submit,
.vm-orders-list #com-form-login-remember {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: .75rem;
}

.vm-orders-list input[type="submit"] {
    margin: 0;
}

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

.ez-topbar {
    background: var(--ez-maroon);
    color: #fff;
    font-size: .875rem;
}

.ez-topbar__inner {
    display: flex;
    justify-content: flex-end;
    min-height: 2.5rem;
}

.ez-topbar ul {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ez-topbar a,
.ez-topbar .mod-menu__separator {
    display: block;
    padding: .55rem 0;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.ez-topbar a:hover {
    color: #fff;
    text-decoration: underline;
}

.ez-masthead {
    background: #fff;
}

.ez-masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1rem;
}

.ez-logo {
    flex: 0 1 300px;
    display: block;
}

.ez-logo img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
}

.ez-masthead__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .75rem;
}

.ez-masthead__buttons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ez-btn--donate {
    min-width: 10rem;
}

.ez-cart {
    position: relative;
    display: inline-flex;
    color: var(--ez-maroon);
    line-height: 0;
}

.ez-cart:hover {
    color: var(--ez-maroon-dark);
}

.ez-cart__count {
    position: absolute;
    top: -.4rem;
    right: -.55rem;
    min-width: 1.2rem;
    padding: .15rem .3rem;
    border-radius: 999px;
    background: var(--ez-navy);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

/* Smart Search module in the masthead */
.ez-search form {
    position: relative;
    margin: 0;
}

.ez-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.ez-search .mod-finder__search,
.ez-search .awesomplete {
    display: flex;
    width: 100%;
}

.ez-search input[type="search"],
.ez-search input[type="text"] {
    width: 15rem;
    min-height: 2.6rem;
    padding-right: 2.75rem;
    border-radius: 999px;
    font-size: .9rem;
}

.ez-search button {
    font-size: 0;
    position: absolute;
    top: 50%;
    right: .3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ez-ink);
    transform: translateY(-50%);
}

.ez-search button:hover {
    background: var(--ez-band);
    color: var(--ez-navy);
    transform: translateY(-50%);
}

.ez-search button .icon-search::before,
.ez-search button span[class*="icon"] {
    display: none;
}

.ez-search button::before {
    content: "";
    width: 1rem;
    height: 1rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.6-4.6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.6-4.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ------------------------------------------------------------ Main menu */

.ez-nav {
    z-index: 50;
    border-block: 1px solid var(--ez-line-soft);
    background: var(--ez-band);
}

/* ------------------------------------------------------- Sticky header
   The header is fixed; .ez-header-space keeps its full height in the page
   (set by template.js), so shrinking it never moves the content. */

.has-sticky-header .ez-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: #fff;
    transition: box-shadow .2s ease;
}

.has-sticky-header .ez-header.is-compact {
    box-shadow: 0 6px 20px rgba(20, 24, 40, .14);
}

.has-sticky-header .ez-topbar {
    max-height: 3rem;
    overflow: hidden;
    transition: max-height .25s ease;
}

.has-sticky-header .ez-masthead__inner,
.has-sticky-header .ez-logo,
.has-sticky-header .ez-logo img {
    transition: padding .25s ease, max-width .25s ease, flex-basis .25s ease;
}

.ez-header.is-compact .ez-topbar {
    max-height: 0;
}

.ez-header.is-compact .ez-masthead__inner {
    padding-block: .45rem;
}

.ez-header.is-compact .ez-logo {
    flex-basis: 170px;
}

.ez-header.is-compact .ez-logo img {
    max-width: 170px;
}

.ez-header.is-compact .ez-masthead__actions {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
}

.ez-header.is-compact .ez-search input[type="search"],
.ez-header.is-compact .ez-search input[type="text"] {
    width: 13rem;
    min-height: 2.3rem;
}

.ez-header.is-compact .ez-btn--donate {
    min-height: 2.3rem;
    min-width: 0;
    padding-block: .4rem;
}

.ez-header.is-compact .ez-nav a {
    padding-block: .7rem;
}

/* An open mobile menu can be taller than the screen */
.has-sticky-header .ez-header:has(.ez-nav.is-open) {
    max-height: 100vh;
    overflow-y: auto;
}

html:has(body.has-sticky-header) {
    scroll-padding-top: 8.5rem;
}

.ez-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ez-nav .mod-menu,
.ez-nav > .ez-container > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.ez-nav li {
    position: relative;
}

.ez-nav a,
.ez-nav .mod-menu__heading,
.ez-nav .mod-menu__separator {
    display: block;
    padding: .9rem 1rem;
    color: var(--ez-navy);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: color .15s ease;
}

.ez-nav a:hover,
.ez-nav .current > a,
.ez-nav .active > a {
    color: var(--ez-maroon);
}

.ez-nav .current > a {
    box-shadow: inset 0 -3px 0 var(--ez-maroon);
}

/* Dropdowns */
.ez-nav .mod-menu > li > ul {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 14rem;
    padding: .4rem 0;
    border: 1px solid var(--ez-line);
    border-radius: 0 0 var(--ez-radius) var(--ez-radius);
    background: #fff;
    box-shadow: var(--ez-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.ez-nav .mod-menu > li:hover > ul,
.ez-nav .mod-menu > li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.ez-nav li li a {
    padding: .6rem 1.1rem;
    font-weight: 600;
}

.ez-nav li li a:hover {
    background: var(--ez-band);
}

.ez-nav .mod-menu > li.parent:has(> ul) > a::after {
    content: "";
    display: inline-block;
    width: .4em;
    height: .4em;
    margin-left: .45em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-.2em) rotate(45deg);
}

/* Mobile toggle */
.ez-nav-toggle {
    display: none;
    position: relative;
    width: 2.9rem;
    height: 2.9rem;
    min-height: 0;
    padding: 0;
    border: 1px solid var(--ez-line);
    border-radius: var(--ez-radius-sm);
    background: #fff;
    color: var(--ez-navy);
    cursor: pointer;
}

.ez-nav-toggle__bars,
.ez-nav-toggle__bars::before,
.ez-nav-toggle__bars::after {
    position: absolute;
    left: 50%;
    width: 1.3rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.ez-nav-toggle__bars {
    top: 50%;
    transform: translate(-50%, -50%);
}

.ez-nav-toggle__bars::before,
.ez-nav-toggle__bars::after {
    content: "";
    transform: translateX(-50%);
}

.ez-nav-toggle__bars::before { top: -6px; }
.ez-nav-toggle__bars::after { top: 6px; }

.ez-nav-toggle[aria-expanded="true"] .ez-nav-toggle__bars { background: transparent; }
.ez-nav-toggle[aria-expanded="true"] .ez-nav-toggle__bars::before { transform: translate(-50%, 6px) rotate(45deg); }
.ez-nav-toggle[aria-expanded="true"] .ez-nav-toggle__bars::after { transform: translate(-50%, -6px) rotate(-45deg); }

/* ---------------------------------------------------------------- Layout */

.ez-main {
    display: block;
    min-height: 50vh;
}

.ez-layout {
    --ez-layout-y: clamp(1.75rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-block: var(--ez-layout-y);
}

.has-sidebar .ez-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
}

/* Full-width page articles supply their own spacing */
.ez-layout:has(.ez-page) {
    padding-block: 0;
}

.ez-layout:has(.ez-page) #system-message-container:not(:empty) {
    padding-top: 1.5rem;
}

.ez-content > :last-child {
    margin-bottom: 0;
}

.ez-module {
    margin-bottom: 2rem;
}

/* Full-width bottom position: each module is a section band */
.ez-bottom > .ez-module {
    margin: 0;
    padding: var(--ez-section-y) var(--ez-gutter);
    background: var(--ez-band-dark);
}

.ez-bottom > .ez-module:nth-child(even) {
    background: var(--ez-band);
}

.ez-bottom > .ez-module > * {
    max-width: var(--ez-container);
    margin-inline: auto;
}

.ez-bottom > .ez-module > .ez-module__title {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.15rem);
    text-align: center;
}

.ez-module__title {
    font-size: 1.35rem;
}

/* Joomla system messages */
#system-message-container joomla-alert,
#system-message-container .alert {
    display: block;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--ez-line);
    border-left: 4px solid var(--ez-navy);
    border-radius: var(--ez-radius-sm);
    background: #f7f8fc;
}

#system-message-container [type="danger"],
#system-message-container [type="error"] { border-left-color: var(--ez-maroon); background: #fcf2f1; }
#system-message-container [type="success"] { border-left-color: #2f7d3b; background: #f1f8f1; }
#system-message-container [type="warning"] { border-left-color: #b7791f; background: #fdf7ec; }

/* Breadcrumbs */
.mod-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .5rem;
    margin: 0 0 1.5rem;
    padding: 0;
    color: var(--ez-muted);
    font-size: .85rem;
    list-style: none;
}

.mod-breadcrumbs li + li::before {
    content: "›";
    margin-right: .5rem;
}

/* --------------------------------------------------------------- Cards */

.ez-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ez-line);
    border-radius: var(--ez-radius);
    background: #fff;
    box-shadow: var(--ez-shadow);
    transition: box-shadow .2s ease, transform .2s ease;
}

.ez-card--hover:hover {
    box-shadow: var(--ez-shadow-hover);
    transform: translateY(-2px);
}

.ez-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ez-band-dark);
}

.ez-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.ez-card--hover:hover .ez-card__media img {
    transform: scale(1.03);
}

.ez-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem 1.35rem 1.4rem;
}

.ez-card__meta {
    margin: 0 0 .5rem;
    color: var(--ez-muted);
    font-size: .8rem;
}

.ez-card__meta a {
    color: var(--ez-navy);
    text-decoration: none;
}

.ez-card__title {
    margin-bottom: .6rem;
    font-size: 1.35rem;
}

.ez-card__title a {
    color: inherit;
    text-decoration: none;
}

.ez-card__title a:hover {
    color: var(--ez-maroon);
}

.ez-card__text {
    color: var(--ez-text);
    font-size: .95rem;
}

.ez-card__text > :last-child {
    margin-bottom: 0;
}

.ez-card__more {
    margin-top: auto;
    padding-top: .9rem;
}

.ez-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}

.ez-card__badge {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: .25rem .8rem;
    background: var(--ez-navy);
    color: #fff;
    font-size: .8rem;
}

/* ---------------------------------------------------------------- Bands
   Full-width page sections used inside page articles. */

.ez-band {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 0;
    padding-block: var(--ez-section-y);
}

.ez-band > .ez-container > :last-child,
.ez-band__inner > :last-child {
    margin-bottom: 0;
}

.ez-band--grey { background: var(--ez-band-dark); }
.ez-band--light { background: var(--ez-band); }

.ez-band--navy {
    border-block: 2px solid var(--ez-navy-dark);
    background: var(--ez-navy);
    color: #fff;
}

.ez-band--charcoal {
    background: var(--ez-charcoal);
    color: #fff;
}

.ez-band--navy h1,
.ez-band--navy h2,
.ez-band--navy h3,
.ez-band--charcoal h1,
.ez-band--charcoal h2,
.ez-band--charcoal h3 {
    color: #fff;
}

.ez-band--tight {
    padding-block: clamp(1.5rem, 3.5vw, 2.25rem);
}

.ez-band--image {
    display: flex;
    align-items: flex-end;
    min-height: clamp(260px, 34vw, 470px);
    padding: 0;
    background-color: #111;
    background-position: center;
    background-size: cover;
}

.ez-tagline {
    margin: 0;
    color: #e9ecf6;
    font-size: clamp(1.35rem, 1rem + 1.4vw, 2.05rem);
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.ez-section-title {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    text-align: center;
}

.ez-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.ez-split--top {
    align-items: start;
}

.ez-split--60 {
    grid-template-columns: 3fr 2fr;
}

.ez-split--40 {
    grid-template-columns: 2fr 3fr;
}

.ez-panel {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-radius: var(--ez-radius);
    background: #fff;
    box-shadow: var(--ez-shadow);
    color: var(--ez-text);
}

.ez-band .ez-panel :is(h1, h2, h3, h4) {
    color: var(--ez-navy);
}

.ez-panel--grey {
    background: var(--ez-band);
    box-shadow: none;
}

.ez-figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--ez-radius);
}

.ez-figure img {
    display: block;
    width: 100%;
}

.ez-figure--shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.ez-lead {
    color: var(--ez-ink);
    font-size: 1.15rem;
    line-height: 1.65;
}

.ez-eyebrow {
    display: block;
    margin-bottom: .4rem;
    color: var(--ez-maroon);
    font-family: var(--ez-font-body);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

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

.ez-list-check {
    padding: 0;
    list-style: none;
}

.ez-list-check li {
    position: relative;
    margin-bottom: .45rem;
    padding-left: 1.6rem;
}

.ez-list-check li::before {
    content: "";
    position: absolute;
    top: .55em;
    left: 0;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--ez-maroon);
}

.ez-contact-list {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.ez-contact-list li {
    margin-bottom: .9rem;
}

.ez-contact-list a {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: inherit;
    font-weight: 500;
    text-decoration: none;
}

.ez-contact-list a:hover {
    color: var(--ez-maroon);
}

/* Icons live here (not in the article) so the editor cannot strip them */
.ez-contact-list li[class*="ez-contact-list__"] a::before {
    content: "";
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    background: var(--ez-maroon);
    -webkit-mask: var(--ez-icon) center / contain no-repeat;
    mask: var(--ez-icon) center / contain no-repeat;
}

.ez-contact-list__phone {
    --ez-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 15.5c-1.2 0-2.4-.2-3.6-.6a1 1 0 0 0-1 .2l-2.2 2.2a15 15 0 0 1-6.6-6.6l2.2-2.2a1 1 0 0 0 .3-1A11.4 11.4 0 0 1 8.5 4a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1 17 17 0 0 0 17 17 1 1 0 0 0 1-1v-3.5a1 1 0 0 0-1-1z'/%3E%3C/svg%3E");
}

.ez-contact-list__email {
    --ez-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4.2-8 5-8-5V6l8 5 8-5v2.2z'/%3E%3C/svg%3E");
}

.ez-bank {
    display: inline-block;
    margin: .2rem 0 1rem;
    padding: .45rem .9rem;
    border: 1px dashed var(--ez-navy);
    border-radius: var(--ez-radius-sm);
    background: #fff;
    color: var(--ez-navy);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .04em;
}

/* --------------------------------------------------- Articles and blogs */

.ez-article {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--ez-line);
    border-radius: var(--ez-radius);
    background: #fff;
    box-shadow: var(--ez-shadow);
}

.ez-article__header {
    margin-bottom: 1.5rem;
}

.ez-article__title {
    margin-bottom: .35rem;
}

.ez-article__meta {
    margin: 0;
    color: var(--ez-muted);
    font-size: .85rem;
}

.ez-article__meta a {
    color: var(--ez-navy);
    text-decoration: none;
}

.ez-article__image {
    margin: 0 0 1.5rem;
}

.ez-article__body img {
    border-radius: var(--ez-radius-sm);
}

.ez-article__body::after {
    content: "";
    display: table;
    clear: both;
}

.ez-article__nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ez-line);
}

.ez-page > :first-child.ez-band {
    margin-top: 0;
}

.ez-blog__heading {
    margin-bottom: 1.75rem;
}

.ez-blog__intro {
    margin-bottom: 2rem;
}

.ez-blog--list .ez-blog__items {
    display: grid;
    gap: 1.5rem;
}

.ez-blog--list .ez-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.ez-blog--list .ez-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: auto;
    padding: 1.25rem;
    background: #fff;
}

.ez-blog--list .ez-card__media img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

/* A category intro that opens with a full-width band sits flush under the menu */
.ez-blog > .ez-blog__intro:first-child > .ez-band:first-child {
    margin-top: calc(-1 * var(--ez-layout-y));
}

.ez-blog--list .ez-card__body {
    padding: 1.75rem 2rem;
}

.ez-blog--list .ez-card__title {
    font-size: 1.6rem;
}

.pagination,
.com-content-category-blog__pagination ul,
.vm-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

.pagination .page-link,
.vm-pagination li > a,
.vm-pagination li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .75rem;
    border: 1px solid var(--ez-line);
    border-radius: var(--ez-radius-sm);
    background: #fff;
    color: var(--ez-navy);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.pagination a.page-link:hover,
.vm-pagination li > a:hover {
    border-color: var(--ez-navy);
    background: #f4f6fb;
    color: var(--ez-navy);
}

.pagination .active .page-link,
.vm-pagination .pagenav:not(a) {
    border-color: var(--ez-navy);
    background: var(--ez-navy);
    color: #fff;
}

.pagination .disabled .page-link {
    opacity: .4;
}

/* First / previous / next / last arrows (Joomla outputs icon-font spans) */
.pagination [class^="icon-angle"] {
    display: inline-flex;
    gap: 1px;
}

.pagination [class^="icon-angle"]::before,
.pagination [class^="icon-angle-double"]::after {
    content: "";
    width: .45rem;
    height: .45rem;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.pagination .icon-angle-left::before,
.pagination .icon-angle-double-left::before,
.pagination .icon-angle-double-left::after {
    transform: rotate(-45deg);
}

.pagination .icon-angle-right::before,
.pagination .icon-angle-double-right::before,
.pagination .icon-angle-double-right::after {
    transform: rotate(135deg);
}

.counter,
.com-content-category-blog__counter {
    color: var(--ez-muted);
    font-size: .85rem;
    text-align: center;
}

/* Embedded video */
.ez-video,
.videoWrapper,
.osyoutube-container {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.25rem;
}

.ez-video iframe,
.videoWrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------------------------------------------------- PostBox Pro forms */

.postbox-form-wrapper {
    font-size: 1rem;
}

.postbox-form-wrapper .postbox-button {
    min-height: 2.75rem;
    padding: .6rem 1.8rem;
    border-radius: var(--ez-radius-sm);
    background-color: var(--ez-navy);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.postbox-form-wrapper .postbox-button:hover,
.postbox-form-wrapper .postbox-button:focus-visible {
    background-color: var(--ez-navy-dark);
}

.postbox-form-wrapper input:focus,
.postbox-form-wrapper select:focus,
.postbox-form-wrapper textarea:focus {
    border-color: var(--ez-navy);
    box-shadow: var(--ez-focus);
}

.postbox-form-wrapper .postbox-required {
    color: var(--ez-maroon);
}

.postbox-form-wrapper .postbox-html-content h4 {
    margin: .5rem 0 .25rem;
}

/* ----------------------------------------------------------- VirtueMart */

.ez-shop__heading {
    margin-bottom: 1.75rem;
}

.ez-shop__intro {
    margin-bottom: 2rem;
}

.ez-shop-group + .ez-shop-group {
    margin-top: 2.5rem;
}

.ez-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
}

.ez-product__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 290px;
    padding: 1.5rem 1.5rem 0;
    background: #fff;
}

.ez-product__media img {
    width: auto;
    max-width: 100%;
    max-height: 250px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    transition: transform .3s ease;
}

.ez-card--hover:hover .ez-product__media img {
    transform: translateY(-3px);
}

.ez-product__title {
    margin-bottom: .5rem;
    font-size: 1.15rem;
}

.ez-product__title a {
    color: var(--ez-ink);
    text-decoration: none;
}

.ez-product__title a:hover {
    color: var(--ez-maroon);
}

.ez-product__price {
    margin: 0;
    color: var(--ez-navy);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Product page shows the selling price only */
.productdetails-view .product-price > div:not(.PricesalesPrice),
.productdetails-view .product-price .vm-price-desc {
    display: none;
}

.productdetails-view .vm-product-rating-container,
.productdetails-view .vmicon,
.productdetails-view .ask-a-question,
.productdetails-view .manufacturer {
    display: none;
}

.vm-category-view,
.category-view,
.browse-view,
.productdetails-view,
.cart-view,
.vm-orders-list,
.vm-orders-information,
.user-details,
.vm-wrap {
    font-size: 1rem;
}

.browse-view .row,
.featured-view .row,
.latest-view .row,
.topten-view .row,
.recent-view .row,
.category-view .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    margin: 0 0 1.5rem;
}

.browse-view .row::before,
.browse-view .row::after,
.category-view .row::before,
.category-view .row::after {
    display: none;
}

.browse-view .product,
.featured-view .product,
.latest-view .product,
.topten-view .product,
.recent-view .product,
.category-view .category {
    float: none !important;
    width: auto !important;
}

.browse-view .horizontal-separator,
.browse-view .clear,
.browse-view .vertical-separator {
    display: none;
}

.browse-view .spacer,
.featured-view .spacer,
.category-view .spacer {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 1.25rem;
    border: 1px solid var(--ez-line);
    border-radius: var(--ez-radius);
    background: #fff;
    box-shadow: var(--ez-shadow);
    text-align: center;
    transition: box-shadow .2s ease, transform .2s ease;
}

.browse-view .spacer:hover,
.featured-view .spacer:hover,
.category-view .spacer:hover {
    box-shadow: var(--ez-shadow-hover);
    transform: translateY(-2px);
}

.browse-view .vm-product-media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 230px;
    margin-bottom: 1rem;
}

.browse-view .vm-product-media-container img,
.browse-view .browseProductImage {
    max-height: 230px;
    width: auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.browse-view .vm-product-descr-container-0,
.browse-view .vm-product-descr-container-1,
.browse-view [class^="vm-product-descr-container"] {
    min-height: 0 !important;
}

.browse-view h2,
.browse-view .product_name,
.browse-view .vm-product-descr-container-0 h2,
.browse-view .vm-product-descr-container-1 h2 {
    margin: 0 0 .5rem;
    font-size: 1.15rem;
    line-height: 1.35;
}

.browse-view h2 a {
    color: var(--ez-ink);
    text-decoration: none;
}

.browse-view h2 a:hover {
    color: var(--ez-maroon);
}

.browse-view .product_s_desc {
    display: none;
}

.browse-view .vm3pr-0,
.browse-view .vm3pr-1,
.browse-view .vm3pr-2,
.browse-view [class^="vm3pr-"] {
    min-height: 0 !important;
    margin-top: auto;
}

.product-price,
.PricesalesPrice,
.PricebasePriceWithTax {
    color: var(--ez-navy);
    font-weight: 700;
}

.browse-view .PricesalesPrice {
    font-size: 1.2rem;
}

.vm-price-desc,
.price-crossed .vm-price-desc {
    color: var(--ez-muted);
    font-size: .85rem;
    font-weight: 400;
}

.browse-view .vm-details-button a,
.browse-view .product-details {
    display: inline-flex;
    margin-top: .85rem;
    color: var(--ez-maroon);
    font-size: .9rem;
    text-decoration: underline;
    text-underline-offset: .3em;
}

.browse-view .addtocart-area {
    margin-top: .75rem;
}

.vm-orderby-select,
.orderby-displaynumber {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: .9rem;
}

/* Product details */
.productdetails-view {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--ez-line);
    border-radius: var(--ez-radius);
    background: #fff;
    box-shadow: var(--ez-shadow);
}

.productdetails-view .vm-product-container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.productdetails-view .vm-product-media-container,
.productdetails-view .vm-product-details-container {
    float: none;
    width: auto;
}

.productdetails-view .main-image {
    text-align: center;
}

.productdetails-view .main-image img {
    max-height: 460px;
    width: auto;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.productdetails-view h1 {
    margin-bottom: 1rem;
}

.productdetails-view .product-price {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.productdetails-view .product-short-description {
    margin-bottom: 1.25rem;
}

.productdetails-view .product-description {
    padding-top: 1.75rem;
    border-top: 1px solid var(--ez-line);
}

.productdetails-view .product-description .title {
    display: none;
}

.productdetails-view .product-neighbours {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: .9rem;
}

.productdetails-view .product-neighbours a {
    color: var(--ez-navy);
    text-decoration: none;
}

.productdetails-view .back-to-category {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: var(--ez-navy);
    font-size: .9rem;
}

.productdetails-view .icons {
    float: right;
}

.addtocart-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.addtocart-bar .quantity-box input,
.quantity-input {
    width: 4.5rem;
    min-height: 2.75rem;
    text-align: center;
}

.addtocart-bar .quantity-controls {
    display: none;
}

.addtocart-button {
    background: var(--ez-slate);
}

/* VirtueMart wraps the add-to-cart input in a span with the same class */
.addtocart-area .addtocart-bar span.addtocart-button {
    display: contents;
}

.addtocart-area .addtocart-bar input.addtocart-button {
    margin: 0;
    border: 0;
    border-radius: var(--ez-radius-sm);
    background: var(--ez-slate);
    color: #fff;
    font-family: var(--ez-font-body);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: none;
}

.addtocart-area .addtocart-bar input.addtocart-button:hover {
    background: var(--ez-slate-dark);
}

.addtocart-button:hover {
    background: var(--ez-slate-dark);
}

/* Orders, order details and address editing */
.vm-orders-list,
.vm-orders-information,
.vm-wrap .user-details,
.vm-order-done {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--ez-line);
    border-radius: var(--ez-radius);
    background: #fff;
    box-shadow: var(--ez-shadow);
}

.vm-button-correct,
.vm-button-correct:hover {
    border: 0;
}

/* "Added to cart" pop-up (VirtueMart's Fancybox). Scoped with :has(.showcart)
   so product image lightboxes keep Fancybox's own layout. */
#fancybox-overlay {
    background-color: rgba(20, 24, 40, .6) !important;
    opacity: 1 !important;
}

#fancybox-wrap:has(.showcart) {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    width: min(32rem, calc(100vw - 2rem)) !important;
    padding: 0 !important;
    transform: translate(-50%, -50%);
}

#fancybox-wrap:has(.showcart) #fancybox-outer {
    border-radius: var(--ez-radius);
    background: #fff;
    box-shadow: 0 24px 60px rgba(10, 14, 30, .35);
}

#fancybox-wrap:has(.showcart) .fancybox-bg {
    display: none;
}

#fancybox-wrap:has(.showcart) #fancybox-content {
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: var(--ez-radius);
    background: #fff;
}

#fancybox-content:has(.showcart) > div {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1.75rem 1.5rem 1.5rem;
    overflow: visible !important;
    text-align: center;
}

#fancybox-content:has(.showcart) h4 {
    order: -1;
    flex-basis: 100%;
    margin: 0 0 .75rem;
    color: var(--ez-ink);
    font-size: 1.15rem;
    line-height: 1.4;
}

#fancybox-content:has(.showcart) h4::before {
    content: "";
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto .85rem;
    border-radius: 50%;
    background: #2f7d3b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 1.4rem no-repeat;
}

#fancybox-content:has(.showcart) br {
    display: none;
}

#fancybox-content .continue_link,
#fancybox-content .showcart {
    display: inline-flex;
    flex: 1 1 12rem;
    float: none !important;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    margin: 0;
    padding: .6rem 1rem;
    border: 1px solid var(--ez-navy);
    border-radius: var(--ez-radius-sm);
    background: #fff;
    color: var(--ez-navy);
    font-family: var(--ez-font-body);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: none;
    transition: background-color .15s ease, color .15s ease;
}

#fancybox-content .continue_link:hover {
    background: #f4f6fb;
    color: var(--ez-navy);
}

#fancybox-content .showcart {
    border-color: var(--ez-maroon);
    background: var(--ez-maroon);
    color: #fff;
}

#fancybox-content .showcart:hover {
    border-color: var(--ez-maroon-dark);
    background: var(--ez-maroon-dark);
    color: #fff;
}

#fancybox-wrap:has(.showcart) #fancybox-close {
    top: .5rem;
    right: .5rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: none;
    color: var(--ez-muted);
}

#fancybox-wrap:has(.showcart) #fancybox-close::before {
    content: "×";
    display: block;
    font-size: 1.6rem;
    line-height: 2.2rem;
    text-align: center;
}

#fancybox-wrap:has(.showcart) #fancybox-close:hover {
    background: var(--ez-band);
    color: var(--ez-ink);
}

/* VirtueMart login form (orders page, address pages) */
#com-form-login fieldset.userdata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin: 0;
    padding: 0;
    border: 0;
}

#com-form-login .width30 {
    float: none;
    width: auto;
    flex: 1 1 11rem;
}

#com-form-login .width30:has(input[type="submit"]) {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: .75rem;
}

#com-form-login .clr {
    display: none;
}

#com-form-login > .width30 {
    display: inline-block;
    margin: .75rem 1.25rem 1.5rem 0;
    font-size: .9rem;
}

/* VirtueMart address and account forms (view=user) */
.ez-content > #userForm {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--ez-line);
    border-radius: var(--ez-radius);
    background: #fff;
    box-shadow: var(--ez-shadow);
}

#userForm fieldset {
    margin: 0 0 1.5rem;
    padding: 0;
    border: 0;
}

#userForm h2 {
    font-size: 1.35rem;
}

table.user-details,
table.user-details tr,
table.user-details td {
    display: block;
    padding: 0;
    border: 0;
}

table.user-details tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem 1rem;
}

table.user-details tr:has([name$="address_type_name"]),
table.user-details tr:has([name$="address_1"]),
table.user-details tr:has([name$="address_2"]),
table.user-details tr:has([name$="email"]),
table.user-details tr:has(select),
table.user-details tr:has(textarea) {
    grid-column: 1 / -1;
}

table.user-details td.key {
    margin-bottom: .3rem;
    font-size: .9rem;
}

table.user-details {
    width: 100% !important;
    max-width: 44rem;
}

table.user-details input:not([type="checkbox"]):not([type="radio"]),
table.user-details select,
table.user-details textarea {
    width: 100% !important;
    background: #fff;
    color: var(--ez-ink);
}

table.user-details .asterisk {
    color: var(--ez-maroon);
}

#userForm .control-buttons,
#userForm .buttonBar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

#userForm .reg_text {
    flex-basis: 100%;
    color: var(--ez-muted);
    font-size: .9rem;
}

#userForm button.default,
#userForm .buttonBar-right button {
    min-height: 2.75rem;
    padding: .6rem 1.4rem;
    border: 1px solid var(--ez-navy);
    border-radius: var(--ez-radius-sm);
    background: #fff;
    color: var(--ez-navy);
    font-family: var(--ez-font-body);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}

#userForm button[name="save"] {
    border-color: var(--ez-maroon);
    background: var(--ez-maroon);
    color: #fff;
}

#userForm button[type="reset"] {
    border-color: transparent;
    color: var(--ez-muted);
}

@media (max-width: 560px) {
    table.user-details tbody {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Checkout (template override of VirtueMart's cart) */
.ez-checkout__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.ez-checkout .ez-checkout__title {
    margin: 0;
    font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
    text-transform: none;
}

.ez-checkout__login {
    margin-bottom: 1.5rem;
    border: 1px solid var(--ez-line);
    border-radius: var(--ez-radius);
    background: var(--ez-band);
}

.ez-checkout__login summary {
    padding: .9rem 1.25rem;
    color: var(--ez-navy);
    font-weight: 600;
    cursor: pointer;
}

.ez-checkout__login[open] summary {
    border-bottom: 1px solid var(--ez-line);
}

.ez-checkout__login-body {
    padding: 1.25rem;
}

.ez-checkout__login-body fieldset.userdata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.ez-checkout__login-body .width30 {
    float: none;
    width: auto;
    flex: 1 1 11rem;
}

.ez-checkout__login-body .width30:has(input[type="submit"]) {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: .75rem;
}

.ez-checkout__login-body .clr {
    display: none;
}

.ez-checkout__login-body h2,
.ez-checkout__login-body fieldset.userdata > div:first-child:not(.width30) {
    display: none;
}

.ez-checkout__login-body > div,
.ez-checkout__login-body form > .width30:not(fieldset .width30) {
    display: inline-block;
    margin: .75rem 1.25rem 0 0;
    font-size: .9rem;
}

.ez-checkout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: start;
}

.ez-checkout__main {
    display: grid;
    gap: 1.25rem;
}

.ez-checkout__step,
.ez-checkout__summary {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid var(--ez-line);
    border-radius: var(--ez-radius);
    background: #fff;
    box-shadow: var(--ez-shadow);
}

.ez-checkout__summary {
    position: sticky;
    top: 4.5rem;
}

.ez-checkout .ez-checkout__step-title,
.ez-checkout .ez-checkout__summary-title {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 1.1rem;
    padding: 0;
    border: 0;
    font-size: 1.3rem;
    text-transform: none;
}

.ez-checkout__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: var(--ez-navy);
    color: #fff;
    font-family: var(--ez-font-body);
    font-size: .9rem;
    font-weight: 700;
}

.ez-checkout fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ez-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem 1rem;
}

.ez-field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;
}

.ez-field--full {
    grid-column: 1 / -1;
}

.ez-field label {
    font-size: .9rem;
}

.ez-field .asterisk,
.ez-checkout .asterisk {
    color: var(--ez-maroon);
}

.ez-field--check {
    flex-direction: row;
    align-items: flex-start;
    gap: .5rem;
}

.ez-field--check input {
    margin-top: .3rem;
}

.ez-field__help {
    margin: 0;
    color: var(--ez-muted);
    font-size: .85rem;
}

.ez-checkout input.invalid,
.ez-checkout select.invalid,
.ez-checkout .is-invalid {
    border-color: var(--ez-maroon);
    box-shadow: 0 0 0 3px rgba(150, 37, 33, .15);
}

.ez-checkout__register {
    margin-top: 1.5rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid var(--ez-line) !important;
}

.ez-checkout__register legend {
    float: left;
    width: 100%;
    margin-bottom: .25rem;
    color: var(--ez-navy);
    font-family: var(--ez-font-heading);
    font-size: 1.1rem;
}

.ez-checkout__register .ez-field__help {
    clear: both;
    margin-bottom: .9rem;
}

.ez-checkout__register .ez-btn {
    margin-top: 1rem;
}

.ez-check {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    font-weight: 500;
}

.ez-checkout__address {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .3rem 1rem;
    margin: 1rem 0;
    padding: 1rem 1.15rem;
    border-radius: var(--ez-radius-sm);
    background: var(--ez-band);
    font-size: .95rem;
}

.ez-checkout__address dt {
    color: var(--ez-muted);
}

.ez-checkout__address dd {
    margin: 0;
}

.ez-checkout .output-shipto + .details,
.ez-checkout__step > .details {
    display: inline-block;
    margin-top: .75rem;
}

/* Delivery and payment option cards */
.ez-options {
    display: grid;
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ez-option {
    position: relative;
    padding: .85rem 1rem .85rem 2.7rem;
    border: 1px solid var(--ez-line);
    border-radius: var(--ez-radius-sm);
    background: #fff;
    transition: border-color .15s ease, background-color .15s ease;
}

.ez-option:hover {
    border-color: #b9bfd4;
}

.ez-option.is-selected,
.ez-option:has(input:checked) {
    border-color: var(--ez-navy);
    background: #f4f6fb;
}

.ez-option > input[type="radio"] {
    position: absolute;
    top: 1.05rem;
    left: 1rem;
    margin: 0;
}

.ez-option label {
    display: block;
    font-weight: 500;
    cursor: pointer;
}

.ez-option .vmpayment_name,
.ez-option .vmshipment_name {
    color: var(--ez-ink);
    font-weight: 600;
}

.ez-option .vmpayment_description,
.ez-option .vmshipment_description,
.ez-option .vmshipment_cost,
.ez-option .vmpayment_cost {
    color: var(--ez-muted);
    font-size: .85rem;
    font-weight: 400;
}

.ez-option img {
    max-height: 1.6rem;
    width: auto;
    margin-right: .4rem;
    vertical-align: middle;
}

.ez-checkout__notice {
    margin: 0;
    padding: .8rem 1rem;
    border-left: 3px solid var(--ez-maroon);
    background: #fcf2f1;
    font-size: .95rem;
}

/* Order summary */
.ez-summary__items {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.ez-summary__item {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: start;
    padding: .9rem 0;
    border-bottom: 1px solid var(--ez-line-soft);
}

.ez-summary__item:first-child {
    padding-top: 0;
}

.ez-summary__image img {
    display: block;
    width: 3.5rem;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}

.ez-summary__item:not(:has(.ez-summary__image)) {
    grid-template-columns: minmax(0, 1fr) auto;
}

.ez-summary__name a {
    color: var(--ez-ink);
    font-weight: 600;
    text-decoration: none;
}

.ez-summary__name a:hover {
    color: var(--ez-maroon);
}

.ez-summary__customs {
    color: var(--ez-muted);
    font-size: .85rem;
}

.ez-summary__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    margin-top: .5rem;
}

.ez-qty {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #c9cbcf;
    border-radius: var(--ez-radius-sm);
}

.ez-qty input.quantity-input {
    width: 2.75rem;
    min-height: 2.2rem;
    padding: .2rem;
    border: 0;
    border-radius: 0;
    text-align: center;
}

.ez-qty__btn {
    width: 2.2rem;
    min-height: 2.2rem;
    padding: 0;
    border: 0;
    background: var(--ez-band);
    color: var(--ez-navy);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.ez-qty__btn:hover {
    background: var(--ez-band-dark);
}

.ez-summary__remove {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ez-maroon);
    font: inherit;
    font-size: .85rem;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}

.ez-summary__price {
    color: var(--ez-ink);
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.ez-summary__price del {
    display: block;
    color: var(--ez-muted);
    font-weight: 400;
}

.ez-summary__totals {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .45rem 1rem;
    margin: 0 0 1.25rem;
    font-size: .95rem;
}

.ez-summary__totals dd {
    margin: 0;
    text-align: right;
}

.ez-summary__totals .ez-summary__total {
    margin-top: .4rem;
    padding-top: .7rem;
    border-top: 1px solid var(--ez-line);
    color: var(--ez-navy);
    font-size: 1.15rem;
    font-weight: 700;
}

.ez-summary__totals .ez-summary__tax {
    color: var(--ez-muted);
    font-size: .85rem;
}

.ez-summary .PricesalesPrice,
.ez-summary .PricebillTotal,
.ez-summary [class^="Price"] {
    display: inline;
    color: inherit;
}

.ez-summary .vm-price-desc {
    display: none;
}

.ez-cartfields {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ez-cartfields textarea {
    min-height: 5rem;
}

.ez-cartfields .vm-fieldset-tos {
    font-size: .9rem;
}

.ez-cartfields .vm-fieldset-tos {
    align-items: flex-start;
    gap: .6rem;
}

.ez-cartfields .vm-fieldset-tos input[type="checkbox"] {
    flex: 0 0 auto;
    margin: .2rem 0 0;
}

.ez-cartfields .vm-fieldset-tos label {
    font-weight: 400;
    line-height: 1.5;
}

/* Dialog (terms of service and similar) */
.ez-dialog {
    width: min(42rem, calc(100vw - 2rem));
    max-height: min(80vh, 46rem);
    padding: 0;
    border: 0;
    border-radius: var(--ez-radius);
    background: #fff;
    color: var(--ez-text);
    box-shadow: 0 24px 60px rgba(10, 14, 30, .35);
}

.ez-dialog[open] {
    display: flex;
    flex-direction: column;
}

.ez-dialog::backdrop {
    background: rgba(20, 24, 40, .55);
}

.ez-dialog__header,
.ez-dialog__footer {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.5rem;
}

.ez-dialog__header {
    justify-content: space-between;
    border-bottom: 1px solid var(--ez-line);
}

.ez-dialog__footer {
    border-top: 1px solid var(--ez-line);
}

.ez-dialog .ez-dialog__title {
    margin: 0;
    padding: 0;
    font-size: 1.35rem;
}

.ez-dialog .ez-dialog__body h2,
.ez-dialog .ez-dialog__body h3 {
    margin: 1.4em 0 .5em;
    padding: 0;
    font-size: 1.15rem;
}

.ez-dialog__close {
    width: 2.4rem;
    height: 2.4rem;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ez-muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.ez-dialog__close:hover {
    background: var(--ez-band);
    color: var(--ez-ink);
}

.ez-dialog__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    font-size: .95rem;
}

.ez-dialog__body h2,
.ez-dialog__body h3 {
    font-size: 1.15rem;
}

.ez-dialog__body > :first-child {
    margin-top: 0;
}

.ez-checkout .vm2-termsofservice-icon {
    display: none;
}

/* VirtueMart sets an inline width on its selects */
.ez-checkout select {
    width: 100% !important;
}

.ez-cartfields .vm-fieldset-tos.is-invalid label,
.ez-cartfields .vm-fieldset-tos label.is-invalid {
    color: var(--ez-maroon);
}

.ez-checkout .ez-checkout__submit {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: center;
}

.ez-checkout__submit #checkoutFormSubmit {
    width: 100%;
    min-height: 3.2rem;
    border: 0;
    border-radius: var(--ez-radius-sm);
    background: var(--ez-maroon);
    color: #fff;
    font-family: var(--ez-font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}

.ez-checkout__submit #checkoutFormSubmit:hover {
    background: var(--ez-maroon-dark);
}

.ez-checkout__submit #checkoutFormSubmit[disabled] {
    opacity: .7;
    cursor: progress;
}

.ez-checkout__secure {
    margin: .75rem 0 0;
    color: var(--ez-muted);
    font-size: .8rem;
    text-align: center;
}

.ez-checkout--empty {
    padding: clamp(2rem, 5vw, 3rem);
    border: 1px solid var(--ez-line);
    border-radius: var(--ez-radius);
    background: #fff;
    text-align: center;
}

/* Stripe Elements container rendered by the payment plugin */
.ez-checkout .StripeElement,
.ez-checkout #payment-element {
    margin-top: .75rem;
}

@media (max-width: 991px) {
    .ez-checkout__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ez-checkout__summary {
        position: static;
    }
}

@media (max-width: 560px) {
    .ez-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .ez-field--half {
        grid-column: 1 / -1;
    }
}

/* -------------------------------------------------------------- Footer */

.ez-footer {
    background: var(--ez-footer);
    color: #f1f1f1;
    font-size: .95rem;
}

.ez-footer__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 3rem;
    padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.ez-footer h3,
.ez-footer .ez-module__title {
    margin-bottom: 1rem;
    color: var(--ez-footer-heading);
    font-size: 1.2rem;
}

.ez-footer p {
    margin-bottom: .55rem;
}

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

.ez-footer li {
    margin-bottom: .55rem;
}

.ez-footer a {
    color: #fff;
    text-decoration: none;
}

.ez-footer a:hover {
    color: var(--ez-footer-heading);
    text-decoration: underline;
}

.ez-footer .ez-module {
    margin-bottom: 0;
}

.ez-footer__base {
    border-top: 1px solid rgba(150, 37, 33, .9);
    font-size: .8rem;
}

.ez-footer__base-inner {
    padding-block: 1.1rem;
    text-align: center;
}

.ez-footer__base p {
    margin: 0;
    color: #cfcfcf;
}

.ez-footer__base a {
    color: #fff;
}

/* ---------------------------------------------------------- Responsive */

@media (max-width: 991px) {
    .has-sidebar .ez-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ez-split,
    .ez-split--60,
    .ez-split--40 {
        grid-template-columns: minmax(0, 1fr);
    }

    .ez-split > .ez-figure,
    .ez-split > .ez-split__media {
        order: -1;
    }

    .ez-blog--list .ez-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .ez-blog--list .ez-card__media img {
        max-height: 260px;
    }

    .productdetails-view .vm-product-container {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .ez-masthead__inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .ez-logo {
        flex-basis: 220px;
    }

    .ez-masthead__actions {
        order: 3;
        flex: 1 1 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .ez-search {
        flex: 1;
    }

    .ez-search input[type="search"],
    .ez-search input[type="text"] {
        width: 100%;
    }

    .ez-btn--donate {
        min-width: 0;
    }

    .ez-nav-toggle {
        display: inline-flex;
    }

    .ez-nav {
        display: none;
    }

    .ez-nav.is-open {
        display: block;
    }

    .ez-nav .mod-menu,
    .ez-nav > .ez-container > ul {
        flex-direction: column;
        padding-block: .5rem;
    }

    .ez-nav a {
        padding: .8rem 0;
        border-bottom: 1px solid var(--ez-line-soft);
        font-size: 1rem;
    }

    .ez-nav .current > a {
        box-shadow: none;
    }

    .ez-nav .mod-menu > li > ul {
        position: static;
        min-width: 0;
        padding: 0 0 0 1rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .ez-nav .mod-menu > li.parent > a::after {
        display: none;
    }

    .ez-footer__cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .ez-topbar__inner {
        justify-content: center;
    }

    .ez-topbar ul {
        justify-content: center;
        gap: 0 1.25rem;
    }

    /* Compact phone header: logo, cart and menu button on one row */
    .ez-header.is-compact .ez-logo,
    .ez-header.is-compact .ez-logo img {
        flex-basis: 140px;
        max-width: 140px;
    }

    .ez-header.is-compact .ez-masthead__inner {
        flex-wrap: nowrap;
    }

    .ez-header.is-compact .ez-masthead__actions {
        order: 0;
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    .ez-header.is-compact .ez-search,
    .ez-header.is-compact .ez-btn--donate {
        display: none;
    }

    .ez-header.is-compact .ez-masthead__buttons {
        width: auto;
    }
}

@media (max-width: 480px) {
    .ez-masthead__actions {
        flex-wrap: wrap;
    }

    .ez-search {
        flex-basis: 100%;
    }

    .ez-masthead__buttons {
        width: 100%;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    .ez-topbar,
    .ez-nav,
    .ez-nav-toggle,
    .ez-masthead__actions,
    .ez-footer {
        display: none !important;
    }
}
