/* Banner neblocant: site vizibil și acțiuni cu vizibilitate egală. */

.cookie-consent {
  position: fixed;
  z-index: 2200;
  inset: auto 16px 16px auto;
  width: min(700px, max(560px, 48vw));
  max-width: calc(100% - 32px);
  max-height: 50vh;
  max-height: 50dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(200, 164, 119, 0.45);
  border-radius: 16px;
  background: var(--ink-soft, #171411);
  color: var(--ivory, #f4efe7);
  font-family: var(--sans, Arial, sans-serif);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.24);
}

.cookie-consent__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 50vh;
  max-height: 50dvh;
  box-sizing: border-box;
  padding: 20px;
  overflow: hidden;
  background: var(--ink-soft, #171411);
}

.cookie-consent__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  flex-shrink: 0;
}

.cookie-consent__eyebrow {
  margin: 0 0 4px;
  color: var(--brass-bright, #e0c298);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cookie-consent__title {
  max-width: 480px;
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.cookie-consent__title:focus,
.cookie-consent__title:focus-visible {
  outline: none;
}

.cookie-consent__close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory, #f4efe7);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition:
    color 0.2s,
    background 0.2s;
}

.cookie-consent__close:hover,
.cookie-consent__close:focus-visible {
  background: var(--ivory, #f4efe7);
  color: #0b0a09;
  transform: none;
}

.cookie-consent__description {
  max-width: 520px;
  margin: 10px 0 14px;
  color: #e6ddd1;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-consent__form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

.cookie-consent__content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.cookie-consent__categories {
  display: grid;
  gap: 0;
}

.cookie-consent__categories {
  grid-template-columns: 1fr;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cookie-category {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  align-content: start;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid rgba(200, 164, 119, 0.18);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.cookie-category:last-child {
  border-bottom: 0;
}

.cookie-category:hover,
.cookie-category:has(.cookie-category__input:disabled):hover {
  border-color: rgba(200, 164, 119, 0.18);
  background: transparent;
  transform: none;
}

.cookie-category:has(.cookie-category__input:disabled) {
  cursor: default;
}

.cookie-category__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.cookie-category__control {
  position: relative;
  display: block;
  width: 38px;
  height: 22px;
  margin-top: 0;
  border: 1px solid rgba(200, 164, 119, 0.35);
  border-radius: 999px;
  background: #595148;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.cookie-category__control::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0b0a09;
  box-shadow: none;
  content: "";
  transition: transform 0.2s var(--ease);
}

.cookie-category__input:checked + .cookie-category__control {
  border-color: var(--brass, #c8a477);
  background: var(--brass, #c8a477);
}

.cookie-category__input:checked + .cookie-category__control::after {
  transform: translateX(16px);
}

.cookie-category__input:disabled + .cookie-category__control {
  border-color: var(--ivory, #f4efe7);
  background: var(--ivory, #f4efe7);
}

.cookie-category__input:focus-visible + .cookie-category__control {
  outline: 3px solid var(--brass, #c8a477);
  outline-offset: 3px;
}

.cookie-category__copy,
.cookie-category__title-row {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.cookie-category__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cookie-category__title {
  font-size: 14px;
}

.cookie-category__badge {
  display: inline-flex;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c4b8aa;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.cookie-category__description {
  color: #c4b8aa;
  font-size: 12px;
  line-height: 1.35;
}

.cookie-consent__status {
  margin: 0;
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--brass, #c8a477);
  background: rgba(200, 164, 119, 0.1);
  font-size: 12px;
  line-height: 1.45;
}

.cookie-consent__status[hidden] {
  display: none;
}

.cookie-consent__policy {
  justify-self: start;
  margin-top: 10px;
  color: var(--brass-bright, #e0c298);
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
  flex-shrink: 0;
  background: var(--ink-soft, #171411);
}

.cookie-external-info {
  padding: 14px 0;
}

.cookie-external-info p {
  margin: 8px 0 0;
}

.cookie-consent__action {
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--ivory, #f4efe7);
  border-radius: 8px;
  background: transparent;
  color: var(--ivory, #f4efe7);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.cookie-consent__action:hover,
.cookie-consent__action:focus-visible {
  border-color: var(--ivory, #f4efe7);
  background: var(--ivory, #f4efe7);
  color: #0b0a09;
  transform: none;
}

.cookie-consent__action:focus-visible {
  outline: 3px solid var(--brass, #c8a477);
  outline-offset: 3px;
}

.cookie-settings-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
  color: var(--brass-bright, #e0c298);
}


/* Dr. Yazan integration and policy page. */
.cookie-consent[hidden], .cookie-consent [hidden] { display: none !important; }
.cookie-consent .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cookie-consent__title { font-family: var(--display, Georgia, serif); font-weight: 400; letter-spacing: -.025em; }
.cookie-consent__close { width: 44px; height: 44px; }
.cookie-consent__action { min-height: 46px; }
.cookie-settings-link { text-decoration: underline; text-underline-offset: 4px; }
.map-card { position: relative; }
.legal-cookie-control { min-height: 44px; padding: 10px 17px; border: 1px solid var(--brass, #c8a477); border-radius: 4px; color: var(--ivory, #f4efe7); background: transparent; cursor: pointer; font-size: 12px; line-height: 1.4; }
.legal-cookie-control:hover { background: var(--brass, #c8a477); color: #0b0a09; }
.cookie-policy { max-width: 900px; padding-top: 170px; padding-bottom: 90px; }
.cookie-policy h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.08; }
.cookie-policy h2 { margin-top: 42px; font-size: 28px; line-height: 1.2; }
.cookie-policy p, .cookie-policy li { color: #d3c6b8; }
.cookie-policy a { text-decoration: underline; text-underline-offset: 4px; }
.cookie-policy__table-wrap { max-width: 100%; overflow-x: auto; }
.cookie-policy table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.cookie-policy th, .cookie-policy td { padding: 14px; border: 1px solid var(--line); vertical-align: top; }
.cookie-policy code { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .cookie-consent { inset: auto 8px 8px; width: calc(100% - 16px); max-width: none; max-height: 55vh; max-height: 55dvh; border-radius: 14px; }
  .cookie-consent__panel { max-height: 55vh; max-height: 55dvh; padding: 16px; }
  .cookie-consent__title { font-size: 23px; }
  .cookie-consent__description { font-size: 12px; }
  .cookie-consent__actions { gap: 6px; }
  .cookie-consent__action { padding: 8px 5px; font-size: 11px; }
  .cookie-category { padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent *, .cookie-consent *::after { transition: none !important; }
}
