:root {
    --fau-store-text: #eee9df;
    --fau-store-muted: #cdbda7;
    --fau-store-gold: #e0bc7c;
    --fau-store-panel: #252526;
    --fau-store-border: #675742;
    --fau-store-input: #191819;
    --fau-store-font: "Segoe UI", Roboto, Arial, sans-serif;
    --fau-store-metal: linear-gradient(#111317a3, #111317a3), url('metal.jpg') repeat;
    --fau-store-title-metal: linear-gradient(#2226, #1118), url('metal.jpg') repeat;
    --wp--preset--color--base: #252526;
    --wp--preset--color--contrast: #eee9df;
}

html:has(.fau-store-theme) { background: #1d1c1e; scrollbar-gutter: stable; }

body.fau-store-theme {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    margin: 0;
    color: var(--fau-store-text);
    background: linear-gradient(#16131870, #16131870), url('brick.png') repeat;
    font: 16px/1.6 var(--fau-store-font);
    --wp--style--global--content-size: 1240px;
    --wp--style--global--wide-size: 1240px;
}

.fau-store-theme.admin-bar { min-height: calc(100dvh - 32px); }
.fau-store-theme *, .fau-store-theme *::before, .fau-store-theme *::after { box-sizing: border-box; }

.fau-store-theme > .wp-site-blocks {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0;
}

.fau-store-theme :is(h1, h2, h3) { color: #f3eee5; font-family: var(--fau-store-font); line-height: 1.2; }
.fau-store-theme :is(input, select, textarea, button) { font-family: inherit; }
.fau-store-theme a { color: var(--fau-store-gold); text-underline-offset: .2em; }
.fau-store-theme a:hover { color: #fff0cd; }
.fau-store-theme :is(a, button, input, select, summary):focus-visible { outline: 2px solid var(--fau-store-gold); outline-offset: 3px; }

.fau-store-shell {
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}

.fau-store-header, .fau-store-footer {
    color: #f0e4cf;
    background: var(--fau-store-metal);
    text-shadow: 1px 1px 2px #000;
}

.fau-store-header {
    border-bottom: 1px solid #5d5343;
    box-shadow: 0 3px 10px #0007;
}

.fau-store-footer { margin-block-start: auto; border-top: 1px solid #5d5343; }

:is(.fau-store-header, .fau-store-footer) .fau-store-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1.3rem;
    min-height: 66px;
    padding-block: .5rem;
}

.fau-store-footer .fau-store-shell { min-height: 80px; padding-block: .8rem; }
.fau-store-footer-identity { display: flex; align-items: center; gap: .85rem; }
.fau-store-footer-identity small { font-size: .75rem; color: #e2d3b8; white-space: nowrap; }

:is(.fau-store-header, .fau-store-footer) nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem 1.15rem;
    font-size: .87rem;
}

:is(.fau-store-header, .fau-store-footer) a { color: #f1dfbe; text-decoration: none; }
:is(.fau-store-header, .fau-store-footer) a:hover { color: #fff2d5; text-decoration: underline; }

.fau-store-theme .fau-store-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #f1ede5;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .025em;
    white-space: nowrap;
}

.fau-store-brand img { object-fit: contain; image-rendering: pixelated; }
.fau-store-brand small { border-inline-start: 1px solid #81735d; padding-inline-start: .65rem; color: #e1c497; font-size: .75rem; font-weight: 650; }
.fau-store-discord { padding: .4rem .65rem; border: 1px solid #877454; }

.fau-store-theme :is(.wp-element-button, .wp-block-button__link, .woocommerce button.button.alt, .woocommerce a.button.alt),
.fau-store-theme .wc-block-components-button:not(.is-link) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .65rem 1rem;
    background: linear-gradient(#b44e4e, #963c3d);
    border: 1px solid #c46e66;
    border-bottom-color: #652b2b;
    border-radius: 2px;
    color: #fff5ec;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px #5d2424;
    box-shadow: inset 0 1px #edaaa329, 0 2px 2px #0006;
    cursor: pointer;
}

.fau-store-theme :is(.wp-element-button, .wp-block-button__link):hover { background: linear-gradient(#bd5754, #a04746); color: #fff5ec; }

.fau-store-window {
    min-width: 0;
    background: var(--fau-store-panel);
    border: 3px solid #55504a;
    border-color: #777169 #343130 #2a2726 #69625b;
    outline: 1px solid #141313;
    box-shadow: inset 0 0 0 1px #111, 0 5px 12px #0005;
}

.fau-store-titlebar {
    min-height: 39px;
    padding: 8px 13px;
    background: var(--fau-store-title-metal);
    border-bottom: 2px solid #151515;
    box-shadow: inset 0 1px #bfbfbf30;
    color: #f4ecde;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 1px 1px #111;
}

.fau-store-titlebar :is(h2, h3) { margin: 0; font-size: inherit; font-weight: inherit; color: inherit; }
.fau-store-panel-body { padding: 18px 20px; }
.fau-store-panel-body p { margin: 0 0 .8rem; }
.fau-store-catalog { flex: 1; padding-block: 20px 40px; }
.fau-store-intro .fau-store-titlebar { padding: 10px 14px; }
.fau-store-intro h1 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 750; }
.fau-store-intro .fau-store-panel-body { padding-block: 12px; }
.fau-store-intro p { margin-bottom: .45rem; }
.fau-store-intro-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .9rem; }
.fau-store-section, .fau-store-pickup-info { margin-block-start: 22px; scroll-margin-block-start: 20px; }
.fau-store-section-heading { margin-bottom: .8rem; }
.fau-store-section-heading > h2, .fau-store-section > h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 750; }

.fau-store-notice {
    padding: .75rem 1rem;
    border: 1px solid var(--fau-store-border);
    border-inline-start: 3px solid var(--fau-store-gold);
    color: var(--fau-store-text);
    background: #2c2520;
}

.fau-store-catalog-grid, .fau-store-preview-grid { display: grid; gap: 1rem; }
.fau-store-catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fau-store-preview-grid { grid-template-columns: minmax(0, 1fr); margin-top: .75rem; }
.fau-store-card { display: flex; flex-direction: column; }
.fau-store-card-body { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: .9rem; }
.fau-store-product-price { margin: 0; color: var(--fau-store-gold); font-size: 1.25rem; font-weight: 750; }
.fau-store-product-price > span:last-child { color: var(--fau-store-muted); font-size: .8rem; font-weight: 450; }
.fau-store-benefits { margin: 0; padding-inline-start: 1rem; font-size: .9rem; }
.fau-store-benefits li::marker { color: var(--fau-store-gold); }
.fau-store-benefits li + li { margin-top: .2rem; }

.fau-store-purchase {
    display: grid;
    gap: .4rem;
    margin-top: auto;
    padding-top: .75rem;
}

.fau-store-purchase label { font-size: .82rem; font-weight: 650; }
.fau-store-purchase select, .fau-store-theme .woocommerce select, .fau-store-theme .woocommerce .input-text {
    width: 100%;
    min-height: 40px;
    padding: .4rem .5rem;
    color: var(--fau-store-text);
    background: var(--fau-store-input);
    border: 1px solid var(--fau-store-border);
    border-radius: 2px;
    font-size: 16px;
    color-scheme: dark;
}

.fau-store-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .3rem;
    padding-block: .35rem;
    font-size: .85rem;
}

.fau-store-total output { color: var(--fau-store-gold); font-size: 1rem; font-weight: 750; text-align: end; }
.fau-store-total[hidden] { display: none; }
.fau-store-outfits { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .55rem; }
.fau-store-outfits img { display: block; margin-inline: auto; image-rendering: pixelated; }
.fau-store-outfits figure { margin: 0; padding: .3rem .1rem; border: 1px solid #443a2e; background: #211f20; text-align: center; }
.fau-store-outfits figcaption { color: var(--fau-store-muted); font-size: .75rem; }
.fau-store-houses, .fau-store-house-floors { display: grid; gap: .55rem; }
.fau-store-house, .fau-store-floor { border: 1px solid #5a4a37; background: #211f20; }
.fau-store-house-floors { padding: 0 .65rem .65rem; }

:is(.fau-store-house, .fau-store-floor) summary {
    padding: .45rem .65rem;
    color: #ebc98e;
    font-weight: 650;
    cursor: pointer;
}

.fau-store-map-preview { margin: 0; text-align: center; }
.fau-store-floor .fau-store-map-preview { padding: 0 .6rem .6rem; }

:is(.fau-store-map-preview, .fau-store-map-dialog) img {
    display: block;
    max-width: 100%;
    max-height: 640px;
    width: auto;
    height: auto;
    margin-inline: auto;
    border: 1px solid var(--fau-store-border);
    image-rendering: pixelated;
}

.fau-store-map-preview button, .fau-store-map-dialog button {
    margin-top: .45rem;
    padding: .35rem .65rem;
    color: #eee3d1;
    border: 1px solid #877454;
    background: #2b2725;
    font-size: .85rem;
    cursor: pointer;
}

.fau-store-map-dialog {
    width: min(1180px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    color: var(--fau-store-text);
    border: 1px solid var(--fau-store-border);
    background: var(--fau-store-panel);
}

.fau-store-map-dialog::backdrop { background: #000b; }
.fau-store-map-dialog .fau-store-titlebar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.fau-store-map-dialog button { margin: 0; }
.fau-store-map-dialog img { max-height: calc(100dvh - 88px); margin-block: .45rem; }

.fau-store-map-numbered {
    position: relative;
    width: min(100%, calc(640px * var(--map-ratio, 1)));
    margin-inline: auto;
}

.fau-store-map-numbered > img { width: 100%; max-height: none; }
.fau-store-map-dialog .fau-store-map-numbered { width: min(100%, calc((100dvh - 88px) * var(--map-ratio, 1))); margin-block: .45rem; }
.fau-store-map-dialog .fau-store-map-numbered img { max-height: none; margin-block: 0; }
.fau-store-house-markers { position: absolute; inset: 0; pointer-events: none; }

.fau-store-theme .fau-store-house-marker {
    position: absolute;
    left: var(--map-x);
    top: var(--map-y);
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    transform: translate(-50%, -50%);
    border: 1px solid #edc17d;
    border-radius: 50%;
    color: #fff1ce;
    background: #211613;
    box-shadow: 0 1px 5px #000c;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    pointer-events: auto;
}

.fau-store-theme .fau-store-house-marker:hover { color: #211613; background: #edc17d; }
.fau-store-house-marker:focus-visible { z-index: 1; }
.fau-store-house { scroll-margin-top: 12px; }

.fau-store-pickup-info ol { margin: 0; padding-inline-start: 1.25rem; }
.fau-store-pickup-info li + li { margin-top: .45rem; }
.fau-store-breadcrumb { margin-block: .6rem 1rem; font-size: .9rem; }
.fau-store-product-entitlements { font-weight: 650; }
.fau-store-package-page main > .wp-block-columns { padding: clamp(1rem, 3vw, 2rem); background: var(--fau-store-panel); border: 1px solid var(--fau-store-border); }
.fau-store-package-no-art main > .wp-block-columns > .wp-block-column:first-child { display: none; }
.fau-store-package-page .variations select { min-height: 44px; }
.fau-store-package-page .woocommerce-variation-price { margin-block-end: .7rem; color: var(--fau-store-gold); }
.fau-store-package-page .wp-block-woocommerce-product-details { display: none; }

.fau-store-theme .wp-site-blocks > main {
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
    padding: 1rem clamp(.75rem, 2vw, 1.5rem);
    background-color: var(--fau-store-panel);
}

.fau-store-theme .wp-site-blocks > main:not(:has(.wp-block-woocommerce-checkout)) { margin-block-end: 1.7rem; }
.fau-store-theme .wp-site-blocks > main.fau-store-soon { margin-block: 0; }
.fau-store-theme .woocommerce-bacs-bank-details { margin-block: 1.2rem; }

.fau-store-theme :is(.wc-block-order-confirmation-additional-information, .wp-block-woocommerce-order-confirmation-additional-information):has(.woocommerce-bacs-bank-details) {
    padding: .9rem 1rem;
    background: #211e1c;
    border: 1px solid var(--fau-store-border);
}

.fau-store-theme .woocommerce-bacs-bank-details .wc-bacs-bank-details {
    display: grid;
    gap: .55rem;
    margin: .65rem 0 0;
    padding: 0;
    list-style: none;
}

.fau-store-theme .wc-bacs-bank-details li { margin: 0; padding: 0; border: 0; list-style: none; }
.fau-store-theme .wc-bacs-bank-details strong { display: block; color: var(--fau-store-text); overflow-wrap: anywhere; }
.fau-store-theme .wc-bacs-bank-details .account_number strong { font: 650 clamp(.82rem, 3.5vw, 1.04rem)/1.5 ui-monospace, Consolas, monospace; }
.fau-store-theme .wc-bacs-bank-details .fau_transfer_title strong { color: var(--fau-store-gold); }

.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-checkout .wc-block-components-form textarea {
    background: var(--fau-store-input);
    color: var(--fau-store-text);
    border-color: var(--fau-store-border);
}

.wc-block-checkout .wc-block-components-form :is(.wc-block-components-text-input, .wc-blocks-components-select__container) label,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input::placeholder { color: var(--fau-store-muted); }
.wc-block-checkout .wc-blocks-components-select__expand { fill: var(--fau-store-muted); }
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-form .wc-blocks-components-select__select:focus { box-shadow: 0 0 0 1px var(--fau-store-gold); }
.wc-block-checkout .wp-block-woocommerce-checkout-contact-information-block { margin-block-end: 0; }
.wc-block-checkout .wp-block-woocommerce-checkout-additional-information-block { padding-block-start: 0; margin-block: .65rem 1.15rem; }

.wc-block-checkout .wp-block-woocommerce-checkout-additional-information-block .wc-block-components-checkout-step__heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.wc-block-components-product-metadata:has(.wc-block-components-product-details__etony) .wc-block-components-product-metadata__description,
.fau-store-checkout-closed .wc-block-components-checkout-place-order-button,
.fau-store-checkout-closed #place_order { display: none; }

.fau-store-soon {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.fau-store-soon-panel { max-width: 34rem; padding: clamp(1.25rem, 5vw, 2.5rem); text-align: center; background: var(--fau-store-panel); border: 1px solid var(--fau-store-border); }
.fau-store-soon-panel h1 { font-size: clamp(1.45rem, 4vw, 2.1rem); }

@media (max-width: 920px) {
    .fau-store-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
    .fau-store-theme.admin-bar { min-height: calc(100dvh - 46px); }
}

@media (max-width: 700px) {
    .fau-store-shell, .fau-store-theme .wp-site-blocks > main { width: calc(100% - 28px); }
    .fau-store-outfits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .fau-store-panel-body { padding: 14px; }
    .fau-store-footer .fau-store-shell { justify-content: flex-start; }
    .fau-store-footer .fau-store-footer-identity { width: 100%; }
}

@media (max-width: 480px) {
    .fau-store-catalog-grid { grid-template-columns: 1fr; }
    .fau-store-theme .fau-store-house-marker { width: 22px; height: 22px; font-size: 11px; }
    .fau-store-header .fau-store-shell { align-items: flex-start; flex-direction: column; }
    .fau-store-header nav { padding-block: .1rem .3rem; }
    .fau-store-catalog { padding-block-start: 17px; }
}
