/* Premium Cookie Consent — Frontend Banner */
#pcc-wrap {
  position: fixed;
  z-index: 999999;
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s ease;
  opacity: 0;
  pointer-events: none;
}
#pcc-wrap.pcc-show { opacity: 1; pointer-events: auto; }

#pcc-wrap.pcc-pos-bottom-left   { bottom: 24px; left: 24px; }
#pcc-wrap.pcc-pos-bottom-right  { bottom: 24px; right: 24px; }
#pcc-wrap.pcc-pos-bottom-center { bottom: 24px; left: 50%; transform: translateX(-50%); }
#pcc-wrap.pcc-pos-bottom-center.pcc-show { transform: translateX(-50%); }
#pcc-wrap.pcc-pos-top-left      { top: 24px; left: 24px; }
#pcc-wrap.pcc-pos-top-right     { top: 24px; right: 24px; }
#pcc-wrap.pcc-pos-top-center    { top: 24px; left: 50%; transform: translateX(-50%); }
#pcc-wrap.pcc-pos-top-center.pcc-show { transform: translateX(-50%); }
#pcc-wrap.pcc-pos-center        { top: 50%; left: 50%; transform: translate(-50%,-50%); }
#pcc-wrap.pcc-pos-center.pcc-show { transform: translate(-50%,-50%); }
#pcc-wrap.pcc-pos-fullwidth     { bottom: 0; left: 0; right: 0; width: 100%; }

#pcc-box {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  max-width: 380px;
  width: calc(100vw - 48px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
#pcc-box.pcc-style-pill {
  max-width: 560px;
  border-radius: 999px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
#pcc-box.pcc-style-fullwidth {
  max-width: 100%;
  width: 100%;
  border-radius: 0;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}

#pcc-accent { height: 4px; border-radius: 4px 4px 0 0; margin: -24px -24px 16px; }
#pcc-box.pcc-style-pill #pcc-accent,
#pcc-box.pcc-style-fullwidth #pcc-accent { display: none; }

#pcc-logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  font-size: 20px;
}
#pcc-logo img { width: 100%; height: 100%; object-fit: contain; }
#pcc-box.pcc-style-pill #pcc-logo,
#pcc-box.pcc-style-fullwidth #pcc-logo { display: none; }

#pcc-text { flex: 1; }

#pcc-footer { font-size: 12px; color: #666; margin-top: 10px; }
#pcc-footer a { color: var(--pcc-accent, #534AB7); text-decoration: none; }
#pcc-footer a:hover { text-decoration: underline; }
#pcc-box.pcc-style-pill #pcc-footer { display: none; }
#pcc-box.pcc-style-fullwidth #pcc-footer { display: block; width: 100%; order: 3; margin-top: 8px; }
#pcc-box.pcc-style-fullwidth #pcc-text { min-width: 280px; flex: 1 1 420px; }
#pcc-box.pcc-style-fullwidth #pcc-desc { display: block; margin-bottom: 6px; }
#pcc-box.pcc-style-fullwidth #pcc-policy-link { display: inline-block; margin-bottom: 0; }
#pcc-box.pcc-style-fullwidth .pcc-actions { margin-left: auto; }
#pcc-title { font-size: 15px; font-weight: 700; color: #111; margin: 0 0 6px; }
#pcc-desc  { font-size: 13px; color: #666; margin: 0 0 4px; line-height: 1.6; }
#pcc-box.pcc-style-pill #pcc-desc { display: none; }
#pcc-policy-link { font-size: 12px; text-decoration: none; display: inline-block; margin-bottom: 14px; }
#pcc-policy-link:hover { text-decoration: underline; }
#pcc-box.pcc-style-pill #pcc-policy-link { display: none; }

.pcc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
#pcc-box.pcc-style-pill .pcc-actions,
#pcc-box.pcc-style-fullwidth .pcc-actions { margin-top: 0; flex-shrink: 0; }

.pcc-f-btn { border: none; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; padding: 10px 20px; font-family: inherit; transition: opacity .15s, transform .1s; }
.pcc-f-btn:active { transform: scale(.97); }
.pcc-btn-accept { color: #fff; }
.pcc-btn-accept:hover { opacity: .85; }
.pcc-btn-reject { background: #f1f1f1; color: #333; border: 1px solid #ddd; }
.pcc-btn-reject:hover { background: #e5e5e5; }
.pcc-btn-manage { background: none; border: none; font-size: 12px; color: #aaa; cursor: pointer; font-family: inherit; text-decoration: underline; text-underline-offset: 2px; padding: 10px 4px; }
.pcc-btn-manage:hover { color: #555; }
#pcc-box.pcc-style-pill .pcc-btn-manage,
#pcc-box.pcc-style-fullwidth .pcc-btn-manage { display: none; }

#pcc-manage-panel { margin-top: 16px; border-top: 1px solid #eee; padding-top: 14px; }
.pcc-cat-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.pcc-cat-item:last-child { border-bottom: none; }
.pcc-cat-body { flex: 1; }
.pcc-cat-name { font-size: 13px; font-weight: 600; color: #111; display: flex; align-items: center; gap: 6px; }
.pcc-cat-req  { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: #f1f1f1; color: #aaa; font-weight: 400; }
.pcc-cat-desc { font-size: 12px; color: #888; margin-top: 2px; line-height: 1.4; }
.pcc-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; margin-top: 3px; }
.pcc-toggle input { display: none; }
.pcc-toggle-track { position: absolute; inset: 0; border-radius: 999px; background: #ddd; cursor: pointer; transition: background .2s; }
.pcc-toggle input:checked + .pcc-toggle-track { background: var(--pcc-accent, #534AB7); }
.pcc-toggle input:disabled + .pcc-toggle-track { background: var(--pcc-accent, #534AB7); opacity: .5; cursor: not-allowed; }
.pcc-toggle-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pcc-toggle input:checked + .pcc-toggle-track::after { transform: translateX(18px); }

#pcc-save-pref-btn {
  width: 100%; margin-top: 14px; padding: 11px;
  border: none; border-radius: 9px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  color: #fff;
  transition: opacity .15s;
}
#pcc-save-pref-btn:hover { opacity: .88; }

/* Reopen button */
#pcc-reopen {
  position: fixed;
  z-index: 999998;
  border: none;
  border-radius: 999px;
  width: 46px; height: 46px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transition: opacity .2s, transform .15s;
  font-size: 20px;
}
#pcc-reopen:hover { opacity: .85; transform: scale(1.05); }
#pcc-reopen.pcc-pos-bottom-left   { bottom: 24px; left: 24px; }
#pcc-reopen.pcc-pos-bottom-right  { bottom: 24px; right: 24px; }
#pcc-reopen.pcc-pos-bottom-center { bottom: 24px; left: 50%; transform: translateX(-50%); }
#pcc-reopen.pcc-pos-top-left      { top: 24px; left: 24px; }
#pcc-reopen.pcc-pos-top-right     { top: 24px; right: 24px; }

/* Toast */
#pcc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #111;
  color: #fff;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 999px;
  z-index: 9999999;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#pcc-toast.pcc-toast-show { transform: translateX(-50%) translateY(0); }
