.cid-engraving { min-width:0; width:100%; flex:0 0 100%; order:initial; margin:24px 0 8px; padding:0; border:0; color:var(--cid-ink,#1a2028); }
.cid-engraving legend { padding:0; margin:0 0 14px; font-family:inherit; font-size:17px; line-height:1.4; font-weight:600; }
.cid-engraving__choices { display:grid; grid-template-columns:1fr; gap:8px; }
.cid-engraving__choices label { display:flex; align-items:center; gap:10px; min-height:48px; padding:12px 14px; border:1px solid #dce2e9; border-radius:8px; background:#fff; font-size:14px; cursor:pointer; }
.cid-engraving__choices label:has(input:checked) { border-color:#8995a5; background:#f7f8fa; }
.cid-engraving input[type=radio] { accent-color:#263444; margin:0; width:16px; height:16px; flex:0 0 16px; }
.cid-engraving__choices label > span { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; width:100%; }
.cid-engraving__choices strong { margin-left:auto; white-space:nowrap; font-weight:600; }
.cid-engraving__field { margin-top:16px; }
.cid-engraving:not(:has(input[value=custom]:checked)) .cid-engraving__field { display:none; }
.cid-engraving__field > label { display:block; font-size:14px; font-weight:600; margin-bottom:8px; }
.cid-engraving input[type=text] { display:block; box-sizing:border-box; width:100%; min-height:48px; padding:12px 14px; border:1px solid #aab4bf; border-radius:6px; background:#fff; color:inherit; font-family:inherit; font-size:16px; line-height:1.4; font-weight:400; }
.cid-engraving__help { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; margin-top:8px; color:var(--cid-copy,#5e6672); font-size:12px; line-height:1.5; }
.cid-engraving__help output { white-space:nowrap; }
.cid-engraving .cid-engraving__note { margin:10px 0 0; font-size:12px; line-height:1.6; color:var(--cid-copy,#5e6672); }
.cid-engraving .cid-engraving__error { margin:6px 0 0; font-size:12px; line-height:1.5; color:#a12f2f; }
.cid-engraving__error:empty { display:none; }
.cid-engraving input:focus-visible { outline:2px solid #254f3d; outline-offset:3px; }
.cid-engraving-preview { margin:0; border-radius:10px; background:#f6f7f9; overflow:hidden; }
.cid-engraving-preview[hidden],.cid-product-gallery-column.has-engraving-preview .woocommerce-product-gallery { display:none!important; }
.cid-engraving-preview__image { width:100%; max-width:100%; aspect-ratio:1; container-type:inline-size; position:relative; margin:auto; }
.cid-engraving-preview__image > img { display:block; width:100%; height:100%; object-fit:contain; }
.cid-engraving-preview__placement { position:absolute; top:73.5%; left:50%; width:30%; transform:translate(-50%,-50%); display:flex; justify-content:center; text-align:center; line-height:1; }
.cid-engraving-preview__text { display:inline-block; white-space:pre; font-family:inherit; font-size:4cqw; flex-shrink:0; font-weight:700; font-variation-settings:'opsz' 18,'wght' 700; font-optical-sizing:none; color:#2b2118; text-shadow:0 .4px 0 rgba(255,255,255,.36); transform:scale(var(--cid-engraving-scale,1)); transform-origin:center; }
.cid-engraving-preview figcaption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 12px; padding:12px 16px; background:#fff; color:var(--cid-copy,#5e6672); font-size:12px; line-height:1.5; }
.cid-engraving-preview figcaption span { font-size:11px; }
@media(min-width:901px) {
 .cid-engraving-preview { position:sticky; top:calc(88px + var(--wp-admin--admin-bar--height,0px)); }
 .cid-engraving-preview__image { max-width:max(240px,calc(100dvh - 160px - var(--wp-admin--admin-bar--height,0px))); }
}
@media(max-width:480px) {
 .cid-engraving legend { font-size:16px; }
 .cid-engraving__choices label { padding:12px; font-size:13px; }
}
@media(max-width:900px) {
 .cid-engraving__field > .cid-engraving-preview { position:static; width:100%; margin:16px 0 0; }
}


