.vcc-banner,
.vcc-modal,
.vcc-revisit,
.vcc-ph {
  --vcc-text: #212121;
  --vcc-muted: #5c5c5c;
  --vcc-line: #e6e2df;
  --vcc-soft: #f6f4f2;
  box-sizing: border-box;
  font-family: inherit;
  color: var(--vcc-text);
}
.vcc-banner *,
.vcc-modal *,
.vcc-ph * {
  box-sizing: border-box;
}
.vcc-banner[hidden],
.vcc-modal[hidden],
.vcc-overlay[hidden],
.vcc-revisit[hidden],
.vcc-cat-body[hidden] {
  display: none !important;
}

/* banner: cutie în stânga jos */
.vcc-banner {
  position: fixed;
  left: 40px;
  bottom: 40px;
  z-index: 2147483600;
  width: 440px;
  max-width: calc(100vw - 32px);
  padding: 24px 24px 20px;
  background: #fff;
  border: 1px solid #f4f4f4;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
  animation: vcc-in 0.35s ease-out;
}
@keyframes vcc-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.vcc-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.vcc-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--vcc-text);
}
.vcc-link {
  color: var(--vcc-brand, #1f2937);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vcc-actions {
  display: flex;
  gap: 8px;
}
.vcc-actions .vcc-btn {
  flex: 1 1 0;
}

.vcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  border: 2px solid var(--vcc-brand, #1f2937);
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.15s;
  background: var(--vcc-brand, #1f2937);
  color: #fff;
}
.vcc-btn:hover {
  opacity: 0.85;
}
.vcc-btn:focus-visible,
.vcc-close:focus-visible,
.vcc-cat-toggle:focus-visible,
.vcc-revisit:focus-visible,
.vcc-switch input:focus-visible + .vcc-slider {
  outline: 2px solid var(--vcc-brand, #1f2937);
  outline-offset: 2px;
}
.vcc-btn-outline {
  background: transparent;
  color: var(--vcc-brand, #1f2937);
}

/* fereastra de preferințe */
.vcc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  background: rgba(0, 0, 0, 0.45);
}
.vcc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2147483641;
  display: flex;
  flex-direction: column;
  width: 760px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
}
.vcc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--vcc-line);
}
.vcc-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--vcc-text);
}
.vcc-close {
  display: inline-flex;
  padding: 6px;
  background: none;
  border: 0;
  border-radius: 4px;
  color: var(--vcc-muted);
  cursor: pointer;
}
.vcc-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 24px 8px;
  overscroll-behavior: contain;
}
.vcc-cat {
  border-bottom: 1px solid var(--vcc-line);
}
.vcc-cat:last-child {
  border-bottom: 0;
}
.vcc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.vcc-cat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--vcc-text);
  cursor: pointer;
  text-align: left;
}
.vcc-cat-toggle svg {
  flex: none;
  transition: transform 0.2s;
}
.vcc-cat-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}
.vcc-always {
  font-size: 13px;
  font-weight: 600;
  color: #0b7a35;
  white-space: nowrap;
}
.vcc-cat-body {
  padding: 0 0 16px 24px;
}
.vcc-cookies {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
  background: var(--vcc-soft);
}
.vcc-cookies th,
.vcc-cookies td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid #fff;
}
.vcc-cookies th {
  font-weight: 600;
}

.vcc-switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  margin: 0;
  cursor: pointer;
}
.vcc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.vcc-slider {
  position: absolute;
  inset: 0;
  background: #d0d5d2;
  border-radius: 24px;
  transition: background 0.2s;
  pointer-events: none;
}
.vcc-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.vcc-switch input:checked + .vcc-slider {
  background: var(--vcc-brand, #1f2937);
}
.vcc-switch input:checked + .vcc-slider::before {
  transform: translateX(20px);
}
.vcc-modal-foot {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--vcc-line);
}
.vcc-modal-foot .vcc-btn {
  flex: 1 1 0;
}
html.vcc-lock,
html.vcc-lock body {
  overflow: hidden;
}

/* butonul rotund pentru schimbarea alegerii */
.vcc-revisit {
  position: fixed;
  left: 15px;
  bottom: 15px;
  z-index: 2147483500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--vcc-brand, #1f2937);
  color: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* înlocuitorul hărții */
.vcc-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  min-height: 260px;
  padding: 24px;
  background: var(--vcc-soft);
  text-align: center;
}
.vcc-ph-text {
  max-width: 420px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

/* paginile de politici */
.vcc-policy {
  box-sizing: border-box;
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  font-size: 16px;
  line-height: 1.7;
  color: #212121;
}
.vcc-policy *,
.vcc-policy *::before,
.vcc-policy *::after {
  box-sizing: border-box;
}
.vcc-policy .vcc-policy-title {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  color: #212121;
}
.vcc-policy .vcc-updated {
  margin: 0 0 40px;
  font-size: 14px;
  color: #6b6b6b;
}
.vcc-policy h2 {
  margin: 56px 0 16px;
  padding-top: 32px;
  border-top: 1px solid #e6e2df;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #212121;
}
.vcc-policy h3 {
  margin: 32px 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #212121;
}
.vcc-policy p {
  margin: 0 0 16px;
}
.vcc-policy ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.vcc-policy li {
  margin: 0 0 8px;
  padding-left: 4px;
}
.vcc-policy a {
  color: var(--vcc-brand, #1f2937);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vcc-policy a:hover {
  text-decoration-thickness: 2px;
}
.vcc-policy .vcc-company {
  margin: 0 0 16px;
  padding: 16px 20px;
  background: #f6f4f2;
  border-left: 3px solid var(--vcc-brand, #1f2937);
}

/* tabelul din politica de cookie-uri */
.vcc-table-wrap {
  overflow-x: auto;
  margin: 12px 0 24px;
  -webkit-overflow-scrolling: touch;
}
.vcc-table {
  width: 100%;
  margin: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.vcc-table .vcc-col-name { width: 22%; }
.vcc-table .vcc-col-provider { width: 22%; }
.vcc-table .vcc-col-duration { width: 15%; }
.vcc-table th,
.vcc-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #e6e2df;
}
.vcc-table th {
  background: #f6f4f2;
  font-weight: 600;
}
.vcc-table td:first-child {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .vcc-policy {
    padding: 40px 16px 72px;
    font-size: 15px;
  }
  .vcc-policy h2 {
    margin-top: 40px;
    padding-top: 24px;
    font-size: 21px;
  }
  .vcc-policy .vcc-updated {
    margin-bottom: 28px;
  }
  .vcc-policy .vcc-table-wrap {
    overflow: visible;
  }
  .vcc-policy .vcc-table,
  .vcc-policy .vcc-table tbody,
  .vcc-policy .vcc-table tr,
  .vcc-policy .vcc-table td {
    display: block;
    width: 100%;
  }
  .vcc-policy .vcc-table colgroup,
  .vcc-policy .vcc-table thead {
    display: none;
  }
  .vcc-policy .vcc-table tr {
    margin: 0 0 12px;
    border: 1px solid #e6e2df;
  }
  .vcc-policy .vcc-table td {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid #f0edea;
  }
  .vcc-policy .vcc-table td:last-child {
    border-bottom: 0;
  }
  .vcc-policy .vcc-table td::before {
    content: attr(data-label);
    font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #6b6b6b;
  }
  .vcc-policy .vcc-table td:first-child {
    background: #f6f4f2;
  }
}

@media (max-width: 600px) {
  .vcc-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    padding: 20px 16px 16px;
    border-radius: 0;
  }
  .vcc-actions,
  .vcc-modal-foot {
    flex-direction: column-reverse;
  }
  .vcc-modal-head,
  .vcc-modal-body,
  .vcc-modal-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .vcc-cat-body {
    padding-left: 0;
  }
  .vcc-cookies th:nth-child(3),
  .vcc-cookies td:nth-child(3) {
    min-width: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vcc-banner { animation: none; }
}

/* X-ul din banner = refuz */
.vcc-banner .vcc-banner-x {
  position: absolute;
  top: 10px;
  right: 10px;
}
.vcc-banner .vcc-title {
  padding-right: 28px;
}

/* iframe-ul blocat ține locul până la acord */
iframe.vcc-blocked {
  background: var(--vcc-soft, #f6f4f2);
}

/* nota de sub formular */
.vcc-form-note {
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
}
.vcc-form-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: inherit;
}

/* linkurile din subsol, pentru site-urile care nu le au */
.vcc-footer-links {
  margin: 0;
  padding: 14px 16px 18px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  background: #fff;
  color: #444;
  border-top: 1px solid #ececec;
}
.vcc-footer-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vcc-footer-links span {
  margin: 0 8px;
  opacity: 0.5;
}
