/* v1.82 Comfort settings (inc/comfort.php, assets/js/comfort.js). */

/* ---------- the button and panel ---------- */
.dw-comfort { position: fixed; z-index: 99991; font-family: var(--dw-sans); }
/* Stacked above the Feedback tab (bottom left) or the live-chat button (bottom right). */
.dw-comfort--left { left: 16px; bottom: 72px; }
.dw-comfort--right { right: 16px; bottom: 88px; }
.dw-comfort__btn {
	display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem .95rem;
	border: 1px solid var(--dw-line-strong); border-radius: 999px; cursor: pointer;
	background: rgba(1, 15, 42, .92); color: var(--dw-cream); font: 600 .9rem/1 var(--dw-sans);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .35); backdrop-filter: blur(6px);
}
.dw-comfort__btn:hover, .dw-comfort__btn[aria-expanded="true"] { border-color: var(--dw-gold); color: var(--dw-gold-light); }
.dw-comfort__btn:focus-visible, .dw-comfort__panel :focus-visible { outline: 3px solid var(--dw-gold-light); outline-offset: 3px; }
.dw-comfort.is-active .dw-comfort__btn::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dw-gold); }
.dw-comfort__panel {
	position: absolute; bottom: calc(100% + 10px); width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 150px); overflow-y: auto; padding: 1.1rem 1.15rem .6rem;
	border: 1px solid var(--dw-line-strong); border-radius: var(--dw-radius);
	background: linear-gradient(160deg, var(--dw-deep), var(--dw-night)); color: var(--dw-text);
	box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
}
.dw-comfort--left .dw-comfort__panel { left: 0; }
.dw-comfort--right .dw-comfort__panel { right: 0; }
.dw-comfort__panel[hidden] { display: none; }
.dw-comfort__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dw-comfort__head h2 { margin: 0; padding: 0; color: var(--dw-cream); font: 600 1.45rem/1.15 var(--dw-serif); }
.dw-comfort__x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--dw-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dw-comfort__x:hover { color: var(--dw-cream); }
.dw-comfort__lead { margin: .2rem 0 .8rem; padding: 0; color: var(--dw-muted); font-size: .88rem; }
.dw-comfort__opt { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; padding: .7rem 0; border-top: 1px solid var(--dw-line); cursor: pointer; }
.dw-comfort__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dw-comfort__opt strong { display: block; color: var(--dw-cream); font-weight: 700; font-size: .95rem; }
.dw-comfort__opt small { display: block; margin-top: .15rem; color: var(--dw-muted); font-size: .82rem; line-height: 1.4; }
.dw-comfort__sw { position: relative; width: 42px; height: 24px; margin-top: 2px; border-radius: 999px; background: var(--dw-line); transition: background .15s ease; }
.dw-comfort__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--dw-muted); transition: transform .15s ease, background .15s ease; }
.dw-comfort__opt input:checked + .dw-comfort__sw { background: rgba(217, 185, 138, .45); }
.dw-comfort__opt input:checked + .dw-comfort__sw::after { transform: translateX(18px); background: var(--dw-gold-light); }
.dw-comfort__opt input:focus-visible + .dw-comfort__sw { outline: 3px solid var(--dw-gold-light); outline-offset: 2px; }
.dw-comfort__foot { margin: 0; padding: .5rem 0 .2rem; border-top: 1px solid var(--dw-line); text-align: right; }
.dw-comfort__reset { border: 0; background: none; color: var(--dw-muted); font: .85rem var(--dw-sans); text-decoration: underline; cursor: pointer; padding: .4rem; }
@media (max-width: 600px) {
	.dw-comfort--left { left: 16px; bottom: 70px; }
	.dw-comfort--right { right: 16px; bottom: 84px; }
	.dw-comfort__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.dw-comfort__btn { padding: .6rem; min-width: 44px; justify-content: center; }
}
@media print { .dw-comfort { display: none; } }

/* ---------- calm motion ---------- */
html.dw-calm *, html.dw-calm *::before, html.dw-calm *::after {
	animation-duration: .01ms !important; animation-iteration-count: 1 !important;
	transition-duration: .01ms !important; scroll-behavior: auto !important;
}

/* ---------- larger text ---------- */
html.dw-big #main-content, html.dw-big .dwgift-overlay, html.dw-big .dw-sanctuary, html.dw-big .woocommerce-MyAccount-content { zoom: 1.14; }

/* ---------- night tint ---------- */
/* Two fixed overlays on <html>: a little dimmer, and warmer. Never use a filter (or transform) on <body> for this:
   it turns the body into the anchor for every position:fixed element inside it, which sends this Comfort button,
   the chat bubble and the Feedback tab to the bottom of the whole page instead of the bottom of the screen. */
html.dw-night::before, html.dw-night::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
html.dw-night::before { z-index: 2147482999; background: rgba(0, 0, 0, .14); }
html.dw-night::after { z-index: 2147483000; background: rgba(120, 50, 10, .28); mix-blend-mode: multiply; }
@media print { html.dw-night::before, html.dw-night::after { display: none; } }

/* ---------- moving-visuals notice ---------- */
.dw-motion-note {
	position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; align-items: center;
	gap: .2rem; padding: 1.5rem; text-align: center; background: var(--dw-night); color: var(--dw-text); font-family: var(--dw-sans);
}
.dw-motion-note p { max-width: 30rem; margin: 0 0 .5rem; padding: 0; line-height: 1.5; }
.dw-motion-note__t { color: var(--dw-cream); font: 600 1.5rem/1.2 var(--dw-serif); }
.dw-motion-note__b { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .6rem !important; }
.dw-motion-note button {
	min-height: 44px; padding: .6rem 1.2rem; border-radius: 999px; cursor: pointer; font: 700 .9rem var(--dw-sans);
	border: 1px solid var(--dw-gold); background: var(--dw-gold); color: var(--dw-night);
}
.dw-motion-note .dw-motion-note__calm { background: transparent; color: var(--dw-gold-light); }

/* ---------- works without pictures (inc/nopics.php) ---------- */
.dw-card__nopics { margin: -.2rem 0 .6rem; padding: 0; }
.dw-card__nopics span {
	display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px;
	border: 1px solid rgba(182, 164, 206, .45); background: rgba(182, 164, 206, .1);
	color: var(--dw-lavender); font: 700 .72rem/1.3 var(--dw-sans); letter-spacing: .06em; text-transform: uppercase;
}
.dw-card__nopics span::before { content: "✦"; color: var(--dw-gold); font-size: .7rem; }
html.dw-nopics .dw-card[data-nopics] { box-shadow: 0 0 0 1px rgba(182, 164, 206, .55); }
.dw-nopics-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1.2rem; }
.dw-nopics-bar__btn {
	display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--dw-line-strong); background: transparent; color: var(--dw-text); font: 600 .9rem var(--dw-sans);
}
.dw-nopics-bar__btn[aria-pressed="true"] { border-color: var(--dw-lavender); background: rgba(182, 164, 206, .14); color: var(--dw-cream); }
.dw-nopics-bar__dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--dw-lavender); }
.dw-nopics-bar__btn[aria-pressed="true"] .dw-nopics-bar__dot { background: var(--dw-lavender); }
.dw-nopics-bar__n { color: var(--dw-muted); font-size: .85rem; }
.dw-nopics-tip { display: none; margin: 0 0 1rem; padding: .9rem 1.1rem; border-left: 3px solid var(--dw-lavender); border-radius: 0 12px 12px 0; background: rgba(182, 164, 206, .08); color: var(--dw-text); font-size: .95rem; line-height: 1.55; }
html.dw-nopics .dw-nopics-tip { display: block; }
.dw-nopics-tip p { margin: 0; padding: 0; }
.dw-nopics-tip__t { margin-bottom: .25rem !important; color: var(--dw-lavender); font: 700 .75rem var(--dw-sans); letter-spacing: .14em; text-transform: uppercase; }
.dw-nopics-tip a { color: var(--dw-gold-light); }
.dw-card[hidden] { display: none !important; }
