/* Cookie Consent — gradjevno.com (port euroclub dizajna, gradjevno paleta) */

/* ── Banner (dolje desno) ─────────────────────────────── */
.grd-cc-banner {
  position: fixed;
  bottom: 16px;
  right: 16px;
  left: 16px;
  z-index: 9999;
  max-width: 420px;
  margin-left: auto;
  display: flex;
  gap: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(27, 67, 50, 0.28);
  animation: grd-cc-in 0.35s ease-out;
}
@keyframes grd-cc-in {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (max-width: 480px) {
  .grd-cc-banner { bottom: 12px; right: 12px; left: 12px; padding: 16px; }
}

.grd-cc-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: #E8F5E9;
  border-radius: 10px;
  color: #2D6A4F;
}
.grd-cc-icon svg { width: 22px; height: 22px; }

.grd-cc-body h3 {
  margin: 2px 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #1B4332;
  font-family: inherit;
}
.grd-cc-body p {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #64748B;
}
.grd-cc-body p a { color: #2D6A4F; text-decoration: underline; }

.grd-cc-actions { display: flex; flex-direction: column; gap: 8px; }

/* ── Buttons ──────────────────────────────────────────── */
.grd-cc-btn {
  font-family: inherit;
  cursor: pointer;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s;
  padding: 12px 18px;
  border: none;
}
.grd-cc-primary {
  background: #2D6A4F;
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(45, 106, 79, 0.5);
}
.grd-cc-primary:hover { background: #1B4332; transform: translateY(-1px); }
.grd-cc-secondary {
  background: transparent;
  color: #64748B;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}
.grd-cc-secondary:hover { color: #2D6A4F; }
.grd-cc-modal .grd-cc-secondary {
  background: #fff;
  border: 1px solid #E5E7EB;
  padding: 12px 18px;
}

/* ── Modal ────────────────────────────────────────────── */
.grd-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: grd-cc-fade 0.2s ease-out;
}
@keyframes grd-cc-fade { from { opacity: 0; } to { opacity: 1; } }

.grd-cc-modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
  animation: grd-cc-pop 0.25s ease-out;
}
@keyframes grd-cc-pop {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.grd-cc-modal-head {
  display: flex;
  gap: 14px;
  padding: 22px 24px 16px;
  background: linear-gradient(135deg, #F1F8F4, #FFFFFF);
  border-bottom: 1px solid #E5E7EB;
  border-radius: 18px 18px 0 0;
}
.grd-cc-modal-head h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: #1B4332; }
.grd-cc-modal-head p { margin: 0; font-size: 13px; color: #64748B; line-height: 1.5; }

.grd-cc-modal-body { padding: 8px 24px; }

.grd-cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #F3F4F6;
}
.grd-cc-row:last-child { border-bottom: none; }
.grd-cc-row-text strong { display: block; font-size: 14px; color: #1B4332; margin-bottom: 2px; }
.grd-cc-row-text span { font-size: 12px; color: #9CA3AF; line-height: 1.45; }
.grd-cc-locked .grd-cc-row-text strong { color: #6B7280; }

.grd-cc-modal-foot {
  display: flex;
  gap: 10px;
  padding: 16px 24px 22px;
}
.grd-cc-modal-foot .grd-cc-btn { flex: 1; }
@media (max-width: 420px) {
  .grd-cc-modal-foot { flex-direction: column-reverse; }
}

/* ── Switch ───────────────────────────────────────────── */
.grd-cc-switch { position: relative; display: inline-block; flex-shrink: 0; width: 44px; height: 24px; }
.grd-cc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.grd-cc-slider {
  position: absolute;
  inset: 0;
  background: #D1D5DB;
  border-radius: 24px;
  transition: background 0.2s;
  cursor: pointer;
}
.grd-cc-slider::before {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.grd-cc-switch input:checked + .grd-cc-slider { background: #2D6A4F; }
.grd-cc-switch input:checked + .grd-cc-slider::before { transform: translateX(20px); }
.grd-cc-switch input:focus-visible + .grd-cc-slider { outline: 2px solid #52B788; outline-offset: 2px; }
.grd-cc-switch-locked .grd-cc-slider { background: #2D6A4F; opacity: 0.75; cursor: not-allowed; }
