html:has(.man-store-dialog[open]) {
    overflow: hidden;
}

.man-store-dialog {
    box-sizing: border-box;
    position: fixed;
    width: min(28rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    margin: auto;
    padding: clamp(1.5rem, 7vw, 2.5rem);
    border: 1px solid #dfcba4;
    border-radius: 16px;
    background: #fffdf7;
    color: #20362a;
    box-shadow: 0 16px 48px #162e2550;
}

.man-store-dialog[open] {
    animation: man-dialog-enter 180ms ease-out;
}

@keyframes man-dialog-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .man-store-dialog[open] { animation: none; }
}

.man-notice-dialog {
    width: min(38rem, calc(100% - 2rem));
    padding: 0;
    border-top: 2px solid #b88839;
}

@media (min-width: 800px) {
    .man-notice-dialog { width: min(48rem, calc(100% - 3rem)); }
}

.man-notice-dialog .man-dialog-close {
    z-index: 1;
    border: 1px solid #ded2bd;
    border-radius: 50%;
    background: #fffdf7;
}

.man-notice-image {
    display: block;
    background: #f6f0e6;
}

.man-notice-image-link { display: block; }
.man-notice-image-link:focus-visible { outline: 2px solid #97672b; outline-offset: -4px; }

.man-notice-image img {
    display: block;
    width: 100%;
    max-height: min(18rem, 34dvh);
    object-fit: contain;
    height: auto;
}

.man-notice-image-only .man-notice-image img {
    max-height: min(35rem, 62dvh);
}

@media (min-width: 800px) {
    .man-notice-dialog:not(.man-notice-image-only) .man-notice-image img { max-height: min(22rem, 38dvh); }
}

.man-notice-copy {
    padding: clamp(1.5rem, 5vw, 2.5rem);
    text-align: center;
}

.man-notice-copy h2 { padding-inline: 1rem; }
.man-notice-copy p { max-width: 38ch; margin-inline: auto; }
.man-notice-copy .man-dialog-cta { width: fit-content; min-width: 9rem; margin-inline: auto; }

.man-notice-signup {
    display: grid;
    gap: 0.55rem;
    max-width: 25rem;
    margin: 1.25rem auto 0;
    text-align: start;
}

.man-notice-image-only .man-notice-copy { padding-block: clamp(1rem, 3vw, 1.5rem); }
.man-notice-image-only .man-notice-signup { margin-block-start: 0; }

.man-notice-email-label { font-weight: 600; }

.man-notice-signup input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border: 1px solid #809487;
    border-radius: 6px;
    background: #fff;
    color: #20362a;
    font: inherit;
}

.man-notice-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.man-notice-consent input { margin-block-start: 0.18rem; }
.man-notice-consent a { color: inherit; text-decoration: underline; }
.man-notice-copy .man-notice-signup .man-dialog-cta { width: 100%; margin-block-start: 0.2rem; }
.man-notice-status { text-align: center; }
.man-notice-status:empty { display: none; }

.man-notice-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    pointer-events: none;
}

.man-notice-copy:has(.man-notice-signup) > .man-dialog-cta {
    background: transparent;
    border-color: transparent;
    color: #214c36;
    text-decoration: underline;
    margin-block-start: 0.45rem;
}

.man-store-dialog::backdrop {
    background: #12241c87;
}

.man-store-dialog h2 {
    margin: 0;
    padding-inline-end: 1rem;
    font: 400 clamp(1.5rem, 5vw, 2rem)/1.13 Georgia, serif;
    overflow-wrap: anywhere;
}

.man-store-dialog h2 span { display: block; }
.man-store-dialog h2 span + span { margin-block-start: 0.3rem; font-size: 0.75em; }
.man-store-dialog p { margin: 0.8rem 0 0; line-height: 1.55; overflow-wrap: anywhere; }

.man-dialog-close {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 1.5rem;
}

.man-dialog-options { display: grid; gap: 0.5rem; margin-block-start: 1.25rem; }

.man-dialog-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 0.8rem;
    border: 1px solid #b7c8b9;
    border-radius: 6px;
    background: transparent;
    color: #20362a;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font: 600 0.88rem/1.3 system-ui, sans-serif;
}

.man-dialog-choice[aria-pressed="true"], .man-dialog-cta {
    background: #214c36;
    border-color: #214c36;
    color: white;
}

.man-dialog-cta { margin-block-start: 1.25rem; }
.man-dialog-choice:disabled { opacity: 0.55; cursor: default; }
.man-dialog-choice:focus-visible, .man-dialog-close:focus-visible { outline: 2px solid #97672b; outline-offset: 2px; }

.man-variant-preview {
    width: min(46rem, calc(100% - 1.5rem));
    padding: 2.75rem 1.25rem 1.5rem;
}

.man-variant-preview-layout {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

.man-variant-preview-image {
    background: #f2f1e8;
    overflow: hidden;
    border-radius: 12px;
}

.man-variant-preview-image img {
    display: block;
    width: 100%;
    max-height: min(30vh, 15rem);
    height: auto;
    object-fit: contain;
}

.man-variant-preview-details h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.man-variant-preview-price,
.man-variant-preview .woocommerce-variation-price {
    margin-block: .75rem;
    font-size: 1.15rem;
}

.man-variant-preview form.cart {
    margin-block: 1rem;
}

.man-variant-preview form.variations_form table.variations {
    width: 100%;
    margin-block-end: .75rem;
}

.man-variant-preview form.variations_form table.variations select {
    width: 100%;
    min-height: 44px;
    padding: .45rem;
    border: 1px solid #b0bda9;
    border-radius: 8px;
    background: #fffdf7;
    color: #20362a;
    font: inherit;
}

.man-variant-preview .variations :is(th, td, select)[hidden] { display: none; }

.man-variant-preview .man-variant-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    min-inline-size: 0;
    margin: .25rem 0 .75rem;
    padding: 0;
    border: 0;
}

.man-variant-preview .man-variant-options legend {
    margin-block-end: .45rem;
    padding: 0;
    font-weight: 700;
}

.man-variant-preview .man-variant-options label { position: relative; margin: 0; }

.man-variant-preview .man-variant-options input {
    position: absolute;
    inset: auto;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.man-variant-preview .man-variant-options label > span {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .45rem .85rem;
    border: 1px solid #b0bda9;
    border-radius: 999px;
    background: #fffdf7;
    color: #20362a;
    line-height: 1.25;
    cursor: pointer;
}

.man-variant-preview .man-variant-options input:checked + span {
    border-color: #214c36;
    background: #214c36;
    color: #fff;
}

.man-variant-preview .man-variant-options input:focus-visible + span {
    outline: 2px solid #97672b;
    outline-offset: 2px;
}

.man-variant-preview .man-variant-options input:disabled + span {
    opacity: .45;
    cursor: not-allowed;
}

.man-variant-preview .woocommerce-variation-add-to-cart {
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
}

.woocommerce .man-variant-preview button.single_add_to_cart_button.button.alt {
    min-height: 44px;
    padding: .65rem 1.2rem;
    border: 1px solid #214c36;
    border-radius: 999px;
    background: #214c36;
    color: white;
}

.woocommerce .man-variant-preview button.single_add_to_cart_button.button.alt:is(:hover, :focus-visible) {
    background: #366149;
    color: white;
}

.woocommerce .man-variant-preview button.single_add_to_cart_button.button.alt.disabled {
    background: #214c36;
    color: white;
    opacity: .55;
}

.man-variant-preview .quantity input.qty {
    min-height: 44px;
    max-width: 4.5rem;
    border: 1px solid #b0bda9;
    border-radius: 8px;
    background: #fffdf7;
    color: #20362a;
}

.man-variant-preview .man-product-cart-error { color: #8d2d22; }
.man-variant-preview-link { color: #214c36; text-underline-offset: .2em; }

.man-variant-preview-description {
    margin-block: 1rem;
    padding-block: .5rem;
    border-block: 1px solid #dce0d4;
}

.man-variant-preview-description summary {
    min-height: 32px;
    padding-block: .3rem;
    cursor: pointer;
    color: #214c36;
    font-weight: 600;
}

@media (min-width: 700px) {
    .man-variant-preview { padding: 2.75rem 2rem 2rem; }
    .man-variant-preview-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.75rem; }
    .man-variant-preview-image img { max-height: none; }
}

.man-pref-controls {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 0.4rem;
    white-space: nowrap;
}
.man-pref-controls button, .man-pref-controls a {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.man-pref-controls i { color: #dfbe76; font-style: normal; }
.man-pref-controls [data-man-open="currency"] { padding-inline-start: 0.35rem; border-inline-start: 1px solid #fff5; }

@media (max-width: 430px) {
    .man-pref-controls { gap: 0.25rem; }
    .man-pref-controls [data-man-open="currency"] { padding-inline-start: 0.25rem; }
}
