/* Font Face Definitions */
@font-face {
  font-family: 'AbarHigh';
  src: url('../fonts/AbarHigh-Medium.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  --sd-primary-bg: #111827;
  --sd-primary-bg-hover: #374151;
  --sd-primary-text: #ffffff;
  --sd-text: #111827;
  --sd-muted: #6b7280;
  --sd-danger: #ef4444;
}

.smart-open-btn {
  font-family: 'AbarHigh', sans-serif;
  background: transparent;
  border: 1px solid transparent;
  color: var(--sd-text);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.smart-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  box-sizing: border-box;
  overflow: hidden;
  overscroll-behavior: contain;
}

.smart-modal-backdrop.active {
  display: flex;
}


@media (min-width: 481px) {
  .smart-modal-backdrop {
    background: transparent !important;
  }

  .smart-modal-backdrop.active {
    background: rgba(0, 0, 0, 0.10) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(4px);
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
  }
  
  .smart-input-row input,
  .smart-input-wrapper input {
    text-align: center !important;
    border-radius: calc(48px / 2) !important;
  }
  
  .smart-code-input-wrapper input {
    border-radius: calc(48px / 2) !important;
  }
  
  .smart-btn,
  .smart-btn-primary,
  .smart-btn-ghost,
  .smart-resend-btn,
  .smart-inline-verify-btn {
    border-radius: 999em !important;
  }
  
  .smart-step-signup input[type="text"] {
    border-radius: 12px !important;
  }
  
  .smart-input-row input::placeholder,
  .smart-input-wrapper input::placeholder,
  .smart-step-signup input[type="text"]::placeholder,
  .smart-code-input-wrapper input::placeholder {
    text-align: center !important;
    opacity: 1 !important;
  }
}

.smart-modal {
  position: relative;
  width: 100%;
  max-width: 424px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  overflow: hidden;
  font-family: 'AbarHigh', sans-serif;
  color: var(--sd-text);
  z-index: 100000;
  overscroll-behavior: none;
}

.smart-modal input,
.smart-modal button {
  transform: none !important;
}

.smart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  direction: rtl;
}

.smart-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.smart-header-icon svg {
  width: 100%;
  height: 100%;
}

.smart-header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 1;
}

.smart-logo {
  font-weight: 400;
  color: var(--sd-text);
  font-size: 16px;
}

.smart-close {
  background: transparent !important;
  border: none !important;
  font-size: 30px !important;
  line-height: 1 !important;
  cursor: pointer;
  color: var(--sd-muted) !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.smart-close:hover,
.smart-close:active,
.smart-close:focus {
    background: transparent !important;
    box-shadow: none !important;
    color: #111827;
}

.smart-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.smart-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.smart-step h2 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--sd-text);
}
.smart-sub {
  margin: 0 0 4px 0;
  color: #374151;
  font-size: 13px;
}

.smart-input-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
}

.smart-input-wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  overflow: visible !important;
}

.smart-input-wrapper input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 12px 16px 12px 50px;
  border-radius: calc(48px / 2) !important;
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  font-family: 'AbarHigh', sans-serif;
  color: var(--sd-text);
  background: #fff;
  text-align: center;
  transform: none !important;
}

.smart-input-row input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border-radius: calc(48px / 2) !important;
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  font-family: 'AbarHigh', sans-serif;
  color: var(--sd-text);
  background: #fff;
  text-align: center;
  transform: none !important;
}

.smart-input-clear {
  position: absolute !important;
  left: 12px !important;
  top: calc(50% - 22px) !important;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  border: none !important;
  background: transparent !important;
  color: #6b7280;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 10 !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.smart-input-clear:hover,
.smart-input-clear:active,
.smart-input-clear:focus {
  background: transparent !important;
  color: #374151;
  box-shadow: none !important;
  outline: none !important;
}

.smart-input-clear.show {
  display: flex;
}
.smart-input-row input::placeholder,
.smart-input-wrapper input::placeholder {
  color: #9ca3af;
  text-align: center;
}

.smart-input-row input.error,
.smart-input-wrapper input.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.smart-input-error {
  display: none !important;
}

.smart-btn {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999em !important;
  border: none;
  cursor: pointer;
  font-family: 'AbarHigh', sans-serif;
  font-weight: 400;
  font-size: 14px;
  transition: all 0.18s ease;
  transform: none !important;
}
.smart-btn-primary {
  background: var(--sd-primary-bg);
  color: var(--sd-primary-text);
}
.smart-btn-primary:hover {
  background: var(--sd-primary-bg-hover);
  color: var(--sd-primary-text);
}
.smart-btn-primary:disabled,
.smart-btn-primary.disabled { 
  opacity: 0.4; 
  cursor: not-allowed; 
  background: rgba(0,0,0,0.1) !important;
  color: #9ca3af !important;
}
.smart-btn-primary:disabled:hover,
.smart-btn-primary.disabled:hover { 
  background: rgba(0,0,0,0.1) !important; 
}
.smart-btn-ghost {
  background: transparent;
  color: #374151;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 12px 8px;
  border-radius: 999em !important;
  font-size: 14px;
  font-weight: 400;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
  transform: none !important;
}

.smart-resend-btn {
  background: var(--sd-primary-bg);
  color: var(--sd-primary-text);
  border-radius: 999em !important;
  padding: 12px 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  box-sizing: border-box;
  transform: none !important;
}

.smart-resend-btn .smart-resend-text,
.smart-resend-btn .smart-resend-timer {
  display: inline;
  line-height: 1;
}

.smart-resend-btn:hover {
  background: var(--sd-primary-bg-hover);
  color: var(--sd-primary-text);
}
.smart-resend-btn.disabled, .smart-resend-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* resend row layout */
.smart-resend-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
  margin-top: 8px;
}
.smart-resend-row .smart-btn-ghost,
.smart-resend-row .smart-resend-btn {
  flex: 1;
  padding: 12px 8px;
  border-radius: 999em !important;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}
@media (max-width: 420px) {
  .smart-resend-row { 
    flex-direction: row; 
    align-items: stretch; 
    gap: 8px;
  }
  .smart-resend-row .smart-btn-ghost,
  .smart-resend-row .smart-resend-btn { 
    flex: 1;
    padding: 10px 6px;
    font-size: 13px;
    min-height: 40px;
    border-radius: calc(40px / 2) !important;
  }
}

.smart-step-actions {
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.smart-step-signup .smart-input-row {
  margin-bottom: 14px;
}

.smart-step-signup input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px !important;
  font-size: 16px;
  font-family: 'AbarHigh', sans-serif;
  color: var(--sd-text);
  background: #fff;
  text-align: center;
  box-sizing: border-box;
}

.smart-step-signup input[type="text"]:focus {
  outline: none;
  border-color: var(--sd-primary-bg);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.smart-step-signup input[type="text"]::placeholder {
  color: #9ca3af;
  text-align: center;
}

.smart-step-signup input[type="text"].error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.smart-modal-footer {
  padding: 8px 12px 8px 20px;
  border-top: 1px solid rgba(0,0,0,0.04);
  text-align: center;
  font-size: 12px;
  color: var(--sd-muted);
  margin-top: 8px;
  direction: rtl;
}

.smart-modal-footer p {
  margin: 0;
}

.smart-change-number-footer {
  padding: 8px 12px 8px 20px;
  border-top: 1px solid rgba(0,0,0,0.04);
  text-align: right;
  font-size: 12px;
  color: var(--sd-muted);
  margin-top: 8px;
  direction: rtl;
}

.smart-change-number-footer p {
  margin: 0;
}

.smart-change-number-footer a {
  color: var(--sd-primary-bg);
  text-decoration: none;
  cursor: pointer;
}

.smart-change-number-footer a:hover {
  text-decoration: underline;
  color: var(--sd-primary-bg-hover);
}

.smart-toast {
  position: fixed;
  left: 20px;
  top: 20px;
  background: #fff;
  color: var(--sd-text);
  padding: 16px 22px 16px 18px;
  border-radius: 14px;
  font-family: 'AbarHigh', sans-serif;
  font-size: 15px;
  z-index: 100000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-left: 5px solid var(--sd-primary-bg);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-16px) scale(0.98);
  transition: all 0.32s cubic-bezier(.4,1.4,.6,1);
}
.smart-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.smart-toast-success {
  border-left-color: #10b981;
}
.smart-toast-error {
  border-left-color: #ef4444;
}
.smart-toast-info {
  border-left-color: #111827;
}
.smart-toast-icon {
  font-size: 20px;
  margin-right: 2px;
  display: flex;
  align-items: center;
}
.smart-toast-message {
  flex: 1;
  font-weight: 400;
}

.smart-input-float {
  position: relative;
}
.smart-input-float input {
  padding-top: 0;
  text-align: right;
  border: none;
  border-bottom: 2.5px solid #e5e7eb;
  border-radius: 0;
  transition: border-color 0.22s;
  background: #fff;
}
.smart-input-float input:focus {
  border-bottom: 2.5px solid var(--sd-primary-bg);
}
.smart-input-label {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  background: transparent;
  color: #9ca3af;
  font-size: 15px;
  font-family: 'AbarHigh', sans-serif;
  pointer-events: none;
  opacity: 0;
  transition: all 0.28s cubic-bezier(.4,1.4,.6,1);
  z-index: 2;
}
.smart-input-float input:focus + .smart-input-label,
.smart-input-float input:not(:placeholder-shown) + .smart-input-label,
.smart-input-float input:valid + .smart-input-label {
  top: -14px;
  right: 10px;
  font-size: 13px;
  color: var(--sd-primary-bg);
  background: #fff;
  opacity: 1;
  padding: 0 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-bottom: 2.5px solid var(--sd-primary-bg);
}
.smart-input-float input::placeholder {
  color: #9ca3af;
  text-align: right;
  opacity: 1;
  transition: opacity 0.18s;
}
.smart-input-float input:focus::placeholder,
.smart-input-float input:not(:placeholder-shown)::placeholder {
  opacity: 0;
}

@media (max-width: 480px) {
  .smart-modal-backdrop {
    justify-content: flex-end;
    align-items: flex-end;
    position: absolute;
    bottom: 0;
    overflow: hidden;
    -webkit-overflow-scrolling: none;
    overscroll-behavior: none;
  }
  
  .smart-modal { 
    position: relative;
    width: 100%; 
    max-width: none; 
    height: auto;
    border-radius: 16px 16px 0 0; 
    margin: 0;
    max-height: calc(100vh - 60px);
    overflow: hidden;
    overflow-y: hidden;
    overflow-x: hidden;
    -webkit-overflow-scrolling: none;
    animation: slideUpFromBottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  .smart-modal-body { 
    padding: 16px; 
    gap: 12px;
  }
  .smart-input-row input { 
    height: 44px; 
    padding: 10px 14px; 
    text-align: center; 
    font-size: 14px;
    border-radius: calc(44px / 2) !important;
  }
  .smart-input-wrapper input { 
    height: 44px; 
    padding: 10px 14px 10px 45px; 
    text-align: center; 
    font-size: 14px;
    border-radius: calc(44px / 2) !important;
  }
  .smart-input-row input::placeholder,
  .smart-input-wrapper input::placeholder { 
    text-align: center; 
    opacity: 1;
  }
  .smart-input-clear { 
    width: 32px !important;
    height: 32px !important;
    left: 10px !important;
    top: calc(50% - 22px) !important;
    transform: translateY(-50%) !important;
    font-size: 24px !important;
    position: absolute !important;
    z-index: 10 !important;
  }
  .smart-btn { padding: 10px 14px; font-size: 13px; }
  .smart-resend-btn { padding: 8px 12px; font-size: 12px; }
  .smart-toast {
    left: 8px;
    top: 8px;
    padding: 12px 14px 12px 12px;
    font-size: 13px;
    border-radius: 10px;
  }
}

/* Animation for bottom modal slide up */
@keyframes slideUpFromBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile keyboard handling */
@media (max-width: 480px) {
  .smart-modal-backdrop.keyboard-open {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden;
    z-index: 99999;
    padding-bottom: 0;
    justify-content: flex-end;
    align-items: flex-end;
  }
  
  .smart-modal-backdrop.keyboard-open .smart-modal {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: none !important;
    border-radius: 16px 16px 0 0;
    will-change: transform;
  }
  
  .smart-input-row input,
  .smart-input-wrapper input,
  .smart-code-input-wrapper input {
    font-size: 16px !important;
  }
  
  .smart-input-wrapper input {
    text-align: center !important;
  }
  
  .smart-input-wrapper input::placeholder {
    text-align: center !important;
  }
  
  .smart-modal-backdrop {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .smart-modal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  body.modal-open,
  body.smart-modal-open {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
    overscroll-behavior: none !important;
    -webkit-overflow-scrolling: none !important;
    touch-action: none !important;
  }
  
  html.modal-open,
  html.smart-modal-open {
    height: 100% !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }
  
  .smart-modal-backdrop.active {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: none;
    touch-action: none;
  }
  
  .smart-modal {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: none;
    touch-action: none;
  }
}


/* Code verification info box */
.smart-code-info {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #374151;
}

.smart-code-message {
  flex: 1;
  text-align: right;
}

.smart-code-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.smart-resend-link {
  background: none;
  border: none;
  color: #111827;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
  font-family: 'AbarHigh', sans-serif;
  padding: 0;
}

.smart-resend-link:hover {
  color: #374151;
}

@media (max-width: 480px) {
  .smart-code-info {
    padding: 12px 16px;
    font-size: 13px;
  }
  .smart-code-timer {
    gap: 6px;
  }
  .smart-resend-link {
    font-size: 13px;
  }
}

/* Code input with inline verify button */
.smart-code-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.smart-code-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smart-code-input-wrapper input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border-radius: calc(48px / 2) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  font-family: 'AbarHigh', sans-serif;
  color: var(--sd-text);
  background: #fff !important;
  text-align: center;
  transform: none !important;
}

.smart-code-input-wrapper input:focus {
  outline: none;
  border-color: var(--sd-primary-bg);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.smart-code-input-wrapper input::placeholder {
  color: #9ca3af;
  text-align: center;
}

.smart-code-input-wrapper input.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.smart-inline-verify-btn {
  background: var(--sd-primary-bg) !important;
  color: var(--sd-primary-text) !important;
  border: none !important;
  border-radius: calc(48px / 2) !important;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'AbarHigh', sans-serif;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none !important;
}

.smart-inline-verify-btn:hover {
  background: var(--sd-primary-bg-hover);
  color: var(--sd-primary-text);
}

.smart-inline-verify-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .smart-code-input-row {
    gap: 6px;
  }
  
  .smart-code-input-wrapper input {
    height: 44px;
    padding: 10px 14px;
    text-align: center;
    font-size: 14px;
    border-radius: calc(44px / 2) !important;
  }
  
  .smart-inline-verify-btn {
    padding: 10px 14px;
    height: 44px;
    font-size: 13px;
    border-radius: calc(44px / 2) !important;
  }
  
  .smart-modal-header {
    padding: 20px 16px 18px 16px;
  }
  
  .smart-header-icon {
    width: 40px;
    height: 40px;
  }
  
  .smart-header-icon svg {
    width: 100%;
    height: 100%;
  }
  
  .smart-logo {
    font-size: 14px;
  }
  
  .smart-close,
  .smart-modal .smart-close,
  .smart-modal-header .smart-close,
  button.smart-close,
  #smartCloseBtn {
    background: transparent !important;
    border: none !important;
    font-size: 32px !important;
    line-height: 1 !important;
    color: var(--sd-muted) !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
  }
  
  .smart-step h2 {
    font-size: 15px;
  }
  
  .smart-sub {
    font-size: 12px;
  }
}

/* Phone input row with inline button for mobile */
.smart-phone-input-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.smart-phone-input-row .smart-input-wrapper {
  flex: 1;
}

.smart-phone-input-row .smart-btn {
  width: 100%;
}

@media (max-width: 480px) {
  .smart-phone-input-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }
  
  .smart-phone-input-row .smart-input-wrapper {
    flex: 2;
  }
  
  .smart-phone-input-row .smart-btn {
    flex: 1;
    width: auto;
    height: 44px;
    font-size: 12px;
    padding: 10px 8px;
    white-space: nowrap;
    border-radius: calc(44px / 2) !important;
  }
  
  .smart-phone-input-row .smart-input-wrapper input {
    height: 44px;
    text-align: center !important;
    direction: ltr !important;
    padding-left: 45px !important;
    padding-right: 14px !important;
  }
  
  .smart-phone-input-row .smart-input-wrapper input::placeholder {
    text-align: center !important;
    direction: rtl !important;
  }
}

/* iOS-specific rules */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 480px) {
    .smart-modal-backdrop {
      position: fixed !important;
      top: 0 !important;
      bottom: 0 !important;
      left: 0 !important;
      right: 0 !important;
      overflow: hidden !important;
      -webkit-overflow-scrolling: touch;
    }

    .smart-modal-backdrop.active .smart-modal {
      position: fixed !important;
      bottom: 0 !important;
      top: auto !important;
      left: 0 !important;
      right: 0 !important;
      margin: 0 !important;
      margin-bottom: 0 !important;
      max-height: 100vh !important;
      height: auto !important;
      overflow: hidden !important;
      overflow-y: hidden !important;
      border-radius: 16px 16px 0 0;
      will-change: transform, bottom;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .smart-modal-backdrop.keyboard-open .smart-modal {
      margin-bottom: env(safe-area-inset-bottom, 0px) !important;
      max-height: calc(100vh - env(safe-area-inset-bottom, 0px)) !important;
    }

    body.smart-modal-open,
    html.smart-modal-open {
      overflow: hidden !important;
      height: 100% !important;
      width: 100% !important;
      touch-action: none !important;
      -webkit-touch-callout: none !important;
      overscroll-behavior: none !important;
    }

    .smart-input-row input,
    .smart-input-wrapper input,
    .smart-code-input-wrapper input {
      font-size: 16px !important;
      touch-action: manipulation !important;
    }
  }
}

@media (max-width: 480px) {
  .smart-modal-backdrop.keyboard-open {
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
}

@supports (-webkit-touch-callout: none) and (max-width: 480px) {
    .smart-modal-backdrop.keyboard-open .smart-modal {
        bottom: env(safe-area-inset-bottom, 0px) !important;
        transition: bottom 0.3s ease !important;
    }
}
