/* DUPEN Sleep – שיווק: פופאפים וטופסי ניוזלטר. הצבעים מגיעים ממשתני ערכת העיצוב. */
.dsm-popup { --dsm-ink: var(--slate-dark, #26333D); --dsm-accent: var(--slate, #3A4C5A); --dsm-gold: var(--gold, #B99A62); position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dsm-popup[hidden] { display: none; }
.dsm-overlay { position: absolute; inset: 0; background: rgba(28, 38, 46, .55); opacity: 0; transition: opacity .25s ease; }
.dsm-dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--white, #fff); color: var(--text, #222); border-radius: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .25s ease, transform .25s ease; outline: none; }
.dsm-popup.has-img .dsm-dialog { width: min(820px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.dsm-popup.is-in .dsm-overlay { opacity: 1; }
.dsm-popup.is-in .dsm-dialog { opacity: 1; transform: none; }
html.dsm-open { overflow: hidden; }

.dsm-media { min-height: 100%; background: var(--sand-light, #F1EFEA); }
.dsm-media .dsm-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dsm-body { padding: 38px 34px 32px; }
.dsm-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 0 0 12px; color: var(--dsm-ink); }
.dsm-content { font-size: 17px; color: var(--text-muted, #555E68); }
.dsm-content p { margin: 0 0 14px; }
.dsm-close { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--dsm-ink); font-size: 28px; line-height: 1; cursor: pointer; }
.dsm-close:hover, .dsm-close:focus-visible { background: var(--sand, #E1DED7); }

.dsm-btn { display: inline-block; margin-top: 8px; padding: 13px 30px; border-radius: var(--radius-pill, 999px); background: var(--dsm-accent); color: #fff !important; font-weight: 700; text-decoration: none; transition: background .2s; }
.dsm-btn:hover, .dsm-btn:focus-visible { background: var(--dsm-ink); }

.dsm-coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 16px; padding: 12px 14px; border: 2px dashed var(--dsm-gold); border-radius: 6px; background: #FBF8F2; }
.dsm-coupon-label { font-weight: 700; color: var(--dsm-ink); }
.dsm-code { font-family: var(--font-latin, monospace); font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--dsm-ink); background: none; padding: 0; }
.dsm-copy { margin-inline-start: auto; padding: 7px 16px; border: 1px solid var(--dsm-accent); border-radius: var(--radius-pill, 999px); background: transparent; color: var(--dsm-accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dsm-copy:hover { background: var(--dsm-accent); color: #fff; }
.dsm-note { font-size: 14px; color: var(--text-muted, #555E68); margin: 0; }

/* טופס */
.dsm-form { margin-top: 6px; }
.dsm-row { display: flex; gap: 8px; }
.dsm-row input[type=email] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--line, #D9D6CC); border-radius: var(--radius-pill, 999px); font: inherit; font-size: 16px; text-align: right; background: #fff; color: var(--text, #222); }
.dsm-row input[type=email]::placeholder { text-align: right; }
.dsm-row input[type=email]:focus { outline: 2px solid var(--dsm-gold, #B99A62); outline-offset: 1px; }
.dsm-submit { height: 48px; padding: 0 26px; border: 0; border-radius: var(--radius-pill, 999px); background: var(--dsm-accent, #3A4C5A); color: #fff; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dsm-submit:hover { background: var(--dsm-ink, #26333D); }
.dsm-submit[disabled] { opacity: .6; cursor: wait; }
.dsm-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--text-muted, #555E68); cursor: pointer; }
.dsm-consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; }
.dsm-consent a { color: inherit; text-decoration: underline; }
.dsm-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.dsm-msg { min-height: 1em; margin: 8px 0 0; font-size: 14px; }
.dsm-msg.is-error { color: var(--danger, #A61519); font-weight: 700; }
.dsm-success .dsm-done { font-size: 18px; font-weight: 700; color: var(--dsm-ink, #26333D); margin: 6px 0 12px; }

/* פס הרשמה מעל התחתית */
.dsm-band { --dsm-ink: var(--slate-dark, #26333D); --dsm-accent: var(--slate, #3A4C5A); --dsm-gold: var(--gold, #B99A62); background: var(--sand-light, #F1EFEA); border-top: 1px solid var(--line, #D9D6CC); padding: clamp(34px, 5vw, 56px) 0; }
.dsm-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 50px; align-items: center; }
.dsm-band h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 6px; color: var(--dsm-ink); }
.dsm-band p { margin: 0; color: var(--text-muted, #555E68); }
.dsm-band .dsm-msg, .dsm-band .dsm-consent { color: var(--text-muted, #555E68); }

.dsm-inline { --dsm-ink: var(--slate-dark, #26333D); --dsm-accent: var(--slate, #3A4C5A); --dsm-gold: var(--gold, #B99A62); padding: 24px; border-radius: 8px; background: var(--sand-light, #F1EFEA); margin: 24px 0; }
.dsm-inline-title { margin: 0 0 6px; }

/* השאירו פרטים */
.dsm-lead .dsm-dialog { width: min(480px, 100%); }
.dsm-lead-about { margin: -4px 0 14px; color: var(--text-muted, #555E68); }
.dsm-field { margin: 0 0 12px; }
.dsm-field label { display: block; margin-bottom: 5px; font-weight: 700; font-size: 15px; color: var(--dsm-ink); }
.dsm-field label span { color: var(--danger, #A61519); }
.dsm-field label small { font-weight: 400; color: var(--text-muted, #555E68); }
.dsm-field input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line, #D9D6CC); border-radius: 6px; font: inherit; font-size: 16px; background: #fff; color: var(--text, #222); }
.dsm-field input[dir=ltr] { text-align: right; }
.dsm-field input:focus { outline: 2px solid var(--dsm-gold); outline-offset: 1px; }
.dsm-field input[aria-invalid=true] { border-color: var(--danger, #A61519); }
.dsm-lead-submit { width: 100%; margin-top: 4px; }
.dsm-privacy { margin: 10px 0 0; font-size: 13px; color: var(--text-muted, #555E68); }
.dsm-privacy a { color: inherit; }

@media (max-width: 760px) {
	.dsm-popup { align-items: flex-end; padding: 0; }
	.dsm-dialog, .dsm-popup.has-img .dsm-dialog { width: 100%; display: block; border-radius: 16px 16px 0 0; max-height: 92vh; transform: translateY(40px); }
	.dsm-media { max-height: 32vh; overflow: hidden; }
	.dsm-body { padding: 26px 20px 24px; }
	.dsm-row { flex-direction: column; }
	.dsm-submit { width: 100%; }
	.dsm-band-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.dsm-overlay, .dsm-dialog { transition: none; }
}
