/* WP Cookie Consent Pro — Frontend CSS v1.1 */

:root {
  --wpcc-bg:         #ffffff;
  --wpcc-text:       #111111;
  --wpcc-text-muted: #666666;
  --wpcc-text-hint:  #aaaaaa;
  --wpcc-border:     #222222;
  --wpcc-border-soft:#e0e0e0;
  --wpcc-toggle-on:  #111111;
  --wpcc-toggle-off: #d0d0d0;
  --wpcc-radius:     5px;
  --wpcc-font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --wpcc-shadow:     0 -2px 12px rgba(0,0,0,0.08);
  --wpcc-z-banner:   999990;
  --wpcc-z-overlay:  999995;
  --wpcc-z-float:    999985;
  --wpcc-transition: 0.18s ease;
}

.wpcc-hidden { display: none !important; }

.wpcc-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Banner */
.wpcc-banner {
  position: fixed;
  left: 0; right: 0;
  background: var(--wpcc-bg);
  font-family: var(--wpcc-font);
  box-shadow: var(--wpcc-shadow);
  z-index: var(--wpcc-z-banner);
  border-top: 1px solid var(--wpcc-border);
  animation: wpcc-slide-up var(--wpcc-transition) forwards;
}

.wpcc-banner.wpcc-pos-bottom-bar { bottom: 0; }

.wpcc-banner.wpcc-pos-top-bar {
  top: 0; border-top: none;
  border-bottom: 1px solid var(--wpcc-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  animation-name: wpcc-slide-down;
}

.wpcc-banner.wpcc-pos-box-left  { bottom: 20px; left: 20px; right: auto; width: 340px; border: 1px solid var(--wpcc-border); border-radius: var(--wpcc-radius); }
.wpcc-banner.wpcc-pos-box-right { bottom: 20px; right: 20px; left: auto; width: 340px; border: 1px solid var(--wpcc-border); border-radius: var(--wpcc-radius); }

@keyframes wpcc-slide-up   { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
@keyframes wpcc-slide-down { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

.wpcc-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
}

.wpcc-banner-icon { flex-shrink: 0; color: var(--wpcc-text); display: flex; align-items: center; }

.wpcc-banner-content { flex: 1; min-width: 0; }

.wpcc-banner-title {
  font-size: 12px; font-weight: 600;
  color: var(--wpcc-text); margin-bottom: 2px; line-height: 1.35;
}

.wpcc-banner-desc {
  font-size: 11px; color: var(--wpcc-text-muted); line-height: 1.55;
}

.wpcc-banner-desc a { color: var(--wpcc-text); text-decoration: underline; text-underline-offset: 2px; }
.wpcc-banner-desc a:hover { color: var(--wpcc-text-muted); }

.wpcc-banner-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.wpcc-pos-box-left  .wpcc-banner-inner,
.wpcc-pos-box-right .wpcc-banner-inner  { flex-wrap: wrap; }
.wpcc-pos-box-left  .wpcc-banner-actions,
.wpcc-pos-box-right .wpcc-banner-actions { width: 100%; }

.wpcc-ccpa-bar {
  border-top: 1px solid var(--wpcc-border-soft);
  padding: 6px 20px; text-align: center;
}

/* Buttons */
.wpcc-btn {
  font-family: var(--wpcc-font); font-size: 11px; font-weight: 500;
  padding: 6px 14px; border-radius: var(--wpcc-radius); cursor: pointer;
  white-space: nowrap; transition: opacity var(--wpcc-transition); line-height: 1;
}
.wpcc-btn:active { opacity: 0.75; }

.wpcc-btn-primary { background: var(--wpcc-text); color: var(--wpcc-bg); border: 1px solid var(--wpcc-text); font-weight: 600; }
.wpcc-btn-primary:hover { opacity: 0.85; }

.wpcc-btn-secondary { background: var(--wpcc-bg); color: var(--wpcc-text-muted); border: 1px solid var(--wpcc-border-soft); }
.wpcc-btn-secondary:hover { border-color: #999; color: var(--wpcc-text); }

.wpcc-btn-link { background: transparent; color: var(--wpcc-text-hint); border: none; font-size: 10px; padding: 2px 0; text-decoration: underline; text-underline-offset: 2px; }
.wpcc-btn-link:hover { color: var(--wpcc-text-muted); }

/* Preference Center */
.wpcc-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.40);
  z-index: var(--wpcc-z-overlay); display: flex; align-items: center;
  justify-content: center; padding: 16px;
  animation: wpcc-fade-in 0.15s ease forwards;
}

@keyframes wpcc-fade-in { from { opacity:0; } to { opacity:1; } }

.wpcc-pref-card {
  background: var(--wpcc-bg); border-radius: var(--wpcc-radius);
  border: 1px solid var(--wpcc-border); width: 420px;
  max-width: 100%; max-height: 88vh; overflow-y: auto;
  animation: wpcc-scale-in 0.18s ease forwards;
}

@keyframes wpcc-scale-in { from { transform:scale(0.96); opacity:0; } to { transform:scale(1); opacity:1; } }

.wpcc-pref-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px; border-bottom: 1px solid var(--wpcc-border-soft);
  position: sticky; top: 0; background: var(--wpcc-bg); z-index: 1;
}

.wpcc-pref-header-left { display: flex; align-items: center; gap: 8px; color: var(--wpcc-text); }

.wpcc-pref-title { font-size: 13px; font-weight: 600; color: var(--wpcc-text); margin: 0; }

.wpcc-pref-close {
  width: 26px; height: 26px; border-radius: var(--wpcc-radius);
  background: #f2f2f2; border: 1px solid var(--wpcc-border-soft);
  color: var(--wpcc-text-muted); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--wpcc-font); transition: background var(--wpcc-transition);
}
.wpcc-pref-close:hover { background: #e8e8e8; }

.wpcc-pref-body { padding: 2px 0; }

.wpcc-pref-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px; border-bottom: 1px solid var(--wpcc-border-soft); gap: 14px;
}
.wpcc-pref-row:last-child { border-bottom: none; }

.wpcc-pref-info { flex: 1; }
.wpcc-pref-label { font-size: 12px; font-weight: 600; color: var(--wpcc-text); margin-bottom: 2px; }
.wpcc-pref-desc  { font-size: 11px; color: var(--wpcc-text-muted); line-height: 1.5; }

.wpcc-toggle-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; }

.wpcc-always-active {
  font-size: 9px; color: var(--wpcc-text-hint); white-space: nowrap;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px;
}

/* Toggle B&W */
.wpcc-toggle {
  width: 38px; height: 20px; border-radius: 10px;
  background: var(--wpcc-toggle-off); border: none; cursor: pointer;
  position: relative; transition: background var(--wpcc-transition); flex-shrink: 0;
}
.wpcc-toggle::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  background: #fff; border-radius: 50%; top: 3px; left: 3px;
  transition: left var(--wpcc-transition); box-shadow: 0 1px 3px rgba(0,0,0,0.20);
}
.wpcc-toggle-on { background: var(--wpcc-toggle-on); }
.wpcc-toggle-on::after { left: 21px; }
.wpcc-toggle-locked { opacity: 0.35; cursor: default; }

.wpcc-pref-footer {
  display: flex; gap: 8px; padding: 12px 18px 16px;
  border-top: 1px solid var(--wpcc-border-soft);
}
.wpcc-pref-footer .wpcc-btn { flex: 1; padding: 8px; font-size: 11px; }

/* Floating button */
.wpcc-floating-btn {
  position: fixed; bottom: 18px; left: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--wpcc-text); color: var(--wpcc-bg); border: none;
  cursor: pointer; z-index: var(--wpcc-z-float);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  transition: transform var(--wpcc-transition), box-shadow var(--wpcc-transition);
  animation: wpcc-float-in 0.22s ease forwards;
}
@keyframes wpcc-float-in { from { transform:scale(0); opacity:0; } to { transform:scale(1); opacity:1; } }
.wpcc-floating-btn:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(0,0,0,0.28); }

/* Mobile responsive */
@media (max-width: 640px) {
  .wpcc-banner-inner { flex-wrap: wrap; padding: 11px 14px; gap: 8px; }
  .wpcc-banner-actions { width: 100%; }
  .wpcc-btn-primary, .wpcc-btn-secondary { flex: 1; }
  .wpcc-banner.wpcc-pos-box-left,
  .wpcc-banner.wpcc-pos-box-right { left:0; right:0; bottom:0; width:auto; border-left:none; border-right:none; border-bottom:none; border-radius:0; }
  .wpcc-pref-card { border-radius: var(--wpcc-radius) var(--wpcc-radius) 0 0; }
  .wpcc-overlay { align-items: flex-end; padding: 0; }
}

/* Focus rings */
.wpcc-toggle:focus-visible,
.wpcc-btn:focus-visible,
.wpcc-pref-close:focus-visible,
.wpcc-floating-btn:focus-visible { outline: 2px solid var(--wpcc-text); outline-offset: 2px; }
