/*
 * Cookie-consent widget styles (scoped under .tpc-*). Do not edit the widget rules;
 * the site-theme block at the end maps the --tpc-* variables onto the design tokens
 * from style.css, and that is the only part that changes per site.
 */

/* Variable defaults sit in :where() (zero specificity) so the host theme block below wins. */
:where(.tpc-root){
  --tpc-font: inherit;
  --tpc-bg:#ffffff; --tpc-fg:#111827; --tpc-muted:#4b5563;
  --tpc-border:#e5e7eb; --tpc-surface:#f4f4f5;
  --tpc-btn-bg:#111827; --tpc-btn-fg:#ffffff; --tpc-accent:#111827;
  --tpc-switch-off:#9ca3af; --tpc-badge-bg:#dcfce7; --tpc-badge-fg:#166534;
  --tpc-radius:12px; --tpc-z:2147483000;
  --tpc-shadow:0 20px 50px rgba(0,0,0,.25);
}
:where(.dark,[data-theme="dark"]) :where(.tpc-root){
  --tpc-bg:#0f172a; --tpc-fg:#f8fafc; --tpc-muted:#94a3b8;
  --tpc-border:#334155; --tpc-surface:#1e293b;
  --tpc-btn-bg:#f8fafc; --tpc-btn-fg:#0f172a; --tpc-accent:#f8fafc;
  --tpc-switch-off:#475569; --tpc-badge-bg:#14532d; --tpc-badge-fg:#bbf7d0;
  --tpc-shadow:0 20px 50px rgba(0,0,0,.6);
}
.tpc-root{font-family:var(--tpc-font);color:var(--tpc-fg);line-height:1.5;font-size:15px}
.tpc-root *{box-sizing:border-box}
.tpc-root p{margin:0}
.tpc-link{color:inherit;text-decoration:underline;text-underline-offset:2px}
.tpc-btn{
  appearance:none;border:1.5px solid var(--tpc-btn-bg);background:var(--tpc-btn-bg);color:var(--tpc-btn-fg);
  font:inherit;font-weight:600;font-size:15px;padding:12px 20px;border-radius:calc(var(--tpc-radius) - 4px);
  cursor:pointer;min-height:48px;flex:1 1 0;white-space:nowrap;transition:opacity .15s;
}
.tpc-btn:hover{opacity:.88}
.tpc-btn:focus-visible,.tpc-close:focus-visible,.tpc-switch:focus-visible,.tpc-disclose:focus-visible,.tpc-reopen:focus-visible{
  outline:2px solid var(--tpc-accent);outline-offset:2px
}
.tpc-btn-outline{background:transparent;color:var(--tpc-fg);border-color:var(--tpc-fg)}

/* Banner */
.tpc-banner{
  position:fixed;left:0;right:0;bottom:0;z-index:var(--tpc-z);
  background:var(--tpc-bg);border-top:1px solid var(--tpc-border);box-shadow:var(--tpc-shadow);
  padding:20px 24px;display:flex;gap:20px;align-items:center;flex-wrap:wrap;
  animation:tpc-up .3s ease-out;
}
.tpc-banner-text{flex:1 1 420px;color:var(--tpc-muted)}
.tpc-banner-actions{display:flex;gap:10px;flex:0 1 460px;min-width:280px}
@media (max-width:640px){
  .tpc-banner{padding:16px}
  .tpc-banner-actions{flex:1 1 100%;flex-wrap:wrap}
  .tpc-btn{padding:12px 14px}
}

/* Modal */
.tpc-overlay{
  position:fixed;inset:0;z-index:var(--tpc-z);background:rgba(0,0,0,.45);
  display:flex;align-items:center;justify-content:center;padding:16px;
  animation:tpc-fade .2s ease-out;
}
.tpc-dialog{
  background:var(--tpc-bg);border-radius:var(--tpc-radius);box-shadow:var(--tpc-shadow);
  width:100%;max-width:760px;max-height:min(90vh,900px);display:flex;flex-direction:column;outline:none;
}
.tpc-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--tpc-border)}
.tpc-title{margin:0;font-size:22px;font-weight:700;letter-spacing:-.01em}
.tpc-close{appearance:none;border:0;background:transparent;color:var(--tpc-fg);cursor:pointer;padding:6px;border-radius:8px;display:inline-flex}
.tpc-close:hover{background:var(--tpc-surface)}
.tpc-dialog-body{overflow-y:auto;padding:20px 24px;display:flex;flex-direction:column;gap:14px}
.tpc-intro{color:var(--tpc-muted)}
.tpc-dialog-foot{display:flex;gap:12px;padding:16px 24px;border-top:1px solid var(--tpc-border)}
@media (max-width:640px){
  .tpc-overlay{padding:0;align-items:flex-end}
  .tpc-dialog{max-height:94vh;border-bottom-left-radius:0;border-bottom-right-radius:0}
  .tpc-dialog-head,.tpc-dialog-body,.tpc-dialog-foot{padding-left:16px;padding-right:16px}
  .tpc-dialog-foot{flex-wrap:wrap}
}

/* Category rows */
.tpc-cat{border:1px solid var(--tpc-border);border-radius:calc(var(--tpc-radius) - 2px);padding:14px 16px}
.tpc-cat-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tpc-disclose{appearance:none;border:0;background:transparent;color:var(--tpc-fg);font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:4px 4px 4px 0;border-radius:6px}
.tpc-chevron{transition:transform .15s;transform:rotate(-90deg)}
.tpc-chevron-open{transform:rotate(0)}
.tpc-cat-title{font-weight:700;font-size:17px}
.tpc-badge{background:var(--tpc-badge-bg);color:var(--tpc-badge-fg);font-size:13px;font-weight:600;padding:4px 12px;border-radius:999px;white-space:nowrap}
.tpc-cat-body{padding:8px 0 4px 26px;display:flex;flex-direction:column;gap:12px}
.tpc-cat-desc{color:var(--tpc-fg)}
.tpc-empty{background:var(--tpc-surface);color:var(--tpc-muted);border-radius:8px;padding:18px 16px}
.tpc-table{width:100%;border-collapse:collapse;font-size:14px;background:var(--tpc-surface);border-radius:8px;overflow:hidden}
.tpc-table th,.tpc-table td{text-align:left;padding:10px 12px;vertical-align:top;border-bottom:1px solid var(--tpc-border)}
.tpc-table th{font-weight:600;color:var(--tpc-muted);font-size:13px}
.tpc-table tr:last-child td{border-bottom:0}
.tpc-table code{font-size:13px}
@media (max-width:640px){
  .tpc-cat-body{padding-left:0}
  .tpc-table thead{display:none}
  .tpc-table tr{display:block;padding:8px 0}
  .tpc-table td{display:flex;gap:8px;border:0;padding:4px 12px}
  .tpc-table td::before{content:attr(data-label);color:var(--tpc-muted);min-width:72px;font-size:13px}
}

/* Switch */
.tpc-switch{
  appearance:none;border:0;padding:0;width:52px;height:28px;border-radius:999px;background:var(--tpc-switch-off);
  position:relative;cursor:pointer;flex:none;transition:background .15s;
}
.tpc-switch-on{background:var(--tpc-accent)}
.tpc-switch-knob{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:0 1px 2px rgba(0,0,0,.3)}
.tpc-switch-on .tpc-switch-knob{transform:translateX(24px)}

/* Reopen button */
.tpc-reopen{
  position:fixed;bottom:20px;z-index:var(--tpc-z);width:52px;height:52px;border-radius:50%;border:0;
  background:var(--tpc-btn-bg);color:var(--tpc-btn-fg);display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.25);
}
.tpc-reopen-left{left:20px}
.tpc-reopen-right{right:20px}
.tpc-reopen:hover{opacity:.9}

@keyframes tpc-up{from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes tpc-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.tpc-banner,.tpc-overlay,.tpc-chevron,.tpc-switch,.tpc-switch-knob{animation:none;transition:none}}

/*
 * Site theme: maps the widget onto the design tokens (style.css :root).
 */
.tpc-root {
  --tpc-font: var(--k-font);
  --tpc-bg: var(--k-card);
  --tpc-fg: var(--k-ink);
  --tpc-muted: var(--k-mute);
  --tpc-border: var(--k-line);
  --tpc-surface: var(--k-ground-2);
  --tpc-btn-bg: var(--k-dark);
  --tpc-btn-fg: var(--k-on-dark);
  --tpc-accent: var(--k-orange);
  --tpc-badge-bg: var(--k-sage-bg);
  --tpc-badge-fg: var(--k-sage-ink);
  --tpc-radius: 10px;
}

/*
 * Hello Elementor's reset.css styles [type=button] and its :hover/:focus variants
 * (transparent + #c36). Load order handles the base rules; :focus needs these
 * higher-specificity re-assertions so keyboard focus doesn't flash the reset colors.
 */
.tpc-root .tpc-btn:hover,
.tpc-root .tpc-btn:focus {
  background: var(--tpc-btn-bg);
  color: var(--tpc-btn-fg);
  text-decoration: none;
}
.tpc-root .tpc-btn-outline:hover,
.tpc-root .tpc-btn-outline:focus {
  background: transparent;
  color: var(--tpc-fg);
}
.tpc-root .tpc-close:hover,
.tpc-root .tpc-close:focus {
  background: var(--tpc-surface);
  color: var(--tpc-fg);
}
.tpc-root .tpc-disclose:hover,
.tpc-root .tpc-disclose:focus {
  background: transparent;
  color: var(--tpc-fg);
}
.tpc-root .tpc-switch:hover,
.tpc-root .tpc-switch:focus {
  background: var(--tpc-switch-off);
  color: inherit;
}
.tpc-root .tpc-switch-on:hover,
.tpc-root .tpc-switch-on:focus {
  background: var(--tpc-accent);
}
.tpc-root .tpc-reopen:hover,
.tpc-root .tpc-reopen:focus {
  background: var(--tpc-btn-bg);
  color: var(--tpc-btn-fg);
}
