body, body.font-sans, input, button, select, textarea {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
body { line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -0.015em; font-weight: 600; }
.font-black { font-weight: 700; }
.font-bold { font-weight: 600; }
button, input, select, textarea { font: inherit; }

.tmb-dialog { border: 0; border-radius: 22px; padding: 28px; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; margin: auto; background: #fff; color: #182235; box-shadow: 0 24px 80px #0f172a40; font-family: "Segoe UI", Arial, sans-serif; }
.tmb-dialog::backdrop { background: #0f172a80; backdrop-filter: blur(3px); }
.tmb-dialog form { margin: 0; }
.tmb-dialog-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #eef2ff; color: #3349a8; font-size: 24px; margin-bottom: 18px; }
.tmb-dialog h2 { font-size: 21px; line-height: 1.3; margin: 0 0 10px; font-weight: 600; }
.tmb-dialog p { font-size: 15px; line-height: 1.65; color: #566176; margin: 0; overflow-wrap: anywhere; }
.tmb-dialog input, .tmb-dialog textarea { display: block; box-sizing: border-box; width: 100%; padding: 12px 14px; margin-top: 20px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #182235; }
.tmb-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.tmb-dialog-actions button { cursor: pointer; border-radius: 10px; padding: 11px 16px; border: 1px solid transparent; font-size: 14px; font-weight: 600; }
.tmb-dialog-cancel { background: #f1f5f9; color: #334155; }
.tmb-dialog-approve { background: #16244a; color: #fff; }
.tmb-dialog-danger { background: #b42335; }
.tmb-dialog-actions button:focus-visible, .tmb-dialog input:focus-visible, .tmb-dialog textarea:focus-visible { outline: 3px solid #93a9ea; outline-offset: 3px; }
.tmb-notices { position: fixed; z-index: 2147483647; bottom: 24px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100vw - 32px)); display: grid; gap: 10px; pointer-events: none; }
.tmb-notice { display: flex; align-items: center; gap: 18px; padding: 15px 18px; border: 1px solid #dbe3ed; border-radius: 14px; background: #fff; color: #24324a; box-shadow: 0 8px 32px #0f172a26; font-size: 14px; line-height: 1.5; pointer-events: auto; }
.tmb-notice span { flex: 1; overflow-wrap: anywhere; }
.tmb-notice button { border: 0; background: transparent; color: #64748b; font-size: 24px; cursor: pointer; padding: 0 4px; }

@media (max-width: 767px) {
    input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; min-width: 0; max-width: 100%; }
    #cartDrawer, #sideMenu { height: 100dvh; }
    #cartDrawer button, #sideMenu button { min-height: 44px; min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

#cartDrawer.translate-x-full, #sideMenu.translate-x-full { display: none; }
#cartDrawer, #sideMenu { height: 100dvh; max-width: 100vw; }
#cartDrawer > :first-child, #cartDrawer > :last-child { flex-shrink: 0; }
#cartItems { min-height: 0; overscroll-behavior: contain; }
#variantOverlay { overflow-y: auto; overscroll-behavior: contain; }
#variantOverlay > div { margin-top: 0; max-height: calc(100dvh - 32px); overflow-y: auto; }
#sideMenu { overflow-y: auto; overscroll-behavior: contain; }

.tmb-checkout .grid > *, .tmb-checkout .flex > * { min-width: 0; }
.tmb-checkout main { max-width: 100%; }
.tmb-checkout input, .tmb-checkout select, .tmb-checkout textarea { box-sizing: border-box; }
.tmb-checkout p { overflow-wrap: anywhere; }
