/* Fotohub Consent Mode cookie banner */
.fh-cc {
  --fh-cc-bg: #0b1220;
  --fh-cc-panel: #121a2a;
  --fh-cc-text: #f4f7fb;
  --fh-cc-muted: #a8b3c7;
  --fh-cc-accent: #32a0ee;
  --fh-cc-accent-deep: #0f66b0;
  --fh-cc-border: rgba(255, 255, 255, 0.12);
  --fh-cc-radius: 14px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  box-sizing: border-box;
}

.fh-cc *,
.fh-cc *::before,
.fh-cc *::after {
  box-sizing: border-box;
}

.fh-cc[hidden] {
  display: none !important;
}

.fh-cc__backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(11, 18, 32, 0.55);
}

.fh-cc__panel {
  position: fixed;
  z-index: 10051;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1.35rem 1.15rem;
  background: var(--fh-cc-bg);
  color: var(--fh-cc-text);
  border: 1px solid var(--fh-cc-border);
  border-radius: var(--fh-cc-radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.fh-cc__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.fh-cc__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fh-cc-muted);
}

.fh-cc__text a {
  color: var(--fh-cc-accent);
  text-decoration: underline;
}

.fh-cc__text a:hover,
.fh-cc__text a:focus {
  color: #7cc4f5;
}

.fh-cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.fh-cc__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fh-cc__btn--primary {
  background: var(--fh-cc-accent);
  color: #041018;
}

.fh-cc__btn--primary:hover,
.fh-cc__btn--primary:focus {
  background: #5bb4f2;
}

.fh-cc__btn--ghost {
  background: transparent;
  color: var(--fh-cc-text);
  border-color: var(--fh-cc-border);
}

.fh-cc__btn--ghost:hover,
.fh-cc__btn--ghost:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

.fh-cc__btn--secondary {
  background: var(--fh-cc-accent-deep);
  color: #fff;
}

.fh-cc__btn--secondary:hover,
.fh-cc__btn--secondary:focus {
  background: #1473c2;
}

.fh-cc__details {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--fh-cc-border);
}

.fh-cc__details[hidden] {
  display: none !important;
}

.fh-cc__cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--fh-cc-border);
}

.fh-cc__cat:last-child {
  border-bottom: 0;
}

.fh-cc__cat-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
}

.fh-cc__cat-desc {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--fh-cc-muted);
}

.fh-cc__switch {
  position: relative;
  width: 2.6rem;
  height: 1.45rem;
  flex-shrink: 0;
}

.fh-cc__switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.fh-cc__switch input:disabled {
  cursor: not-allowed;
}

.fh-cc__switch-ui {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #3a465c;
  transition: background 0.15s ease;
}

.fh-cc__switch-ui::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.fh-cc__switch input:checked + .fh-cc__switch-ui {
  background: var(--fh-cc-accent-deep);
}

.fh-cc__switch input:checked + .fh-cc__switch-ui::after {
  transform: translateX(1.15rem);
}

.fh-cc__switch input:disabled + .fh-cc__switch-ui {
  background: #2a3548;
  opacity: 0.85;
}

.fh-cc__switch input:focus-visible + .fh-cc__switch-ui {
  outline: 2px solid var(--fh-cc-accent);
  outline-offset: 2px;
}

.fh-cc__details-actions {
  margin-top: 0.9rem;
}

@media (min-width: 640px) {
  .fh-cc__panel {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    width: min(26rem, calc(100vw - 3rem));
    max-width: none;
  }
}
