/* DR.Tercüme Consent Banner & Panel Styles */
#drtercume-consent-banner,
#drtercume-consent-panel {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  transition: opacity 0.3s ease;
}

/* Backdrop */
.dcb-backdrop,
.dcp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}

/* Banner */
.dcb-banner {
  position: relative;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-width: 720px;
  width: 100%;
  padding: 28px 28px 24px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  animation: dcb-slideUp 0.35s ease-out;
  outline: none;
}

@keyframes dcb-slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.dcb-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a2e;
}

.dcb-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #555;
  margin: 0 0 20px;
}

.dcb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dcb-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.dcb-btn:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

.dcb-btn-accept {
  background: #1a73e8;
  color: #fff;
  flex: 1;
  min-width: 120px;
}
.dcb-btn-accept:hover {
  background: #1557b0;
}

.dcb-btn-reject {
  background: transparent;
  color: #555;
  border: 1.5px solid #ccc;
  flex: 1;
  min-width: 120px;
}
.dcb-btn-reject:hover {
  background: #f5f5f5;
  border-color: #999;
}

.dcb-btn-manage {
  background: transparent;
  color: #1a73e8;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 10px 12px;
  flex: 0 0 auto;
}
.dcb-btn-manage:hover {
  color: #1557b0;
}

/* Panel (modal) */
#drtercume-consent-panel {
  align-items: center;
}

.dcp-panel {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 60px rgba(0,0,0,0.2);
  animation: dcp-fadeIn 0.3s ease-out;
  outline: none;
}

@keyframes dcp-fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.dcp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.dcp-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.dcp-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.dcp-close:hover {
  color: #333;
}

.dcp-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dcp-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  cursor: pointer;
  transition: background 0.2s;
}
.dcp-toggle:hover {
  background: #f9f9fb;
}

.dcp-toggle-label {
  flex: 1;
  min-width: 0;
}

.dcp-toggle-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 2px;
}

.dcp-toggle-desc {
  display: block;
  font-size: 0.78rem;
  color: #888;
  line-height: 1.4;
}

.dcp-toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
}

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

.dcp-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.25s;
}

.dcp-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
}

.dcp-toggle-switch input:checked + .dcp-slider {
  background: #1a73e8;
}

.dcp-toggle-switch input:checked + .dcp-slider::before {
  transform: translateX(20px);
}

.dcp-toggle-switch input:disabled + .dcp-slider {
  background: #1a73e8;
  opacity: 0.7;
  cursor: not-allowed;
}

.dcp-toggle-switch input:focus-visible + .dcp-slider {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

.dcp-footer {
  padding: 0 24px 20px;
}

.dcp-save {
  width: 100%;
}

/* Responsive */
@media (max-width: 480px) {
  .dcb-banner {
    padding: 20px 16px 18px;
    border-radius: 16px 16px 0 0;
  }
  .dcb-actions {
    flex-direction: column;
  }
  .dcb-btn {
    width: 100%;
    text-align: center;
  }
  .dcb-btn-manage {
    text-align: center;
  }
  .dcp-panel {
    width: 95%;
    border-radius: 16px;
  }
  .dcp-header {
    padding: 18px 16px 0;
  }
  .dcp-body {
    padding: 14px 16px;
  }
  .dcp-footer {
    padding: 0 16px 16px;
  }
}
