/* Cookie consent banner and preferences (first-party; styles only the elements created by js/consent.js). */
.tcc-banner, .tcc-overlay, .tcc-fab { font-family: var(--font-family, "Inter", Arial, sans-serif); color: #171717; box-sizing: border-box; }
.tcc-banner *, .tcc-overlay *, .tcc-fab * { box-sizing: border-box; }

.tcc-banner {
  position: fixed; right: 20px; bottom: 20px; z-index: 9998; width: 350px; max-width: calc(100vw - 24px);
  padding: 18px 18px 14px; background: #fff; border: 1px solid #ececec; border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .06);
  animation: tcc-in .35s ease both;
}
@keyframes tcc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tcc-banner { animation: none; } }

.tcc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.tcc-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff3e8; color: #ff6b00; }
.tcc-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.2; color: #171717; }
.tcc-text { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: #4b4b4b; }

.tcc-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tcc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 6px;
  border: 1.5px solid #171717; border-radius: 10px; background: #fff; color: #171717; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1.15; text-align: center; transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.tcc-btn:hover { background: #f4f4f4; }
.tcc-btn:focus-visible, .tcc-x:focus-visible, .tcc-fab:focus-visible, .tcc-links a:focus-visible { outline: 3px solid rgba(255, 107, 0, .45); outline-offset: 2px; }
/* Accept and Reject are the same size, weight and position; only the fill differs. */
.tcc-btn--accept { background: #ff6b00; border-color: #ff6b00; color: #fff; }
.tcc-btn--accept:hover { background: #e85f00; border-color: #e85f00; }
.tcc-btn--custom { border-color: #d6d6d6; color: #333; font-weight: 500; }
.tcc-btn-icon { display: inline-flex; }

.tcc-links { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: #8a8a8a; }
.tcc-links a { color: #4b4b4b; text-decoration: underline; }
.tcc-links a:hover { color: #ff6b00; }

/* Preferences panel */
.tcc-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(17, 17, 17, .5); }
.tcc-lock { overflow: hidden; }
.tcc-panel { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.tcc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tcc-panel-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.tcc-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f2f2f2; color: #333; font-size: 22px; line-height: 1; cursor: pointer; }
.tcc-x:hover { background: #e8e8e8; }
.tcc-intro { margin: 8px 0 14px; font-size: 13px; line-height: 1.5; color: #4b4b4b; }
.tcc-rows { display: grid; gap: 10px; }
.tcc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid #ececec; border-radius: 12px; background: #fafafa; }
.tcc-row-text h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.tcc-row-text p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #555; }
.tcc-row-text .tcc-using { margin-top: 6px; font-size: 12px; color: #777; }
.tcc-always { flex: none; padding: 4px 10px; border-radius: 999px; background: #e9f7ef; color: #1b7a43; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tcc-switch { position: relative; flex: none; display: inline-flex; cursor: pointer; }
.tcc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tcc-track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #c9c9c9; transition: background .2s; }
.tcc-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.tcc-switch input:checked + .tcc-track { background: #ff6b00; }
.tcc-switch input:checked + .tcc-track::after { transform: translateX(18px); }
.tcc-switch input:focus-visible + .tcc-track { outline: 3px solid rgba(255, 107, 0, .45); outline-offset: 2px; }
.tcc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tcc-panel .tcc-links { margin: 14px 0 0; }
.tcc-panel-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.tcc-btn--save { background: #171717; border-color: #171717; color: #fff; }
.tcc-btn--save:hover { background: #333; border-color: #333; }

/* Re-open button on pages without a footer */
.tcc-fab { position: fixed; left: 16px; bottom: 16px; z-index: 9990; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #e5e5e5; border-radius: 50%; background: #fff; color: #ff6b00; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.tcc-fab:hover { background: #fff3e8; }

@media (max-width: 480px) {
  .tcc-banner { right: 12px; left: 12px; bottom: 12px; width: auto; padding: 16px 14px 12px; }
  .tcc-actions { grid-template-columns: 1fr 1fr; }
  .tcc-btn--custom { grid-column: 1 / -1; }
  .tcc-panel { padding: 18px 16px; }
  .tcc-panel-actions { grid-template-columns: 1fr 1fr; }
  .tcc-btn--save { grid-column: 1 / -1; }
}
