/* ── Dartera (Slide-in) Contact Drawer — exact match to static-site design ── */

/* ── Google Font is enqueued by PHP via wp_enqueue_style ── */

/* ── CSS Variables — exact copy from styles.css ── */
:root {
  --bg:          oklch(0.97 0.013 70);
  --bg-soft:     oklch(0.945 0.017 65);
  --card:        oklch(0.988 0.008 75);
  --ink:         oklch(0.20 0.012 35);
  --ink-soft:    oklch(0.40 0.013 35);
  --ink-mute:    oklch(0.55 0.012 40);
  --line:        oklch(0.86 0.013 60);
  --line-soft:   oklch(0.92 0.011 65);
  --accent:      #A4302E;
  --accent-deep: oklch(0.36 0.13 27);
  --accent-tint: oklch(0.94 0.05 28);
  --icon-color:  var(--accent); /* falls back to accent if not overridden from backend */
  --backdrop:    oklch(0.2 0.012 35 / 0.45);
  --success:     oklch(0.42 0.13 145);
  --success-bg:  oklch(0.94 0.06 145);
  --error-bg:    oklch(0.97 0.03 25);
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ── Teardrop trigger — exact from styles.css ── */
.drop-trigger {
  position: fixed;
  right: 30px;
  top: 50%;
  z-index: 75;
  transform: translate(0, -50%);
  width: 89px;
  height: 72px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(-6px 10px 22px oklch(0.2 0.02 30 / 0.28));
  transition: transform .38s cubic-bezier(.5, 0, .75, 0);
}
.drop-trigger:hover { transform: translate(-2px, -50%); }
.drop-trigger.is-open {
  transform: translate(calc((min(445px, 92vw) + 16px) * -1), -50%);
  transition: transform .68s cubic-bezier(.3, 1.5, .42, 1);
}

/* Teardrop shape — CSS mask, exact from styles.css */
.drop-shape {
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  -webkit-mask: url("../teardrop.webp") center / contain no-repeat;
          mask: url("../teardrop.webp") center / contain no-repeat;
  transition: background-color .25s ease;
}
.drop-trigger.is-open .drop-shape {
  background-color: var(--ink);
}

.drop-icon {
  position: absolute;
  z-index: 2;
  left: 44%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drop-icon svg { width: 100%; height: 100%; }

.drop-label {
  position: absolute;
  z-index: 2;
  left: 44%;
  bottom: 14px;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}
.drop-trigger.is-open .drop-label { display: none; }
.drop-trigger.is-open .drop-icon { left: 44%; top: 54%; }

@media (max-width: 540px) {
  .drop-trigger { width: 76px; height: 62px; right: 18px; }
  .drop-trigger.is-open { transform: translate(calc(-92vw - 12px), -50%); }
  .drop-icon  { width: 20px; height: 20px; }
  .drop-label { font-size: 8px; bottom: 15px; }
}

/* ── Backdrop ── */
.drop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 72;
  background: var(--backdrop);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.drop-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ── Slide-in panel ── */
.drop-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 74;
  width: min(445px, 92vw);
  background: var(--bg);
  box-shadow: -22px 0 50px -10px oklch(0.2 0.02 30 / 0.25);
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.32, .72, 0, 1);
  overflow-y: auto;
}
.drop-panel.is-open { transform: translateX(0);  z-index: 10011;}

.drop-panel-inner { padding: 44px 38px 110px; }
@media (max-width: 540px) { .drop-panel-inner { padding: 32px 24px 110px; } }

/* ── Typography ── */
.drop-h {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.22;
  letter-spacing: -.018em;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: pretty;
}
.drop-sub {
  color: var(--accent);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -.005em;
  margin-bottom: 14px;
}
.drop-sub-light {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 22px;
}

/* ── Doctor avatars ── */
.drop-team { margin: -6px 0 26px; }
.drop-team-row { display: flex; align-items: center; gap: 14px; }
.drop-team-avatars { display: flex; flex-shrink: 0; }
.drop-team-avatars img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  background: var(--bg-soft);
}
.drop-team-avatars img + img { margin-left: -10px; }
.drop-team-names {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: -.005em;
  line-height: 1.4;
}

/* ── Contact links ── */
.drop-contacts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 22px;
}
.drop-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 17.5px;
  letter-spacing: -.005em;
  text-decoration: none;
  transition: color .15s;
}
.drop-contact:hover { color: var(--accent); }
.drop-contact .dc-text { white-space: nowrap; }
.drop-contact .dc-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-tint);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color);
  flex-shrink: 0;
}
.drop-contact .dc-icon svg { width: 18px; height: 18px; }
.drop-contact .dc-icon .dc-icon-img { width: 20px; height: 20px; object-fit: contain; }
/* ── Availability note ── */
.drop-note {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 18px 0;
  margin: 0;
  border-top: 1px solid var(--line-soft);
  line-height: 1.5;
}

/* ── Option cards ── */
.drop-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.drop-option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 16px 14px 14px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  font-family: var(--font);
}
.drop-option:hover {
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 8px 22px -14px oklch(0.2 0.02 40 / 0.18);
  transform: translateY(-1px);
}
.drop-option .opt-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--accent-tint);
  color: var(--icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.drop-option .opt-icon svg { width: 20px; height: 20px; }
.drop-option .opt-icon .opt-icon-img { width: 22px; height: 22px; object-fit: contain; }
.drop-option .opt-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.drop-option .opt-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -.005em;
}
.drop-option .opt-desc {
  font-size: 12.5px;
  color: var(--ink-mute);
  font-weight: 400;
}
.drop-option .opt-arrow {
  color: var(--ink-mute);
  transition: transform .2s ease, color .2s ease;
}
.drop-option .opt-arrow svg { width: 16px; height: 16px; }
.drop-option:hover .opt-arrow { color: var(--accent); transform: translateX(3px); }

/* ── Form sub-view header (back + ×) ── */
.drop-form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  margin-bottom: 18px;
}
.drop-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  height: 36px;
  line-height: 1;
  background: transparent;
  border: 0;
  padding: 0;
  margin-left: -2px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: color .15s;
}
.drop-back:hover { color: var(--accent); }
.drop-back svg { width: 16px; height: 16px; }

.drop-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 36px;
  height: 36px;
  margin-right: -8px;
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  cursor: pointer;
  border-radius: 9px;
  transition: color .15s ease, background .15s ease;
}
.drop-x:hover { color: var(--accent); background: var(--accent-tint); }
.drop-x svg { width: 20px; height: 20px; }

/* Close button row on the main menu view — mobile only. On desktop the
   teardrop trigger stays reachable next to the open panel, so this would be
   redundant there; on mobile the panel covers ~92% of the width and the
   trigger gets pushed off-screen, so this is the only way to close. */
.drop-x-menu-row { display: none; }
@media (max-width: 540px) {
  .drop-x-menu-row {
    display: flex;
    justify-content: flex-end;
    margin: -8px -8px 4px 0;
  }
}

/* ── Form fields ── */
.drop-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}
.drop-field { display: flex; flex-direction: column; gap: 6px; }
.df-label {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  font-weight: 500;
}
.drop-field input,
.drop-field textarea {
  font: inherit;
  font-family: var(--font);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  width: 100%;
  font-size: 14.5px;
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.drop-field input:focus,
.drop-field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px oklch(0.45 0.13 27 / 0.12);
}
.drop-field.has-error input,
.drop-field.has-error textarea { border-color: var(--accent); background: var(--error-bg); }
.drop-field.has-error .df-label { color: var(--accent); }
.df-error { font-size: 12px; color: var(--accent); font-weight: 500; margin-top: 2px; }

/* ── Success state ── */
.drop-success { text-align: center; padding: 24px 0; }
.drop-success .ds-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.drop-success .ds-icon svg { width: 28px; height: 28px; }
.drop-success h3 { font-family: var(--font); font-weight: 600; font-size: 20px; margin: 0 0 8px; color: var(--ink); }
.drop-success p  { color: var(--ink-soft); margin: 0 0 22px; font-size: 14.5px; }

/* ── Shortcode form wrapper — neutralise Avada theme form styles ── */
.dartera-drop-shortcode { margin-top: 4px; }
.dartera-drop-shortcode input[type="text"],
.dartera-drop-shortcode input[type="email"],
.dartera-drop-shortcode input[type="tel"],
.dartera-drop-shortcode input[type="number"],
.dartera-drop-shortcode input[type="url"],
.dartera-drop-shortcode input[type="date"],
.dartera-drop-shortcode input[type="time"],
.dartera-drop-shortcode input[type="datetime-local"],
.dartera-drop-shortcode textarea,
.dartera-drop-shortcode select {
  font-family: var(--font) !important;
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  padding: 11px 13px !important;
  color: var(--ink) !important;
  width: 100% !important;
  font-size: 14px !important;
  resize: vertical;
  box-sizing: border-box !important;
  transition: border-color .15s, box-shadow .15s !important;
  box-shadow: none !important;
  margin-bottom: 12px !important;
  color-scheme: light !important;
}
.dartera-drop-shortcode input:focus,
.dartera-drop-shortcode textarea:focus,
.dartera-drop-shortcode select:focus {
  outline: 0 !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px oklch(0.45 0.13 27 / 0.12) !important;
}
.dartera-drop-shortcode input[type="submit"],
.dartera-drop-shortcode button[type="submit"],
.dartera-drop-shortcode .wpcf7-submit,
.dartera-drop-shortcode .wpforms-submit {
  width: 100% !important;
  padding: 13px 20px !important;
  background: var(--accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background .18s ease !important;
  margin-top: 4px !important;
}
.dartera-drop-shortcode input[type="submit"]:hover,
.dartera-drop-shortcode button[type="submit"]:hover,
.dartera-drop-shortcode .wpcf7-submit:hover,
.dartera-drop-shortcode .wpforms-submit:hover { background: var(--accent-deep) !important; }
.dartera-drop-shortcode label {
  font-size: 12px !important;
  letter-spacing: .04em !important;
  color: var(--ink-soft) !important;
  font-weight: 500 !important;
  display: block !important;
  margin-bottom: 4px !important;
}
.dartera-drop-shortcode .wpcf7-submit-wrap {position: relative;}
.dartera-drop-shortcode .wpcf7-spinner {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin-block: auto;
}
.dartera-drop-shortcode .wpcf7-not-valid-tip,
.dartera-drop-shortcode .wpforms-error { color: var(--accent) !important; font-size: 12px !important; margin-top: 2px !important; }

/* ── Checkboxes & radio buttons (CF7 wraps each option in
   .wpcf7-list-item > label > input + .wpcf7-list-item-label;
   same markup is used for the built-in "Acceptance" terms checkbox) ── */
.dartera-drop-shortcode .wpcf7-form-control.wpcf7-checkbox,
.dartera-drop-shortcode .wpcf7-form-control.wpcf7-radio,
.dartera-drop-shortcode .wpcf7-form-control.wpcf7-acceptance {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  margin-bottom: 12px !important;
}
.dartera-drop-shortcode .wpcf7-list-item { margin: 0 !important; }
.dartera-drop-shortcode .wpcf7-list-item label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 9px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  color: var(--ink) !important;
  cursor: pointer !important;
  margin-bottom: 0 !important;
}
.dartera-drop-shortcode .wpcf7-list-item input[type="checkbox"],
.dartera-drop-shortcode .wpcf7-list-item input[type="radio"] {
  width: 17px !important;
  height: 17px !important;
  margin: 1px 0 0 !important;
  flex-shrink: 0 !important;
  accent-color: var(--accent) !important;
  cursor: pointer !important;
}
.dartera-drop-shortcode .wpcf7-list-item-label {
  font-size: 14px !important;
  color: var(--ink) !important;
  letter-spacing: normal !important;
}

/* ── File upload fields ── */
.dartera-drop-shortcode input[type="file"] {
  font-family: var(--font) !important;
  background: var(--card) !important;
  border: 1px dashed var(--line) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  color: var(--ink-soft) !important;
  width: 100% !important;
  font-size: 13px !important;
  box-sizing: border-box !important;
  margin-bottom: 12px !important;
  cursor: pointer !important;
}
.dartera-drop-shortcode input[type="file"]::file-selector-button {
  font-family: var(--font) !important;
  background: var(--accent-tint) !important;
  color: var(--accent) !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 7px 12px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  margin-right: 10px !important;
  cursor: pointer !important;
  transition: background .15s ease, color .15s ease !important;
}
.dartera-drop-shortcode input[type="file"]::file-selector-button:hover {
  background: var(--accent) !important;
  color: #fff !important;
}
.dartera-drop-shortcode .wpcf7-mpf-uploaded-files,
.dartera-drop-shortcode .wpcf7-mpf-file-name {
  font-size: 12.5px !important;
  color: var(--ink-soft) !important;
}

/* ── Multi-step / conditional CF7 forms ──
   Covers the two most common add-ons: "CF7 Conditional Fields" (group
   wrappers) and generic multi-step plugins (step containers, progress bar,
   prev/next buttons). Show/hide logic stays owned by those plugins' own JS —
   this just makes whatever is visible match the drawer's look. If your
   specific multi-step plugin uses different class names, send me a sample
   and I'll tighten these selectors to match exactly. */
.dartera-drop-shortcode .wpcf7cf_group { margin: 0 !important; }
.dartera-drop-shortcode [class*="step"][class*="container"],
.dartera-drop-shortcode [class*="-step"][data-step],
.dartera-drop-shortcode [class*="multistep"] { margin: 0 !important; }
.dartera-drop-shortcode [class*="progress-bar"],
.dartera-drop-shortcode [class*="progress-indicator"] {
  background: var(--line-soft) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  height: 6px !important;
  margin-bottom: 18px !important;
}
.dartera-drop-shortcode [class*="progress-bar"] > *,
.dartera-drop-shortcode [class*="progress-fill"] {
  background: var(--accent) !important;
  height: 100% !important;
  border-radius: 999px !important;
  transition: width .25s ease !important;
}
.dartera-drop-shortcode button[class*="next"],
.dartera-drop-shortcode button[class*="prev"],
.dartera-drop-shortcode button[class*="step-button"],
.dartera-drop-shortcode input[class*="next"],
.dartera-drop-shortcode input[class*="prev"] {
  font-family: var(--font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 11px 18px !important;
  cursor: pointer !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease !important;
}
.dartera-drop-shortcode button[class*="next"],
.dartera-drop-shortcode input[class*="next"] {
  background: var(--accent) !important;
  color: #fff !important;
  border: 0 !important;
}
.dartera-drop-shortcode button[class*="next"]:hover,
.dartera-drop-shortcode input[class*="next"]:hover { background: var(--accent-deep) !important; }
.dartera-drop-shortcode button[class*="prev"],
.dartera-drop-shortcode input[class*="prev"] {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}
.dartera-drop-shortcode button[class*="prev"]:hover,
.dartera-drop-shortcode input[class*="prev"]:hover { border-color: var(--accent) !important; color: var(--accent) !important; }

/* .screen-reader-response is CF7's accessibility-only live region (meant for
   screen readers, not sighted users) — restore the standard visually-hidden
   technique. The REAL visible message belongs in .wpcf7-response-output,
   which already sits correctly positioned right after the submit button and
   already receives the real text (Avada just decorates it with extra chrome
   below — that part we strip). */
.dartera-drop-shortcode .screen-reader-response {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* .wpcf7-response-output — shown only once the form has a resolved status
   (anything other than the idle "init" / in-flight "submitting" states).
   This sidesteps relying on exact status-string spelling, which differs
   between CF7 versions ("failed" here, "mail-failed" elsewhere). */
.dartera-drop-shortcode .wpcf7-response-output { display: none !important; }
.dartera-drop-shortcode form[data-status]:not([data-status="init"]):not([data-status="submitting"]) .wpcf7-response-output {
  display: block !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  margin: 12px 0 0 !important;
  font-size: 13px !important;
  font-family: var(--font) !important;
  box-shadow: none !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  width: auto !important;
  min-height: 0 !important;
  position: static !important;
}
.dartera-drop-shortcode form[data-status="sent"] .wpcf7-response-output,
.dartera-drop-shortcode form[data-status="mail-sent"] .wpcf7-response-output {
  border-color: var(--success) !important;
  background: var(--success-bg) !important;
  color: var(--success) !important;
}
.dartera-drop-shortcode form[data-status="invalid"] .wpcf7-response-output,
.dartera-drop-shortcode form[data-status="failed"] .wpcf7-response-output,
.dartera-drop-shortcode form[data-status="mail-failed"] .wpcf7-response-output,
.dartera-drop-shortcode form[data-status="spam"] .wpcf7-response-output,
.dartera-drop-shortcode form[data-status="acceptance-missing"] .wpcf7-response-output,
.dartera-drop-shortcode form[data-status="aborted"] .wpcf7-response-output {
  border-color: var(--accent) !important;
  background: var(--error-bg) !important;
  color: var(--accent) !important;
}
/* Strip Avada's icon + dismiss button, keep only the message text */
.dartera-drop-shortcode .wpcf7-response-output .close,
.dartera-drop-shortcode .wpcf7-response-output [data-dismiss],
.dartera-drop-shortcode .wpcf7-response-output .alert-icon { display: none !important; }
.dartera-drop-shortcode .wpcf7-response-output .fusion-alert-content-wrapper { display: block !important; }
.dartera-drop-shortcode .wpcf7-response-output .fusion-alert-content {
  display: block !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  color: var(--ink) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}.dartera-drop-shortcode p {
    position: relative;
}
.dartera-drop-shortcode .fusion-slider-loading {
    display: none !important;
    inset: auto !important;
    bottom: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 0 0 8px !important;
    font-size: 16px !important;
    color: transparent !important;
    border: 2px solid rgba(255, 255, 255, .35) !important;
    border-top: 2px solid #fff !important;
    border-right: 2px solid rgba(255, 255, 255, .35) !important;
    border-bottom: 2px solid rgba(255, 255, 255, .35) !important;
    border-left: 2px solid rgba(255, 255, 255, .35) !important;
    border-radius: 50% !important;
    background: 0 0 !important;
    background-image: none !important;
    background-color: transparent !important;
    animation: dartera-spin .7s linear infinite !important;
    vertical-align: middle !important;
    right: 10px !important;
    left: unset !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    margin: auto !important;
}
.dartera-drop-shortcode form[data-status="submitting"] .fusion-slider-loading {
  display: inline-block !important;
}

@keyframes dartera-spin { to { transform: rotate(360deg); } }

/* ── Booking iframe overlay ── */
.drop-iframe {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: oklch(0.18 0.012 35 / 0.85);
  animation: di-in .25s ease;
}
/* Only show as flex when the [hidden] attribute is absent */
.drop-iframe:not([hidden]) {
    display: flex;
    flex-direction: column;
    z-index: 10011;
}
@keyframes di-in { from { opacity: 0; } to { opacity: 1; } }

.drop-iframe-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.drop-iframe-bar .dib-l {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink); font-family: var(--font); font-size: 14.5px;
}
.drop-iframe-bar .dib-l svg { width: 18px; height: 18px; color: var(--icon-color); }
.drop-iframe-bar .dib-r { display: flex; align-items: center; gap: 14px; }
.drop-iframe-bar .dib-open {
  font-size: 13px; color: var(--icon-color); font-weight: 500;
  font-family: var(--font); text-decoration: none;
}
.drop-iframe-bar .dib-open:hover { text-decoration: underline; }
.drop-iframe-bar .dib-close {
  min-width: 38px; width: 38px;  height: 38px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink);
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.drop-iframe-bar .dib-close:hover { background: var(--line-soft); }
.drop-iframe-bar .dib-close svg { width: 18px; height: 18px; }
.drop-iframe iframe {
  flex: 1; width: 100%; border: 0; background: var(--bg);
}.drop-fields br {
    display: none;
}
.drop-fields p {
    margin: 0;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .drop-trigger, .drop-backdrop, .drop-panel { transition: none; }
}

/* Make [hidden] authoritative even when a class sets display:flex */
[hidden] { display: none !important; }
