/* 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 */
.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(26, 26, 24, 0.5);
  font-size: 14px;
  text-decoration: none;
}

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

.header-wrapper .lang-switcher li.active button,
.header-wrapper .lang-switcher li.active a {
  color: #1A1A18;
  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;
}

/* Rules page tables — better styling within static content */
.static-page-content .table-holder {
  margin: 10px 0 30px;
  padding: 0;
  background-color: transparent;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.static-page-content .table-holder table {
  width: 100%;
  border-collapse: collapse;
}

.static-page-content .table-holder table thead tr th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #7b7b7b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: #f5f5f5;
  border-bottom: 2px solid #e0e0e0;
  white-space: nowrap;
}

.static-page-content .table-holder table thead tr th:first-child {
  border-radius: 6px 0 0 0;
}

.static-page-content .table-holder table thead tr th:last-child {
  border-radius: 0 6px 0 0;
}

.static-page-content .table-holder table tbody tr td {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 400;
  color: #1e1e1e;
  border-bottom: 1px solid #ebebeb;
  vertical-align: top;
}

.static-page-content .table-holder table thead tr th:first-child,
.static-page-content .table-holder table tbody tr td:first-child {
  width: 50%;
}

.static-page-content .table-holder table tbody tr td strong,
.static-page-content .table-holder table tbody tr td b {
  font-weight: 600;
}

.static-page-content .table-holder table tbody tr:last-child td {
  border-bottom: none;
}

.static-page-content .table-holder table tbody tr:hover {
  background-color: #fafafa;
}

/* Category/section header rows (cells that span or have bold text only) */
.static-page-content .table-holder table tbody tr td[colspan] {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: #1e1e1e;
  background-color: #f9f9f9;
  padding: 10px 16px;
  letter-spacing: 0.03em;
}

/* Mobile: override main.css card layout — keep as a proper table */
@media (max-width: 1024px) and (orientation: portrait) {
  .static-page-content .table-holder {
    margin: 10px -16px 30px;
    padding: 0;
  }

  .static-page-content .table-holder table {
    display: table !important;
  }

  .static-page-content .table-holder table thead {
    display: table-header-group !important;
  }

  .static-page-content .table-holder table tbody {
    display: table-row-group !important;
  }

  .static-page-content .table-holder table tbody tr {
    display: table-row !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
    border-bottom: none !important;
  }

  .static-page-content .table-holder table tbody tr td {
    display: table-cell !important;
    padding: 10px 10px !important;
    font-size: 13px !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #ebebeb !important;
  }

  .static-page-content .table-holder table thead tr th {
    padding: 8px 8px !important;
    font-size: 10px !important;
    white-space: normal !important;
  }

  .static-page-content .table-holder table thead tr th:first-child,
  .static-page-content .table-holder table tbody tr td:first-child {
    width: 40% !important;
  }

  .static-page-content .table-holder table tbody tr td {
    padding: 10px 8px !important;
    font-size: 12px !important;
  }
}

/* Leaderboard — compact rows to fit more on screen */
.table-holder.table-rang-lista table tbody tr {
  /* padding-right leaves room for the absolutely-positioned .mobile-number
     score circle (30px wide @ right:20 from static/pwa/css/main.css) so
     the inline-block outlet/city cells wrap instead of sliding under it
     on mobile. */
  padding: 8px 60px 8px 36px !important;
  margin-bottom: 4px !important;
}

/* Mobile: hide the standalone city column. The city is rendered inline
   after the outlet name (inside the .mobile-label span) so they share
   the same line and wrap together. Desktop layout keeps the city in
   its own column. */
@media (max-width: 1024px) and (orientation: portrait) {
  .table-holder.table-rang-lista table tbody tr td.leaderboard-city {
    display: none !important;
  }
}

.table-holder.table-rang-lista table tbody tr td {
  padding: 0 !important;
  margin-bottom: 1px !important;
  font-size: 13px !important;
}

.table-holder.table-rang-lista table thead tr th {
  padding: 0 0 10px 0 !important;
  font-size: 11px !important;
}

.table-holder.table-rang-lista table tbody tr td:first-child {
  top: 8px !important;
  left: 10px !important;
  font-size: 13px !important;
}

.table-holder.table-rang-lista table tbody tr td:nth-child(2) {
  font-size: 13px !important;
}

.table-holder.table-rang-lista table tbody tr td:nth-child(3),
.table-holder.table-rang-lista table tbody tr td:nth-child(4) {
  font-size: 11px !important;
}

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

/* Leaderboard empty-state message (rendered outside the table) */
.leaderboard-empty {
  margin: 0;
  padding: 16px 20px;
  background-color: white;
  font-size: 14px;
  color: #7b7b7b;
}

/* 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;
  }
}
