/* ==========================================================================
   WordPress bridge: keeps the prototype layout intact inside a block theme.
   ========================================================================== */

/* Template-part wrappers generate no box, so the sticky header sticks to the
   whole page exactly like in the prototype (where the header sat in <body>). */
.weldkar-part {
  display: contents;
}

/* Logged-in admin bar: keep the sticky header below it. */
.admin-bar .site-header {
  top: var(--wp-admin--admin-bar--height, 0px);
}

/* The prototype had no reduced-motion handling; stop the pulsing dots and the cursor blink. */
@media (prefers-reduced-motion: reduce) {
  .kicker-dot.pulse,
  .nav-typing-cursor {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Editor-only placeholder for empty dynamic blocks. */
.weldkar-empty-notice {
  padding: 16px 20px;
  border: 1px dashed #94a3b8;
  border-radius: 4px;
  font: 14px/1.5 var(--font-body);
  color: #334155;
  background: #f8fafc;
}

/* ==========================================================================
   Toast notifications (Toastify) in the Weldkar look
   ========================================================================== */
.toastify.weldkar-toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 420px;
  padding: 16px 18px 16px 20px;
  background: var(--navy-deep);
  color: var(--text-pure);
  border: 1px solid var(--navy-border);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  z-index: 3000;
}
.toastify.weldkar-toast--error {
  border-left-color: var(--hse-amber);
}
.toastify.weldkar-toast .toast-close {
  flex-shrink: 0;
  margin: -2px -4px 0 0;
  padding: 0 4px;
  color: var(--text-light-dim);
  font-size: 18px;
  line-height: 1;
  opacity: 1;
  background: none;
  border: none;
  cursor: pointer;
}
.toastify.weldkar-toast .toast-close:hover {
  color: var(--accent-cyan);
}
@media (max-width: 640px) {
  .toastify.weldkar-toast {
    max-width: calc(100vw - 32px);
    width: calc(100vw - 32px);
  }
}

/* ==========================================================================
   GDPR notice under the forms
   ========================================================================== */
.weldkar-gdpr {
  display: block;
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
}
.weldkar-gdpr a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.weldkar-gdpr a:hover {
  color: var(--accent-blue);
}
.modal-content-card .weldkar-gdpr {
  color: var(--text-light-dim);
}
.modal-content-card .weldkar-gdpr a:hover {
  color: var(--accent-cyan);
}
.weldkar-gdpr--consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.weldkar-gdpr--consent input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--accent-cyan);
}

/* ==========================================================================
   Contact Form 7 versions of the forms
   ========================================================================== */
.weldkar-cf7 .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}
.weldkar-cf7 .wpcf7-form-control-wrap > .wpcf7-form-control {
  vertical-align: top;
  max-width: 100%;
}
.weldkar-cf7 > *,
.weldkar-cf7 .contact-form-row-2 > *,
.weldkar-cf7 .contact-field-group,
.weldkar-cf7 .form-group-item,
.weldkar-cf7 .contact-file-compact,
.weldkar-cf7 .contact-file-note {
  min-width: 0;
}
.weldkar-cf7 #tenderFiles,
.weldkar-cf7 .file-input-hidden {
  display: none;
}
.weldkar-cf7 .contact-file-compact .wpcf7-form-control-wrap {
  display: contents;
}
.weldkar-cf7 .wpcf7-response-output,
.weldkar-cf7 .wpcf7-spinner {
  display: none !important;
}
.weldkar-cf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: #dc2626;
}
.modal-content-card .weldkar-cf7 .wpcf7-not-valid-tip {
  color: #f87171;
}
.weldkar-cf7 .wpcf7-not-valid {
  border-color: #dc2626 !important;
}
.weldkar-cf7 .contact-file-compact .wpcf7-not-valid-tip {
  flex-basis: 100%;
}
/* Long CF7 field attributes (size/cols) must not widen the form card on phones. */
.contact-workspace-grid > * {
  min-width: 0;
}
