/* Designer concept: resin trophies, Cobra / Broadcast / Shield / Sun Ray (GND.resin). Shared trophy styles, identical in dc-crystal.css,
   dc-resin.css and dc-clock.css (only one loads on a page). Scoped under .dz-root. */
/* ---- the piece on the stage (crystal outline / plate / clock face) ---- */
.dz-root .dtx-piece:not(.dtx-piece--mini) { position: relative; aspect-ratio: var(--ratio, 1); width: min(84cqw, 600px, calc(86cqh * var(--ratio, 1))); }
.dz-root .dtx-piece[hidden] { display: none !important; }
.dz-root .dtx-piece--mini { position: relative; aspect-ratio: var(--ratio, 1); width: 100%; pointer-events: none; }
.dz-root .dtx-piece--mini .dz-obj { cursor: default; }
.dz-root .dtx-block { white-space: pre; font-weight: normal; font-style: normal; letter-spacing: normal; }
.dz-root .dtx-logo { display: grid; place-items: center; }
.dz-root .dtx-logo img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.dz-root .dtx-mask { width: 100%; height: 100%; background: var(--ink); -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat; }

/* Crystal: the JDS line drawing on a white card, engravable area shaded. */
.dz-root .dtx--crystal { background: #fff; border-radius: 8px; box-shadow: 0 10px 26px rgba(1, 1, 12, .10); }
.dz-root .dtx-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.dz-root .dtx-outline path { fill: none; stroke: #111; stroke-width: 1.15px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.dz-root .dtx-outline path.dtx-region { fill: rgba(118, 0, 0, .06); stroke: rgba(118, 0, 0, .5); stroke-dasharray: 5 4; }
.dz-root .dtx-piece--mini.dtx--crystal { box-shadow: none; }

/* Plates and the clock face: the real material photo (top band, as the plugin paints it). */
.dz-root .dtx-plate { position: absolute; inset: 0; border: 2px solid #8f6a13; border-radius: 3px; box-shadow: 0 2px 5px rgba(0, 0, 0, .28), 0 14px 26px rgba(1, 1, 12, .16); }
.dz-root .dtx--plate, .dz-root .dtx--resin, .dz-root .dtx--clock { overflow: hidden; border-radius: 3px; }
.dz-root .dtx-piece--mini .dtx-plate { box-shadow: none; }

/* Product photo view */
.dz-root .dtx-photo { margin: 0; position: absolute; inset: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dz-root .dtx-photo[hidden] { display: none !important; }
.dz-root .dtx-photo img { flex: 1; min-height: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.dz-root .dtx-photo figcaption { font-size: .8rem; color: var(--dz-slate); font-weight: 700; }

/* Tiles */
.dz-root .dtx-swatch { min-height: 64px; }
.dz-root .dtx-sizeart { display: block; aspect-ratio: var(--tile-ratio, .8); position: relative; }
.dz-root .dtx-sizeart .dtx-outline { position: relative; inset: auto; height: 100%; width: auto; }
.dz-root .dz-tile:disabled { cursor: default; opacity: 1; }

/* Wording editor: one card per text block */
.dz-root .dtx-blks { display: grid; gap: 10px; }
.dz-root .dtx-blk { padding: 10px; border-radius: 8px; background: #F7F7F9; display: grid; gap: 8px; }
.dz-root .dtx-blk__head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 700; color: var(--dz-slate); }
.dz-root .dtx-blk__text { min-height: 0; resize: vertical; }
.dz-root .dtx-blk__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px; align-items: center; }
.dz-root .dtx-bad { color: var(--dz-warn) !important; font-weight: 700; }
.dz-root .dtx-editing { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 10px; border-radius: 8px; background: var(--dz-gold-wash); color: var(--dz-gold-text); font-size: .86rem; }
.dz-root .dtx-editing b { color: var(--dz-ink); }
.dz-root .dtx-editing__nav { display: inline-flex; gap: 14px; }
.dz-root .dz-link:disabled { opacity: .4; cursor: default; }

/* Order roster */
.dz-root .dtx-awards { display: grid; gap: 6px; }
.dz-root .dtx-award { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 32px; grid-template-areas: "n a q x"; gap: 8px; align-items: center; padding: 6px 6px 6px 8px; border-radius: 8px; border: 1.5px solid transparent; background: #F7F7F9; }
.dz-root .dtx-award.is-current { border-color: var(--dz-gold); background: var(--dz-gold-wash); }
.dz-root .dtx-award .dz-qty { grid-area: q; }
.dz-root .dtx-award > span:last-child:empty { grid-area: x; }
.dz-root .dtx-award__pick { grid-area: a; border: 0; background: none; padding: 4px 0; text-align: left; cursor: pointer; min-width: 0; min-height: 44px; }
.dz-root .dtx-award__pick strong { display: block; font-size: .9rem; }
.dz-root .dtx-award__pick small { display: block; font-size: .8rem; color: var(--dz-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-root .dtx-award .dz-row__x { width: 32px; height: 44px; }

/* Logo */
.dz-root .dtx-thumb { background: repeating-conic-gradient(#F1F1F4 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.dz-root .dtx-thumb img { object-fit: contain; }
.dz-root .dtx-detail { margin-top: 10px; }
.dz-root .dtx-replace, .dz-root .dtx-csv { cursor: pointer; }

@media (max-width: 899px) {
    .dz-root .dtx-piece:not(.dtx-piece--mini) { width: min(88cqw, calc(92cqh * var(--ratio, 1))); }
    .dz-root .dtx-blk__row { grid-template-columns: 1fr; }
    .dz-root .dtx-blk__row .dz-seg button { min-height: 40px; }
    .dz-root .dtx-photo { inset: 46px 12px 26px; }
}
@media (max-width: 899px) {
    .dz-root .dtx-award .dz-qty button { width: 40px; height: 44px; }
}
