/* Simple Cookie Consent — RTL Banner + Panel */

#scc-banner {
  background: #fff;
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
  border-top: 3px solid #e5e7eb;
  font-family: -apple-system, 'Segoe UI', Arial, sans-serif;
  direction: rtl;
  unicode-bidi: embed;
}

#scc-banner[style*="top:0"] {
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  border-top: none;
  border-bottom: 3px solid #e5e7eb;
}

/* ─── Banner row ─── */

.scc-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.scc-text { flex: 1; min-width: 220px; }

.scc-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.scc-desc {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

.scc-desc a { color: inherit; text-decoration: underline; }

.scc-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── Buttons ─── */

.scc-btn {
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
}

.scc-btn:hover  { opacity: .85; transform: translateY(-1px); }
.scc-btn:active { transform: translateY(0); }

.scc-btn-solid   { color: #fff; /* background set inline */ }
.scc-btn-outline { background: transparent; border-color: #d1d5db; color: #374151; }
.scc-btn-outline:hover { border-color: #9ca3af; background: #f9fafb; }

.scc-btn-text {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 13px;
  padding: 9px 10px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.scc-btn-text:hover { color: #374151; transform: none; opacity: 1; }

/* ─── Details panel ─── */

.scc-panel {
  border-top: 1px solid #f3f4f6;
  background: #f9fafb;
}

.scc-panel-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
}

.scc-category {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.scc-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 16px;
}

.scc-category-info { flex: 1; }

.scc-category-info strong {
  display: block;
  font-size: 14px;
  color: #111;
  margin-bottom: 3px;
}

.scc-category-info p {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.scc-panel-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 12px;
}

/* ─── Toggle switch ─── */

.scc-toggle {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  cursor: pointer;
}

.scc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.scc-toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 12px;
  transition: background .2s;
  position: relative;
}

.scc-toggle input:checked + .scc-toggle-track { background: #2563eb; }
.scc-toggle input:disabled + .scc-toggle-track { background: #93c5fd; cursor: not-allowed; opacity: .7; }

.scc-toggle-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}

.scc-toggle input:checked + .scc-toggle-track .scc-toggle-thumb {
  transform: translateX(-20px);
}

/* ─── Mobile ─── */

@media (max-width: 600px) {
  .scc-inner        { padding: 14px 16px; gap: 12px; }
  .scc-btns         { width: 100%; justify-content: stretch; }
  .scc-btn          { flex: 1; text-align: center; padding: 10px 8px; font-size: 12px; }
  .scc-btn-text     { flex: none; width: 100%; }
  .scc-panel-inner  { padding: 16px; }
  .scc-category-header { flex-wrap: wrap; gap: 10px; }
}
