/* /wp-content/plugins/ae-styleboard/assets/css/blueprints-preview.css */
/* Blueprint preview modal (global) — match existing Styleboard modal look */

/* Full-screen overlay, blurred background */
.ae-bp-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;                 /* JS sets this to flex when open */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* Dialog container */
.ae-bp-preview-dialog {
  position: relative;
  background: #ffffff;
  max-width: 1150px;
  width: 90%;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: "Questrial", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Close button (top right) */
.ae-bp-preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.ae-bp-preview-close img {
  display: block;
  width: 16px;
  height: 16px;
}

/* 70 / 30 body layout */
.ae-bp-preview-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Left image column */
.ae-bp-preview-image-wrap {
  flex: 7 1 0;
}

.ae-bp-preview-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e5e5e5;
  background: #f7f7f7;
  object-fit: contain;
}

/* Right meta column */
.ae-bp-preview-meta {
  flex: 3 1 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: #2d2d2d;
}

/* Name */
.ae-bp-name {
  margin: 15px 0 20px 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Generic field wrapper */
.ae-bp-field {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}

/* Field label */
.ae-bp-label {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b5b5b5;
}

/* Field value */
.ae-bp-value {
  font-size: 14px;
  color: #2d2d2d;
  height: 30px;
  margin: 0 0 3px 0;
}

/* Components list (chips) */
.ae-bp-preview-dialog .ae-bp-components {
  list-style: none;
  padding: 0;
  margin: 0 0 3px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Your chip class (from your existing CSS) */
.ae-bp-component-chip {
  font-size: 14px;
  color: #2d2d2d;
  height: 25px;
  display: block;
  align-items: center;
}

/* Reset layout for actions row inside the PREVIEW dialog only */
.ae-bp-preview-dialog .ae-bp-actions {
  display: block;
  grid-template-columns: none;
  padding: 0;
  margin-top: 17px;
}

/* Insert button */
.ae-bp-insert-btn {
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  padding: 7px 14px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 30px;
  height: 40px;
  margin-top: 12px;
}

/* Full width only in the preview dialog */
.ae-bp-preview-dialog .ae-bp-insert-btn {
  display: block;
  width: 100%;
}

/* Make image clickable cursor (same vibe as before) */
.ae-bp-preview-overlay .ae-bp-preview-img {
  cursor: pointer;
}
