.vlc {
    margin: 1.5rem 0;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #1d2327;
}
.vlc * { box-sizing: border-box; }
.vlc h2 { margin-top: 0; }
.vlc-grid {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(300px, 1fr);
    gap: 2rem;
}
.vlc-controls-only .vlc-grid { grid-template-columns: 1fr; }
.vlc-controls > label,
.vlc fieldset { display: block; margin: 0 0 1rem; }
.vlc label { font-weight: 600; }
.vlc input[type="text"],
.vlc input[type="number"],
.vlc textarea,
.vlc select,
.vlc-controls > label input {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: .35rem;
    padding: .55rem .7rem;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    background: #fff;
}
.vlc textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.vlc label > small,
.vlc-dimensions > small {
    display: block;
    margin-top: .35rem;
    color: #646970;
    font-weight: 400;
    line-height: 1.35;
}
.vlc fieldset { padding: 0; border: 0; }
.vlc legend { margin-bottom: .5rem; font-weight: 700; }
.vlc-inline { display: inline-flex; align-items: center; gap: .35rem; margin-right: 1rem; }
.vlc-font-styles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    margin: -.35rem 0 1rem;
}
.vlc-font-styles small { display: block; width: 100%; color: #646970; }
.vlc-font-styles input:disabled + span { opacity: .55; }
.vlc-swatches { display: flex; flex-wrap: wrap; gap: .7rem; }
.vlc-swatches label { display: grid; justify-items: center; gap: .2rem; cursor: pointer; }
.vlc-swatches input { position: absolute; opacity: 0; }
.vlc-swatches span {
    width: 36px;
    height: 36px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.vlc-swatches input:checked + span { outline: 3px solid #2271b1; outline-offset: 2px; }
.vlc-dimensions { padding-top: .15rem; }
.vlc-aspect-lock {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: max-content;
    margin: 0 0 .65rem;
    cursor: pointer;
}
.vlc-aspect-lock input { width: 1.1rem; height: 1.1rem; margin: 0; }
.vlc-unlocked .vlc-aspect-lock span { color: #b45309; }
.vlc-size { display: grid; grid-template-columns: 1fr 1fr .65fr; gap: .6rem; }
.vlc-preview-wrap { min-width: 0; }
.vlc-preview {
    display: grid;
    place-items: center;
    min-height: 320px;
    padding: 2rem;
    overflow: hidden;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    background: repeating-conic-gradient(#f6f7f7 0 25%, #fff 0 50%) 0 / 20px 20px;
}
.vlc-preview svg { display: block; width: 100%; height: auto; max-height: 440px; overflow: visible; }
.vlc-measurements line { stroke: #111827; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.vlc-measurements polygon { fill: #111827; }
.vlc-measurements text {
    fill: #111827;
    stroke: #fff;
    paint-order: stroke fill;
    stroke-linejoin: round;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 750;
    text-anchor: middle;
    dominant-baseline: middle;
    letter-spacing: .025em;
}
.vlc-measurements #vlc-measure-box {
    fill: rgba(255, 255, 255, .42);
    stroke: #2563eb;
    stroke-width: 2.5;
    stroke-dasharray: 7 5;
    vector-effect: non-scaling-stroke;
}
.vlc-preview-note { margin: .75rem 0 .25rem; color: #4b5563; font-size: .88rem; line-height: 1.4; }
.vlc-preview-note span {
    display: inline-block;
    width: .9rem;
    height: .9rem;
    margin-right: .4rem;
    border: 2px dashed #2563eb;
    vertical-align: -.1rem;
}
.vlc-gallery-host { position: sticky; top: 2rem; }
.vlc-gallery-host .vlc-preview-wrap { width: 100%; }
.vlc-gallery-host .vlc-preview { min-height: 520px; padding: clamp(1.25rem, 4vw, 3rem); }
.vlc-preview-wrap dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1.5rem;
    margin: 1rem 0;
}
.vlc-preview-wrap dl div { display: grid; grid-template-columns: auto 1fr; gap: .4rem; }
.vlc-preview-wrap dt { font-weight: 700; }
.vlc-preview-wrap dd { margin: 0; overflow-wrap: anywhere; }
.vlc-price { display: block; color: #166534; font-size: 1.65rem; }
.vlc-error { color: #b32d2e; font-weight: 600; }
.vlc-contact {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr);
    gap: clamp(2rem, 6vw, 5rem);
    margin: clamp(3rem, 8vw, 7rem) 0 2rem;
    padding: clamp(1.5rem, 5vw, 4rem);
    border-radius: 18px;
    background: #111827;
    color: #fff;
}
.vlc-contact h2 { margin: 0 0 1rem; color: inherit; font-size: clamp(2rem, 4vw, 3.4rem); }
.vlc-contact p { line-height: 1.65; }
.vlc-contact a { color: #93c5fd; }
.vlc-contact-kicker { margin: 0 0 .45rem; color: #93c5fd; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.vlc-contact-form { display: grid; gap: 1rem; }
.vlc-contact-form label { display: grid; gap: .4rem; font-weight: 650; }
.vlc-contact-form label span { font-size: .82em; font-weight: 400; opacity: .75; }
.vlc-contact-form input,
.vlc-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: .8rem .9rem;
    border: 1px solid #64748b;
    border-radius: 7px;
    background: #fff;
    color: #111827;
    font: inherit;
}
.vlc-contact-form textarea { resize: vertical; }
.vlc-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vlc-contact-form button {
    justify-self: start;
    padding: .85rem 1.35rem;
    border: 0;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}
.vlc-contact-form button:hover { background: #1d4ed8; }
.vlc-contact-notice { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 7px; }
.vlc-contact-notice-success { background: #14532d; }
.vlc-contact-notice-error { background: #7f1d1d; }
.vlc-contact-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.vlc .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 760px) {
    .vlc-grid { grid-template-columns: 1fr; }
    .vlc-size { grid-template-columns: 1fr 1fr; }
    .vlc-size label:last-child { grid-column: 1 / -1; }
    .vlc-gallery-host { position: static; }
    .vlc-gallery-host .vlc-preview,
    .vlc-preview { min-height: 300px; padding: 1rem; }
    .vlc-preview-wrap dl { grid-template-columns: 1fr 1fr; }
    .vlc-contact { grid-template-columns: 1fr; }
    .vlc-contact-row { grid-template-columns: 1fr; }
}
