/**
 * ORKIDEM-SELLER-MOBILE-WAVE-B-TOUCH-CLOSURE-V20
 * <=820px only.
 *
 * V19 showed zero P1/body-width overflow on the six completed families.
 * This closure therefore DOES NOT rebuild layouts/tables.
 * It only repairs interaction height, checkbox/radio geometry and a few
 * oversized visual icons while preserving data density and table contracts.
 */

@media (max-width: 820px) {

  /* ---------------------------------------------------------
     Shared seller account hit target for Wave B pages
     --------------------------------------------------------- */
  html body.seller-master-v2.seller-master-v2:is(
    .seller-page--stok-fiyat-index,
    .seller-page--envanter-recete,
    .seller-page--finans-index,
    .seller-page--guvenlik-index,
    .seller-page--bildirimler-index,
    .seller-page--siparis-teslimat-ayarlari-index
  ) > div.app > header.topbar details.smv2-account-menu > summary.account {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    box-sizing: border-box !important;
  }

  /* ---------------------------------------------------------
     STOCK & PRICE
     --------------------------------------------------------- */
  html body.seller-master-v2.seller-master-v2.seller-page--stok-fiyat-index
  #ana-icerik#ana-icerik .smv2-stock-price-page
  :is(
    .panel-sayfa-baslik .buton-grubu > a.buton,
    .s32-stock-filter input:not([type="checkbox"]):not([type="radio"]),
    .s32-stock-filter select,
    .s32-stock-filter button.buton,
    .s32-stock-filter a.buton,
    .s32-stock-workspace-head > button.buton,
    .tablo-input,
    a.buton.buton-kucuk,
    button.buton.buton-kucuk
  ) {
    min-height: 40px !important;
    height: 40px !important;
    box-sizing: border-box !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--stok-fiyat-index
  #ana-icerik#ana-icerik .smv2-stock-price-page
  input[type="checkbox"],
  html body.seller-master-v2.seller-master-v2.seller-page--stok-fiyat-index
  #ana-icerik#ana-icerik .smv2-stock-price-page
  input[type="radio"] {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--stok-fiyat-index
  #ana-icerik#ana-icerik .smv2-stock-price-page
  :is(label, .orkidem-r13-mobile-value):has(> input[type="checkbox"]),
  html body.seller-master-v2.seller-master-v2.seller-page--stok-fiyat-index
  #ana-icerik#ana-icerik .smv2-stock-price-page
  :is(label, .orkidem-r13-mobile-value):has(> input[type="radio"]) {
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
  }

  /* ---------------------------------------------------------
     RECIPE
     --------------------------------------------------------- */
  html body.seller-master-v2.seller-master-v2.seller-page--envanter-recete
  #ana-icerik#ana-icerik .smv2-recipe-page
  :is(
    button,
    a.buton,
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    select,
    textarea
  ) {
    min-height: 40px !important;
    box-sizing: border-box !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--envanter-recete
  #ana-icerik#ana-icerik .smv2-recipe-page
  :is(input[type="checkbox"], input[type="radio"]) {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--envanter-recete
  #ana-icerik#ana-icerik .smv2-recipe-page
  :is(label, td, .orkidem-r13-mobile-value):has(> input[type="checkbox"]),
  html body.seller-master-v2.seller-master-v2.seller-page--envanter-recete
  #ana-icerik#ana-icerik .smv2-recipe-page
  :is(label, td, .orkidem-r13-mobile-value):has(> input[type="radio"]) {
    min-height: 40px !important;
  }

  /* ---------------------------------------------------------
     FINANCE
     --------------------------------------------------------- */
  html body.seller-master-v2.seller-master-v2.seller-page--finans-index
  #ana-icerik#ana-icerik .sf-r1
  :is(
    button,
    a.sf-r1-btn,
    .sf-r1-btn,
    summary,
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    select,
    textarea
  ) {
    min-height: 40px !important;
    box-sizing: border-box !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--finans-index
  #ana-icerik#ana-icerik .sf-r1 .sf-r1-provider-icon {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--finans-index
  #ana-icerik#ana-icerik .sf-r1 .sf-r1-provider-icon :is(svg, i) {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
  }

  /* ---------------------------------------------------------
     SECURITY
     --------------------------------------------------------- */
  html body.seller-master-v2.seller-master-v2.seller-page--guvenlik-index
  #ana-icerik#ana-icerik .osr1-page
  :is(
    button,
    a.osr1-btn,
    .osr1-btn,
    summary,
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    select,
    textarea
  ) {
    min-height: 40px !important;
    box-sizing: border-box !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--guvenlik-index
  #ana-icerik#ana-icerik .osr1-page
  :is(.osr1-health-icon, .osr1-status-icon) {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--guvenlik-index
  #ana-icerik#ana-icerik .osr1-page
  :is(.osr1-health-icon, .osr1-status-icon) :is(svg, i) {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
  }

  /* ---------------------------------------------------------
     NOTIFICATIONS
     --------------------------------------------------------- */
  html body.seller-master-v2.seller-master-v2.seller-page--bildirimler-index
  #ana-icerik#ana-icerik .onr31-page
  :is(
    button,
    select,
    summary,
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    textarea,
    a[class*="btn"],
    a[class*="button"]
  ) {
    min-height: 40px !important;
    box-sizing: border-box !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--bildirimler-index
  #ana-icerik#ana-icerik .onr31-page
  :is(input[type="checkbox"], input[type="radio"]) {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    margin: 0 !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--bildirimler-index
  #ana-icerik#ana-icerik .onr31-page
  label:has(> input[type="checkbox"]),
  html body.seller-master-v2.seller-master-v2.seller-page--bildirimler-index
  #ana-icerik#ana-icerik .onr31-page
  label:has(> input[type="radio"]) {
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--bildirimler-index
  #ana-icerik#ana-icerik .onr31-page
  :is([class*="icon"], [class*="ikon"]):not(button):not(a) {
    max-width: 24px !important;
    max-height: 24px !important;
  }

  /* ---------------------------------------------------------
     DELIVERY SETTINGS
     --------------------------------------------------------- */
  html body.seller-master-v2.seller-master-v2.seller-page--siparis-teslimat-ayarlari-index
  #ana-icerik#ana-icerik .odr5-page
  :is(
    button,
    .odr5-btn,
    a.odr5-btn,
    summary,
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    select,
    textarea
  ) {
    min-height: 40px !important;
    box-sizing: border-box !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--siparis-teslimat-ayarlari-index
  #ana-icerik#ana-icerik .odr5-page button.odr5-info-close {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--siparis-teslimat-ayarlari-index
  #ana-icerik#ana-icerik .odr5-page
  :is(input[type="checkbox"], input[type="radio"]) {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
  }

  html body.seller-master-v2.seller-master-v2.seller-page--siparis-teslimat-ayarlari-index
  #ana-icerik#ana-icerik .odr5-page
  label:has(> input[type="checkbox"]),
  html body.seller-master-v2.seller-master-v2.seller-page--siparis-teslimat-ayarlari-index
  #ana-icerik#ana-icerik .odr5-page
  label:has(> input[type="radio"]) {
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
}

/* Small-phone density guard: do not create full-width button walls. */
@media (max-width: 600px) {
  html body.seller-master-v2.seller-page--stok-fiyat-index #ana-icerik#ana-icerik .buton-grubu,
  html body.seller-master-v2.seller-page--envanter-recete #ana-icerik#ana-icerik .buton-grubu,
  html body.seller-master-v2.seller-page--finans-index #ana-icerik#ana-icerik .sf-r1-actions,
  html body.seller-master-v2.seller-page--guvenlik-index #ana-icerik#ana-icerik .osr1-actions,
  html body.seller-master-v2.seller-page--bildirimler-index #ana-icerik#ana-icerik .onr31-filter-actions,
  html body.seller-master-v2.seller-page--siparis-teslimat-ayarlari-index #ana-icerik#ana-icerik .odr5-rule-actions {
    flex-wrap: wrap !important;
  }
}