/* Cuelinks-style fixed Help tab + slide-out panel */
.dd-help-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99998;
  width: 38px;
  min-height: 108px;
  padding: 10px 6px 12px;
  border: none;
  border-radius: 8px 0 0 8px;
  background: #5a6578;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: -4px 0 16px rgba(15, 23, 42, 0.18);
  transition: background 0.2s, width 0.2s;
  font-family: inherit;
}
.dd-help-tab:hover,
.dd-help-tab:focus-visible {
  background: #475569;
  outline: none;
  width: 42px;
}
.dd-help-tab__icon {
  font-size: 18px;
  line-height: 1;
  opacity: 0.95;
}
.dd-help-tab__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.dd-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}
.dd-help-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.dd-help-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483001;
  width: min(440px, 100vw);
  max-width: 100%;
  background: #f8fafc;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, sans-serif;
  padding-top: env(safe-area-inset-top, 0px);
}
.dd-help-panel.is-open {
  transform: translateX(0);
}

.dd-help-panel__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #f8fafc;
}
.dd-help-panel__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.dd-help-panel__head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #94a3b8;
}
.dd-help-panel__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.dd-help-panel__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dd-help-panel__nav {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.dd-help-panel__nav button {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.dd-help-panel__nav button.is-active,
.dd-help-panel__nav button:hover {
  border-color: #0369a1;
  color: #0369a1;
  background: #f0f9ff;
}

.dd-help-panel__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.dd-help-section {
  scroll-margin-top: 8px;
  margin-bottom: 18px;
}
.dd-help-section h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.dd-help-section p,
.dd-help-section li {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}
.dd-help-section ul,
.dd-help-section ol {
  margin: 0;
  padding-left: 18px;
}
.dd-help-section li + li {
  margin-top: 6px;
}
.dd-help-section p + p,
.dd-help-section p + ul {
  margin-top: 8px;
}

.dd-help-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.dd-help-card strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 4px;
}

.dd-help-contact-grid {
  display: grid;
  gap: 10px;
}
.dd-help-contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
}
.dd-help-contact-btn small {
  display: block;
  font-weight: 400;
  color: #64748b;
  font-size: 11px;
  margin-top: 2px;
}
.dd-help-contact-btn--wa {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.dd-help-contact-btn--wa .dd-help-contact-btn__icon {
  color: #16a34a;
}
.dd-help-contact-btn--mail .dd-help-contact-btn__icon {
  color: #0369a1;
}
.dd-help-contact-btn__icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

.dd-help-link-btn {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0369a1;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

body.dd-help-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .dd-help-tab {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .dd-help-tab {
    display: flex;
  }
}
