/* MyDaraz Cookie Consent — styles */
:root {
  --cc-orange: #F85606;
  --cc-orange-dark: #E04A00;
  --cc-navy: #0F172A;
  --cc-text: #334155;
  --cc-muted: #64748B;
  --cc-border: #E2E8F0;
  --cc-bg: #FFFFFF;
  --cc-soft: #FFF4EE;
}

.cc-lock { overflow: hidden; }

/* ---------- Buttons ---------- */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  font: 600 14px/1.2 inherit; font-family: inherit;
  border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.cc-btn:focus-visible, .cc-close:focus-visible, .cc-switch input:focus-visible + .cc-switch__slider {
  outline: 3px solid rgba(248, 86, 6, .35); outline-offset: 2px;
}
.cc-btn--primary { background: var(--cc-orange); color: #fff; }
.cc-btn--primary:hover { background: var(--cc-orange-dark); transform: translateY(-1px); }
.cc-btn--outline { background: #fff; color: var(--cc-navy); border-color: var(--cc-border); }
.cc-btn--outline:hover { border-color: var(--cc-navy); }
.cc-btn--ghost { background: transparent; color: var(--cc-orange); }
.cc-btn--ghost:hover { background: var(--cc-soft); }

/* ---------- Banner ---------- */
.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998;
  max-width: 1100px; margin: 0 auto;
  background: var(--cc-bg); color: var(--cc-text);
  border: 1px solid var(--cc-border); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
  opacity: 0; transform: translateY(24px);
  transition: opacity .3s ease, transform .3s ease;
}
.cc-banner.cc-show { opacity: 1; transform: translateY(0); }
.cc-banner__inner { display: flex; align-items: center; gap: 24px; padding: 20px 24px; }
.cc-banner__text { display: flex; align-items: flex-start; gap: 14px; flex: 1; }
.cc-banner__text p { margin: 0; font-size: 14px; line-height: 1.6; }
.cc-banner__text a, .cc-intro a { color: var(--cc-orange); font-weight: 600; text-decoration: underline; }
.cc-banner__icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cc-soft); color: var(--cc-orange); font-size: 20px;
}
.cc-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- Modal ---------- */
.cc-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.cc-overlay.cc-show { opacity: 1; visibility: visible; }
.cc-modal {
  width: 100%; max-width: 620px; max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  background: var(--cc-bg); color: var(--cc-text);
  border-radius: 18px; box-shadow: 0 30px 70px rgba(15, 23, 42, .3);
  transform: translateY(16px); transition: transform .25s ease;
}
.cc-overlay.cc-show .cc-modal { transform: translateY(0); }
.cc-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--cc-border);
}
.cc-modal__head h2 { margin: 0; font-size: 20px; color: var(--cc-navy); display: flex; align-items: center; gap: 10px; }
.cc-modal__head h2 i { color: var(--cc-orange); }
.cc-close {
  width: 44px; height: 44px; border-radius: 10px; border: 0;
  background: transparent; color: var(--cc-muted); font-size: 20px; cursor: pointer;
}
.cc-close:hover { background: #F1F5F9; color: var(--cc-navy); }
.cc-modal__body { padding: 8px 24px; overflow-y: auto; }
.cc-intro { font-size: 14px; line-height: 1.6; margin: 12px 0 8px; }
.cc-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--cc-border); }
.cc-row:last-child { border-bottom: 0; }
.cc-row__icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cc-soft); color: var(--cc-orange); font-size: 16px;
}
.cc-row__body { flex: 1; }
.cc-row__body h3 { margin: 0 0 4px; font-size: 15px; color: var(--cc-navy); }
.cc-row__body p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--cc-muted); }
.cc-row__control { flex-shrink: 0; padding-top: 4px; }
.cc-always {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: #ECFDF5; color: #047857; font-size: 12px; font-weight: 600;
}
.cc-modal__foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid var(--cc-border);
}

/* ---------- Toggle switch ---------- */
.cc-switch { position: relative; display: inline-block; width: 48px; height: 28px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch__slider {
  position: absolute; inset: 0; border-radius: 999px; background: #CBD5E1;
  transition: background .2s;
}
.cc-switch__slider::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}
.cc-switch input:checked + .cc-switch__slider { background: var(--cc-orange); }
.cc-switch input:checked + .cc-switch__slider::before { transform: translateX(20px); }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .cc-banner__inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cc-banner__actions { justify-content: flex-end; }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .cc-banner { left: 12px; right: 12px; bottom: 12px; }
  .cc-banner__inner { padding: 16px; }
  .cc-banner__icon { display: none; }
  .cc-banner__actions { flex-direction: column-reverse; }
  .cc-banner__actions .cc-btn { width: 100%; }

  .cc-overlay { align-items: flex-end; padding: 0; }
  .cc-modal { max-width: none; max-height: 90vh; border-radius: 18px 18px 0 0; }
  .cc-modal__head, .cc-modal__body, .cc-modal__foot { padding-left: 16px; padding-right: 16px; }
  .cc-modal__foot { flex-direction: column-reverse; }
  .cc-modal__foot .cc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-overlay, .cc-modal, .cc-btn, .cc-switch__slider, .cc-switch__slider::before { transition: none; }
}
