:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    color: #17211a;
    background: #f3f6f1;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --green: #a2e39e;
    --green-dark: #226b36;
    --cyan: #03cce3;
    --border: #d3ddd2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
}

button,
input,
select {
    font: inherit;
}

.page-width {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    background: var(--green);
    border-bottom: 1px solid #83c77e;
}

.header-content {
    min-height: 112px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.eyebrow {
    margin: 0 0 4px;
    color: #285a2c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h2 {
    margin-bottom: 18px;
    font-size: 1.25rem;
}

.brand-logo {
    width: 124px;
    max-height: 76px;
    object-fit: contain;
}

.page-content {
    display: grid;
    gap: 18px;
    padding-block: 24px;
}

.panel {
    min-width: 0;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgb(23 33 26 / 5%);
}

.product-panel {
    background: #f5fbf4;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    align-content: start;
    gap: 7px;
    font-weight: 700;
}

.field-wide {
    grid-column: 1 / -1;
}

.product-search {
    position: relative;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #9aab9a;
    border-radius: 6px;
    background: #fff;
    color: inherit;
}

.product-options {
    position: absolute;
    z-index: 2;
    inset: calc(100% + 4px) 0 auto;
    max-height: min(320px, 50vh);
    overflow-y: auto;
    padding: 4px;
    border: 1px solid #9aab9a;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 16px rgb(23 33 26 / 16%);
}

.product-option {
    padding: 9px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 400;
}

.product-option:hover,
.product-option-active {
    background: #e8f4e7;
}

.product-options-empty {
    padding: 9px 10px;
    color: #46564a;
    font-weight: 400;
}

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

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 3px solid #168e9b;
    outline-offset: 2px;
}

.notice {
    margin: 14px 0 0;
    color: #46564a;
}

.notice-error {
    color: #a32626;
    font-weight: 700;
}

.details-grid,
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 0;
}

.details-grid > div,
.summary-grid > div {
    min-width: 0;
}

dt {
    margin-bottom: 5px;
    color: #4b5c4d;
    font-size: 0.9rem;
}

dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

dd a {
    color: #145d6a;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    min-width: 95px;
    padding: 11px 9px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

thead th {
    background: #edf5eb;
}

tbody th {
    min-width: 160px;
}

td input {
    min-width: 100px;
}

.weight-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weight-input input {
    min-width: 72px;
}

.order-summary {
    background: #f5fbf4;
}

.summary-grid dd {
    font-size: 1.15rem;
}

.site-footer {
    padding-block: 12px 28px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--green-dark);
    border-radius: 6px;
    background: var(--green-dark);
    color: #fff;
    cursor: pointer;
}

.button:hover {
    background: #194f29;
}

.button-secondary {
    background: #fff;
    color: var(--green-dark);
}

.button-secondary:hover {
    background: #edf5eb;
}

.analytics-consent-content {
    max-width: 520px;
    padding: 8px;
}

dialog {
    width: min(580px, calc(100% - 28px));
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgb(0 0 0 / 25%);
}

dialog::backdrop {
    background: rgb(15 25 18 / 55%);
}

[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .page-width {
        width: min(100% - 20px, 1120px);
    }

    .header-content {
        min-height: 92px;
    }

    .brand-logo {
        width: 88px;
    }

    .panel {
        padding: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: auto;
    }

    .footer-content {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-content > button {
        align-self: flex-end;
    }

    table {
        min-width: 860px;
    }
}
