:root {
    color-scheme: light;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #000000;
    background: #f4f2eb;
    --green: #197149;
    --dark-green: #0B3E27;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.25rem, 5vw, 4rem);
    background: #fff;
    border-bottom: 3px solid var(--green);
}
.masthead img {
    display: block;
    width: min(70%, 24rem);
    height: auto;
}
main { padding: clamp(1rem, 5vw, 4rem); }
.panel, .catalog { margin-inline: auto; }
.panel {
    max-width: 39rem;
    background: #fffdf8;
    border: 1px solid var(--dark-green);
    border-radius: 0;
    padding: clamp(1.25rem, 5vw, 3rem);
}
.catalog { max-width: 90rem; }
h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.1;
    color: var(--green);
}
#redemption, .address-fields, .address-row { display: grid; gap: 1rem; }
.address-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: .45rem; font-weight: 600; color: var(--green); }
input:not([type="radio"]), select {
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid #7f8c80;
    border-radius: .4rem;
    padding: .65rem .75rem;
    color: #000000;
    background: #fff;
    font: inherit;
    font-weight: 400;
}
button {
    justify-self: start;
    padding: .75rem 1.5rem;
    border: 0;
    border-radius: .4rem;
    background: var(--dark-green);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
button:hover { background: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.back { display: inline-block; margin-bottom: 1rem; color: var(--green); }
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 36rem), 1fr));
    padding: 0;
    margin: 0;
    border: 0;
    gap: 1rem;
    min-inline-size: 0;
}
.product {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--dark-green);
    border-radius: 0;
    background: #fff;
    cursor: pointer;
}
.product:hover { border-color: var(--green); }
.product:has(:checked) {
    border-color: var(--green);
    box-shadow: 0 0 0 2px var(--green);
}
.product:has(:focus-visible) { outline: 3px solid var(--green); outline-offset: 5px; }
.product input {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
}

.product-title {
    padding: .65rem 1rem 0;
    min-height: 3.5rem;
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    line-height: 1.25;
    color: var(--green);
}
.artwork {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 2376 / 1060;
}
.artwork img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.artwork-cropped img {
    position: absolute;
    bottom: 0;
    height: auto;
}
.lights {
    display: flex;
    justify-content: space-around;
    height: 1.6rem;
    padding-top: .2rem;
    border-top: 2px solid var(--green);
    background: #fff;
}
.lights i {
    width: .55rem;
    height: .8rem;
    border-radius: 45% 45% 55% 55%;
    background: #d13f49;
    color: #d13f49;
    box-shadow: 0 0 .45rem currentColor;
}
.lights i:nth-child(4n+2) { color: #d19a26; background: currentColor; }
.lights i:nth-child(4n+3) { color: #278664; background: currentColor; }
.lights i:nth-child(4n) { color: #398ac1; background: currentColor; }
@media (max-width: 560px) {
    .lights i:nth-child(even) { display: none; }
}
.actions { display: flex; justify-content: center; margin-top: 1.75rem; }
.chosen-gift { margin: -0.5rem 0 1.25rem; }
@media (max-width: 420px) { .address-row { grid-template-columns: 1fr; } }

.form-error { color: #9c2330; margin: 0; }
button:disabled { opacity: .65; cursor: wait; }


.sizing {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-bottom: 1rem;
}
.size-chart-link {
    padding: .7rem 0;
    background: transparent;
    color: var(--green);
    text-decoration: underline;
}
.size-chart-link:hover { background: transparent; color: var(--dark-green); }
.size-chart {
    width: min(30rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    padding: 1.25rem;
    border: 1px solid var(--dark-green);
    color: #000000;
}
.size-chart::backdrop { background: rgb(0 0 0 / 55%); }
.size-chart h2 { margin: 0 2.5rem 0 0; color: var(--green); }
.size-chart-close { position: absolute; top: .65rem; right: .65rem; padding: .25rem .65rem; font-size: 1.4rem; }
.size-chart table { width: 100%; border-collapse: collapse; text-align: left; }
.size-chart caption { text-align: left; padding-bottom: .5rem; }
.size-chart th, .size-chart td { padding: .45rem .2rem; border-bottom: 1px solid #ded8ca; }

.pants-choice { display: flex; flex-direction: column; justify-content: flex-end; }

.order-summary {
    padding: 1rem;
    border: 1px solid var(--dark-green);
    background: #f4f2eb;
}
.order-summary h2 { margin: 0 0 .75rem; color: var(--green); font-size: 1.4rem; }
.order-summary dl { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: .5rem 1rem; margin: 0; }
.order-summary dt { font-weight: 600; }
.order-summary dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

#complete { max-width: 43rem; }
#complete h1 { margin-bottom: .75rem; }
#complete-message { margin: 0 0 1.5rem; }
#complete .order-summary { padding: clamp(1rem, 4vw, 1.75rem); }
#complete .order-summary h2 { border-bottom: 1px solid #ded8ca; padding-bottom: .8rem; margin-bottom: 1rem; }
#complete .order-summary dl { row-gap: .85rem; }

#address-suggestions {
    padding: .5rem;
    border: 1px solid #ded8ca;
    border-radius: .4rem;
    background: #fff;
}
#address-suggestions ul { list-style: none; padding: 0; margin: 0; }
#address-suggestions button {
    width: 100%;
    padding: .6rem;
    background: transparent;
    text-align: left;
    font-weight: 500;
    color: var(--green);
}
#address-suggestions button:hover, #address-suggestions button:focus-visible { background: #f4f2eb; }
#address-suggestions small { display: block; padding: .25rem .6rem; }

h1, h2, h3, h4, h5, h6, .size-chart h2, .order-summary h2 { color: #000000; font-weight: 700; }
a, .order-summary dt { color: var(--green); }
.product:has(input:disabled) { opacity: .6; cursor: default; }
.product:has(input:disabled):hover { border-color: var(--dark-green); }
.product-title small { display: block; font-weight: 500; }
gmp-place-autocomplete { font-family: inherit; }