/* Plate mockups (views/mockups/index.php). Pickers reuse .goods-pop/.gp-* from order-form.css. */

.mk-mode { height: 38px; }
.mk-order { max-width: 420px; height: 36px; gap: 8px; }
.mk-order .ell { max-width: 180px; opacity: .8; }
.mk-order .btn-link { color: inherit; display: inline-flex; }
.mk-links { position: relative; }
.mk-links-pop { position: absolute; right: 0; top: calc(100% + 6px); width: 320px; padding: 6px; display: flex; flex-direction: column; z-index: 30; }
.mk-links-pop a { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 8px; color: var(--ink); }
.mk-links-pop a:hover { background: var(--blue-soft); }
.mk-links-pop .muted { font-size: 12px; }

.mk-grid { display: grid; grid-template-columns: minmax(360px, 460px) minmax(0, 1fr); gap: 16px; align-items: start; }
.mk-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.mk-pick { height: 54px; }
.mk-pick img { width: 110px; height: 36px; }
.mk-fields { display: flex; flex-direction: column; gap: 12px; }
.mk-line { display: flex; gap: 10px; align-items: flex-start; }
.mk-line .grow { flex: 1; }
.mk-dist { width: 96px; flex: none; }
.mk-colours { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-colours .swatch { width: 14px; height: 14px; }
.mk-checks { display: flex; gap: 18px; flex-wrap: wrap; }
.mk-logos summary { cursor: pointer; font-weight: 500; padding: 4px 0; }
.mk-logos[open] summary { margin-bottom: 10px; }
.mk-logos .of-row { margin-bottom: 10px; }

.mk-preview { position: sticky; top: 12px; display: flex; flex-direction: column; }
.mk-canvas {
  min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px;
  background: repeating-conic-gradient(#F1F4F7 0 25%, #fff 0 50%) 50% / 24px 24px; border-bottom: 1px solid var(--line-soft);
  border-radius: var(--radius) var(--radius) 0 0; position: relative;
}
.mk-canvas img { max-width: 100%; max-height: 60vh; object-fit: contain; cursor: zoom-in; filter: drop-shadow(0 6px 18px rgba(28, 35, 43, .18)); }
.mk-canvas.loading img { opacity: .45; }
.mk-canvas.loading::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--field); border-top-color: var(--blue); animation: mk-spin .8s linear infinite;
}
@keyframes mk-spin { to { transform: rotate(360deg); } }
.mk-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 16px; }
.mk-actions .btn.disabled { pointer-events: none; opacity: .5; }
.mk-preview .note { margin: 0 16px 16px; }
.mk-dialog { max-width: min(640px, calc(100vw - 24px)); }
.mk-found { display: flex; flex-direction: column; max-height: 50vh; overflow: auto; }
.mk-found .sr { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 10px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; color: var(--ink); }
.mk-found .sr:hover { background: var(--blue-soft); }
.mk-found .sr b { font-family: var(--font-plate); font-size: 18px; letter-spacing: .04em; }
.mk-found .grow { flex: 1; min-width: 0; }

@media (max-width: 1000px) {
  .mk-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-preview { position: static; order: -1; }
}

/* maket.kievznak.com inside the page */
.mk-embed { display: flex; flex-direction: column; overflow: hidden; height: calc(100vh - 120px); min-height: 560px; }
.mk-embed-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.mk-embed iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* pictures over the plate */
.mk-pics { border-top: 1px solid var(--line-soft); padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.mk-pics-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mk-pics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-pic { border: 1.5px dashed var(--field); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: border-color .12s, background .12s; }
.mk-pic.over { border-color: var(--blue); background: var(--blue-soft); }
.mk-pic.has { border-style: solid; border-color: var(--line); }
.mk-pic-top { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.mk-pic-top .icon-btn { width: 24px; height: 24px; }
.mk-pic-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mk-pic-drop { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 96px; font-size: 13px; color: var(--muted); cursor: pointer; border-radius: 8px; }
.mk-pic-drop:hover { background: var(--sunk); color: var(--ink); }
.mk-pic-body { display: flex; flex-direction: column; gap: 6px; }
.mk-pic-img { height: 92px; border-radius: 8px; display: flex; align-items: center; justify-content: center; position: relative;
  background: repeating-conic-gradient(#EEF1F4 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.mk-pic-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mk-pic-img.busy::after { content: ""; position: absolute; inset: 0; border-radius: 8px; background: rgba(255,255,255,.6) linear-gradient(90deg, transparent, rgba(0,87,184,.18), transparent) 0 0 / 200% 100%; animation: mk-shimmer 1.2s linear infinite; }
@keyframes mk-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.mk-pic-size input[type=range] { width: 100%; }
.mk-ai { align-items: flex-start; font-size: 13px; line-height: 1.25; }
.mk-ai small { display: block; font-size: 11.5px; }
.mk-ai.off { opacity: .6; }
.mk-pic-acts { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mk-pic-acts a { display: inline-flex; align-items: center; gap: 3px; }
@media (max-width: 760px) { .mk-pics-grid { grid-template-columns: 1fr; } }

/* Address plates (views/mockups/address.php) */
.addr-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; padding: 14px; }
.addr-form .field.grow { flex: 1 1 260px; }
.addr-form .addr-no { width: 140px; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.addr-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; text-align: center; }
.addr-card:hover, .addr-card.on { border-color: var(--ink); }
.addr-card img { width: 100%; height: 150px; object-fit: contain; }
dialog.sheet.addr-sheet { max-width: min(760px, calc(100vw - 24px)); }
.addr-sheet-in { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; max-height: 88vh; overflow: auto; }
.addr-sh { display: flex; align-items: center; gap: 10px; }
.addr-sh .ell { flex: 1; }
.addr-style img { width: 100%; max-height: 300px; object-fit: contain; background: #F3F5F7; border-radius: 10px; padding: 8px; }
.addr-style-acts { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
