.hidden {
  display: none !important;
}

.parent-container {
  display: flex;
  justify-content: center;
  /* Centers horizontally */
  align-items: center;
  /* Centers vertically */
  height: 100vh;
  /* Parent needs a height to center vertically! */
}

.auth-form {
  width: 100%;
  max-width: 450px;
  /* Adjust as needed */
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-form .header {
  margin-bottom: 20px;
  background: var(--primary);
  padding: 1.8rem 0;
}

.auth-form .header img {
  display: block;
  margin: 0 auto;
}

.auth-form form {
  padding: 50px;
}

.auth-form__form {
  padding: 50px;
}

.auth-form .input-wrap {
  margin-bottom: 15px !important;
}

.auth-form form h4,
.auth-form__form h4 {
  margin-bottom: 1.5rem;
}

.general-body {
  width: 100%;
  margin: 10rem 0;
}

@media screen and (max-width: 768px) {
  .general-body {
    margin: 5rem 0;
  }
}

.general-body-wrap {
  width: 100%;
  max-width: 107rem;
  padding: 0 2rem;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .general-body-wrap {
    padding: 0 1.5rem;
  }

  .general-body-wrap-mobile {
    padding: 0 3.9rem 0 1.5rem;
  }
}

.general-body-items {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.general-body-items__link {
  width: 150px;
}

#orderHours {
  display: block;
  width: 100%;
}

/* Time slots styling */
.experience-time-slots {
  width: 100%;
}

.btn-check {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.time-slots-container {
  margin-bottom: 1.5rem;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.time-slot-item {
  position: relative;
}

.time-slot-label {
  color: var(--accent);
  background: none;
  font-size: 1.4rem;
  font-weight: 300;
  padding: 0.8rem 3.6rem;
  border-radius: 0.6rem;
  border: 1px solid var(--accent);
  display: block;
  cursor: pointer;
}

.btn-check:checked+.time-slot-label {
  color: var(--grey);
  background: var(--accent);
}

.modal-section--alternative .booking-header {
  background: initial;
  padding-right: 3.6rem;
}

.modal-section--alternative .booking-day--form {
  padding-right: 3.6rem;
}

.time-layout-container {
  margin-top: 2rem;
}

.time-filters.active {
  background-color: var(--accent);
  color: white;
}

.card-title {
  margin-bottom: 1rem;
}

/* Time slots styling end */


/* This targets the editable text area of CKEditor */
.ck-editor__editable_inline {
  min-height: 300px;
  /* Change this number to make it taller or shorter */
}

/* Optional: If you want the footer editor to be shorter than the body editor */
#footer-editor-container .ck-editor__editable_inline {
  min-height: 300px;
}


/* BUTTONS */
.btn-new-reservation--right {
  justify-content: right;
  margin-bottom: 15px;
}

/* NEW TABLE STYLES */
.table-marker {
  border: none !important;
  background-color: #55a8cf;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  /* default rectangular */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  text-align: center;
  user-select: none;
  position: relative;
  z-index: 1;
  --rotation: 0deg;
}

.table-marker.table-reserved {
  background-color: #50a84e !important;
}

.table-marker.table-reserved .chair {
  background-color: #50a84e !important;
}

.table-marker.table-joinable {
  background-color: #55a8cf !important;
}

.table-marker.table-joinable .chair {
  background-color: #55a8cf !important;
}

.table-marker.table-non-joinable {
  background-color: #2c2140 !important;
}

.table-marker.table-non-joinable .chair {
  background-color: #2c2140 !important;
}

.round-table {
  border-radius: 50% !important;
}

.oval-table {
  border-radius: 50px !important;
}

.rectangular-table {
  border-radius: 8px !important;
}

.chair {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #55a8cf;
  border: none !important;
  border-radius: 4px !important;
  z-index: 0;
}

.table-label {
  font-weight: bold;
  z-index: 2;
}

/* Specific to reservations and settings layout */
.table-layout-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.table-status-legend,
.reservation-legend {
  font-size: 12px;
  color: #333;
  z-index: 10;
}

.graphic-table-container {
  min-width: 300px;
  min-height: 300px;
  position: relative;
  transform-origin: top left;
  background: var(--table-background);
  margin-bottom: 1.5rem;
  overflow: auto;
}

/* Mobile Devices (Phones) */
@media screen and (max-width: 419px) {
  .graphic-table-container {
    /* 100% allows it to shrink to fit a 320px phone or grow to a 400px phone */
    width: 100% !important; 
    /* Optional: Add a little padding or margin so it doesn't touch the screen edges */
  }
}

@media screen and (min-width: 420px) and (max-width: 767px) {
  .graphic-table-container {
    /* 100% allows it to shrink to fit a 320px phone or grow to a 400px phone */
    width: 400px !important; 
    /* Optional: Add a little padding or margin so it doesn't touch the screen edges */
  }
}

/* Tablets */
@media screen and (min-width: 768px) and (max-width: 967px) {
  .graphic-table-container {
    width: 768px !important; /* Or consider using max-width: 100%; for more flexibility */
  }
}

/* Laptops / Smaller Desktops */
@media screen and (min-width: 968px) and (max-width: 1199px) {
  .graphic-table-container {
    width: 968px !important;
  }
}

.time-selector {
  margin: 1.5rem 0;
}

.connection-lines {
  pointer-events: none;
}

.table-layout-wrapper .info-button,
.table-layout-wrapper .change-table-button,
.table-layout-wrapper .swap-table-button,
.table-layout-wrapper .edit-button {
  position: absolute;
  top: 5px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 3;
  transform: rotate(calc(-1 * var(--rotation)));
}

.table-layout-wrapper .edit-button {
  right: 5px;
}

.table-layout-wrapper .info-button {
  right: 5px;
}

.table-layout-wrapper .change-table-button {
  right: 35px;
}

.table-layout-wrapper .swap-table-button {
  right: 65px;
}

.table-layout-wrapper .info-button:hover,
.table-layout-wrapper .change-table-button:hover,
.table-layout-wrapper .swap-table-button:hover,
.table-layout-wrapper .edit-button:hover {
  background: rgba(0, 0, 0, 0.7);
}

.capacity-warning {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Toastr text color to white */
#toast-container>div {
  color: white !important;
}

#toast-container>div>.toast-title {
  color: white !important;
}

#toast-container>div>.toast-message {
  color: white !important;
}

#toast-container>div>.toast-close-button {
  color: white !important;
}


/* Form messages */
.error-message,
.error-message * {
  color: var(--red);
  font-size: 1rem;
  margin-top: 0.85rem;
  margin-left: 0.5rem;
}

.form-info-message {
  color: var(--red2);
  font-size: 1rem;
  margin-top: 0.85rem;
}

/* Form end messages */