.chsp-price-choice,
.chsp-refine,
.chsp-expand,
.chsp-showroom-jump,
.chsp-photo-dialog:not([open]) { display: none; }

@media (max-width: 767px) {
  #case_price:has(.chsp-price-grid) > #loader,
  #case_categorytop:has(.chsp-refine) > #loader { display: none !important; }
  #case_price .chsp-price-controls ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(128px, 100%), 1fr));
    gap: 6px;
    width: 100%;
    overflow: visible;
    white-space: normal;
  }
  #case_price .chsp-price-controls ul li {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }
  #case_price .chsp-price-controls ul li > a { display: none; }
  #case_price .chsp-price-choice {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 5px 3px;
    border: 1px solid #777;
    border-radius: 4px;
    background: #fff;
    color: #252525;
    cursor: pointer;
    font: 600 13px/1.35 sans-serif;
    white-space: normal;
  }
  #case_price .chsp-price-choice[aria-pressed="true"] {
    background: #292929;
    border-color: #292929;
    color: white;
    box-shadow: inset 0 -3px #cb4b27;
  }
  #case_price .chsp-price-grid {
    position: static !important;
    display: grid !important;
    height: auto !important;
    grid-template-columns: minmax(0,1fr);
    gap: 22px;
  }
  #case_price .chsp-price-grid > .sort_item {
    position: static !important;
    transform: none !important;
    transition: none !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
  }
  #case_price .chsp-price-grid > .sort_item[data-chsp-price-hidden] { display: none !important; }
  #case_price .chsp-price-grid > .sort_item > a:first-child {
    display: block;
    opacity: 1 !important;
    transform: none !important;
  }
  #case_price .chsp-price-grid > .sort_item > a:first-child img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto 3/2;
  }
  #case_categorytop #case_category_list .sort_item_box > a,
  #case_price .chsp-price-grid .case-price_item_info h3 {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  #case_price .chsp-price-grid .case-price_item_info :is(dt,dt a,h3) {
    display: block;
    height: auto;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
  }

  :is(#case_categorytop,#case_detail,#case_price) form.vk-filter-search .vkfs__labels {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  :is(#case_categorytop,#case_detail,#case_price) form.vk-filter-search .vkfs__outer-wrap {
    box-sizing: border-box;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
  }
  :is(#case_categorytop,#case_detail,#case_price) form.vk-filter-search .vkfs__outer-wrap:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  :is(#case_categorytop,#case_detail,#case_price) form.vk-filter-search select {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    font-size: 16px !important;
    line-height: 1.4;
  }
  :is(#case_categorytop,#case_detail,#case_price) form.vk-filter-search .vkfs_submit { min-height: 44px; }
  #case_categorytop .chsp-refine {
    display: block;
    margin: 14px auto 20px;
    width: min(94%, 42rem);
    border: 1px solid #b1aca8;
    border-radius: 6px;
    background: white;
    color: #262626;
  }
  .chsp-refine > summary {
    box-sizing: border-box;
    padding: 11px 14px;
    min-height: 46px;
    cursor: pointer;
    font-size: 16px;
  }
  .chsp-refine > summary span:not(:empty) {
    display: block;
    margin: 4px 0 0 17px;
    font-size: 14px;
    line-height: 1.5;
  }
  #case_categorytop .chsp-refine form { margin: 0 auto 14px; width: 94%; }
  #case_detail .photolist_case { position: relative; }
  #ch_official #case_detail #case_detail_contents .photolist_case > :is(.swiper-button-prev,.swiper-button-next) {
    box-sizing: border-box;
    width: 46px !important;
    height: 46px !important;
    margin-top: -23px !important;
    top: 50% !important;
    transform: none !important;
    border-radius: 50%;
    background: rgba(20,20,20,.65);
    color: white;
    background-image: none !important;
  }
  #case_detail .photolist_case > .swiper-button-prev { left: 5px !important; }
  #case_detail .photolist_case > .swiper-button-next { right: 5px !important; }
  #case_detail .photolist_case > :is(.swiper-button-prev,.swiper-button-next)::after {
    font-size: 19px;
    text-shadow: none;
  }
  #case_detail .photolist_case img { cursor: zoom-in; }
  #case_detail .chsp-expand {
    position: absolute;
    right: 6px;
    top: 6px;
    z-index: 2;
    display: block;
    min-height: 44px;
    padding: 4px 12px;
    border: 0;
    border-radius: 4px;
    background: rgba(24,24,24,.78);
    color: #fff;
    cursor: zoom-in;
    font: 600 14px/1.3 sans-serif;
  }
  html.chsp-photo-open,
  html.chsp-photo-open body { overflow: hidden !important; }
  dialog.chsp-photo-dialog::backdrop { background: #141414; }
  dialog.chsp-photo-dialog[open] {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0,1fr) auto;
    gap: 8px;
    margin: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    padding: max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    background: #141414;
    color: #fff;
  }
  .chsp-photo-header,.chsp-photo-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .chsp-photo-header { padding-left: 8px; }
  .chsp-photo-controls button,.chsp-photo-header button {
    min-width: 44px;
    min-height: 44px;
    padding: 5px 10px;
    font: inherit;
    font-size: 14px;
    color: #fff;
    border: 1px solid #aaa;
    background: #292929;
    border-radius: 4px;
  }
  .chsp-photo-controls button:disabled { color: #aaa; border-color: #666; }
  .chsp-photo-stage { display: flex; overflow: auto; min-height: 0; overscroll-behavior: contain; }
  dialog.chsp-photo-dialog .chsp-photo-stage img {
    display: block;
    flex: none;
    margin: auto;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }
  .chsp-showroom-jump {
    box-sizing: border-box;
    display: grid;
    gap: 6px;
    color: #252525;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
  }
  .chsp-showroom-jump select {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 7px 10px;
    border: 1px solid #777;
    border-radius: 4px;
    color: #252525;
    background-color: #fff;
    font-size: 16px;
  }
  .chsp-showroom-target { scroll-margin-top: 76px; }
  body.showroom [data-elementor-type="wp-page"] :is(.top_btn_list a,a.elementor-button) {
    box-sizing: border-box;
    min-height: 44px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
  }
  #case_price .owners_voice_new .case-price_item_info_link {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
  }
  #case_price .owners_voice_new .case-price_item_info_link > li { flex: 1 1 125px; margin: 0; }
  #case_price .owners_voice_new .case-price_item_info_link > li:empty { display: none; }
  #case_price .owners_voice_new .case-price_item_info_link a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
    min-height: 44px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
  }
}
