/* Stylishdeck Mobile App - navy #08203E, orange #FF9900 */
:root { --sdma-navy: #08203E; --sdma-orange: #FF9900; --sdma-muted: #6b7280; --sdma-border: #e5e7eb; --sdma-bg: #f7f9fc; --sdma-tabbar-h: 64px; }

.sdma-i { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }

/* Buttons */
.sdma-btn { box-sizing: border-box; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 2px solid transparent; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; font-family: inherit; }
.sdma-btn--primary { background: var(--sdma-orange); border-color: var(--sdma-orange); color: var(--sdma-navy) !important; }
.sdma-btn--primary:hover { background: #e68a00; border-color: #e68a00; }
.sdma-btn--navy { background: var(--sdma-navy); border-color: var(--sdma-navy); color: #fff !important; }
.sdma-btn--ghost { background: #fff; border-color: var(--sdma-navy); color: var(--sdma-navy) !important; }
.sdma-btn--link { background: transparent; color: var(--sdma-muted) !important; font-weight: 600; }
.sdma-btn--block { display: flex; width: 100%; }
.sdma-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 10px; }
.sdma-btn--lg { min-height: 54px; font-size: 16px; }
.sdma-btn:focus-visible, .sdma-tab:focus-visible, .sdma-banner__close:focus-visible { outline: 3px solid var(--sdma-orange); outline-offset: 2px; }
.sdma-btn[hidden], .sdma-banner[hidden], .sdma-sheet[hidden], [data-sdma-get] [hidden] { display: none !important; }

/* ---------- Bottom tab bar ---------- */
.sdma-tabbar { display: none; }
html.sdma-app:not(.sdma-tabs-off) .sdma-tabbar { display: flex; }
@media (max-width: 900px) { html.sdma-tabs-mobile .sdma-tabbar { display: flex; } }
@media (min-width: 1025px) { html.sdma-app .sdma-tabbar { display: none; } }
.sdma-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; justify-content: space-around; align-items: stretch; height: calc(var(--sdma-tabbar-h) + env(safe-area-inset-bottom, 0px)); padding: 0 4px env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid var(--sdma-border); box-shadow: 0 -4px 18px rgba(8, 32, 62, .06); }
.sdma-tab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #64748b !important; text-decoration: none !important; font-size: 11px; font-weight: 600; letter-spacing: .01em; -webkit-tap-highlight-color: transparent; }
.sdma-tab__icon { position: relative; display: inline-flex; padding: 3px 14px; border-radius: 999px; transition: background-color .2s ease; }
.sdma-tab.is-active { color: var(--sdma-navy) !important; }
.sdma-tab.is-active .sdma-tab__icon { background: #fff1db; color: var(--sdma-navy); }
.sdma-tab.is-active .sdma-i { stroke-width: 2.2; }
.sdma-tab:active .sdma-tab__icon { transform: scale(.92); }
.sdma-tab__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sdma-count { position: absolute; top: -4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--sdma-orange); color: var(--sdma-navy); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.sdma-count[hidden] { display: none; }
.sdma-dot { position: absolute; top: 1px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: #dc2626; box-shadow: 0 0 0 2px #fff; }

/* Room for the bar */
html.sdma-app:not(.sdma-tabs-off) body { padding-bottom: calc(var(--sdma-tabbar-h) + env(safe-area-inset-bottom, 0px)) !important; }
@media (max-width: 900px) { html.sdma-tabs-mobile body { padding-bottom: calc(var(--sdma-tabbar-h) + env(safe-area-inset-bottom, 0px)) !important; } }
@media (min-width: 1025px) { html.sdma-app body { padding-bottom: 0 !important; } }
html.sdma-app body { -webkit-tap-highlight-color: transparent; }
/* Floating chat/WhatsApp buttons from other plugins sit above the bar. */
html.sdma-app:not(.sdma-tabs-off) .sdpf-sticky, html.sdma-app:not(.sdma-tabs-off) [class*="whatsapp"][style*="fixed"] { bottom: calc(var(--sdma-tabbar-h) + 12px) !important; }

/* ---------- Loading bar + pull to refresh ---------- */
.sdma-loadbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--sdma-orange), #ffc266); z-index: 99999; opacity: 0; pointer-events: none; }
.sdma-loadbar.is-loading { opacity: 1; animation: sdma-load 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes sdma-load { 0% { width: 0; } 20% { width: 45%; } 100% { width: 92%; } }
.sdma-ptr { position: fixed; top: -64px; left: 50%; transform: translate(-50%, 0); z-index: 99998; display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--sdma-navy); font-size: 13px; font-weight: 600; box-shadow: 0 4px 16px rgba(8, 32, 62, .15); pointer-events: none; }
html.sdma-app .sdma-ptr { display: flex; }
.sdma-ptr__spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #fde3b8; border-top-color: var(--sdma-orange); }
.sdma-ptr.is-ready .sdma-ptr__spin { border-color: var(--sdma-orange); border-top-color: var(--sdma-navy); }
.sdma-ptr.is-loading .sdma-ptr__spin { animation: sdma-spin .7s linear infinite; }
@keyframes sdma-spin { to { transform: rotate(360deg); } }

/* ---------- Install banner (website on phones) ---------- */
.sdma-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 99995; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(8, 32, 62, .22); transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .9, .3, 1.1); max-width: 520px; margin: 0 auto; }
.sdma-banner.is-open { transform: translateY(0); }
html.sdma-tabs-mobile .sdma-banner { bottom: calc(var(--sdma-tabbar-h) + 12px); }
.sdma-banner__icon { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.sdma-banner__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.sdma-banner__text strong { color: var(--sdma-navy); font-size: 15px; }
.sdma-banner__text span { color: var(--sdma-muted); font-size: 13px; }
.sdma-banner__close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f5f9; color: #475569; font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- "Turn on notifications" card ---------- */
.sdma-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99996; margin: 0 auto; max-width: 520px; padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px)); background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(8, 32, 62, .25); text-align: center; transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); }
.sdma-sheet.is-open { transform: translateY(0); }
.sdma-sheet__icon { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: #fff1db; color: #b36b00; display: flex; align-items: center; justify-content: center; }
.sdma-sheet__icon .sdma-i { width: 28px; height: 28px; }
.sdma-sheet__title { margin: 0 0 6px; font-size: 20px; color: var(--sdma-navy); }
.sdma-sheet__text { margin: 0 0 16px; color: #4b5563; font-size: 15px; }
.sdma-sheet__actions { display: grid; gap: 6px; }

/* ---------- Get the app page ---------- */
.sdma-get { max-width: 640px; margin: 0 auto; color: #1f2937; }
.sdma-get__hero { display: flex; gap: 18px; align-items: center; padding: 22px; margin: 0 0 16px; border-radius: 20px; background: radial-gradient(120% 140% at 100% 0%, #13386b 0%, var(--sdma-navy) 55%); color: #fff; }
.sdma-get__icon { width: 88px; height: 88px; border-radius: 22px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); flex: none; }
.sdma-get__title { color: #fff; margin: 0 0 6px; font-size: 24px; line-height: 1.2; }
.sdma-get__sub { margin: 0 0 10px; opacity: .9; font-size: 15px; }
.sdma-get__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sdma-get__chips li { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 600; }
@media (max-width: 480px) { .sdma-get__hero { flex-direction: column; text-align: center; } .sdma-get__chips { justify-content: center; } }
.sdma-get__card { box-sizing: border-box; background: #fff; border: 1px solid var(--sdma-border); border-radius: 18px; padding: 18px; margin: 0 0 14px; display: grid; gap: 10px; }
.sdma-get__h { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; color: var(--sdma-navy); font-size: 18px; }
.sdma-get__note, .sdma-get__meta { margin: 0; color: var(--sdma-muted); font-size: 13px; text-align: center; }
.sdma-get__ok { display: flex; align-items: center; gap: 8px; margin: 0; color: #166534; font-weight: 700; font-size: 17px; }
.sdma-get__status { margin: 0; color: #374151; }
.sdma-get__warn { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff7ed; color: #9a3412; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sdma-get__how summary { cursor: pointer; font-weight: 600; color: var(--sdma-navy); padding: 6px 0; }
.sdma-steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.sdma-steps--ios { list-style: none; padding: 0; counter-reset: s; }
.sdma-steps--ios li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--sdma-bg); counter-increment: s; }
.sdma-steps__ico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: #fff; color: #007aff; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); position: relative; }
.sdma-steps__ico::after { content: counter(s); position: absolute; top: -6px; left: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--sdma-orange); color: var(--sdma-navy); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sdma-get__arrow { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 99994; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 14px; border-radius: 14px; background: var(--sdma-navy); color: #fff; font-size: 12px; font-weight: 700; animation: sdma-bob 1.4s ease-in-out infinite; }
.sdma-get__arrow::after { content: ''; position: absolute; bottom: -8px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--sdma-navy); border-bottom: 0; }
@keyframes sdma-bob { 50% { transform: translate(-50%, -8px); } }
.sdma-get__qr { grid-template-columns: 1fr; align-items: center; }
@media (min-width: 560px) { .sdma-get__qr { grid-template-columns: 180px 1fr; } }
.sdma-get__qrbox { width: 180px; height: 180px; background: #fff; border-radius: 12px; border: 1px solid var(--sdma-border); padding: 6px; }
.sdma-get__qrbox svg { width: 100%; height: 100%; display: block; }
.sdma-get__features { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sdma-get__features li { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--sdma-bg); }
.sdma-get__features .sdma-i { color: #b36b00; }
.sdma-get__features strong { color: var(--sdma-navy); }
.sdma-get__features span { font-size: 13px; color: var(--sdma-muted); }
.sdma-get__faq details { border-top: 1px solid var(--sdma-border); padding: 10px 0; }
.sdma-get__faq summary { cursor: pointer; font-weight: 600; color: var(--sdma-navy); }
.sdma-get__faq p { margin: 8px 0 0; color: #4b5563; }

/* ---------- My Account > Notifications ---------- */
.sdma-inbox__device { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--sdma-bg); margin: 0 0 16px; }
.sdma-inbox__device.is-on { background: #ecfdf3; }
.sdma-inbox__bell { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #b36b00; display: flex; align-items: center; justify-content: center; flex: none; }
.sdma-inbox__status { flex: 1; min-width: 160px; font-size: 14px; color: #374151; }
.sdma-inbox__empty { color: var(--sdma-muted); }
.sdma-inbox__list { list-style: none; margin: 0; padding: 0; }
.sdma-inbox__item a { display: flex; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--sdma-border); text-decoration: none; color: inherit; }
.sdma-inbox__item img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.sdma-inbox__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sdma-inbox__text strong { color: var(--sdma-navy); }
.sdma-inbox__text span { color: #4b5563; font-size: 14px; overflow-wrap: anywhere; }
.sdma-inbox__text time { color: var(--sdma-muted); font-size: 12px; }
.sdma-inbox__item.is-new strong::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--sdma-orange); vertical-align: middle; }

.sdma-cats { margin: 0 0 24px; }

/* Inside the app the theme's full-screen "Loading" screen is not needed (the app shows its own) and can get stuck. */
html.sdma-app .wf_preloader, html.sdma-app #wf_preloader { display: none !important; }
html.sdma-app body.overlay--enabled { overflow: auto !important; }
