.logged-in 
[id^="bookingtable"]{
    display:none
}
.logged-in 
[id^="canceltable"]{
    display:none 
}
.logged-in
[id="inloggad"]{
    display:none
}
.logged-in 
[id^="new_user_button"] {
    visibility: hidden;
}

[id="cancel_class"]
:link {
    color: #DD9934 !important;
}
[id="cancel_class"]
:visited {
    color: #DD9934 !important;	
}
#text_green{
    color: green;
}
#text_yellow{
    color: #FCA510;
}
#text_red{
    color: red;
}
/*
* EME templates
*/
[id="vidtemplate"]{
    margin: 64px auto;
    width:640px;
	  border: 1px solid #dd9934;
	  padding:5px;
}
hr.mptstyle {
  padding: 0;
  margin-top: 1em;
  margin-bottom: 1em;
  border: none; 
  border-top: medium double #333; 
  color: #333; 
  text-align: center; 
} 
hr.mptstyle:after { 
  display: inline-block; 
  position: relative; 
  top: -0.7em; 
  font-size: 1.5em; 
  padding: 0 0.25em; 
  background: white; 
}
hr.heart:after {
  content: "♥ ♥ ♥"; 
}
h2.mtpstyle {
  width: 100%;
  text-align: center;
  border-bottom: medium double #333;
  line-height: 0.1em;
  margin: 10px 0 20px;
}
h2.mtpstyle span {
  background: #fff;
  padding: 0 10px;
}

@media (max-width: 767px) {

  /* 4.1 Gör listan vertikal */
  .custom-dropdown .dropdown-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* 4.2 Rektanglar fullbredd/auto-höjd, utan .circle */
  .custom-dropdown .dropdown-item:not(.circle) {
    width:  var(--mobile-width, var(--width))  !important;
    height: var(--mobile-height, var(--height)) !important;
  }

  /* 4.2b Cirklar formulera bredd/höjd via inline-variablerna */
  .custom-dropdown .dropdown-item.circle {
    width:  var(--mobile-width, var(--width))  !important;
    height: var(--mobile-height, var(--height)) !important;    
    margin: 0 auto; /* valfritt: centrera */
  }

  .custom-dropdown .dropdown-item .sub-menu a:hover {
    background: var(--mobile-submenu-hover-bg, #ececec);
  }
}

/*******************************************************/
/*******************************************************/
/* Base styles */
.custom-dropdown { 
  position: relative; 

}

.dropdown-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-item {
  /* Mått & bakgrund på själva containern*/
  width: var(--width, 120px);
  height: var(--height, var(--width, 120px));
  background-color: var(--bg-color, transparent);
  background-image: var(--bg-image, none);
  background-size: cover;
  background-position: center;

  /* Grundläggande styling */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform .25s ease;
  overflow: hidden;

  /* Hörnradie — default kvadrat */
  border-radius: 0;
}

/* Runda objekt */
.dropdown-item.circle { border-radius: 50%; }
/* Rektangulär, du kan ta bort klassen helt för default 0° */
.dropdown-item.rect { border-radius: 8px; }
/* valfri rundning */

/* Titel-text ovanpå bakgrunden */
.dropdown-item .title {
  color: var(--title-color, #fff);
  background-color: var(--title-bg, rgba(0,0,0,0.4));
  padding: 0.4em 0.6em;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
}

/* Öppet läge */
.dropdown-item.open {
  transform: scale(1.05);
}

.dropdown-item.open .sub-menu {
  display: block;
}

/* Styling undermeny-länkar */
.dropdown-item .sub-menu li { margin: 0; }
.dropdown-item .sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
}
.dropdown-item .sub-menu a:hover {
  background: #f0f0f0;
}
/* 1. Se till att föräldrar har overflow: visible */
.nav__container,
.dropdown-menu {
  overflow: visible;
}


/* 1. Gör parent till position: relative och låt barn visas utanför */
.dropdown-item {
  position: relative;
  overflow: visible;
}

/* 2. Håll dropdown-links- och wrapper-containrar fria från overflow:hidden */
.custom-dropdown,
.custom-dropdown .dropdown-links {
  overflow: visible;
}

/* 3. Dölj sub-menyn som standard. F.ör instlällningar för sub-menyn */
.dropdown-item .sub-menu {
  display: none;
  position: absolute;
  top: 100%;           /* placera precis under parent */
  left: 0;
  min-width: 100%;     /* minst lika bred som parent */
  margin: 0;
  padding: 0.5em 0;    /* justera vertikalt mellanrum */
  list-style: none;
  background: var(--submenu-bg-color, transparent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  visibility: hidden;
  opacity: 0;
  transform: translateY(5px);   /* liten nedåtpuff vid in/ut */
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

/* 4. Visa sub-menyn när parent har .open */
.dropdown-item.open > .sub-menu {
  display: block;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
/* Lägg på .low-z på alla duplicerade containrar */
.low-z {
  position: relative;
  z-index: 1;
}

/* Se till att dropdown alltid ligger över */
.custom-dropdown {
  position: relative;
  z-index: 10;
}

.custom-dropdown .sub-menu {
  position: absolute;
  z-index: 20;
}

/* login form */
/* Se till att alla labels ligger ovanför fälten */
.mtp-login-form p label {
    display: block !important;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Se till att input-fälten är lika breda */
.mtp-login-form p input[type="text"],
.mtp-login-form p input[type="password"] {
    width: 100% !important;
    max-width: 300px;
    padding: 8px;
    box-sizing: border-box;
}

/* Lite spacing mellan fält */
.mtp-login-form p {
    margin-bottom: 16px;
}

/* specialare pga WooCommerce inte alltid laddar woocommerce-grid.xxx.css */
.show-password-input::after {
    font-family: WooCommerce;
    content: "\e010";
}