/*
 * Slobrua Gjestegard – HotelDruid i iframe
 * Lastes opp i feltet "Url of css file for framed mode".
 */

:root {
  color-scheme: light;
  --hd-ink: #241f20;
  --hd-muted: #61595b;
  --hd-wine: #2b1020;
  --hd-wine-hover: #481a31;
  --hd-gold: #c9934f;
  --hd-gold-light: #e2b978;
  --hd-cream: #f7f1e8;
  --hd-paper: #fffdf9;
  --hd-line: #b9aa9c;
  --hd-focus: #087ea4;
  --hd-error: #9a1f1f;
}

html {
  box-sizing: border-box;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  min-width: 0;
  margin: 0;
  padding: 0.75rem;
  overflow-x: hidden;
  color: var(--hd-ink) !important;
  background: var(--hd-cream) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: var(--hd-wine);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.18em;
}

form,
#dates_form,
#step_dates {
  width: 100%;
  max-width: none;
  margin: 0;
}

div.ftxt {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  max-width: none !important;
  padding: 1rem;
  border: 1px solid var(--hd-line);
  border-radius: 0.8rem;
  background: var(--hd-paper);
  box-shadow: 0 0.25rem 1rem rgb(43 16 32 / 8%);
}

div.ftxt > div,
div.ftxt div {
  min-width: 0;
  padding: 0 !important;
  font-size: 1rem !important;
}

span.ftxt_phr {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--hd-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

input,
select,
button {
  max-width: 100%;
  min-height: 2.75rem;
  border: 2px solid #776d70 !important;
  border-radius: 0.45rem !important;
  color: var(--hd-ink);
  background: #fff;
  font: inherit !important;
  line-height: 1.25;
}

select,
input[type="text"],
input[type="email"],
input[type="number"] {
  width: 100%;
  margin: 0 !important;
  padding: 0.65rem 0.7rem !important;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.35rem;
  height: 1.35rem;
  min-height: 0;
  margin: 0 0.5rem 0 0 !important;
  vertical-align: -0.25rem;
  accent-color: var(--hd-wine);
}

label {
  display: inline-block;
  padding-block: 0.25rem;
  font-size: 1rem;
  line-height: 1.45;
}

input:focus,
select:focus,
button:focus,
a:focus,
[tabindex]:focus,
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 0.22rem solid var(--hd-focus) !important;
  outline-offset: 0.15rem !important;
}

div.arrdate,
div.depdate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.25rem;
  column-gap: 0.45rem;
}

div.arrdate .ftxt_phr,
div.depdate .ftxt_phr {
  grid-column: 1 / -1;
}

div.arrdate select,
div.depdate select {
  grid-column: 1;
}

input.dbutton {
  grid-column: 2;
  width: 6.25rem !important;
  min-width: 6.25rem;
  margin: 0 !important;
  padding: 0.35rem !important;
  cursor: pointer;
  color: #fff;
  background: var(--hd-wine);
  font-size: 0.875rem !important;
  font-weight: 700 !important;
}

input.dbutton:hover {
  background: var(--hd-wine-hover);
}

.extra_costs,
.extra_costs tbody,
.extra_costs tr,
.extra_costs td,
table.perstype,
table.perstype tbody,
table.perstype tr,
table.perstype td {
  display: block;
  width: 100%;
  border: 0;
}

.extra_costs,
table.perstype {
  margin: 0;
  border-collapse: collapse;
}

.extra_costs td,
table.perstype td {
  padding: 0.15rem 0 !important;
  text-align: left;
}

div.submit_check {
  margin-top: 0.25rem;
  text-align: left !important;
}

input.sbutton,
.avail_button input,
.book_button input {
  width: 100%;
  min-height: 3rem;
  margin: 0 !important;
  padding: 0.75rem 1rem !important;
  border-color: var(--hd-wine) !important;
  cursor: pointer;
  color: #fff !important;
  background: var(--hd-wine) !important;
  font-weight: 800 !important;
}

input.sbutton:hover,
.avail_button input:hover,
.book_button input:hover {
  border-color: var(--hd-wine-hover) !important;
  background: var(--hd-wine-hover) !important;
}

.datepick {
  z-index: 20 !important;
  max-width: calc(100vw - 1.5rem);
  padding: 0.65rem !important;
  border: 2px solid var(--hd-wine) !important;
  border-radius: 0.55rem !important;
  color: var(--hd-ink) !important;
  background: #fff !important;
  box-shadow: 0 0.5rem 1.5rem rgb(36 31 32 / 20%);
  font: inherit !important;
}

.caltitle {
  display: inline-block;
  padding-bottom: 0.35rem !important;
  font-size: 1rem !important;
  font-weight: 800;
}

.calbutton {
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: 0.1rem !important;
  padding: 0.4rem !important;
  cursor: pointer;
  font-size: 1rem !important;
}

.separ_cal_but {
  display: none !important;
}

.caltable {
  width: 100%;
  margin: 0.45rem auto 0 !important;
  border-collapse: separate !important;
  border-spacing: 0.15rem;
  text-align: center;
}

.caltable td {
  min-width: 2rem;
  height: 2rem;
  padding: 0.2rem !important;
  border-radius: 0.25rem;
  font-size: 0.95rem !important;
}

.tab_cont {
  max-width: 100% !important;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.tab_disp {
  border-collapse: collapse;
  font-size: 0.95rem !important;
}

.tab_disp th,
.tab_disp td {
  padding: 0.45rem !important;
  border: 1px solid var(--hd-line) !important;
}

div.agreem {
  max-width: 100% !important;
  padding: 0.75rem !important;
  border: 1px solid var(--hd-line) !important;
  border-radius: 0.45rem;
  background: #fff;
}

#powered_by_hd {
  margin-top: 0.75rem;
  color: var(--hd-muted);
  font-size: 0.875rem;
}

@media (min-width: 32rem) {
  body {
    padding: 1rem;
  }

  div.ftxt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem;
  }

  div.arrdate,
  div.depdate,
  div.typesel,
  div.persnum,
  div.roomnum {
    align-content: start;
  }

  .extra_costs,
  div.submit_check {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  input,
  select,
  button,
  .datepick,
  div.ftxt {
    border: 2px solid CanvasText !important;
  }

  input.sbutton,
  .avail_button input,
  .book_button input,
  input.dbutton {
    color: ButtonText !important;
    background: ButtonFace !important;
  }
}
