/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Language switcher: style form buttons as plain links */
.lang-switcher form {
  display: inline;
  margin: 0;
  padding: 0;
}

.lang-switcher button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: #b5b5b5;
  text-decoration: none;
  font-size: 14px;
}

.lang-switcher button:hover {
  text-decoration: underline;
}

.lang-switcher li.active button {
  color: #1e1e1e;
  font-weight: 600;
}

/* Language switcher in public site header (white text on dark/hero background) */
.header-wrapper .lang-switcher {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 20px;
}

.header-wrapper .lang-switcher button,
.header-wrapper .lang-switcher a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-decoration: none;
}

.header-wrapper .lang-switcher button:hover,
.header-wrapper .lang-switcher a:hover {
  color: #fff;
}

.header-wrapper .lang-switcher li.active button,
.header-wrapper .lang-switcher li.active a {
  color: #fff;
  font-weight: 600;
}

/* Password show/hide toggle */
.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-wrapper input {
  flex: 1;
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #999;
  line-height: 0;
  display: flex;
  align-items: center;
}

.password-toggle:hover,
.password-toggle.active {
  color: #333;
}

/* Password hint */
.password-hint {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* Rules updated date */
.rules-updated {
  color: #888;
  font-size: 14px;
}

/* Select2 dropdown overrides — match project input/form styling */
.select2-dropdown {
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.select2-search--dropdown {
  padding: 8px;
}

.select2-search--dropdown .select2-search__field {
  height: 40px;
  padding: 0 12px;
  font-size: 12px;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: #1e1e1e;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: #1e1e1e;
}

.select2-results__option {
  padding: 10px 12px;
  font-size: 12px;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: #1e1e1e;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #f5f5f5;
  color: #1e1e1e;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #ededed;
}

.select2-results__message {
  padding: 10px 12px;
  font-size: 12px;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: #7b7b7b;
}

/* Manual outlet toggle link */
.toggle-manual-link {
  margin-top: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.toggle-manual-link a {
  color: #F40009;
  text-decoration: underline;
}

.toggle-manual-link a:hover {
  color: #d50008;
}

/* Utility */
.hidden {
  display: none;
}

/* Outlet info on registration */
.outlet-info {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 13px;
}

.outlet-info p {
  margin: 2px 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 20px;
}

.pagination-info {
  font-size: 14px;
  color: #7b7b7b;
}

/* Cookie consent banner */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e1e1e;
  color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.cookie-bar__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-bar__text {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-bar__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-bar__btn {
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-bar__btn--accept {
  background: #F40009;
  color: #fff;
}

.cookie-bar__btn--accept:hover {
  background: #d50008;
}

.cookie-bar__btn--decline {
  background: transparent;
  color: #fff;
  border: 1px solid #666;
}

.cookie-bar__btn--decline:hover {
  border-color: #fff;
}

/* Success message spacing (before next-code form) */
.info-success + .form-holder {
  margin-top: 40px;
}

/* Cookie consent banner — light theme (PWA) */
.cookie-bar--light {
  background: #fff;
  color: #1e1e1e;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #cfcfcf;
}

.cookie-bar--light .cookie-bar__text {
  color: #7b7b7b;
}

.cookie-bar--light .cookie-bar__btn--decline {
  color: #1e1e1e;
  border-color: #cfcfcf;
}

.cookie-bar--light .cookie-bar__btn--decline:hover {
  border-color: #1e1e1e;
}

@media (max-width: 600px) {
  .cookie-bar__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-bar__actions {
    width: 100%;
  }

  .cookie-bar__btn {
    flex: 1;
  }
}
