/* Kentekensticker-generator */

/* Preview over de volle breedte, het ontwerpvak eronder. */
.vbp-kt-config main .wp-block-columns:has(.vbp-kt-preview) { flex-direction: column; }
.vbp-kt-config main .wp-block-columns:has(.vbp-kt-preview) > .wp-block-column { flex-basis: 100% !important; width: 100%; }

.vbp-kt-preview { display: grid; gap: 20px; padding: 28px; border-radius: 16px; background: #E6F2F0; }
.vbp-kt-preview svg { display: block; width: 100%; height: auto; }
.vbp-kt-preview__strip svg { border-radius: 4px; box-shadow: 0 6px 16px rgba(15, 23, 42, .18); }
.vbp-kt-preview__plate { position: relative; max-width: 760px; width: 100%; margin: 0 auto; }
.vbp-kt-preview__plate img { display: block; width: 100%; height: auto; }
.vbp-kt-preview__overlay { position: absolute; left: 5.167%; width: 89.667%; top: 84.85%; }
.vbp-kt-preview__note { margin: 0; text-align: center; font-size: .875rem; color: #64748B; }

.vbp-kt-setprice { font-size: .7em; font-weight: 600; color: #2D9D8D; }

.vbp-kt-form { display: grid; gap: 22px; margin: 8px 0 24px; }
.vbp-kt-form > * { max-width: 680px; }
/* Tekstvak: de live strook eronder loopt over de volle breedte. */
.vbp-kt-form > .vbp-kt-field:first-child { max-width: none; }
.vbp-kt-form > .vbp-kt-field:first-child > :not(.vbp-kt-inline) { max-width: 680px; }
.vbp-kt-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.vbp-kt-label { display: block; margin-bottom: 8px; padding: 0; font-weight: 700; font-family: var(--wp--preset--font-family--outfit, inherit); }
.vbp-kt-form input[type="text"] { width: 100%; padding: 12px 14px; font-size: 1.05rem; border: 1px solid #CBD5E1; border-radius: 10px; background: #fff; }
.vbp-kt-form input[type="text"]:focus { outline: 2px solid #2D9D8D; outline-offset: 1px; border-color: #2D9D8D; }
.vbp-kt-help { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: .8125rem; color: #64748B; }
.vbp-kt-error { color: #B91C1C; font-weight: 600; }
.vbp-kt-inline { margin-top: 12px; }
.vbp-kt-inline svg { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 4px 12px rgba(15, 23, 42, .15); }
.vbp-kt-check {display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .9375rem; cursor: pointer; }

.vbp-kt-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.vbp-kt-choice { position: relative; cursor: pointer; }
.vbp-kt-choice input { position: absolute; opacity: 0; pointer-events: none; }
.vbp-kt-choice > span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #E2E8F0; border-radius: 999px; background: #fff; font-size: .9375rem; transition: border-color .15s ease, background .15s ease; }
.vbp-kt-choice:hover > span { border-color: #2D9D8D; }
.vbp-kt-choice input:checked + span { border-color: #2D9D8D; background: #EFF6F4; box-shadow: inset 0 0 0 1px #2D9D8D; font-weight: 600; }
.vbp-kt-choice input:focus-visible + span { outline: 2px solid #2D9D8D; outline-offset: 2px; }
.vbp-kt-mini { display: inline-block; line-height: 0; }
.vbp-kt-choices--icons .vbp-kt-mini svg { height: 14px; width: auto; border-radius: 2px; }
.vbp-kt-choices--icons .vbp-kt-mini[data-icon="vlag"] svg { box-shadow: 0 0 0 1px rgba(15, 23, 42, .15); }
.vbp-kt-choices--icons .vbp-kt-choice > span { padding: 7px 14px; }
.vbp-kt-select { position: relative; max-width: 320px; margin-top: 10px; }
.vbp-kt-select[hidden] { display: none; }
.vbp-kt-select select { width: 100%; padding: 11px 40px 11px 52px; font-size: 1rem; border: 1px solid #CBD5E1; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748B' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; -webkit-appearance: none; cursor: pointer; color: inherit; }
.vbp-kt-select select:focus { outline: 2px solid #2D9D8D; outline-offset: 1px; border-color: #2D9D8D; }
.vbp-kt-select .vbp-kt-mini { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); line-height: 0; pointer-events: none; }
.vbp-kt-select .vbp-kt-mini svg { height: 18px; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .15); }
.vbp-kt-swatch {width: 16px; height: 16px; border-radius: 999px; border: 1px solid #CBD5E1; }
.vbp-kt-small { margin: 0; font-size: .8125rem; color: #64748B; }

.vbp-kt-config form.cart button[disabled] { opacity: .5; cursor: not-allowed; }

@media (max-width: 600px) {
	.vbp-kt-preview { padding: 16px; gap: 14px; }
}

/* Vergroot (alleen mobiel en tablet) */
.vbp-kt-zoom-btn { display: none; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 14px; border: 1px solid #CBD5E1; border-radius: 999px; background: #fff; color: #0F172A; font-size: .875rem; font-weight: 600; cursor: pointer; }
.vbp-kt-zoom-btn svg { color: #2D9D8D; }
@media (max-width: 1023px) {
	.vbp-kt-zoom-btn { display: inline-flex; }
	.vbp-kt-inline { cursor: zoom-in; }
}
.vbp-kt-zoom-open, .vbp-kt-zoom-open body { overflow: hidden; }
.vbp-kt-zoom { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; padding: 16px; background: rgba(15, 23, 42, .6); animation: vbp-kt-fade .2s ease both; }
.vbp-kt-zoom__panel { position: relative; width: 100%; padding: 22px 0 16px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); }
.vbp-kt-zoom__title { margin: 0 64px 14px 20px; font-family: var(--wp--preset--font-family--outfit, inherit); font-size: 1.15rem; font-weight: 700; color: #0F172A; }
.vbp-kt-zoom__close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: #EFF6F4; color: #258174; cursor: pointer; }
.vbp-kt-zoom__scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; padding: 6px 20px 14px; background: #E6F2F0; }
.vbp-kt-zoom__scroll:focus-visible { outline: 2px solid #2D9D8D; outline-offset: -2px; }
.vbp-kt-zoom__scroll svg { display: block; height: 72px; width: auto; max-width: none; border-radius: 6px; box-shadow: 0 6px 16px rgba(15, 23, 42, .2); }
.vbp-kt-zoom__hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 20px 0; font-size: .875rem; color: #64748B; }
.vbp-kt-zoom__hint::before, .vbp-kt-zoom__hint::after { content: "←"; color: #2D9D8D; font-weight: 700; }
.vbp-kt-zoom__hint::after { content: "→"; }
@keyframes vbp-kt-fade { from { opacity: 0; } to { opacity: 1; } }
