/* The process page uses the same paper, ink, buttons and contact-panel green as the home page. */
#webbit-public main:has(#steg-tittel) {
  --teal: #103e40;
  --ink: #202422;
  --ink-muted: #415650;
  --line: #d5d9d7;
}

#webbit-public main:has(#steg-tittel) .wrap {
  width: min(1140px, calc(100% - 60px));
}

/* Existing page labels use the plain, sentence-case typography of the home and price pages. */
#webbit-public main :is(.micro, .eyebrow),
#webbit-public.wb-legacy main :is(.micro, .eyebrow) {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #415650;
  font: 600 15px/1.5 Quicksand, Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

#webbit-public main .micro > i:empty {
  display: none;
}

#webbit-public.wb-legacy .steps-sec .eyebrow {
  color: #e3ece8;
}

#webbit-public .site-footer .foot-legal {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

#webbit-public main:has(#steg-tittel) h1 {
  max-width: 25ch;
}

#webbit-public main:has(#steg-tittel) .band-teal {
  background: #eef1ef;
  color: #202422;
}

#webbit-public #steg .steps p,
#webbit-public #steg .steps strong {
  color: inherit;
}

#webbit-public #steg .steps > li::before {
  background: #d1ded6;
  color: #103e40;
}

#webbit-public main:has(#steg-tittel) .card,
#webbit-public main:has(#steg-tittel) .note {
  border: 1px solid #d5d9d7;
  border-radius: 15px;
  background: #fff;
}

#webbit-public main:has(#steg-tittel) .next {
  background: #d1ded6;
  border: 0;
  border-radius: 15px;
}

#webbit-public main:has(#steg-tittel) .btn,
#webbit-public .closing .action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 44px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #103e40;
  color: white;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  text-decoration: none;
}

#webbit-public main:has(#steg-tittel) .btn:hover,
#webbit-public .closing .action:hover {
  background: #0d3334;
}

#webbit-public main:has(#steg-tittel) .btn-secondary {
  background: white;
  color: #103e40;
  border-color: #c6d0ca;
}

#webbit-public main:has(#steg-tittel) .btn-secondary:hover {
  background: #eef1ef;
}

#webbit-public .closing h2,
#webbit-public main:has(#steg-tittel) h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: normal;
}

#webbit-public main :is(.button, .offerlink, .action, .secondary, .textlink, .quiet-link) {
  column-gap: .55em;
}

#webbit-public #bestill-skjema :is(.field, .felt) {
  min-width: 0;
}

#webbit-public #bestill-skjema textarea[name="melding"] {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 8em;
  padding: .7em .85em;
  border: 1px solid #a8b8af;
  border-radius: 8px;
  background: white;
  color: #202422;
  font: inherit;
  resize: vertical;
}

@media (min-width: 801px) {
  #webbit-public .kan:has(#bestill-skjema) {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  }

  #webbit-public .kan:has(#bestill-skjema) > aside {
    position: sticky;
    top: 24px;
    align-self: start;
    border-radius: 15px;
  }
}

/* Norwegian legal pages use the standard .wrap from site.css.
   English reading pages share its gutters while keeping the text at 74ch. */
#webbit-public.wb-legacy .legacy-reading:has(> .upd, > .g) {
  box-sizing: border-box;
  max-width: none;
  width: min(1200px, calc(100% - 60px));
  margin-inline: auto;
}

html:lang(en) #webbit-public.wb-legacy .legacy-reading:has(> .upd, > .g) {
  width: min(1140px, calc(100% - 72px));
}

#webbit-public .legacy-reading:has(> .upd, > .g) > *,
#webbit-public main.wrap > .legal-sheet {
  max-width: 74ch;
}

#webbit-public main.wrap > .legal-sheet {
  margin-inline: 0;
}

html:lang(en) #webbit-public .legacy-reading:has(> .upd, > .g) .g {
  max-width: 950px;
}

html:lang(en) #webbit-public .legacy-reading:has(> .upd, > .g) a,
html:lang(en) #webbit-public .legacy-reading:has(> .upd, > .g) .p {
  color: #103e40;
}

html:lang(en) #webbit-public .legacy-reading:has(> .upd, > .g) :is(.box, .form) {
  border-color: #d5d9d7;
  background: #fff;
}

html:lang(en) #webbit-public .legacy-reading:has(> .upd, > .g) .line {
  border-color: #a8b8af;
}

html:lang(en) #webbit-public:has(.legacy-reading > :is(.upd, .g)) .site-footer {
  opacity: 1;
}

@media (max-width: 850px) {
  html:lang(en) #webbit-public.wb-legacy .legacy-reading:has(> .upd, > .g) {
    width: calc(100% - 40px);
  }
}

@media (max-width: 730px) {
  html:lang(nb) #webbit-public.wb-legacy .legacy-reading:has(> .upd, > .g) {
    width: calc(100% - 30px);
  }
}

@media (max-width: 650px) {
  #webbit-public main:has(#steg-tittel) .wrap {
    width: calc(100% - 40px);
  }

  #webbit-public .closing h2,
  #webbit-public main:has(#steg-tittel) h2 {
    font-size: 26px;
  }
}
