/* Sundrata Cookie Consent v1.1 — hardened against theme/Elementor button styles */
.sc-root{
  --sc-accent:#b4703a; --sc-accent-hover:#9a5c2c; --sc-on-accent:#ffffff;
  --sc-bg:#fffcf8; --sc-ink:#2b2420; --sc-muted:#6e6259; --sc-line:#ece3d8; --sc-soft:#f6efe6;
  --sc-shadow:0 24px 60px -24px rgba(43,36,32,.45), 0 2px 6px rgba(43,36,32,.06);
  --sc-radius:18px;
  font-family:inherit; color:var(--sc-ink); line-height:1.5; letter-spacing:normal; text-transform:none;
  -webkit-font-smoothing:antialiased; box-sizing:border-box;
}
.sc-root.sc-dark{--sc-bg:#1f1a17;--sc-ink:#f5efe8;--sc-muted:#c4b8ac;--sc-line:#3a312a;--sc-soft:#2b241f}
.sc-root *,.sc-root *::before,.sc-root *::after{box-sizing:border-box}
.sc-root p,.sc-root h2,.sc-root h3,.sc-root ul{margin:0;padding:0}
.sc-root h2,.sc-root h3{font-family:inherit!important;color:var(--sc-ink)!important;text-transform:none!important;letter-spacing:-.01em!important}

/* Neutralise every theme button rule, then rebuild */
.sc-root button{all:unset;box-sizing:border-box;cursor:pointer;font-family:inherit;-webkit-tap-highlight-color:transparent}

/* ---------- Banner ---------- */
.sc-banner{position:fixed;bottom:20px;z-index:100000;width:min(420px,calc(100vw - 40px));
  background:var(--sc-bg);border:1px solid var(--sc-line);border-radius:var(--sc-radius);
  padding:20px;box-shadow:var(--sc-shadow);opacity:0;transform:translateY(16px) scale(.98);
  transition:opacity .35s ease,transform .35s cubic-bezier(.2,.8,.2,1)}
.sc-pos-bottom-left{left:20px}.sc-pos-bottom-right{right:20px}
.sc-pos-bottom-center{left:50%;transform:translate(-50%,16px) scale(.98)}
.sc-banner.sc-in{opacity:1;transform:none}
.sc-pos-bottom-center.sc-in{transform:translateX(-50%)}
.sc-banner-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.sc-badge{flex:0 0 38px;height:38px;border-radius:12px;background:var(--sc-soft);display:grid;place-items:center;color:var(--sc-accent)}
.sc-badge svg{width:20px;height:20px}
.sc-title{font-size:16.5px!important;font-weight:600!important;line-height:1.25!important;margin:0!important}
.sc-text{font-size:13.5px;line-height:1.6;color:var(--sc-muted);margin:0 0 16px!important}
.sc-text a,.sc-intro a{color:var(--sc-ink)!important;text-decoration:underline!important;text-underline-offset:3px;text-decoration-color:var(--sc-accent)!important;font-weight:500}
.sc-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* ---------- Buttons ---------- */
.sc-root .sc-btn{display:inline-flex!important;align-items:center;justify-content:center;text-align:center;
  min-height:44px;padding:10px 16px!important;border-radius:12px!important;font-size:14px!important;font-weight:600!important;
  line-height:1.2!important;letter-spacing:.01em!important;text-transform:none!important;text-decoration:none!important;
  transition:background-color .18s,border-color .18s,color .18s,transform .1s;width:100%}
.sc-root .sc-btn:active{transform:scale(.98)}
.sc-root .sc-btn-solid,.sc-root .sc-btn-solid:visited{background:var(--sc-accent)!important;color:var(--sc-on-accent)!important;border:1px solid var(--sc-accent)!important}
.sc-root .sc-btn-solid:hover,.sc-root .sc-btn-solid:focus{background:var(--sc-accent-hover)!important;border-color:var(--sc-accent-hover)!important;color:var(--sc-on-accent)!important}
.sc-root .sc-btn-ghost,.sc-root .sc-btn-ghost:visited{background:transparent!important;color:var(--sc-ink)!important;border:1px solid var(--sc-line)!important}
.sc-root .sc-btn-ghost:hover,.sc-root .sc-btn-ghost:focus{background:var(--sc-soft)!important;color:var(--sc-ink)!important;border-color:var(--sc-line)!important}
.sc-root .sc-btn-text{grid-column:1/-1;background:transparent!important;border:0!important;color:var(--sc-ink)!important;
  min-height:36px;padding:6px!important;font-weight:500!important;text-decoration:underline!important;text-underline-offset:4px;text-decoration-color:var(--sc-line)!important}
.sc-root .sc-btn-text:hover,.sc-root .sc-btn-text:focus{background:transparent!important;color:var(--sc-accent)!important;text-decoration-color:var(--sc-accent)!important}
.sc-root button:focus-visible,.sc-root a:focus-visible,.sc-root summary:focus-visible{outline:2px solid var(--sc-accent)!important;outline-offset:2px}

/* ---------- Panel ---------- */
.sc-overlay{position:fixed;inset:0;z-index:100001;background:rgba(24,19,16,.5);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;transition:opacity .25s}
.sc-overlay.sc-in{opacity:1}
.sc-lock,.sc-lock body{overflow:hidden!important}
.sc-panel{background:var(--sc-bg);border-radius:22px;width:min(640px,100%);max-height:min(88vh,780px);display:flex;flex-direction:column;
  box-shadow:0 40px 90px -30px rgba(0,0,0,.55);overflow:hidden;transform:translateY(12px);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.sc-overlay.sc-in .sc-panel{transform:none}
.sc-panel-head{display:flex;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid var(--sc-line)}
.sc-panel-head h2{flex:1;font-size:19px!important;font-weight:600!important;line-height:1.3!important;margin:0!important}
.sc-root .sc-close{width:38px;height:38px;border-radius:50%!important;display:grid!important;place-items:center;color:var(--sc-muted)!important;background:transparent!important;border:0!important;padding:0!important}
.sc-root .sc-close:hover,.sc-root .sc-close:focus{background:var(--sc-soft)!important;color:var(--sc-ink)!important}
.sc-close svg{width:18px;height:18px}
.sc-panel-body{overflow-y:auto;padding:18px 24px 8px;overscroll-behavior:contain}
.sc-intro{font-size:14px;line-height:1.6;color:var(--sc-muted);margin:0 0 16px!important}
.sc-cats{display:grid;gap:10px;padding-bottom:12px}
.sc-cat{border:1px solid var(--sc-line);border-radius:14px;padding:14px 16px;background:var(--sc-bg);transition:border-color .2s,background .2s}
.sc-cat.is-on{border-color:color-mix(in srgb,var(--sc-accent) 45%,var(--sc-line));background:color-mix(in srgb,var(--sc-accent) 5%,var(--sc-bg))}
.sc-cat-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:6px}
.sc-cat h3{font-size:15.5px!important;font-weight:600!important;line-height:1.3!important;margin:0!important}
.sc-cat p{font-size:13.5px;line-height:1.6;color:var(--sc-muted)}
.sc-cat .sc-note{margin-top:8px!important;color:var(--sc-ink);font-size:13px;padding:8px 10px;border-radius:10px;background:var(--sc-soft)}
.sc-always{font-size:12px;font-weight:600;color:#2f7a45;background:#e8f5ec;padding:4px 10px;border-radius:999px;white-space:nowrap}
.sc-dark .sc-always{background:#20372a;color:#8fd5a6}

/* Toggle */
.sc-root .sc-switch{position:relative;flex:0 0 46px;width:46px!important;height:26px!important;border-radius:999px!important;
  background:#d6ccc1!important;border:0!important;padding:0!important;transition:background-color .2s}
.sc-dark .sc-switch{background:#4a4038!important}
.sc-root .sc-switch::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,.25);transition:transform .22s cubic-bezier(.2,.8,.2,1)}
.sc-root .sc-switch[aria-checked="true"]{background:var(--sc-accent)!important}
.sc-root .sc-switch[aria-checked="true"]::after{transform:translateX(20px)}

/* Tools disclosure */
.sc-cat details{margin-top:10px}
.sc-cat summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--sc-ink)}
.sc-cat summary::-webkit-details-marker{display:none}
.sc-cat summary svg{width:14px;height:14px;transition:transform .2s;color:var(--sc-accent)}
.sc-cat details[open] summary svg{transform:rotate(90deg)}
.sc-cat ul{margin:8px 0 0!important;padding:0!important;list-style:none!important;display:grid;gap:6px}
.sc-cat li{font-size:13px;color:var(--sc-muted);padding:8px 10px;border-radius:10px;background:var(--sc-soft);margin:0!important;list-style:none!important}
.sc-cat li strong{color:var(--sc-ink);font-weight:600}

.sc-panel-foot{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;padding:16px 24px 20px;border-top:1px solid var(--sc-line);background:var(--sc-bg)}

/* ---------- Embed placeholder ---------- */
.sc-embed-ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:24px;
  background:var(--sc-soft);border:1px dashed color-mix(in srgb,var(--sc-accent) 40%,var(--sc-line));border-radius:16px}
.sc-embed-ph p{font-size:14px;color:var(--sc-muted);max-width:42ch}
.sc-embed-ph .sc-ph-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.sc-embed-ph .sc-btn{width:auto}

/* ---------- Floating button ---------- */
/* The button IS the .sc-root element, so reset it directly (theme adds padding, borders, widths). */
button.sc-root.sc-float{all:unset;box-sizing:border-box!important}
button.sc-root.sc-float,button.sc-root.sc-float:hover,button.sc-root.sc-float:focus{
  position:fixed!important;bottom:20px;z-index:99998;
  width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;min-height:48px!important;max-height:48px!important;
  aspect-ratio:1/1;padding:0!important;margin:0!important;line-height:0!important;
  border-radius:50%!important;background:var(--sc-bg)!important;border:1px solid var(--sc-line)!important;
  display:flex!important;align-items:center;justify-content:center;flex:none;
  box-shadow:0 10px 24px -10px rgba(43,36,32,.45)!important;color:var(--sc-accent)!important;cursor:pointer;
  transition:transform .2s,box-shadow .2s}
button.sc-root.sc-float:hover{transform:translateY(-2px);box-shadow:0 14px 28px -12px rgba(43,36,32,.5)!important}
button.sc-root.sc-float:focus-visible{outline:2px solid var(--sc-accent)!important;outline-offset:3px}
button.sc-root.sc-float[hidden]{display:none!important}
button.sc-root.sc-float svg{width:24px!important;height:24px!important;flex:none;display:block}
button.sc-root.sc-float.sc-pos-bottom-left{left:20px;right:auto}
button.sc-root.sc-float.sc-pos-bottom-right,button.sc-root.sc-float.sc-pos-bottom-center{right:20px;left:auto}
@media (max-width:600px){button.sc-root.sc-float,button.sc-root.sc-float:hover{bottom:14px;width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;max-height:44px!important}button.sc-root.sc-float.sc-pos-bottom-left{left:14px}}

/* ---------- Mobile ---------- */
@media (max-width:600px){
  .sc-banner,.sc-pos-bottom-center{left:10px;right:10px;bottom:10px;width:auto;transform:translateY(16px);padding:16px;max-height:48vh;overflow-y:auto;border-radius:16px}
  .sc-banner.sc-in,.sc-pos-bottom-center.sc-in{transform:none}
  .sc-badge{flex-basis:32px;height:32px;border-radius:10px}
  .sc-title{font-size:15.5px!important}
  .sc-text{font-size:12.5px;margin-bottom:12px!important}
  .sc-root .sc-btn{min-height:42px;font-size:13.5px!important}
  .sc-overlay{align-items:flex-end;padding:0}
  .sc-panel{border-radius:22px 22px 0 0;max-height:92vh;width:100%}
  .sc-panel-head{padding:16px 18px}
  .sc-panel-body{padding:14px 18px 6px}
  .sc-panel-foot{grid-template-columns:1fr 1fr;padding:12px 18px calc(14px + env(safe-area-inset-bottom,0px))}
  .sc-panel-foot [data-act="save"]{grid-column:1/-1;order:3}
}
@media (prefers-reduced-motion:reduce){.sc-banner,.sc-overlay,.sc-panel,.sc-switch::after{transition:none!important}}
