/* Chat rechtsonder op de hele site */
.sd-chat { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 9990; font-family: var(--wp--preset--font-family--nunito, inherit); }
.sd-chat-btn { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .8rem 1.15rem; border: 2px solid var(--sd-gold, #D4A23A); border-radius: 99px; background: var(--sd-night, #0F1630); color: #fff; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; box-shadow: 0 10px 28px -8px rgba(15,22,48,.55); transition: transform .15s ease; }
.sd-chat-btn:hover { transform: translateY(-2px); }
.sd-chat-btn svg { color: var(--sd-gold-light, #F2DA9B); }
.sd-chat.is-open .sd-chat-btn { display: none; }
.sd-chat-badge { position: absolute; top: -.45rem; right: -.35rem; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; box-sizing: border-box; display: grid; place-items: center; border-radius: 99px; background: var(--wp--preset--color--ruby, #9B1C31); color: #fff; font-size: .75rem; font-weight: 900; }
.sd-chat-badge[hidden] { display: none; }
.sd-chat-badge:not([hidden]) { animation: sd-chat-pulse 1.6s ease-out 3; }
@keyframes sd-chat-pulse { 0% { box-shadow: 0 0 0 0 rgba(155,28,49,.55); } 100% { box-shadow: 0 0 0 12px rgba(155,28,49,0); } }
.sd-chat-tease { position: absolute; right: 0; bottom: calc(100% + .6rem); display: flex; flex-direction: column; gap: .15rem; width: max-content; max-width: min(280px, calc(100vw - 2rem)); padding: .7rem .9rem; border: 1px solid #E1E5EE; border-radius: 14px 14px 4px 14px; background: #fff; color: var(--sd-night, #0F1630); font: inherit; font-size: .88rem; line-height: 1.4; text-align: left; cursor: pointer; box-shadow: 0 14px 34px -12px rgba(15,22,48,.4); animation: sd-chat-in .25s ease-out; }
.sd-chat-tease strong { font-size: .78rem; color: var(--wp--preset--color--accent-4, #6B7280); }
.sd-chat-tease[hidden], .sd-chat.is-open .sd-chat-tease { display: none; }
@keyframes sd-chat-in { from { opacity: 0; transform: translateY(6px); } }
.sd-chat-sys { align-self: center; text-align: center; }
.sd-chat-sys span { display: inline-block; padding: .25rem .7rem; border-radius: 99px; background: #E1E5EE; font-size: .74rem; font-weight: 700; color: #4B5563; }

.sd-chat-panel { display: flex; flex-direction: column; width: min(370px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 2.2rem)); border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #E1E5EE; box-shadow: 0 24px 60px -18px rgba(15,22,48,.5); }
.sd-chat-panel[hidden] { display: none; }
.sd-chat-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .95rem 1rem .95rem 1.15rem; background-color: var(--sd-night, #0F1630); background-image: var(--sd-stars); color: #fff; }
.sd-chat-head strong { display: block; font-size: 1.02rem; color: var(--sd-gold-light, #F2DA9B); }
.sd-chat-status { display: flex; align-items: center; gap: .4rem; margin-top: .15rem; font-size: .8rem; color: rgba(244,246,250,.78); }
.sd-chat-status i { width: .5rem; height: .5rem; border-radius: 50%; background: rgba(244,246,250,.45); }
.sd-chat-status i.is-on { background: #3DD68C; box-shadow: 0 0 0 3px rgba(61,214,140,.2); }
.sd-chat-close { width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sd-chat-close:hover { background: rgba(255,255,255,.2); }

.sd-chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .55rem; background: #F4F6FA; }
.sd-chat-msg { max-width: 85%; }
.sd-chat-msg p { margin: 0; padding: .6rem .8rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.sd-chat-msg time { display: block; margin-top: .2rem; font-size: .7rem; color: var(--wp--preset--color--accent-4, #6B7280); }
.sd-chat-msg.is-shop { align-self: flex-start; }
.sd-chat-msg.is-shop p { background: #fff; border: 1px solid #E1E5EE; border-bottom-left-radius: 4px; color: var(--sd-night, #0F1630); }
.sd-chat-msg.is-me { align-self: flex-end; text-align: right; }
.sd-chat-msg.is-me p { background: var(--sd-night, #0F1630); color: #fff; border-bottom-right-radius: 4px; text-align: left; }
.sd-chat-note { margin: .3rem 0 0; padding: .55rem .7rem; border-left: 3px solid var(--sd-gold, #D4A23A); border-radius: 0 8px 8px 0; background: #fff; font-size: .8rem; line-height: 1.4; color: var(--wp--preset--color--accent-4, #6B7280); }

.sd-chat-form { padding: .7rem .8rem .8rem; border-top: 1px solid #E1E5EE; background: #fff; }
.sd-chat-two { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-bottom: .45rem; }
.sd-chat-form input[type=text], .sd-chat-form input[type=email], .sd-chat-form textarea { width: 100%; box-sizing: border-box; padding: .55rem .7rem; border: 1px solid #D5DAE5; border-radius: 10px; font: inherit; font-size: .9rem; background: #fff; color: inherit; }
.sd-chat-form textarea { resize: none; max-height: 140px; }
.sd-chat-form :is(input, textarea):focus { outline: none; border-color: var(--sd-gold, #D4A23A); box-shadow: 0 0 0 3px rgba(212,162,58,.2); }
.sd-chat-row { display: flex; gap: .45rem; align-items: flex-end; }
.sd-chat-send { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border: 0; border-radius: 50%; background: var(--sd-gold, #D4A23A); color: var(--sd-night, #0F1630); cursor: pointer; }
.sd-chat-send:hover { filter: brightness(1.06); }
.sd-chat-small { margin: .45rem 0 0; font-size: .72rem; color: var(--wp--preset--color--accent-4, #6B7280); }
.sd-chat-small a { color: inherit; }
.sd-chat-error { margin: .4rem 0 0; font-size: .8rem; font-weight: 700; color: var(--wp--preset--color--ruby, #9B1C31); }
.sd-chat-error:empty { display: none; }
.sd-ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
	.sd-chat { right: .75rem; bottom: .75rem; }
	.sd-chat-btn { padding: .75rem; }
	.sd-chat-btn-txt { display: none; }
	/* Op een telefoon: het venster vult het scherm. */
	.sd-chat.is-open { inset: 0; }
	.sd-chat-panel { width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
	.sd-chat-form textarea, .sd-chat-form input { font-size: 16px !important; } /* Geen inzoomen op iOS */
}
@media print { .sd-chat { display: none; } }

/* Contactpagina [sd_contact] */
.sd-ct { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; margin-top: 1.2rem; }
.sd-ct-form, .sd-ct-done { padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 16px; background: #fff; border: 1px solid var(--wp--preset--color--accent-6, #E1E5EE); }
.sd-ct-form { display: flex; flex-direction: column; gap: .9rem; }
.sd-ct-form[hidden], .sd-ct-done[hidden] { display: none; }
.sd-ct-form h2, .sd-ct-done h2 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.sd-ct-two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.sd-ct-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 800; }
.sd-ct-form label small { font-weight: 600; color: var(--wp--preset--color--accent-4, #6B7280); }
.sd-ct-form :is(input[type=text], input[type=email], select, textarea) { box-sizing: border-box; width: 100%; min-height: 44px; padding: .55rem .75rem; border: 1px solid #D5DAE5; border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: inherit; }
.sd-ct-form :is(input, select, textarea):focus { outline: none; border-color: var(--sd-gold, #D4A23A); box-shadow: 0 0 0 3px rgba(212,162,58,.2); }
.sd-ct-form .wp-element-button { align-self: flex-start; background: var(--sd-gold) !important; color: var(--sd-night) !important; font-weight: 800; }
.sd-ct-error { margin: 0; color: var(--wp--preset--color--ruby, #9B1C31); font-weight: 700; }
.sd-ct-error:empty { display: none; }
.sd-ct-small { margin: 0; font-size: .78rem; color: var(--wp--preset--color--accent-4, #6B7280); }
.sd-ct-done { text-align: center; padding-block: 2.4rem; }
.sd-ct-done p { max-width: 46ch; margin: .6rem auto 0; }
.sd-ct-check { display: inline-grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .8rem; border-radius: 50%; background: var(--sd-gold, #D4A23A); color: var(--sd-night, #0F1630); font-size: 1.5rem; font-weight: 900; }
.sd-ct-side { display: grid; gap: 1rem; }
.sd-ct-card { padding: 1.3rem; border-radius: 16px; background-color: var(--sd-night, #0F1630); background-image: var(--sd-stars); color: rgba(244,246,250,.86); }
.sd-ct-card h3 { margin: 0 0 .4rem; color: var(--sd-gold-light, #F2DA9B); }
.sd-ct-card p { margin: 0 0 1rem; font-size: .92rem; line-height: 1.5; }
.sd-ct-card .wp-element-button { background: var(--sd-gold) !important; color: var(--sd-night) !important; font-weight: 800; }
.sd-ct-info { list-style: none; margin: 0; padding: 1.1rem 1.2rem; display: grid; gap: .8rem; border-radius: 16px; background: #fff; border: 1px solid var(--wp--preset--color--accent-6, #E1E5EE); font-size: .9rem; }
.sd-ct-info strong { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--accent-4, #6B7280); }
.sd-ct-info a { font-weight: 800; color: var(--sd-night, #0F1630); }
@media (max-width: 860px) {
	.sd-ct { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.sd-ct-two { grid-template-columns: 1fr; }
}
