.container {
  position: relative;
  display: grid;
  gap: var(--Spacing-x1);
}

.bookingCode {
  height: 60px;
  background-color: var(--Base-Background-Primary-Normal);
  border-radius: var(--Corner-radius-md);
  padding: var(--Spacing-x1) var(--Spacing-x-one-and-half);
}

.bookingCodeLabel {
  display: flex;
  align-items: center;
  gap: var(--Spacing-x-half);
  position: relative;
}

.errorContainer {
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-x1);
}
.error {
  display: flex;
  gap: var(--Spacing-x-half);
}

.errorIcon {
  min-width: 20px;
}

.bookingCodeRemember,
.bookingCodeRememberVisible {
  display: none;
  gap: var(--Spacing-x1);
}

.bookingCodeRememberVisible {
  display: flex;
  width: 100%;
}

.bookingCodeTooltip {
  max-width: 560px;
  margin-top: var(--Spacing-x2);
}

.bookingCodeRememberVisible label {
  align-items: center;
}

@media screen and (max-width: 767px) {
  .hideOnMobile {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .bookingCode {
    height: auto;
    background-color: transparent;
  }
  .bookingCodeRememberVisible {
    align-items: center;
    background: var(--Base-Surface-Primary-light-Normal);
    justify-content: space-between;
    border-radius: var(--Spacing-x-one-and-half);
  }
}

@media screen and (min-width: 768px) and (max-width: 1366px) {
  .container {
    display: flex;
  }
  .codePopover {
    background: var(--Base-Surface-Primary-light-Normal);
    border-radius: var(--Spacing-x-one-and-half);
    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.05);
    padding: var(--Spacing-x2);
    width: 320px;
  }
  .popover {
    display: grid;
    gap: var(--Spacing-x2);
  }
  .overlayTrigger {
    position: absolute;
    top: 0;
    bottom: 0;
    display: block;
    left: 0;
    right: var(--Spacing-x3);
  }
}

@media screen and (min-width: 1367px) {
  .container:hover,
  .container:focus-within,
  .container:has([data-focused="true"], [data-pressed="true"]) {
    background-color: var(--Base-Surface-Primary-light-Hover-alt);
    border-radius: var(--Corner-radius-md);
  }

  .bookingCodeRememberVisible {
    padding: var(--Spacing-x2);
    position: absolute;
    top: calc(100% + var(--Spacing-x3));
    left: calc(0% - var(--Spacing-x-half));
    width: 360px;
    box-shadow: var(--popup-box-shadow);
  }
}
