/* Offers & Coupons: product-page button + side drawer */
.svdm-offers-wrap { margin: 12px 0; }
.svdm-offers-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 1px dashed #1a7f37; border-radius: 6px; background: #f3faf5; color: #1a7f37; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer; transition: background-color .15s; }
.svdm-offers-btn:hover, .svdm-offers-btn:focus-visible { background: #e6f5ea; }
.svdm-offers-btn__label { flex: 1 1 auto; }
.svdm-ico { flex: 0 0 auto; }
.svdm-offers-lowas { margin-top: 6px; font-size: 13px; color: #1a7f37; font-weight: 600; }
.svdm-offers-lowas[hidden] { display: none; }

html.svdm-drawer-open { overflow: hidden; }
.svdm-drawer { position: fixed; inset: 0; z-index: 2147483000; }
.svdm-drawer[hidden] { display: none; }
.svdm-drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s ease; }
.svdm-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: 420px; max-width: 100%; background: #fff; color: #1d2327; box-shadow: -4px 0 24px rgba(0, 0, 0, .2); transform: translateX(100%); transition: transform .25s ease; outline: 0; }
.svdm-drawer.is-open .svdm-drawer__overlay { opacity: 1; }
.svdm-drawer.is-open .svdm-drawer__panel { transform: none; }
@media ( prefers-reduced-motion: reduce ) {
	.svdm-drawer__overlay, .svdm-drawer__panel { transition: none; }
}


.svdm-drawer__head { display: flex; align-items: center; gap: 8px; padding: 18px 20px 14px; }
.svdm-drawer__title { flex: 1 1 auto; margin: 0; padding: 0 0 8px; border-bottom: 2px solid #d63384; font-size: 18px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.2; width: fit-content; max-width: 100%; }
.svdm-drawer__back, .svdm-drawer__close { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.svdm-drawer__back[hidden] { display: none; }
.svdm-drawer__back:hover, .svdm-drawer__close:hover { background: #f0f0f1; }
.svdm-drawer__close { margin-left: auto; }
.svdm-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 4px 20px 24px; }
.svdm-view[hidden], .svdm-detail[hidden] { display: none; }

.svdm-section { margin: 14px 0 6px; }
.svdm-section__title { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.svdm-card { display: flex; gap: 14px; margin: 0 0 10px; padding: 14px; border: 1px dashed #8c8f94; border-radius: 6px; }
.svdm-card__ico { margin-top: 2px; color: #50575e; }
.svdm-card__main { flex: 1 1 auto; min-width: 0; }
.svdm-card__title { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.svdm-card__auto { margin-top: 4px; font-size: 12px; color: #646970; }
.svdm-card__more { margin: 6px 0 0; padding: 0; border: 0; background: none; color: #1a7f37; font-size: 14px; font-weight: 600; cursor: pointer; }
.svdm-card__more:hover { text-decoration: underline; }

.svdm-detail__badge { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 56px; margin: 8px 0 14px; background: #f0f0f1; border-radius: 4px; color: #d63384; }
.svdm-detail__title { margin: 0 0 14px; font-size: 20px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.svdm-detail__rows { list-style: none; margin: 0 0 14px; padding: 0; }
.svdm-detail__rows li { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.svdm-detail__text { font-size: 14px; line-height: 1.5; color: #3c434a; }
.svdm-detail__text p { margin: 0 0 10px; }

.svdm-bar { position: absolute; left: 0; right: 0; bottom: 0; display: block; width: 100%; margin: 0; padding: 12px 16px; border: 0; border-radius: 0; background: #1a7f37; color: #fff; font-size: 15px; font-weight: 600; text-align: center; cursor: pointer; }
.svdm-bar:hover { background: #166b2f; }
.svdm-bar:empty { display: none; }
.svdm-toast { position: absolute; left: 50%; bottom: 64px; transform: translate( -50%, 8px ); padding: 8px 14px; border-radius: 4px; background: #1d2327; color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.svdm-toast.is-on { opacity: 1; transform: translate( -50%, 0 ); }
.svdm-detail { padding-bottom: 64px; }
.svdm-bar[data-code=""] { cursor: default; }

/* The theme (WoodMart) styles every <button> (grey, UPPERCASE, fixed height); pin ours so the drawer looks the same on any theme. */
.svdm-offers-wrap .svdm-offers-btn,
.svdm-drawer button { text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; min-height: 0 !important; font-family: inherit !important; line-height: 1.3 !important; }
.svdm-offers-wrap .svdm-offers-btn { display: flex !important; width: 100% !important; height: auto !important; padding: 11px 14px !important; background: #f3faf5 !important; color: #1a7f37 !important; border: 1px dashed #1a7f37 !important; border-radius: 6px !important; font-size: 14px !important; font-weight: 600 !important; text-align: left !important; justify-content: flex-start !important; }
.svdm-offers-wrap .svdm-offers-btn:hover { background: #e6f5ea !important; }
.svdm-offers-btn__label { text-align: left; }
.svdm-drawer .svdm-drawer__close,
.svdm-drawer .svdm-drawer__back { width: 36px !important; height: 36px !important; padding: 0 !important; background: transparent !important; color: #1d2327 !important; border: 0 !important; border-radius: 50% !important; }
.svdm-drawer .svdm-drawer__close:hover,
.svdm-drawer .svdm-drawer__back:hover { background: #f0f0f1 !important; }
.svdm-drawer .svdm-drawer__close svg,
.svdm-drawer .svdm-drawer__back svg { display: block; stroke: currentColor; }
.svdm-drawer .svdm-card__more { height: auto !important; padding: 0 !important; background: none !important; color: #1a7f37 !important; border: 0 !important; font-size: 14px !important; font-weight: 600 !important; }
.svdm-drawer .svdm-bar { height: auto !important; padding: 13px 16px !important; background: #1a7f37 !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; font-size: 15px !important; font-weight: 600 !important; }
.svdm-drawer .svdm-bar:hover { background: #166b2f !important; }
.svdm-drawer .svdm-bar[data-code=""] { cursor: default; }
.svdm-drawer .svdm-bar { position: absolute !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; margin: 0 !important; }
.svdm-drawer .svdm-bar:empty { display: none !important; }

/* Close button: a clearly visible round button; the dimmed area outside the drawer also closes it (pointer cursor so touch browsers deliver the tap). */
.svdm-drawer__overlay { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.svdm-drawer .svdm-drawer__head .svdm-drawer__close { width: 38px !important; height: 38px !important; background: #f0f0f1 !important; border: 1px solid #c3c4c7 !important; color: #1d2327 !important; }
.svdm-drawer .svdm-drawer__head .svdm-drawer__close svg { width: 20px; height: 20px; stroke-width: 2.5; }
.svdm-drawer .svdm-drawer__head .svdm-drawer__close:hover { background: #d63384 !important; border-color: #d63384 !important; color: #fff !important; }
.svdm-drawer .svdm-drawer__head .svdm-drawer__close:focus-visible { outline: 2px solid #d63384; outline-offset: 2px; }

/* Phones: a bottom sheet (slides up, page stays visible and dimmed above it) instead of a full-screen panel. */
@media ( max-width: 480px ) {
	.svdm-drawer__panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: auto; max-height: 85vh; max-height: 85dvh; border-radius: 16px 16px 0 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, .25); transform: translateY(100%); }
	.svdm-drawer__head { position: relative; padding: 18px 16px 10px; }
	.svdm-drawer__head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #d0d3d6; }
	.svdm-drawer__body { padding: 4px 16px 20px; }
	.svdm-view[data-svdm-view="list"] { min-height: 30vh; }
	.svdm-drawer__body:has( [data-svdm-view="detail"]:not( [hidden] ) ) { min-height: 45vh; }
}
