/* ALLHIR Round71 2.39.42 — Forum landing, camera parity/filters and cookie notice. */

#allhir-r71-forum-topics {
  scroll-margin-top: 116px;
}

#allhir-r71-forum-topics:focus {
  outline: none;
}

/* Photo studio: the front preview and saved JPEG use the same orientation. */
.allhir-r71-camera-dialog {
  max-height: 92svh;
}

.allhir-r71-camera-shell {
  height: min(92svh, 820px);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.allhir-r71-camera-stage {
  min-height: 0;
}

.allhir-r71-camera-stage video {
  height: 100%;
  transform-origin: center;
  transition: filter .18s ease;
}

.allhir-r71-camera-filters {
  display: grid;
  gap: 10px;
  padding: 12px 16px 13px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(25,23,21,.98), rgba(16,15,14,.99));
}

.allhir-r71-camera-dialog.is-video .allhir-r71-camera-filters {
  display: none;
}

.allhir-r71-camera-filters__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.allhir-r71-camera-filters__head strong {
  color: #f7e3aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.allhir-r71-camera-filters__head small {
  color: rgba(255,255,255,.68);
  font-size: 10.5px;
  line-height: 1.35;
  text-align: right;
}

.allhir-r71-camera-filter-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 5px;
  scrollbar-color: rgba(247,227,170,.42) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

body:not(#allhir-never) .allhir-r71-camera-filter-list button {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 999px;
  background: rgba(255,255,255,.055) !important;
  color: rgba(255,255,255,.82) !important;
  -webkit-text-fill-color: rgba(255,255,255,.82) !important;
  font: inherit;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none !important;
}

.allhir-r71-camera-filter-list button > span {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: linear-gradient(135deg, #ded6cd, #756d66);
}

.allhir-r71-camera-filter-list button[data-r71-camera-filter="warm"] > span {
  background: linear-gradient(135deg, #ffd69b, #a94f27);
}

.allhir-r71-camera-filter-list button[data-r71-camera-filter="soft"] > span {
  background: linear-gradient(135deg, #ffe8df, #c895a1);
}

.allhir-r71-camera-filter-list button[data-r71-camera-filter="cool"] > span {
  background: linear-gradient(135deg, #d9f2ff, #597aa7);
}

.allhir-r71-camera-filter-list button[data-r71-camera-filter="mono"] > span {
  background: linear-gradient(135deg, #f4f4f4 0 48%, #3c3c3c 52% 100%);
}

body:not(#allhir-never) .allhir-r71-camera-filter-list button:is(.is-selected,[aria-pressed="true"]) {
  border-color: rgba(247,227,170,.82) !important;
  background: rgba(247,227,170,.13) !important;
  color: #fff1c7 !important;
  -webkit-text-fill-color: #fff1c7 !important;
  box-shadow: 0 0 0 1px rgba(247,227,170,.12) !important;
}

/* Cookie/storage notice. It is informational while optional categories are off. */
.allhir-cookie-banner[hidden] {
  display: none !important;
}

.allhir-cookie-banner {
  position: fixed;
  z-index: 2147482500;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 14px;
  width: min(1080px, calc(100% - 28px));
  margin-inline: auto;
  color: #f2e6c7;
}

.allhir-cookie-banner__inner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 22px 58px 22px 24px;
  border: 1px solid rgba(247,227,170,.52);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(48,50,57,.96), rgba(18,20,25,.985) 64%, rgba(11,13,17,.99));
  box-shadow: 0 24px 70px rgba(0,0,0,.54), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
}

.allhir-cookie-banner__inner::before {
  position: absolute;
  inset: -90% 48% 30% -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,227,170,.14), rgba(247,227,170,0) 68%);
  pointer-events: none;
  content: "";
}

.allhir-cookie-banner__copy,
.allhir-cookie-banner__actions,
.allhir-cookie-banner__close {
  position: relative;
  z-index: 1;
}

.allhir-cookie-banner__copy > span {
  display: block;
  margin-bottom: 4px;
  color: #f7e3aa;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.allhir-cookie-banner__copy h2 {
  margin: 0 0 7px;
  color: #fff1c7;
  font-size: clamp(19px, 2.5vw, 25px);
  line-height: 1.15;
}

.allhir-cookie-banner__copy p {
  max-width: 790px;
  margin: 0;
  color: #eee3c9;
  font-size: 12.5px;
  line-height: 1.55;
}

.allhir-cookie-banner__copy small {
  display: block;
  max-width: 790px;
  margin-top: 5px;
  color: #cfc5ae;
  font-size: 10.5px;
  line-height: 1.45;
}

.allhir-cookie-banner__copy a {
  display: inline-block;
  margin-top: 8px;
  color: #f7e3aa;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.allhir-cookie-banner__actions {
  display: flex;
  max-width: 330px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

body:not(#allhir-never) .allhir-cookie-banner__actions button {
  min-height: 44px;
  flex: 1 1 140px;
  padding: 10px 15px;
  border: 1px solid rgba(247,227,170,.64) !important;
  border-radius: 13px;
  background: rgba(17,19,24,.72) !important;
  color: #fff1c7 !important;
  -webkit-text-fill-color: #fff1c7 !important;
  font: inherit;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none !important;
}

body:not(#allhir-never) .allhir-cookie-banner__actions button:hover {
  background: rgba(247,227,170,.13) !important;
}

body:not(#allhir-never) .allhir-cookie-banner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 50%;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  box-shadow: none !important;
}

body:not(#allhir-never) .allhir-cookie-banner__close[hidden] {
  display: none !important;
}

.allhir-footer-nav .allhir-footer-cookie-button {
  width: max-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c8cbce;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}

.allhir-footer-nav .allhir-footer-cookie-button:hover {
  color: #ff922b;
  transform: translateX(2px);
}

body.allhir-cookie-banner-visible {
  scroll-padding-bottom: 250px;
}

@media (max-width: 760px) {
  #allhir-r71-forum-topics {
    scroll-margin-top: 96px;
  }

  .allhir-r71-camera-dialog .allhir-r71-camera-shell {
    height: 100svh;
    max-height: 100svh;
    grid-template-rows: auto minmax(150px, 1fr) auto auto;
  }

  .allhir-r71-camera-dialog .allhir-r71-camera-stage {
    min-height: 0;
    aspect-ratio: auto;
  }

  .allhir-r71-camera-filters {
    padding-inline: 13px;
  }

  .allhir-r71-camera-filters__head {
    display: block;
  }

  .allhir-r71-camera-filters__head small {
    display: block;
    margin-top: 3px;
    text-align: left;
  }

  body:not(#allhir-never) .allhir-r71-camera-filter-list button {
    font-size: 11.5px !important;
  }

  body:not(#allhir-never) .allhir-r71-camera-secondary {
    font-size: 11px !important;
  }

  .allhir-cookie-banner {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    width: calc(100% - 16px);
    max-height: min(82svh, 620px);
    overflow-y: auto;
    border-radius: 20px;
  }

  .allhir-cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  }

  .allhir-cookie-banner__actions {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  body:not(#allhir-never) .allhir-cookie-banner__actions button {
    width: 100%;
    font-size: 13px !important;
  }

  body:not(#allhir-never) .allhir-cookie-banner__close {
    top: 10px;
    right: 10px;
  }

  .allhir-footer-nav .allhir-footer-cookie-button {
    font-size: 14px !important;
  }
}

@media (max-height: 640px) and (max-width: 760px) {
  .allhir-r71-camera-filters__head small {
    display: none;
  }

  .allhir-r71-camera-filters {
    gap: 6px;
    padding-block: 8px;
  }

  .allhir-r71-camera-filter-list {
    padding-bottom: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .allhir-r71-camera-stage video,
  .allhir-footer-nav .allhir-footer-cookie-button {
    transition: none !important;
  }
}
