#adminOrdersTable td { vertical-align:middle }
#adminOrdersTable td:last-child .btn {
  min-height:0;
  padding:5px 11px;
  line-height:18px;
  font-size:12px;
}

#adminRefundAmountField[hidden] { display:none }
.admin-refund-reasons { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px }
.admin-refund-reasons .btn { padding:5px 10px; font-size:12px }

@media (max-width:768px) {
  #phoneBindModal.show {
    position:fixed;
    inset:var(--phone-bind-top, 0px) 0 auto !important;
    height:var(--phone-bind-height, 100dvh);
    box-sizing:border-box;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr);
    place-items:end center !important;
    background:rgba(18,40,68,.38);
    backdrop-filter:blur(3px);
  }
  #phoneBindModal .phone-bind-modal {
    width:100vw !important;
    min-width:0 !important;
    max-width:100vw !important;
    max-height:100% !important;
    margin:0 !important;
    box-sizing:border-box;
    overflow:auto;
    overscroll-behavior:contain;
    padding:10px 16px max(20px, env(safe-area-inset-bottom)) !important;
    border:0;
    border-radius:26px 26px 0 0 !important;
    box-shadow:none;
    background:#fff;
    animation:phone-bind-enter .24s ease-out;
  }
  #phoneBindModal .phone-bind-modal::before {
    content:"";
    display:block;
    width:40px;
    height:4px;
    border-radius:4px;
    background:#cbd1d8;
    margin:0 auto 12px;
  }
  #phoneBindModal .modal-top { margin-bottom:14px; padding:0; border:0 }
  #phoneBindModal h2 { font-size:24px; margin:0 }
  #phoneBindModal .close { width:44px; height:44px; padding:0; background:transparent; font-size:25px }
  #phoneBindModal .notice { margin:0 0 16px; background:#e8f3ff; color:#075bce; border:0; border-radius:10px }
  #phoneBindModal .field { margin-bottom:16px }
  #phoneBindModal label { font-size:14px; color:#152644 }
  #phoneBindModal .input { font-size:16px !important; min-height:46px; min-width:0; border-radius:10px }
  #phoneBindModal .sms-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:0;
    border:1px solid #d7e1ef;
    border-radius:10px;
  }
  #phoneBindModal .sms-row:focus-within { border-color:#467fff }
  #phoneBindModal .sms-row .input { border:0; box-shadow:none }
  #phoneBindModal #bindSmsBtn {
    border:0;
    border-left:1px solid #d7e1ef;
    border-radius:0;
    background:transparent;
    color:#075bce;
    padding:7px 11px;
    font-size:14px;
    white-space:nowrap;
  }
  #phoneBindModal .toolbar { display:grid; grid-template-columns:1fr; gap:10px; margin:0 }
  #phoneBindModal .toolbar .btn { min-height:46px; border-radius:10px; font-size:16px; box-shadow:none }
  #phoneBindModal .toolbar .btn-primary { background:#0866df }
  #bindPhoneMsg:not(:empty) { margin:6px 0 12px }
  @keyframes phone-bind-enter { from { transform:translateY(100%) } to { transform:translateY(0) } }
}
@media (prefers-reduced-motion:reduce) {
  #phoneBindModal .phone-bind-modal { animation:none }
}
