/* Єдиний side-drawer: послуги, ціни, правила (portal у body) */

.admin-side-drawer-overlay {
  --svc-accent: #556B2F;
  --svc-accent-soft: #f4f6f0;
  --svc-accent-border: #d4dcc8;
  --svc-stone-50: #fafaf9;
  --svc-stone-100: #f5f5f4;
  --svc-stone-200: #e7e5e4;
  --svc-stone-400: #a8a29e;
  --svc-stone-500: #78716c;
  --svc-stone-700: #44403c;
  --svc-stone-900: #1c1917;
  --svc-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --accent-gradient: linear-gradient(
    135deg,
    rgba(85, 107, 47, 0.92),
    rgba(105, 125, 58, 0.9) 58%,
    rgba(145, 124, 78, 0.82)
  );
  --accent-gradient-hover: linear-gradient(
    135deg,
    rgba(73, 92, 40, 0.95),
    rgba(95, 113, 52, 0.92) 58%,
    rgba(128, 108, 68, 0.88)
  );
  --accent-premium-border: rgba(193, 172, 118, 0.35);
  --accent-premium-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 6px 18px rgba(30, 40, 24, 0.34);
  --accent-premium-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 22px rgba(30, 40, 24, 0.38);

  position: fixed;
  inset: 0;
  z-index: 3600;
  background: rgba(17, 24, 39, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.admin-side-drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.admin-side-drawer {
  position: fixed;
  top: 16px;
  right: 0;
  bottom: 16px;
  width: min(560px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px 0 0 20px;
  box-shadow: -16px 0 48px rgba(28, 25, 23, 0.14);
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.admin-side-drawer-overlay.active .admin-side-drawer {
  transform: translateX(0);
}

.admin-side-drawer__header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--svc-stone-200);
  background: linear-gradient(180deg, #fff 0%, var(--svc-stone-50) 100%);
}

.admin-side-drawer__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--svc-stone-400);
}

.admin-side-drawer__header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--svc-stone-900);
}

.admin-side-drawer__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--svc-stone-500);
}

.admin-side-drawer__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--svc-stone-200);
  border-radius: 10px;
  background: #fff;
  color: var(--svc-stone-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-side-drawer__close:hover {
  background: var(--svc-stone-100);
  color: var(--svc-stone-900);
}

.admin-side-drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--svc-stone-50);
}

.admin-side-drawer__footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--svc-stone-200);
  background: #fff;
}

.admin-side-drawer__footer .btn-secondary {
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.admin-side-drawer__footer .btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.admin-side-drawer__footer .btn-primary {
  background: var(--accent-gradient);
  color: #f4f7ee;
  padding: 12px 24px;
  border: 1px solid var(--accent-premium-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--accent-premium-shadow);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.admin-side-drawer__footer .btn-primary:hover:not(:disabled) {
  background: var(--accent-gradient-hover);
  box-shadow: var(--accent-premium-shadow-hover);
  transform: translateY(-1px);
}

.admin-side-drawer__footer .btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .admin-side-drawer {
    top: 0;
    bottom: 0;
    width: 100vw;
    border-radius: 0;
    box-shadow: none;
  }
}
