#cm-cookie-root [hidden] { display: none !important; }

#cm-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 24px;
  background: #fff; color: var(--cm-text, #1f2937);
  border-top: 3px solid var(--cm-green, #1565A8);
  box-shadow: 0 -8px 24px rgba(0,0,0,.12);
  font-size: 14px; line-height: 1.5;
}
#cm-cookie-banner p { flex: 1 1 380px; margin: 0; }
#cm-cookie-banner a { color: var(--cm-green, #1565A8); font-weight: 700; }

.cm-ck-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cm-ck-btn {
  height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 800; transition: .2s ease;
  border: 2px solid var(--cm-green, #1565A8);
}
.cm-ck-btn.solid { background: var(--cm-green, #1565A8); color: #fff; }
.cm-ck-btn.solid:hover { background: var(--cm-green-dark, #0e4a82); border-color: var(--cm-green-dark, #0e4a82); }
.cm-ck-btn.ghost { background: #fff; color: var(--cm-green, #1565A8); }
.cm-ck-btn.ghost:hover { background: var(--cm-green-soft, #E6F1FB); }

#cm-cookie-modal {
  position: fixed; inset: 0; z-index: 99995;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(8,10,18,.6);
}
.cm-ck-card {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: #fff; color: var(--cm-text, #1f2937);
  border-radius: 16px; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.cm-ck-card h2 { font-size: 22px; margin-bottom: 16px; }
.cm-ck-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
  border: none; background: transparent; font-size: 26px; cursor: pointer; color: #555;
}
.cm-ck-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 10px;
  border: 1px solid var(--cm-border, #e5e7eb); border-radius: 12px; cursor: pointer;
}
.cm-ck-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cm-green, #1565A8); }
.cm-ck-row strong { display: block; font-size: 15px; }
.cm-ck-row small { display: block; color: var(--cm-muted, #6b7280); font-size: 13px; }
.cm-ck-card .cm-ck-actions { justify-content: flex-end; margin-top: 18px; }

@media (max-width: 640px) {
  #cm-cookie-banner { padding: 14px; }
  #cm-cookie-banner .cm-ck-actions { width: 100%; }
  #cm-cookie-banner .cm-ck-btn { flex: 1 1 auto; }
}

.cm-continue {
  position: fixed; left: 16px; bottom: 16px; z-index: 99980;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 32px); padding: 12px 14px;
  background: #fff; font-size: 14px;
  border: 1px solid var(--cm-border, #e5e7eb);
  border-left: 4px solid var(--cm-green, #1565A8);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.cm-continue a {
  background: var(--cm-green, #1565A8); color: #fff; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; font-weight: 800; white-space: nowrap;
}
.cm-continue button { border: none; background: transparent; font-size: 22px; cursor: pointer; color: #666; }

.cm-again { margin-bottom: 28px; }
.cm-again h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.cm-again-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.cm-again-card {
  flex: 0 0 170px; display: flex; flex-direction: column; gap: 6px; padding: 10px;
  background: #fff; border: 1px solid var(--cm-border, #e5e7eb); border-radius: 14px;
}
.cm-again-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; }
.cm-again-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.cm-again-price { font-size: 14px; font-weight: 900; color: var(--cm-green, #1565A8); }
.cm-again-card button {
  margin-top: auto; height: 38px; border: none; border-radius: 999px;
  background: var(--cm-green, #1565A8); color: #fff; font-weight: 800; cursor: pointer;
}
.cm-again-card button:disabled { opacity: .6; cursor: default; }

.cm-again-page { padding: 0 28px; margin: 32px 0; }
@media (max-width: 640px) { .cm-again-page { padding: 0 14px; } }

/* Compact cookie banner on phones */
@media (max-width: 640px) {
  #cm-cookie-banner {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
    border-top-width: 2px;
  }
  #cm-cookie-banner p { flex: 1 1 100%; }
  #cm-cookie-banner .cm-ck-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 6px;
    width: 100%;
  }
  #cm-cookie-banner .cm-ck-btn {
    height: 36px;
    padding: 0 6px;
    font-size: 11.5px;
    line-height: 1.1;
    white-space: normal;
  }
}
@media (max-width: 640px) {
  #cm-cc .cm-cc-bar { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
  #cm-cc .cm-cc-text { font-size: 12px; line-height: 1.4; margin: 0; }
  #cm-cc .cm-cc-actions { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 6px; width: 100%; }
  #cm-cc .cm-cc-bar .cm-cc-btn { height: 36px; min-height: 0; padding: 0 6px; font-size: 11.5px; line-height: 1.1; }
}
