
:root {
  --marker-radius: 5px;
  --marker-padding-in-box: 3px;

  --color-seat: rgb(87, 196, 12);
  --color-reserved: #ecec07;
  --color-taken: #69aaff;
}

/* from registration.css because some script rewrites inline svg */
.close-btn > svg {
  position: absolute;
  top: 0;
  left: 0;
}

#boxes > .box[data-selectedbox="true"] {
  animation: none;
  outline: 4px dashed blue;
}

#boxes {
  font-weight: bold;
  color: black; /* to offset our less dark theme default color */
}

.box {
  font-size: 16px; /* default is 14px */
}

/* colored legend icon (circle) at the top */
.bron-legend, .tak-legend {
  width: 0.8em; /* default is 10px */
  height: 0.8em;
  border-radius: var(--marker-radius);
}
.bron-legend {
  background-color: var(--color-reserved);
}
.tak-legend {
  background-color: var(--color-taken);
}
.info-item {
  margin-right: 2em;
}
.box[data-seat] {
  /*outline for full colored boxes (and dark text on dark background) */
  text-shadow: -1px -1px 1px white, 1px 1px 1px white,-1px 1px 1px white, 1px -1px 1px white;
  background-color: var(--color-seat);
}
.box[data-status=bron] {
  background-color: var(--color-reserved);
}
.box[data-status=tak] {
  background-color: var(--color-taken);
}

.bron-sign, .taken-sign {
  display: none;
  /*border-radius: var(--marker-radius);
  left: var(--marker-padding-in-box);
  bottom: var(--marker-padding-in-box);
  width: calc(100% - 2*var(--marker-padding-in-box));
  height: calc(50% - 2*var(--marker-padding-in-box));*/
}

.spot-in-text {
  font-weight: bold;
}

label.custom-input {
  margin-top: 1.2em;
  > div:has(input[type="checkbox"]) {
    float: left;
    margin-right: 0.5em;
  }
  > span.l-text {
    display: inline-block;
    max-width: 40ch;
    font-size: 90%;
  }
}

/** improve mobile view **/
body {
  display: flex;
  flex-direction: column;
  overflow: unset;

  height: max-content;
}

#main-header {
  height: unset;
  cursor: unset;

  > a {
    margin-right: 0.4em;
  }
  > h2 {
    display: inline-block;
    vertical-align: middle;
  }
}

#room-nav-wrap {
  overflow: initial;
}

#middle {
  max-width: 100vw;
 /* max-height: 100vh;*/

  /*min-width: fit-content;*/
  min-height: fit-content;

  width: auto !important;
  height: max-content !important;

  overflow: auto;
}
#view-wrap {
  overflow: unset;
}
#box-wrap {
  width: unset !important;
  height: unset !important;
}

#bottom-wrapper {
  position: relative;
  bottom: unset;
  flex-direction: column; /* default style has flex but misses this one */
}

#booking-summary-price {
  margin-top: 0.4em;
}

/** confirm and status page **/
body > div.page-wrap {
  max-width: 900px;
  align-self: center;

  table {
    width: fit-content;
  }
  table th, table tr, table td {
    padding: 8px !important;
  }
}

/* dialogs */
#modal-bg {
  /* provide background through the modal dialog divs itself */
  display: none !important;
}

.dialog-box {
  background-color: rgb(0, 0, 0, 0.6);
  position: fixed;
}
.dialog-box-inner {
  user-select: unset; /* allow */
}

#cookie-law-info-again {
  position: sticky !important;
  bottom: 0 !important;
  left: 0 !important;
  right: unset !important;
  width: fit-content !important;
  margin-top: 3em;
}

@media only screen and (max-width: 720px) {
  #room-nav-info {
    display: block; /* override default hide for small sizes */
  }
  #room-nav-info-inner {
    /* and flex it */
    display: flex;
    flex-direction: column;

    > div {
      display: block;
    }
  }
  /* but hide useless room name */
  #room-nav-btn-wrap {
    display: none;
  }
}
