/* Ankarstiftelsen: Roboto, black and turquoise; green success, warm yellow errors. */
.ankla-auction {
  --auction-accent: #00bdde;
  --auction-text: #000;
  --auction-muted: #46575c;
  --auction-border: #7c8e94;
  --auction-surface: #f5f8f9;
  --auction-error: #9c1616;
  color: var(--auction-text);
  width: 100%;
  padding: 8px 0 64px;
  font-size: 16px;
  line-height: 1.65;
}

.ankla-auction *,
.ankla-auction *::before,
.ankla-auction *::after { box-sizing: border-box; }
.ankla-auction .ankla-auction__header { margin-bottom: 32px; }
.ankla-auction .ankla-auction__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; color: var(--auction-muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ankla-auction__eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--auction-accent); }
.ankla-auction h1 { margin: 0; color: var(--auction-text); font-size: clamp(32px, 3.5vw, 48px); line-height: 1.15; letter-spacing: -.025em; }
.ankla-auction h2 { margin: 28px 0 12px; color: var(--auction-text); font-size: 24px; font-weight: 700; line-height: 1.3; }
.ankla-auction h1,
.ankla-auction h2,
.ankla-auction p { overflow-wrap: anywhere; }
.ankla-auction p { margin: 0 0 16px; }
.ankla-auction__layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; gap: 48px; }
.ankla-auction__details { min-width: 0; }
.ankla-auction .ankla-auction__image { position: sticky; top: 128px; margin: 0; padding: 20px; background: var(--auction-surface); border: 1px solid #e1e8eb; border-radius: 6px; }
.ankla-auction .ankla-auction__image img { display: block; width: auto; max-width: 100%; max-height: min(760px, calc(100vh - 180px)); height: auto; margin: 0 auto; object-fit: contain; }
.ankla-auction__placeholder { width: 100%; max-height: min(760px, calc(100vh - 180px)); aspect-ratio: 3 / 4; background: var(--auction-accent); }
.ankla-auction__description:empty { display: none; }
.ankla-auction__info { margin: 24px 0; padding: 0 0 0 20px; border-left: 3px solid var(--auction-accent); }
.ankla-auction__info p { margin: 0 0 4px; }
.ankla-auction__minimum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.ankla-auction__minimum strong { color: var(--auction-text); font-size: 28px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ankla-auction .ankla-auction__timing { margin-top: 12px; color: var(--auction-muted); font-size: 14px; }

.ankla-auction__form,
.ankla-auction__review { padding: 28px; background: var(--auction-surface); border: 1px solid #d9e3e6; border-top: 3px solid var(--auction-accent); border-radius: 6px; }
.ankla-auction__form > h2,
.ankla-auction__review > h2 { margin-top: 0; }
.ankla-auction .ankla-auction__form-intro { margin-bottom: 24px; color: var(--auction-muted); font-size: 14px; }
.ankla-auction__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.ankla-auction__field { min-width: 0; grid-column: 1 / -1; }
.ankla-auction__field--first_name,
.ankla-auction__field--last_name { grid-column: auto; }
.ankla-auction__field label { display: block; margin-bottom: 8px; color: var(--auction-text); font-size: 14px; font-weight: 700; line-height: 1.5; }
.ankla-auction .ankla-auction__field input {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  color: var(--auction-text);
  background: #fff;
  border: 1px solid var(--auction-border);
  border-radius: 4px;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  /* Jevelin fixes input line-height to 48px with !important. */
  line-height: 1.5 !important;
}
.ankla-auction .ankla-auction__field--bid_kr input { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ankla-auction .ankla-auction__field input:hover { border-color: #278cac; }
.ankla-auction .ankla-auction__field input[aria-invalid="true"] { border: 2px solid var(--auction-error); }
.ankla-auction .ankla-auction__privacy { margin: 24px 0 16px; padding-top: 20px; border-top: 1px solid #d9e3e6; color: var(--auction-muted); font-size: 14px; }
.ankla-auction .ankla-auction__consent { margin: 8px 0; font-size: 14px; }
.ankla-auction__consent label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; margin: 0; color: var(--auction-text); font-weight: 400; line-height: 1.6; cursor: pointer; }
.ankla-auction__consent input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--auction-text); cursor: pointer; }
.ankla-auction__consent span { min-width: 0; }
.ankla-auction a { color: var(--auction-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ankla-auction a:hover { color: #185a70; text-decoration-thickness: 2px; }
.ankla-auction button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 24px;
  color: var(--auction-text);
  background: var(--auction-accent);
  border: 2px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.ankla-auction button:hover { background: #64efff; border-color: #278cac; }
.ankla-auction .ankla-auction__form > button { width: 100%; margin-top: 16px; }
.ankla-auction :focus-visible { outline: 3px solid #000; outline-offset: 3px; }
.ankla-auction #auction-feedback,
.ankla-auction #auction-errors,
.ankla-auction #auction-form,
.ankla-auction #auction-review-title,
.ankla-auction [id^="auction-"] { scroll-margin-top: 150px; }

.ankla-auction__notice,
.ankla-auction__errors { margin: 24px 0; padding: 20px 24px; background: var(--auction-surface); border: 1px solid #d9e3e6; border-left: 4px solid var(--auction-border); border-radius: 4px; }
.ankla-auction__notice h2,
.ankla-auction__errors h2 { margin: 0 0 12px; font-size: 22px; }
.ankla-auction__notice p:last-child { margin-bottom: 0; }
.ankla-auction__notice--success { background: #edf8ef; border-color: #a9d9b2; border-left-color: #25733c; }
.ankla-auction .ankla-auction__notice--success h2 { color: #25733c; }
.ankla-auction__errors { color: var(--auction-text); background: #fff7e4; border-color: #fcdd93; border-left-color: #c57c37; }
.ankla-auction__errors ul { margin: 0; padding-left: 20px; }
.ankla-auction__errors li + li { margin-top: 8px; }
.ankla-auction__errors a,
.ankla-auction .ankla-auction__field-error { color: var(--auction-error); }
.ankla-auction .ankla-auction__field-error { margin: 8px 0 0; font-size: 14px; }

.ankla-auction__dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 32px; overflow-y: auto; color: var(--auction-text); background: #fff; border: 0; border-top: 4px solid var(--auction-accent); border-radius: 8px; box-shadow: 0 24px 80px rgb(0 0 0 / 24%); }
.ankla-auction__dialog::backdrop { background: rgb(0 0 0 / 65%); }
.ankla-auction__dialog > h2 { margin-top: 0; }
.ankla-auction [data-auction-security] { margin: 24px 0; }
.ankla-auction [data-auction-security] [hidden] { display: none !important; }
.ankla-auction [data-auction-verification] { margin: 12px 0; font-size: 14px; }
.ankla-auction__dialog > p,
.ankla-auction__review > p { color: var(--auction-muted); }
.ankla-auction__summary { margin: 24px 0; padding: 20px; background: var(--auction-surface); border: 1px solid #d9e3e6; border-radius: 4px; }
.ankla-auction__review .ankla-auction__summary { padding: 0; border: 0; }
.ankla-auction__summary dt { margin-top: 16px; color: var(--auction-muted); font-size: 13px; font-weight: 400; }
.ankla-auction__summary dt:first-child { margin-top: 0; }
.ankla-auction__summary dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 16px; }
.ankla-auction__summary dd[data-auction-summary="bid_kr"] { color: var(--auction-text); font-size: 28px; font-weight: 700; line-height: 1.3; }
.ankla-auction__confirmation-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ankla-auction__confirmation-actions button { flex: 1 1 180px; }
.ankla-auction__confirmation-actions button:first-child { background: #fff; border-color: var(--auction-border); }
.ankla-auction__confirmation-actions button:first-child:hover { background: var(--auction-surface); border-color: var(--auction-text); }
.ankla-auction button:disabled { opacity: .6; cursor: wait; }

.ankla-auction__gallery { margin-top: 64px; padding-top: 32px; border-top: 1px solid #d9e3e6; }
.ankla-auction .ankla-auction__gallery > h2 { margin: 0 0 24px; }
.ankla-auction .ankla-auction__gallery-grid { --auction-gallery-columns: 4; display: grid; grid-template-columns: repeat(var(--auction-gallery-columns), minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ankla-auction__gallery-grid > li { min-width: 0; margin: 0; padding: 0; }
.ankla-auction .ankla-auction__gallery-card { display: block; height: 100%; color: var(--auction-text); text-decoration: none; border-radius: 6px; }
.ankla-auction__gallery-card figure { height: 100%; margin: 0; padding: 12px 12px 0; background: var(--auction-surface); border: 1px solid #d9e3e6; border-radius: 6px; }
.ankla-auction .ankla-auction__gallery-card img,
.ankla-auction__gallery-placeholder { display: block; width: 100%; height: 280px; margin: 0; object-fit: contain; }
.ankla-auction__gallery-placeholder { background: var(--auction-accent); }
.ankla-auction__gallery-card figcaption { padding: 16px 4px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.ankla-auction__gallery-card:hover figure { border-color: #278cac; }
.ankla-auction__gallery-card:hover figcaption { text-decoration: underline; }
.ankla-auction__gallery-actions { margin-top: 28px; text-align: center; }
.ankla-auction__gallery [hidden] { display: none; }

@media (max-width: 1199px) {
  .ankla-auction .ankla-auction__gallery-grid { --auction-gallery-columns: 3; }
}
@media (max-width: 1100px) {
  .ankla-auction__layout { gap: 28px; }
  .ankla-auction__form,
  .ankla-auction__review { padding: 24px; }
}
@media (max-width: 991px) {
  .ankla-auction .ankla-auction__gallery-grid { --auction-gallery-columns: 2; }
  .ankla-auction__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ankla-auction .ankla-auction__image { position: static; }
  .ankla-auction .ankla-auction__image img,
  .ankla-auction__placeholder { max-height: 640px; }
}
@media (max-width: 550px) {
  .ankla-auction__gallery { margin-top: 40px; padding-top: 24px; }
  .ankla-auction .ankla-auction__gallery-grid { --auction-gallery-columns: 1; }
  .ankla-auction { padding: 0 0 40px; }
  .ankla-auction .ankla-auction__header { margin-bottom: 24px; }
  .ankla-auction .ankla-auction__image { padding: 12px; }
  .ankla-auction__form,
  .ankla-auction__review,
  .ankla-auction__dialog { padding: 20px; }
  .ankla-auction__fields { grid-template-columns: minmax(0, 1fr); }
  .ankla-auction__summary { padding: 16px; }
  .ankla-auction__notice,
  .ankla-auction__errors { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ankla-auction button { transition: none; }
}
