/* Bordontwerper – productpagina. Huisstijl Geveldecoratie: zand #C2B59B, donker #58595B, tekst #333. */
.gdb { --gdb-sand: #c2b59b; --gdb-dark: #58595b; --gdb-text: #333333; --gdb-line: #e6e1d6; --gdb-soft: #f4f1ea; color: var(--gdb-text); margin: 0 0 18px; }
.gdb *, .gdb-modal * { box-sizing: border-box; }

/* Ontwerpblok */
.gdb-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px; margin: 0 0 22px; border: 1px solid var(--gdb-sand, #c2b59b); background: #faf8f3; }
.gdb-panel__preview { flex: 0 0 210px; max-width: 100%; }
.gdb-panel__preview svg { width: 100%; height: auto; display: block; }
.gdb-panel__body { flex: 1 1 220px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.gdb-panel__title { margin: 0; font-family: Domine, Georgia, serif; font-weight: 600; font-size: 21px; line-height: 1.3; color: #333; }
.gdb-panel__intro { margin: 0; line-height: 1.55; }
.has-design .gdb-panel { border: 2px solid #58595b; }
.gdb-slot .gdb-panel { margin-top: 16px; }

/* Knoppen */
.gdb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border: 1px solid #58595b; border-radius: 0; font: 500 15px/1.2 Roboto, Arial, sans-serif; cursor: pointer; text-decoration: none; }
.gdb-btn--primary { background: #58595b; color: #fff; }
.gdb-btn--primary:hover, .gdb-btn--primary:focus-visible { background: #3f4042; color: #fff; }
.gdb-btn--primary:disabled { background: #a7a7a9; border-color: #a7a7a9; cursor: not-allowed; }
.gdb-btn--ghost { background: #fff; color: #333; }
.gdb-btn--ghost:hover { background: #f4f1ea; }
.gdb-btn--small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.gdb-btn:focus-visible, .gdb-seg__btn:focus-visible, .gdb-font:focus-visible, .gdb-color:focus-visible, .gdb-x:focus-visible { outline: 2px solid #c2b59b; outline-offset: 2px; }

/* Velden op de pagina */
.gdb-fields { display: flex; flex-direction: column; gap: 14px; transition: background-color .6s; }
.gdb-fields.is-filled { background: #f4f1ea; }
.gdb-field { margin: 0; padding: 0; border: 0; }
.gdb-field legend, .gdb-field > label { display: block; font-weight: 600; font-size: 15px; line-height: 1.4; color: #333; margin: 0 0 8px; padding: 0; }
.gdb-field input[type=text], .gdb-field textarea { width: 100%; max-width: 420px; min-height: 42px; padding: 8px 10px; border: 1px solid #c9c3b6; font: inherit; }
.gdb-field--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.gdb-field--grid legend { grid-column: 1 / -1; }
.gdb-choice { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-weight: 400; font-size: 15px; line-height: 1.4; color: #333; cursor: pointer; }
.gdb-choice input { margin: 0; flex: none; accent-color: #58595b; }
.gdb-choice__price { color: #7a7b7d; font-size: 14px; white-space: nowrap; }
.gdb-choice--font .gdb-choice__label { font-size: 19px; line-height: 1.3; }
.gdb-swatch { display: inline-block; width: 18px; height: 18px; border: 1px solid rgba(0,0,0,.15); }
.gdb-help { margin: 4px 0 8px; font-size: 14px; color: #58595b; }
.gdb-help--warn { display: block; margin: 4px 0 0; color: #a3412a; }
.gdb-help[hidden] { display: none !important; }
.gdb-total { margin: 4px 0 0; font-family: Domine, Georgia, serif; font-size: 19px; font-weight: 600; }

/* Pop-up */
.gdb-noscroll, .gdb-noscroll body { overflow: hidden !important; }
.gdb-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(40, 38, 34, .55); font-family: Hind, Arial, sans-serif; font-size: 15px; color: #333; }
.gdb-modal[hidden] { display: none; }
.gdb-modal__box { width: 100%; max-width: 1180px; height: 100%; max-height: 840px; background: #fff; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.gdb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid #e6e1d6; }
.gdb-head h2 { margin: 0; font-family: Domine, Georgia, serif; font-weight: 600; font-size: 21px; color: #333; display: inline; }
.gdb-head__sub { margin-left: 12px; color: #58595b; }
.gdb-x { width: 44px; height: 44px; border: 0; background: none; color: #333; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.gdb-main { flex: 1 1 auto; min-height: 0; display: flex; }
.gdb-stage { flex: 0 0 56%; background: #f4f1ea; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; min-width: 0; }
.gdb-stage__board { width: 100%; max-width: 620px; flex: 0 1 auto; }
.gdb-stage__board svg { width: 100%; height: auto; max-height: 52vh; display: block; touch-action: none; user-select: none; }
.gdb-stage__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.gdb-stage__tools { display: flex; align-items: center; gap: 6px; }
.gdb-btn--icon { width: 36px; padding: 0 !important; justify-content: center; }
.gdb-btn--icon svg { display: block; margin: 0 auto; }
.gdb-btn--icon:disabled { opacity: .35; cursor: default; }
.gdb-hint { font-size: 14px; color: #58595b; }
.gdb-status { margin: 0; min-height: 1.4em; font-size: 14px; color: #8a3b12; text-align: center; max-width: 520px; }
.gdb-item { cursor: grab; outline: none; }
.gdb-item.is-drag { cursor: grabbing; }
.gdb-hit { fill: transparent; stroke: transparent; stroke-width: .6; stroke-dasharray: 2 1.5; vector-effect: non-scaling-stroke; }
.gdb-item:hover .gdb-hit, .gdb-item:focus .gdb-hit, .gdb-item.is-drag .gdb-hit { stroke: rgba(241, 233, 214, .85); stroke-width: 1px; }
.gdb-item.is-outside .gdb-hit { stroke: #e0623a; stroke-width: 1.5px; }
.gdb-controls { flex: 1 1 auto; min-width: 0; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 22px; }
.gdb-sec { display: flex; flex-direction: column; gap: 10px; }
.gdb-sec__title { margin: 0; font-family: Domine, Georgia, serif; font-weight: 600; font-size: 16px; color: #333; }
.gdb-line { display: flex; flex-direction: column; gap: 4px; }
.gdb-line label { font-weight: 600; }
.gdb-input { height: 44px; padding: 0 12px; border: 1px solid #c9c3b6; font: 16px Hind, Arial, sans-serif; width: 100%; border-radius: 0; }
.gdb-input--short { width: 140px; }
.gdb-input:focus { outline: 2px solid #c2b59b; outline-offset: 0; }
.gdb-size { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #58595b; }
.gdb-size input { flex: 1; accent-color: #58595b; }
.gdb-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.gdb-seg__btn { min-height: 44px; padding: 0 14px; border: 1px solid #c9c3b6; background: #fff; color: #333; font: 14px Hind, Arial, sans-serif; cursor: pointer; border-radius: 0; }
.gdb-seg__btn[aria-checked="true"] { background: #58595b; border-color: #58595b; color: #fff; }
.gdb-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gdb-font { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 64px; padding: 8px 12px; border: 1px solid #c9c3b6; background: #fff; color: #333; cursor: pointer; text-align: left; border-radius: 0; }
.gdb-font[aria-checked="true"] { border: 2px solid #58595b; padding: 7px 11px; }
.gdb-font__sample { display: block; height: 26px; width: 100%; }
.gdb-font__sample svg { height: 26px; width: auto; max-width: 100%; display: block; }
.gdb-font__name { font-size: 12px; color: #58595b; }
.gdb-colors { display: flex; flex-wrap: wrap; gap: 12px; }
.gdb-color { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: 6px 0; border: 0; background: none; cursor: pointer; color: #333; }
.gdb-color__dot { width: 46px; height: 46px; outline: 2px solid transparent; outline-offset: 3px; }
.gdb-color[aria-checked="true"] .gdb-color__dot { outline-color: #58595b; }
.gdb-color__name { font-size: 12px; text-align: center; line-height: 1.3; }
.gdb-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.gdb-check input { width: 18px; height: 18px; accent-color: #58595b; }
.gdb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 24px; border-top: 1px solid #e6e1d6; }
.gdb-foot__info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.gdb-foot__label { font-size: 13px; color: #58595b; width: 100%; }
.gdb-foot__price { font-family: Domine, Georgia, serif; font-size: 22px; }
.gdb-foot__note { font-size: 13px; color: #58595b; }
.gdb-foot__btns { display: flex; gap: 10px; }
.gdb-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Telefoon en tablet */
@media (max-width: 860px) {
	.gdb-modal { padding: 0; }
	.gdb-modal__box { max-height: none; height: 100%; }
	.gdb-head { padding: 8px 8px 8px 16px; }
	.gdb-head h2 { font-size: 18px; }
	.gdb-head__sub { display: none; }
	.gdb-main { flex-direction: column; overflow-y: auto; }
	.gdb-stage { flex: 0 0 auto; position: sticky; top: 0; z-index: 2; padding: 12px 16px; gap: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
	.gdb-stage__board svg { max-height: 30vh; }
	.gdb-hint { font-size: 12px; }
	.gdb-controls { overflow: visible; padding: 16px; }
	.gdb-foot { padding: 10px 16px; }
	.gdb-foot__note { display: none; }
	.gdb-foot__btns .gdb-btn--ghost { display: none; }
	.gdb-panel { padding: 18px; gap: 16px; }
	.gdb-foot { flex-wrap: nowrap; }
	.gdb-foot__label { display: none; }
	.gdb-foot__price { font-size: 19px; }
	.gdb-stage { gap: 6px; padding: 8px 12px; }
	.gdb-stage__board svg { max-height: 24vh; }
	.gdb-stage__bar { flex-wrap: nowrap; gap: 8px; }
	.gdb-modal button.gdb-btn--small { min-height: 34px; padding: 0 10px; font-size: 12px; }
	.gdb-status { font-size: 12px; min-height: 0; }
	.gdb-panel__preview { flex-basis: 100%; max-width: 280px; }
}
@media (max-width: 480px) {
	.gdb-fonts { grid-template-columns: 1fr 1fr; }
	.gdb-field--grid { grid-template-columns: 1fr; }
}

/* Bescherming tegen stijlen van het thema (knoppen, koppen en velden). */
.gdb .gdb-panel__title, .gdb-modal h2, .gdb-modal h3 { letter-spacing: normal !important; text-transform: none !important; }
.gdb .gdb-panel__title { font-size: 21px !important; line-height: 1.3 !important; margin: 0 !important; }
.gdb .gdb-field legend, .gdb .gdb-field > label { font-weight: 600 !important; font-size: 15px !important; line-height: 1.4 !important; text-transform: none !important; letter-spacing: normal !important; }
.gdb label.gdb-choice { font-weight: 400 !important; font-size: 15px !important; line-height: 1.4 !important; text-transform: none !important; letter-spacing: normal !important; }
.gdb label.gdb-choice--font .gdb-choice__label { font-size: 19px !important; line-height: 1.3 !important; }
.gdb-modal h2 { font-size: 21px !important; line-height: 1.3 !important; margin: 0 !important; }
.gdb-modal h3 { font-size: 16px !important; line-height: 1.3 !important; margin: 0 !important; }
.gdb button.gdb-btn, .gdb-modal button.gdb-btn, .gdb-modal button.gdb-seg__btn, .gdb-modal button.gdb-font, .gdb-modal button.gdb-color, .gdb-modal button.gdb-x {
	border-radius: 0 !important; box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important; text-shadow: none !important; transform: none !important; width: auto;
}
.gdb-modal button.gdb-btn--icon { width: 36px !important; min-width: 36px !important; padding: 0 !important; }
.gdb button.gdb-btn--primary, .gdb-modal button.gdb-btn--primary { background: #58595b !important; color: #fff !important; border: 1px solid #58595b !important; }
.gdb button.gdb-btn--primary:disabled, .gdb-modal button.gdb-btn--primary:disabled { background: #a7a7a9 !important; border-color: #a7a7a9 !important; }
.gdb-modal button.gdb-btn--ghost { background: #fff !important; color: #333 !important; border: 1px solid #58595b !important; }
.gdb-modal button.gdb-seg__btn { background: #fff !important; color: #333 !important; border: 1px solid #c9c3b6 !important; }
.gdb-modal button.gdb-seg__btn[aria-checked="true"] { background: #58595b !important; color: #fff !important; border-color: #58595b !important; }
.gdb-modal button.gdb-font { background: #fff !important; color: #333 !important; border: 1px solid #c9c3b6 !important; }
.gdb-modal button.gdb-font[aria-checked="true"] { border: 2px solid #58595b !important; }
.gdb-modal button.gdb-color, .gdb-modal button.gdb-x { background: none !important; border: 0 !important; color: #333 !important; }
.gdb-modal button.gdb-color { display: flex !important; flex-direction: column !important; align-items: center !important; width: 104px !important; padding: 6px 0 !important; margin: 0 !important; }
.gdb-modal .gdb-color__dot { display: block !important; flex: none !important; }
.gdb-modal .gdb-color__name { display: block !important; width: 100% !important; white-space: normal !important; overflow-wrap: break-word !important; }
.gdb-modal input.gdb-input, .gdb input[type=text], .gdb textarea { background: #fff !important; color: #333 !important; border: 1px solid #c9c3b6 !important; border-radius: 0 !important; box-shadow: none !important; }
.gdb-modal input[type=range] { background: none !important; border: 0 !important; padding: 0 !important; height: 24px; }
.gdb-modal p, .gdb p { margin-bottom: 0; }

/* Aantal en "In winkelwagen" altijd onder het ontwerpblok, links uitgelijnd.
   (Andere plugins, zoals de adviesprijs, zetten soms een zwevend blok in het formulier.) */
form.cart .gdb ~ .e-atc-qty-button-holder,
form.cart .gdb ~ div.quantity,
form.cart .gdb ~ .single_add_to_cart_button {
	clear: both;
}
form.cart .gdb ~ .e-atc-qty-button-holder {
	width: 100%;
	justify-content: flex-start;
}
/* Oude ontwerptool (tshirtecommerce) laat een leeg blok van 175px achter boven de knop: inklappen bij producten met de ontwerper. */
form.cart .gdb ~ .woocommerce_msrp { min-height: 0 !important; padding: 0 !important; margin: 0 !important; }
form.cart .gdb ~ .woocommerce_msrp .designer-attributes, form.cart .gdb ~ .woocommerce_msrp .e-custom-product { display: none !important; }
form.cart .gdb ~ br { display: none; }
/* Uitleg bij een extra keuze (bijv. gebogen belettering): alleen zichtbaar als die is aangevinkt. */
.gdb-choice, .gdb-check { flex-wrap: wrap; }
.gdb-extra-note { display: none; flex-basis: 100%; padding-left: 28px; font-size: 14px; color: #7a7b7d; }
input:checked ~ .gdb-extra-note { display: block; }
