/* Itzfizz WhatsApp Orders. Colours come from Settings through --iwo-accent and --iwo-dark. */

html body .iwo-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- floating button: icon only ---------- */
html body .iwo-float { position: fixed; z-index: 9990; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: var(--iwo-fsize, 56px); height: var(--iwo-fsize, 56px); padding: 0; border-radius: 999px; background: var(--iwo-fcolor, #25D366); color: var(--iwo-ficon, #fff) !important; font-family: var(--wsw-head, inherit); font-weight: 600; font-size: 15px; line-height: 1; box-shadow: 0 8px 24px rgba(18, 140, 74, .32), 0 2px 6px rgba(0, 0, 0, .12); text-decoration: none !important; opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); transition: opacity .25s ease, transform .25s ease, visibility .25s ease, box-shadow .2s ease; }
html body .iwo-float.is-shown { opacity: 1; visibility: visible; transform: none; }
html body .iwo-float:hover { box-shadow: 0 10px 28px rgba(18, 140, 74, .42), 0 2px 6px rgba(0, 0, 0, .14); }
html body .iwo-float:focus-visible { outline: 3px solid var(--iwo-dark, #1F2228); outline-offset: 3px; }
html body .iwo-float svg { width: 50%; height: 50%; max-width: 30px; max-height: 30px; flex: 0 0 auto; }
html body .iwo-float.iwo-float--label { width: auto; padding: 0 20px 0 16px; }
html body .iwo-float.iwo-float--label svg { width: 24px; height: 24px; }
html body .iwo-float.is-pulsing::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 var(--iwo-fcolor, #25D366); animation: iwo-pulse 1.4s ease-out 3; pointer-events: none; }
@keyframes iwo-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }
/* The product page's own bar already has WhatsApp; one button at a time. */
html.wsw-bar-on body .iwo-float, html.iwo-open body .iwo-float { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- WhatsApp icon next to Add to cart ---------- */
html body .iwo-card-btn { box-sizing: border-box; gap: 0; text-transform: none; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; min-width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid #CFE9D8; border-radius: 8px; background: #F1FAF4; color: #128C4A; cursor: pointer; line-height: 1; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
html body .iwo-card-btn:hover { background: #25D366; border-color: #25D366; color: #fff; }
html body .iwo-card-btn:focus-visible { outline: 2px solid var(--iwo-dark, #1F2228); outline-offset: 2px; }
html body .iwo-card-btn svg { flex: 0 0 20px; width: 20px; height: 20px; }

html body .iwo-card-row { display: flex; align-items: stretch; gap: 8px; width: 100%; flex-wrap: wrap; }
html body .iwo-card-row > .button, html body .iwo-card-row > a:first-child { flex: 1 1 0; width: auto !important; min-width: 0; margin: 0 !important; }
html body .iwo-card-row > .iwo-card-btn { height: auto; min-height: 40px; }
html body .iwo-card-row > .added_to_cart { flex: 1 0 100%; }

/* WoodMart grid cards */
html body .wd-add-btn.iwo-has-wa { display: flex; align-items: center; gap: 8px; }
html body .wd-add-btn.iwo-has-wa > .button { flex: 1 1 auto; min-width: 0; }
html body .wd-add-btn.iwo-has-wa > .iwo-card-btn { width: 36px; min-width: 36px; height: 36px; border-radius: 35px; }
html body .wd-add-btn.iwo-has-wa > .added_to_cart { display: none; }

/* ---------- dialog ---------- */
html.iwo-open, html.iwo-open body { overflow: hidden !important; }
html body .iwo-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: var(--wsw-body, inherit); color: var(--iwo-dark, #1F2228); -webkit-text-size-adjust: 100%; }
html body .iwo-modal[hidden] { display: none !important; }
html body .iwo-modal *, html body .iwo-modal *::before, html body .iwo-modal *::after { box-sizing: border-box; }
html body .iwo-backdrop { position: absolute; inset: 0; background: rgba(20, 22, 26, .56); opacity: 0; transition: opacity .2s ease; }
html body .iwo-sheet:focus { outline: none; }
html body .iwo-sheet { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 24px; border-radius: var(--iwo-radius, 16px); background: #fff; box-shadow: 0 24px 64px rgba(0, 0, 0, .24); opacity: 0; transform: translateY(16px); transition: opacity .2s ease, transform .2s ease; }
html body .iwo-modal.is-on .iwo-backdrop { opacity: 1; }
html body .iwo-modal.is-on .iwo-sheet { opacity: 1; transform: none; }

html body .iwo-x { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #5B6068; cursor: pointer; }
html body .iwo-x:hover { background: #F2F3F5; color: var(--iwo-dark, #1F2228); }
html body .iwo-x:focus-visible { outline: 2px solid var(--iwo-dark, #1F2228); }

html body .iwo-head { display: flex; align-items: flex-start; gap: 12px; padding-right: 36px; margin: 0 0 16px; }
html body .iwo-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #25D366; color: #fff; }
html body .iwo-title { margin: 0 0 2px !important; padding: 0; font-family: var(--wsw-head, inherit); font-size: 20px !important; font-weight: 600; line-height: 1.25 !important; color: var(--iwo-dark, #1F2228); letter-spacing: 0; text-transform: none; }
html body .iwo-sub { margin: 0 !important; font-size: 14px; line-height: 1.45; color: #5B6068; }

html body .iwo-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
html body .iwo-form[hidden], html body .iwo-done[hidden], html body .iwo-modal [data-for][hidden] { display: none !important; }

html body .iwo-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #ECEDEF; border-radius: 12px; background: #FAFAF8; }
html body .iwo-item__img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #F2F3F5; }
html body .iwo-item__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html body .iwo-item__name { font-family: var(--wsw-head, inherit); font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--iwo-dark, #1F2228); }
html body .iwo-item__meta { font-size: 12.5px; line-height: 1.4; color: #6B7079; }
html body .iwo-item__price { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--iwo-dark, #1F2228); }
html body .iwo-item__load { padding: 18px 4px; font-size: 13px; color: #6B7079; }

html body .iwo-f { display: flex; flex-direction: column; gap: 6px; margin: 0; }
html body .iwo-f label, html body .iwo-modal label { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--iwo-dark, #1F2228); text-transform: none; letter-spacing: 0; }
html body .iwo-modal input[type="text"], html body .iwo-modal input[type="tel"], html body .iwo-modal input[type="number"], html body .iwo-modal select, html body .iwo-modal textarea { width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1px solid #D6D9DE; border-radius: var(--iwo-bradius, 10px); background: #fff; box-shadow: none; font-family: inherit; font-size: 16px; line-height: 1.3; color: var(--iwo-dark, #1F2228); -webkit-appearance: none; appearance: none; transition: border-color .15s ease, box-shadow .15s ease; }
html body .iwo-modal textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
html body .iwo-modal select { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235B6068' stroke-width='1.6' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
html body .iwo-modal input:focus, html body .iwo-modal select:focus, html body .iwo-modal textarea:focus { outline: none; border-color: var(--iwo-dark, #1F2228); box-shadow: 0 0 0 3px rgba(244, 149, 79, .28); }
html body .iwo-f.is-bad input, html body .iwo-f.is-bad select { border-color: #C0392B; }
html body .iwo-err { min-height: 0; font-size: 12.5px; line-height: 1.35; color: #B03A2E; }
html body .iwo-err:empty { display: none; }

html body .iwo-tel { display: flex; gap: 8px; }
html body .iwo-tel select { flex: 0 0 108px; width: 108px; font-size: 15px; }
html body .iwo-tel input { flex: 1 1 auto; min-width: 0; }

html body .iwo-step { display: flex; align-items: stretch; width: 100%; max-width: 220px; height: 48px; border: 1px solid #D6D9DE; border-radius: var(--iwo-bradius, 10px); overflow: hidden; }
html body .iwo-step button { flex: 0 0 48px; width: 48px; margin: 0; padding: 0; border: 0; background: #F6F6F4; color: var(--iwo-dark, #1F2228); font-size: 22px; line-height: 1; cursor: pointer; }
html body .iwo-step button:hover { background: #ECEDEF; }
html body .iwo-modal .iwo-step input[type="number"] { height: 100%; border: 0; border-radius: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
html body .iwo-modal .iwo-step input[type="number"]:focus { box-shadow: inset 0 0 0 2px rgba(244, 149, 79, .5); }
html body .iwo-step input::-webkit-outer-spin-button, html body .iwo-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html body .iwo-cover { margin: 0 !important; font-size: 13px; line-height: 1.4; color: #3F444B; }
html body .iwo-cover:empty { display: none; }

html body .iwo-check { display: flex !important; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #FFF6EE; cursor: pointer; font-weight: 500 !important; font-size: 14px !important; line-height: 1.4 !important; }
html body .iwo-check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--iwo-accent, #F4954F); }

html body .iwo-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

html body .iwo-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin: 2px 0 0; padding: 12px 18px; border: 0; border-radius: var(--iwo-bradius, 10px); background: var(--iwo-accent, #F4954F); color: var(--iwo-dark, #1F2228) !important; font-family: var(--wsw-head, inherit); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: filter .15s ease, transform .15s ease; }
html body .iwo-submit:hover { filter: brightness(.96); }
html body .iwo-submit:active { transform: translateY(1px); }
html body .iwo-submit:focus-visible { outline: 3px solid var(--iwo-dark, #1F2228); outline-offset: 2px; }
html body .iwo-submit[disabled] { opacity: .6; cursor: default; }
html body .iwo-note { margin: 0 !important; font-size: 12px; line-height: 1.45; color: #8A8F97; text-align: center; }
html body .iwo-note.iwo-rc { margin-top: -6px !important; font-size: 11px; }
html body .iwo-note a { color: inherit !important; text-decoration: underline !important; }

html body .iwo-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 4px; text-align: center; }
html body .iwo-done__tick { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #E8F5EC; color: #1F6B40; }
html body .iwo-done__title { margin: 4px 0 0 !important; font-family: var(--wsw-head, inherit); font-size: 20px !important; font-weight: 600; line-height: 1.3 !important; outline: none; }
html body .iwo-done__text { margin: 0 !important; font-size: 14px; line-height: 1.5; color: #5B6068; }
html body .iwo-done__ref { margin: 0 !important; font-size: 12.5px; color: #8A8F97; }
html body .iwo-done .iwo-again { margin-top: 6px; }
html body .iwo-modal.is-done .iwo-sub { display: none; }


/* Open or closed line, fixed country code, switched off fields */
html body .iwo-hours { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px !important; padding: 8px 12px; border-radius: 8px; background: #E8F5EC; color: #1F6B40; font-size: 13px; line-height: 1.4; }
html body .iwo-hours::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
html body .iwo-hours.is-closed { background: #FEF1E6; color: #A8501A; }
html body .iwo-hours[hidden], html body .iwo-modal .iwo-off { display: none !important; }
html body .iwo-cc-fixed { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 64px; height: 48px; border: 1px solid #D6D9DE; border-radius: var(--iwo-bradius, 10px); background: #F6F6F4; font-size: 15px; font-weight: 600; }
html body .iwo-tel select { flex: 0 0 92px; width: 92px; }

/* Full width card button */
html body .iwo-card-btn.iwo-card-btn--full { display: flex; gap: 8px; width: 100%; min-width: 0; height: 40px; margin-top: 8px; padding: 0 12px; font-family: var(--wsw-head, inherit); font-size: 14px; font-weight: 600; }
html body .iwo-card-btn.iwo-card-btn--full svg { width: 18px; height: 18px; flex: 0 0 18px; }

/* Phones: the dialog becomes a bottom sheet */
@media (max-width: 600px) {
html body .iwo-modal { align-items: flex-end; padding: 0; }
	html body .iwo-sheet { max-width: none; max-height: 92vh; max-height: 92dvh; padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; transform: translateY(32px); }
	html body .iwo-title { font-size: 18px !important; }
	html body .iwo-head { margin-bottom: 14px; }
	html body .iwo-form { gap: 12px; }
}
@media (max-width: 400px) {
	html body .iwo-card-row > .iwo-card-btn { width: 40px; min-width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	html body .iwo-float, html body .iwo-backdrop, html body .iwo-sheet { transition: none !important; }
}

/* Where are you: Bengaluru or outside (delivery is Bengaluru only for now) */
html body .iwo-lbl { display: block; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--iwo-dark, #1F2228); }
html body .iwo-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
html body .iwo-modal .iwo-seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border: 1.5px solid #E3E5E8; border-radius: var(--iwo-bradius, 10px); background: #fff; font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
html body .iwo-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
html body .iwo-modal .iwo-seg label:has(input:checked) { border-color: var(--iwo-accent, #F4954F); background: #FEF1E6; }
html body .iwo-modal .iwo-seg label:has(input:focus-visible) { outline: 2px solid var(--iwo-dark, #1F2228); outline-offset: 2px; }
html body .iwo-f.is-bad .iwo-seg label { border-color: #D93025; }
html body .iwo-loc-note { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: #5F6368; }
