/* ===== SMS_BLACKLIST_MOBILE_FIX_V1_START ===== */

@media (max-width: 760px) {
  html.sms-blacklist-mobile-page .content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  html.sms-blacklist-mobile-page .content .page-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 14px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  html.sms-blacklist-mobile-page .content .page-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  html.sms-blacklist-mobile-page .content .page-head h1 {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
  }

  html.sms-blacklist-mobile-page .content .page-head button {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }

  html.sms-blacklist-mobile-page .content .form-row {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    box-sizing: border-box !important;
  }

  html.sms-blacklist-mobile-page .content .form-row > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  html.sms-blacklist-mobile-page
  .content table.blacklist-mobile-table {
    --sms-blacklist-mobile-fix-v1: 1;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html.sms-blacklist-mobile-page
  .content table.blacklist-mobile-table thead {
    display: none !important;
  }

  html.sms-blacklist-mobile-page
  .content table.blacklist-mobile-table tbody {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html.sms-blacklist-mobile-page
  .content table.blacklist-mobile-table tbody tr {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  html.sms-blacklist-mobile-page
  .content table.blacklist-mobile-table tbody tr:last-child {
    margin-bottom: 0 !important;
  }

  html.sms-blacklist-mobile-page
  .content table.blacklist-mobile-table
  tbody td[data-sms-label] {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 16px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    text-align: right !important;
    box-sizing: border-box !important;
  }

  html.sms-blacklist-mobile-page
  .content table.blacklist-mobile-table
  tbody td[data-sms-label]:last-child {
    border-bottom: 0 !important;
  }

  html.sms-blacklist-mobile-page
  .content table.blacklist-mobile-table
  tbody td[data-sms-label]::before {
    content: attr(data-sms-label);
    flex: 0 0 38%;
    color: #64748b;
    font-weight: 800;
    text-align: left;
    overflow-wrap: anywhere;
  }

  html.sms-blacklist-mobile-page
  .content table.blacklist-mobile-table tbody td[colspan] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 82px !important;
    padding: 28px 12px !important;
    border: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  html.sms-blacklist-mobile-page
  .content table.blacklist-mobile-table
  tbody tr:has(> td[colspan]) {
    border: 0 !important;
    margin: 0 !important;
  }

  html.sms-blacklist-mobile-page
  .content table.blacklist-mobile-table button {
    max-width: 100% !important;
    min-height: 38px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html.sms-blacklist-mobile-page
  :is(
    #chat-widget,
    #customer-service,
    .chat-widget,
    .chat-float,
    .float-chat,
    .customer-service,
    [class*="chat-widget"],
    [class*="chat-float"],
    [class*="customer-service"]
  ) {
    display: none !important;
  }

  html.sms-blacklist-mobile-page
  :is(button, a)[aria-label*="客服"],
  html.sms-blacklist-mobile-page
  :is(button, a)[aria-label*="chat" i],
  html.sms-blacklist-mobile-page
  :is(button, a)[aria-label*="support" i],
  html.sms-blacklist-mobile-page
  :is(button, a)[title*="客服"],
  html.sms-blacklist-mobile-page
  :is(button, a)[title*="chat" i] {
    display: none !important;
  }
}

/* ===== SMS_BLACKLIST_MOBILE_FIX_V1_END ===== */
