:root {
  --sc-black: #111;
  --sc-white: #fff;
  --sc-blue: #007bff;
  --sc-gray: #666;
  --sc-border: #eee;
}

/* Banner */
#smartcookie-banner {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  direction: rtl;
  text-align: right;
}

.smartcookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: flex-end;
  z-index: 99999;
  animation: fadeIn .3s ease;
}

.smartcookie-panel {
  width: 100%;
  background: var(--sc-white);
  padding: 16px;
  box-shadow: 0 -6px 20px rgba(0,0,0,.15);
  animation: slideUp .3s ease;
}

/* Popup */
.smartcookie-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  animation: fadeIn .3s ease;
}

.smartcookie-popup-panel {
  background: var(--sc-white);
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  direction: rtl;
  text-align: right;
  animation: scaleIn .25s ease;
}

/* Typography */
.smartcookie-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.smartcookie-content p {
  margin: 0 0 8px;
  line-height: 1.5;
}

/* Rows */
.smartcookie-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--sc-border);
  padding: 8px 0;
}

/* Buttons */
.smartcookie-btn {
  border: 0;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  background: var(--sc-black);
  color: var(--sc-white);
  transition: background .2s ease, transform .1s ease;
}

.smartcookie-btn:hover {
  transform: translateY(-1px);
}

.smartcookie-btn:focus {
  outline: 2px solid var(--sc-blue);
  outline-offset: 2px;
}

.smartcookie-btn.smartcookie-reject {
  background: var(--sc-gray);
}

.smartcookie-manage {
  background: var(--sc-blue);
  color: var(--sc-white);
}

.smartcookie-link {
  text-decoration: underline;
  color: var(--sc-blue);
  cursor: pointer;
}

.smartcookie-popup-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Responsive */
@media (min-width: 768px) {
  .smartcookie-panel {
    max-width: 960px;
    margin: 0 auto 20px;
    border-radius: 10px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
