[hidden] { display: none !important; }

.rcc-banner,
.rcc-panel,
.rcc-overlay,
.rcc-reopen,
.rds-consent-placeholder {
  box-sizing: border-box;
}

.rcc-banner,
.rcc-panel,
.rcc-reopen {
  font-family: "Work Sans", "Raleway", system-ui, sans-serif;
  color: #2d2926;
}

.rcc-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  width: min(520px, calc(100% - 40px));
  background: #fffaf5;
  border: 1px solid #d9c4b4;
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(45, 34, 29, 0.3);
}

.rcc-banner__inner { position: relative; padding: 25px; }
.rcc-kicker { margin: 0 0 5px; color: #8a5c47; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.rcc-banner h2,
.rcc-panel h2 { margin: 0 42px 12px 0; color: #392f2a; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.18; }
.rcc-banner p,
.rcc-panel p { line-height: 1.55; }
.rcc-banner__note { margin-bottom: 0; color: #6e625b; font-size: 0.82rem; }
.rcc-banner__policies { margin: 10px 0 0; font-size: 0.82rem; }
.rcc-banner__policies a { color: #734832; font-weight: 800; text-underline-offset: 3px; }
.rcc-banner__policies a:hover,
.rcc-banner__policies a:focus-visible { color: #4e2f21; text-decoration-thickness: 2px; }

.rcc-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #5e4639;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.rcc-close:hover,
.rcc-close:focus-visible { background: #f0e4dc; border-color: #c89b7b; outline: 3px solid rgba(183, 119, 82, 0.28); outline-offset: 2px; }

.rcc-banner__actions,
.rcc-panel__footer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.rcc-panel__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2d4ca;
  font-size: 0.86rem;
}
.rcc-panel__policies a {
  color: #734832;
  font-weight: 800;
  text-underline-offset: 3px;
}
.rcc-panel__policies a:hover,
.rcc-panel__policies a:focus-visible {
  color: #4e2f21;
  text-decoration-thickness: 2px;
}

.rcc-btn {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #9a735d;
  border-radius: 999px;
  background: #fff;
  color: #44352d;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.rcc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(77, 54, 42, 0.16); }
.rcc-btn:active { transform: translateY(0) scale(0.98); }
.rcc-btn:focus-visible { outline: 3px solid rgba(183, 119, 82, 0.36); outline-offset: 3px; }
.rcc-btn--primary { border-color: #a56d4f; background: #a56d4f; color: #fff; }
.rcc-btn--primary:hover { background: #8f5c43; }
.rcc-btn--secondary { background: #f2e5dc; }
.rcc-btn--ghost { background: #fffaf5; }

.rcc-overlay { position: fixed; inset: 0; z-index: 2147483001; background: rgba(29, 24, 21, 0.58); backdrop-filter: blur(3px); }
.rcc-dialog-open { overflow: hidden; }

.rcc-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2147483002;
  width: min(760px, calc(100% - 32px));
  max-height: 88vh;
  padding: 26px;
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid #d9c4b4;
  border-radius: 22px;
  background: #fffaf5;
  box-shadow: 0 25px 80px rgba(29, 24, 21, 0.4);
}

.rcc-panel__header { position: relative; }
.rcc-panel__intro { margin-top: 0; color: #665b54; }
.rcc-summary { margin: 16px 0; padding: 13px 15px; border: 1px solid #e2d4ca; border-radius: 12px; background: #f8eee7; font-size: 0.9rem; }
.rcc-unsaved { margin-bottom: 12px; padding: 11px 14px; border-radius: 11px; background: #fff0c9; color: #5d4600; font-weight: 800; }
.rcc-categories { display: grid; gap: 13px; }

.rcc-category {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: start;
  padding: 17px;
  border: 1px solid #d9cfc8;
  border-radius: 16px;
  background: #fff;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.rcc-category.is-allowed { border-color: #91b29b; background: #edf6ef; }
.rcc-category.is-denied { border-color: #d7aaa2; background: #fbefed; }
.rcc-category--necessary { border-color: #cfc4bb; background: #f2efec; }
.rcc-category__status { margin-top: 3px; color: #80766f; font-size: 1.1rem; }
.rcc-category.is-allowed .rcc-category__status { color: #39794b; }
.rcc-category.is-denied .rcc-category__status { color: #9c453b; }
.rcc-category__heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.rcc-category h3 { margin: 0; color: #392f2a; font-size: 1.05rem; }
.rcc-category p { margin: 5px 0 0; font-size: 0.88rem; }
.rcc-state { white-space: nowrap; font-size: 0.8rem; font-weight: 800; }
.rcc-state.is-allowed { color: #236838; }
.rcc-state.is-denied { color: #892f28; }
.rcc-state--fixed { color: #5c5651; }

.rcc-switch { position: relative; display: inline-block; width: 50px; height: 29px; margin-top: 2px; }
.rcc-switch input { position: absolute; opacity: 0; }
.rcc-switch__control { position: absolute; inset: 0; border-radius: 999px; background: #ad6259; transition: 180ms ease; cursor: pointer; }
.rcc-switch__control::before { content: ""; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); transition: 180ms ease; }
.rcc-switch input:checked + .rcc-switch__control { background: #4d8a5f; }
.rcc-switch input:checked + .rcc-switch__control::before { transform: translateX(21px); }
.rcc-switch input:focus-visible + .rcc-switch__control { outline: 3px solid rgba(183, 119, 82, 0.38); outline-offset: 3px; }
.rcc-switch--locked { opacity: 0.72; }
.rcc-switch--locked .rcc-switch__control { cursor: default; }

.rcc-details { margin-top: 11px; padding-top: 9px; border-top: 1px solid rgba(57, 47, 42, 0.12); }
.rcc-details summary { font-size: 0.82rem; font-weight: 800; cursor: pointer; }
.rcc-service { margin-top: 9px; padding: 11px; border: 1px solid rgba(57, 47, 42, 0.1); border-radius: 10px; background: rgba(255, 255, 255, 0.72); font-size: 0.82rem; }
.rcc-service p { margin: 5px 0; }
.rcc-service small { display: block; margin-top: 4px; }
.rcc-service a { color: #7f513b; font-weight: 700; }

.rcc-reopen {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147482999;
  display: inline-flex;
  min-height: 45px;
  padding: 9px 13px;
  align-items: center;
  gap: 8px;
  border: 1px solid #b78a70;
  border-radius: 999px;
  background: #fffaf5;
  color: #5e4639;
  box-shadow: 0 9px 28px rgba(45, 34, 29, 0.2);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.rcc-reopen svg { width: 20px; height: 20px; fill: currentColor; }
.rcc-reopen:hover,
.rcc-reopen:focus-visible { background: #f2e5dc; outline: 3px solid rgba(183, 119, 82, 0.32); outline-offset: 3px; }
.rcc-footer-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

.rds-consent-placeholder {
  display: grid;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9c4b4;
  background: linear-gradient(135deg, #f9efe8, #eee1d6);
  color: #45372f;
}

.rds-consent-placeholder__map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f8eee7;
}
.rds-consent-placeholder__content {
  padding: 22px 26px 24px;
  text-align: center;
  border-top: 1px solid #d9c4b4;
  background: #fffaf6;
}
.rds-consent-placeholder h2 { margin: 0 0 6px; font-size: 1.25rem; }
.rds-consent-placeholder p { margin: 0 0 14px; }
.rds-consent-placeholder__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.rds-consent-placeholder__actions a { text-decoration: none; }
.mappa-google iframe {
  display: block;
  width: 100%;
  min-height: 350px;
  aspect-ratio: 16 / 9;
}

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  .rcc-banner { right: 10px; bottom: 10px; width: calc(100% - 20px); }
  .rcc-banner__inner,
  .rcc-panel { padding: 19px; }
  .rcc-banner__actions,
  .rcc-panel__footer { flex-direction: column; }
  .rcc-panel__policies { align-items: center; flex-direction: column; }
  .rcc-panel__policies span { display: none; }
  .rcc-btn { width: 100%; }
  .rcc-category { grid-template-columns: auto 1fr; }
  .rcc-switch { grid-column: 2; }
  .rcc-category__heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .rcc-reopen { right: 10px; bottom: 72px; }
  .rds-consent-placeholder__content { padding: 18px 16px 20px; }
  .rds-consent-placeholder__actions { flex-direction: column; }
  .rds-consent-placeholder__actions .rcc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rcc-btn,
  .rcc-category,
  .rcc-switch__control,
  .rcc-switch__control::before { transition: none; }
}
