/* ------------------------------
   BookVisit – generell styling
------------------------------ */

/* Bakgrunn på BookVisit-boksen på framsida */
.bv-Standard1ColumnPlate {
  background: #2e4b47 !important;
}

/* Ramme rundt select-felt i BookVisit */
.bv-Standard1ColumnPlate .bv-widget div.bv-gui-select > span,
.bv-Standard1ColumnPlate .bv-widget label.bv-gui-select > span {
  border: 1px solid #ccc !important;
}

/* BookVisit-knappar */
a.bv-gui-btn {
  background: #D68631 !important;
}

/* Kalender / datoveljar */
.bv-Calendar2Columns {
  background: #ffffff !important;
  position: relative;
  z-index: 999;
}

/* BookVisit container på større skjermar */
@media (min-width: 768px) {
  .ginner-container {
    max-width: 90vw !important;
    width: 100% !important;
    aspect-ratio: 1 !important;
    height: 90vh !important;
  }
}


/* ------------------------------
   BookVisit – mobil og sticky header
   Krev at booking-rada har klassa:
   booking-widget-row
------------------------------ */

/* Normal tilstand: ikkje løft bookingrada over header */
.home .booking-widget-row {
  position: relative !important;
  z-index: auto !important;
}

/* Når BookVisit mobil-widget er open */
@media (max-width: 767px) {

  /* Dersom BookVisit legg klassa direkte på body eller html */
  body.bv-widget-noscroll-small-device .home .booking-widget-row,
  html.bv-widget-noscroll-small-device .home .booking-widget-row,

  /* Dersom BookVisit-klassa ligg inni body/html */
  body:has(.bv-widget-noscroll-small-device) .home .booking-widget-row,
  html:has(.bv-widget-noscroll-small-device) .home .booking-widget-row {
    position: relative !important;
    z-index: 5000 !important;
  }

  /* Sjølve BookVisit-laga over anna innhald */
  body.bv-widget-noscroll-small-device .home .booking-widget-row .bv-Standard1ColumnPlate,
  body.bv-widget-noscroll-small-device .home .booking-widget-row .bv-widget,
  body.bv-widget-noscroll-small-device .home .booking-widget-row .bv-Calendar2Columns,
  body.bv-widget-noscroll-small-device .home .booking-widget-row .bv-mobile-widget,
  body.bv-widget-noscroll-small-device .home .booking-widget-row .bv-gui,
  body.bv-widget-noscroll-small-device .home .booking-widget-row .bv-modal,
  body.bv-widget-noscroll-small-device .home .booking-widget-row .bv-overlay,

  html.bv-widget-noscroll-small-device .home .booking-widget-row .bv-Standard1ColumnPlate,
  html.bv-widget-noscroll-small-device .home .booking-widget-row .bv-widget,
  html.bv-widget-noscroll-small-device .home .booking-widget-row .bv-Calendar2Columns,
  html.bv-widget-noscroll-small-device .home .booking-widget-row .bv-mobile-widget,
  html.bv-widget-noscroll-small-device .home .booking-widget-row .bv-gui,
  html.bv-widget-noscroll-small-device .home .booking-widget-row .bv-modal,
  html.bv-widget-noscroll-small-device .home .booking-widget-row .bv-overlay,

  body:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-Standard1ColumnPlate,
  body:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-widget,
  body:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-Calendar2Columns,
  body:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-mobile-widget,
  body:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-gui,
  body:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-modal,
  body:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-overlay,

  html:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-Standard1ColumnPlate,
  html:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-widget,
  html:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-Calendar2Columns,
  html:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-mobile-widget,
  html:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-gui,
  html:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-modal,
  html:has(.bv-widget-noscroll-small-device) .home .booking-widget-row .bv-overlay {
    position: relative !important;
    z-index: 5001 !important;
  }

  /* Skjul sticky header medan BookVisit-kalenderen er open */
  body.bv-widget-noscroll-small-device .site-header,
  body.bv-widget-noscroll-small-device #masthead,
  body.bv-widget-noscroll-small-device .kb-header-placeholder-wrapper,
  body.bv-widget-noscroll-small-device .kadence-sticky-header,
  body.bv-widget-noscroll-small-device .site-main-header-wrap,

  html.bv-widget-noscroll-small-device .site-header,
  html.bv-widget-noscroll-small-device #masthead,
  html.bv-widget-noscroll-small-device .kb-header-placeholder-wrapper,
  html.bv-widget-noscroll-small-device .kadence-sticky-header,
  html.bv-widget-noscroll-small-device .site-main-header-wrap,

  body:has(.bv-widget-noscroll-small-device) .site-header,
  body:has(.bv-widget-noscroll-small-device) #masthead,
  body:has(.bv-widget-noscroll-small-device) .kb-header-placeholder-wrapper,
  body:has(.bv-widget-noscroll-small-device) .kadence-sticky-header,
  body:has(.bv-widget-noscroll-small-device) .site-main-header-wrap,

  html:has(.bv-widget-noscroll-small-device) .site-header,
  html:has(.bv-widget-noscroll-small-device) #masthead,
  html:has(.bv-widget-noscroll-small-device) .kb-header-placeholder-wrapper,
  html:has(.bv-widget-noscroll-small-device) .kadence-sticky-header,
  html:has(.bv-widget-noscroll-small-device) .site-main-header-wrap {
    display: none !important;
  }
}


/* ------------------------------
   Pie Calendar – framside
   Skjul kalenderkontrollar på Pie Calendar-boksen
------------------------------ */

.home .piecal-wrapper .piecal-controls,
.home .piecal-wrapper .piecal-controls *,
.home .piecal-wrapper .fc-header-toolbar,
.home .piecal-wrapper .fc-header-toolbar * {
  display: none !important;
}