/* Shared choice controls for the order form and the portal (owner 16. 11. 2026., option 5c):
   .w49-seg = a two-way choice as one sliding switch (native radios inside labels),
   .w49-tgl = an on/off row with a pill switch whose knob grows and shows a tick (native checkbox, role switch).
   Squircle corners where the browser supports corner-shape; plain rounded corners elsewhere. */
.w49-seg { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; border: 1.5px solid #d3dad8; border-radius: 18px; background: #fff; corner-shape: superellipse(2); }
.w49-seg::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 13px; background: linear-gradient(180deg, #1f8070, var(--tp-green, #176b5d)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 4px rgba(16, 35, 31, .2), 0 8px 18px -8px rgba(23, 107, 93, .55); corner-shape: superellipse(2); transition: transform .3s cubic-bezier(.25, .8, .25, 1); }
.w49-seg:has(label:last-child input:checked)::before { transform: translateX(100%); }
.w49-seg label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 8px; border-radius: 13px; color: var(--tp-ink, #10231f); font-size: 16px; font-weight: 700; text-align: center; cursor: pointer; transition: color .2s; }
.w49-seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.w49-seg label:has(input:checked) { color: #fff; }
.w49-seg label:has(input:focus-visible) { outline: 3px solid var(--tp-peach-deep, #176b5d); outline-offset: 2px; }
.w49-seg-hint { margin: 2px 0 0; color: var(--tp-muted, #5f6b68); font-size: 15px; line-height: 1.5; }
.w49-q:has(.w49-seg input:checked) .w49-seg-hint { display: none; }
.w49-q:has(.w49-seg label:first-child input:checked) .w49-seg-hint:nth-of-type(1),
.w49-q:has(.w49-seg label:last-child input:checked) .w49-seg-hint:nth-of-type(2) { display: block; }
.w49-tgls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.w49-tgls-one { grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
@media (max-width: 420px) { .w49-tgls { grid-template-columns: minmax(0, 1fr); } }
.w49-tgl { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 12px 16px; box-sizing: border-box; border: 1.5px solid #d3dad8; border-radius: 18px; background: #fff; cursor: pointer; corner-shape: superellipse(2); transition: border-color .15s; }
.w49-tgl:hover { border-color: #8fa29d; }
.w49-tgl:has(input:focus-visible) { outline: 3px solid var(--tp-peach-deep, #176b5d); outline-offset: 2px; }
.w49-tgl input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.w49-tgl-text { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--tp-ink, #10231f); }
.w49-tgl-text > svg { flex: none; width: 22px; height: 22px; }
.w49-tgl-text > span { display: grid; gap: 2px; min-width: 0; }
.w49-tgl b { font-size: 16px; font-weight: 700; }
.w49-tgl small { color: var(--tp-muted, #5f6b68); font-size: 14px; line-height: 1.4; }
.w49-sw { flex: none; position: relative; width: 56px; height: 32px; box-sizing: border-box; border: 2px solid #b9c3c1; border-radius: 999px; background: #fff; transition: background .25s, border-color .25s; }
.w49-sw i { position: absolute; top: 50%; left: 5px; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #b9c3c1; color: #fff; transition: left .35s cubic-bezier(.34, 1.56, .64, 1), width .35s cubic-bezier(.34, 1.56, .64, 1), height .35s cubic-bezier(.34, 1.56, .64, 1), margin .35s cubic-bezier(.34, 1.56, .64, 1), background .25s; }
.w49-sw svg { width: 13px; height: 13px; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.w49-tgl:has(input:checked) .w49-sw { border-color: #cfe8e0; background: #cfe8e0; }
.w49-tgl:has(input:checked) .w49-sw i { left: 26px; width: 24px; height: 24px; margin-top: -12px; background: var(--tp-green, #176b5d); }
.w49-tgl:has(input:checked) .w49-sw svg { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .w49-seg::before, .w49-sw, .w49-sw i, .w49-sw svg { transition: none; } }
