.optiloc {
  --op-forest: #143f34;
  --op-ink: #152e26;
  --op-muted: #496459;
  --op-line: #c4d4ca;
  --op-paper: #f5f8f1;
  --op-lime: #d9ed9c;
  --op-pad: clamp(20px, 3.6vw, 54px);
  color: var(--op-ink);
  max-width: 1352px;
  margin-inline: auto;
}
.optiloc [hidden] { display: none; }
.optiloc a { color: var(--op-forest); }
.optiloc ::selection { background: var(--op-lime); color: var(--op-ink); }
.optiloc :focus-visible { outline: 3px solid #237b60; outline-offset: 4px; }
.optiloc-sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.optiloc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  border-radius: 16px;
  overflow: hidden;
  background: var(--op-forest);
  color: #fff;
}
.optiloc-hero-copy { padding: var(--op-pad); align-self: center; }
.optiloc-hero h1 {
  font-size: clamp(34px, 4.25vw, 66px);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: pretty;
}
.optiloc-brand { display: block; margin-bottom: 15px; color: var(--op-lime); font-size: .43em; letter-spacing: 0; line-height: 1.15; }
.optiloc-headline-gifts { display: block; }
.optiloc-hero-copy > p { margin-block: 16px 0; max-width: 42ch; color: #e2eee6; }
.optiloc-hero .optiloc-hero-price { margin-block: 21px 11px; color: #fff; font-size: clamp(25px, 2.6vw, 36px); font-weight: 630; font-variant-numeric: tabular-nums; }
.optiloc-hero :focus-visible { outline-color: var(--op-lime); }
.optiloc-hero .optiloc-text-link { display: inline-block; margin: 10px 0 0 14px; color: #fff; font-size: 15px; }
.optiloc-hero-photo {
  display: grid;
  grid-template-rows: minmax(215px, 1fr) auto;
  justify-items: center;
  min-width: 0;
  margin: 0;
  padding: 18px 18px 15px;
  background: #e6efe2;
  color: var(--op-ink);
}
.optiloc-hero-photo img { align-self: center; width: min(100%, 390px); height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.optiloc-hero-photo figcaption { padding-block: 10px 1px; border-top: 1px solid #aabcaf; width: 100%; text-align: center; font-size: 14px; }
.optiloc-hero-photo :focus-visible { outline-color: #237b60; }
.optiloc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--op-forest);
  color: #fff;
  text-align: center;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}
.optiloc-button:hover { background: #205f4c; }
.optiloc .optiloc-button-light { background: var(--op-lime); color: var(--op-ink); }
.optiloc .optiloc-button-light:hover { background: #ebf6ce; }

.optiloc-section { margin-block: clamp(36px, 5.3vw, 74px); scroll-margin-top: 16px; }
.optiloc-section-heading { margin-bottom: 20px; }
.optiloc-section h2 { font-size: clamp(28px, 3.3vw, 46px); letter-spacing: -.028em; line-height: 1.08; }
.optiloc-section-heading p { margin-top: 9px; color: var(--op-muted); }
.optiloc-gift-list, .optiloc-downloads ul { list-style: none; padding: 0; margin: 0; }
.optiloc-gift-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--op-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--op-line);
  gap: 1px;
}
.optiloc-gift-list li {
  display: grid;
  grid-template: auto auto / 67px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 3px 12px;
  padding: 13px;
  background: #fff;
}
.optiloc-gift-photo { grid-row: 1 / span 2; display: grid; width: 67px; aspect-ratio: 1; place-items: center; background: var(--op-paper); border-radius: 8px; }
.optiloc-gift-photo:empty { display: none; }
.optiloc-gift-photo:empty ~ * { grid-column: 1 / -1; }
.optiloc-gift-photo img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.optiloc-gift-list a { font-weight: 650; line-height: 1.23; overflow-wrap: anywhere; }
.optiloc-gift-list span { color: var(--op-muted); font-size: 14px; overflow-wrap: anywhere; }

.optiloc-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(218px, 28%); align-items: start; gap: clamp(15px, 2vw, 30px); }
.optiloc-selection { display: grid; gap: 16px; min-width: 0; }
.optiloc-progress {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--op-line);
  border-radius: 12px;
  background: var(--op-paper);
}
.optiloc-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.optiloc-progress strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.optiloc-progress progress {
  appearance: none;
  border: 0;
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 10px;
  overflow: hidden;
  background: #d8e5d9;
  color: var(--op-forest);
}
.optiloc-progress progress::-webkit-progress-bar { background: #d8e5d9; }
.optiloc-progress progress::-webkit-progress-value { background: #287557; transition: width 200ms cubic-bezier(.2,.72,.22,1); }
.optiloc-progress progress::-moz-progress-bar { background: #287557; }
.optiloc-progress[data-invalid] { border-color: #a52d33; }
.optiloc-progress[data-ready] { background: #e4f0d1; }

.optiloc-sizes { display: grid; gap: 13px; }
.optiloc-size-group, .optiloc-key {
  min-width: 0;
  margin: 0;
  padding: 0 12px 8px;
  border: 1px solid var(--op-line);
  border-radius: 12px;
  background: #fff;
}
.optiloc-size-group legend, .optiloc-key legend { padding: 0 7px; color: var(--op-forest); font-size: 16px; font-weight: 650; }
.optiloc-variant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 5px 12px;
  align-items: center;
  padding: 7px 8px;
}
.optiloc-variant + .optiloc-variant { border-top: 1px solid #e3ebe4; }
.optiloc-variant[data-selected] { background: #edf5e7; border-radius: 7px; }
.optiloc-variant label { display: grid; gap: 2px; margin: 0; cursor: pointer; }
.optiloc-variant label span:not(.optiloc-sr), .optiloc-unit-price { color: var(--op-muted); font-size: 14px; line-height: 1.28; }
.optiloc-unit-price { white-space: nowrap; }
.optiloc-quantity { display: flex; align-items: center; gap: 3px; }
.optiloc-quantity button, .optiloc-quantity input[type=number] {
  min-width: 0;
  min-height: 44px;
  flex: 0 0 44px;
  width: 44px;
  padding: 3px;
  border: 1px solid #a8bcad;
  border-radius: 7px;
  background: #fff;
  color: var(--op-ink);
  text-align: center;
}
.optiloc-quantity button { font-size: 20px; }
.optiloc-quantity button:hover { background: #dfeee1; }
.optiloc-quantity button[aria-disabled=true] { color: #52665c; background: #edf1ec; cursor: default; }
.optiloc .optiloc-quantity input[type=number] { appearance: textfield; width: 44px; }
.optiloc-quantity input::-webkit-inner-spin-button, .optiloc-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.optiloc-key { padding: 6px 12px 12px; }
.optiloc-key-options { display: flex; flex-wrap: wrap; gap: 8px; }
.optiloc .optiloc-key-options label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid var(--op-line);
  border-radius: 8px;
  cursor: pointer;
}
.optiloc-key-options label:has(:checked) { border-color: #397257; background: #edf5e7; }
.optiloc-key-options input { appearance: auto; width: 17px; height: 17px; accent-color: var(--op-forest); }
.optiloc-error, .optiloc .errorlist { color: #90202d; overflow-wrap: anywhere; }
.optiloc .errorlist { grid-column: 1 / -1; margin: 0; padding-inline-start: 20px; }
.optiloc-error[data-server-error] { padding: 12px; border: 1px solid #c47c83; border-radius: 8px; background: #fff2f2; }

.optiloc-summary {
  position: sticky;
  top: 16px;
  padding: clamp(15px, 2vw, 25px);
  border: 1px solid var(--op-line);
  border-radius: 14px;
  background: var(--op-paper);
}
.optiloc-summary h3 { font-size: 24px; }
.optiloc-summary dl { display: grid; gap: 8px; margin: 15px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--op-line); }
.optiloc-summary dl div { display: flex; justify-content: space-between; gap: 6px; }
.optiloc-summary dd { margin: 0; white-space: nowrap; }
.optiloc-summary-price { font-size: clamp(24px, 2.55vw, 36px); font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.15; }
.optiloc-summary-note { color: var(--op-muted); font-size: 15px; }
.optiloc-summary button { width: 100%; }
.optiloc-downloads { padding-top: 25px; border-top: 1px solid var(--op-line); }
.optiloc-downloads ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 16px; border: 1px solid var(--op-line); border-radius: 12px; background: var(--op-line); }
.optiloc-downloads li { background: #fff; border-radius: 11px; }
.optiloc-downloads li a { display: grid; gap: 3px; padding: 14px; line-height: 1.25; }
.optiloc-downloads small { color: var(--op-muted); text-decoration: none; }
.optiloc-downloads details { margin-top: 22px; }
.optiloc-downloads summary { width: fit-content; font-weight: 650; }
.optiloc-downloads details p { max-width: 66ch; }

@media (max-width: 1080px) {
  .optiloc-gift-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  .optiloc-form { grid-template-columns: minmax(0, 1fr); }
  .optiloc-summary { position: static; }
}
@media (max-width: 570px) {
  .optiloc-hero { grid-template-columns: minmax(0, 1fr); }
  .optiloc-hero h1 { font-size: clamp(32px, 8vw, 44px); }
  .optiloc-hero-photo { grid-template-rows: auto auto; padding-top: 8px; }
  .optiloc-hero-photo img { width: min(100%, 215px); }
  .optiloc-gift-list, .optiloc-downloads ul { grid-template-columns: minmax(0, 1fr); }
  .optiloc-variant { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 0; }
  .optiloc-quantity { grid-column: 2; grid-row: 1 / span 2; }
  .optiloc-unit-price { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .optiloc-progress progress::-webkit-progress-value { transition: none; }
}

