/* Cookie consent preferences panel (site theme: orange #f6861f, navy #0f172a) */
.cc-panel {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 999999;
  width: 440px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: #ffffff;
  border-top: 4px solid #f6861f;
  border-radius: 14px;
  padding: 28px 26px 24px;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.06);
  font-family: 'Poppins', sans-serif;
  color: #0f172a;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s;
}
.cc-panel.cc-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
.cc-panel .cc-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #0f172a;
}
.cc-panel button { font-family: inherit; cursor: pointer; }
.cc-select-wrap { text-align: right; margin: 6px 0 12px; }
.cc-select-all {
  background: none;
  border: 0;
  padding: 2px 0;
  color: #f6861f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-select-all:hover { color: #0f172a; }

.cc-list { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.cc-row + .cc-row { border-top: 1px solid #e2e8f0; }
.cc-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; }
.cc-expand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  text-align: left;
}
.cc-plus { position: relative; width: 12px; height: 12px; flex: 0 0 12px; }
.cc-plus::before, .cc-plus::after {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 12px; height: 2px;
  border-radius: 2px;
  background: #0f172a;
  transition: transform 0.3s ease, background 0.3s ease;
}
.cc-plus::after { transform: rotate(90deg); }
.cc-expand[aria-expanded="true"] .cc-plus::after { transform: rotate(0deg); }
.cc-expand[aria-expanded="true"] .cc-plus::before,
.cc-expand[aria-expanded="true"] .cc-plus::after { background: #f6861f; }
.cc-desc { padding: 0 14px 14px 38px; }
.cc-desc p { margin: 0; font-size: 13px; line-height: 1.65; color: #64748b; }
.cc-always { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #f6861f; white-space: nowrap; }

.cc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 44px; margin: 0; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cc-slider { position: absolute; inset: 0; border-radius: 24px; background: #e2e8f0; border: 1px solid #cbd5e1; transition: background 0.3s ease, border-color 0.3s ease; }
.cc-slider::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #64748b;
  transition: transform 0.3s ease, background 0.3s ease;
}
.cc-switch input:checked + .cc-slider { background: #f6861f; border-color: #f6861f; }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); background: #ffffff; }
.cc-switch input:focus-visible + .cc-slider { outline: 2px solid #0f172a; outline-offset: 2px; }

.cc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cc-btn {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.cc-accept { background: #f6861f; border: 2px solid #f6861f; color: #ffffff; box-shadow: 0 10px 20px -8px rgba(246, 134, 31, 0.6); }
.cc-accept:hover { background: #0f172a; border-color: #0f172a; transform: translateY(-1px); }
.cc-confirm { background: transparent; border: 2px solid #0f172a; color: #0f172a; }
.cc-confirm:hover { background: #0f172a; color: #ffffff; }
.cc-decline {
  margin-left: auto;
  background: none;
  border: 0;
  padding: 4px 0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-decline:hover { color: #f6861f; }
.cc-panel button:focus-visible { outline: 2px solid #f6861f; outline-offset: 2px; }

@media (max-width: 575px) {
  .cc-panel { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 22px 18px 18px; }
  .cc-panel .cc-title { font-size: 18px; }
  .cc-btn { flex: 1 1 auto; text-align: center; }
  .cc-decline { margin: 4px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-panel, .cc-panel.cc-open { transition: none; }
}
