/* Mobile layout for the pricing and purchase catalogue. */

@media screen and (max-width: 1024px) {
  .price_main,
  .price_main .container,
  .price_body,
  .price_left,
  .price_right {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .price_banner {
    min-width: 0 !important;
  }
}

@media screen and (max-width: 768px) {
  .price_head {
    width: 100%;
    min-width: 0;
    padding-top: 60px;
    overflow: hidden;
    background: #edf3f8;
  }

  .price_head > nav {
    top: 0 !important;
    left: 0 !important;
  }

  .price_banner {
    display: block;
    width: 100%;
    height: 132px;
    object-fit: cover;
    object-position: left center;
  }

  .price_main {
    overflow: visible;
  }

  .price_main .container {
    padding-right: 16px !important;
    padding-left: 16px !important;
    overflow: visible;
  }

  .crumbs {
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .price_body {
    margin-bottom: 40px;
    overflow: visible;
  }

  /* Compact category switcher that stays below the fixed site header. */
  .price_left {
    position: sticky;
    top: 60px;
    z-index: 8;
    float: none;
    margin: 0 0 20px;
    padding: 0;
    border: 1px solid #e1e8f2;
    border-radius: 12px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(31, 66, 112, .12);
    backdrop-filter: blur(12px);
    overflow: hidden;
  }

  .price_left .sectionH {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price_left h3 {
    display: none;
  }

  .price_left .subNav {
    position: relative;
    min-height: 43px;
    padding: 11px 8px 9px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: #f7f9fc;
    color: #4c5b70;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    box-sizing: border-box;
  }

  .price_left .subNav::after {
    display: none;
  }

  .price_left .subNav.currentDd {
    color: #176bd4;
    border-bottom-color: #2f80ed;
    background: #fff;
  }

  .price_left .navContent {
    display: none !important;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding: 8px 10px 10px;
    gap: 8px;
    border: 0;
    border-top: 1px solid #edf1f6;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    box-sizing: border-box;
  }

  .price_left .sectionH > .subNav:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .price_left .sectionH > .subNav:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .price_left .subNav.currentDd + .navContent {
    display: flex !important;
  }

  .price_left .navContent li {
    flex: 0 0 auto;
    float: none;
    border: 0;
  }

  .price_left .navContent li a {
    display: block;
    height: 38px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #dbe3ef;
    border-radius: 19px;
    box-sizing: border-box;
    background: #fff;
    color: #405168;
    font-size: 13px;
    line-height: 36px;
    text-align: center;
    white-space: nowrap;
    outline: 0;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }

  .price_left .navContent li.this a {
    border-color: #2878e4;
    color: #fff;
    background: #2878e4;
    box-shadow: none;
  }

  .price_left .navContent li a:focus,
  .price_left .navContent li a:active {
    outline: 0;
    filter: none;
    box-shadow: none;
  }

  .price_right {
    float: none;
  }

  .price_right > h3 {
    margin-bottom: 18px;
    padding: 0 0 13px;
    font-size: 25px;
    line-height: 1.25;
  }

  .price_right > h3 span {
    display: block;
    margin: 7px 0 0;
    padding: 0;
    border-left: 0;
    font-size: 13px;
    line-height: 1.6;
  }

  .price_right section {
    width: 100%;
    padding: 0;
  }

  .price_right article {
    width: 100%;
    margin-bottom: 12px;
    padding: 11px;
    scroll-margin-top: 168px;
    border: 1px solid #e5ebf3;
    border-left: 3px solid #d8e8fb;
    border-radius: 12px;
    background: linear-gradient(145deg, #fff 0%, #fbfdff 100%);
    box-shadow: 0 5px 16px rgba(31, 66, 112, .07);
    box-sizing: border-box;
  }

  .price_right article header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    padding: 7px 6px 10px;
    border-bottom: 1px solid #edf1f6;
    border-radius: 0;
    background: transparent;
  }

  .price_right article header img {
    grid-column: 1;
    width: 34px;
    height: 34px;
    object-fit: contain;
  }

  .price_right article header > span:nth-of-type(1) {
    grid-column: 2;
    min-width: 0;
    margin-left: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .price_right article header .fr {
    grid-column: 3;
    float: none;
    display: block;
    width: auto;
  }

  .price_right article .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 94px;
    min-height: 38px;
    height: 38px;
    padding: 0 13px;
    border-radius: 19px;
    font-size: 14px;
    line-height: 1.2;
    box-shadow: 0 6px 16px rgba(252, 115, 4, .2);
  }

  .price_right article ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    overflow: visible;
  }

  .price_right article li {
    float: none;
    width: auto;
    min-width: 0;
  }

  .price_right article li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 34px;
    margin: 0;
    padding: 6px 12px;
    border-color: #dce4ee;
    border-radius: 17px;
    background: #f7f9fc;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  .price_right li a:hover::before,
  .price_right li a:hover::after,
  .price_right .selected a::before,
  .price_right .selected a::after {
    display: none;
  }

  .price_right article li a:hover {
    border-color: #8dbbf3;
    color: #176bd4;
    background: #eef6ff;
  }

  .price_right article .selected a {
    border-color: #2f80ed;
    color: #fff;
    background: linear-gradient(135deg, #3b8ef3 0%, #236fd0 100%);
    box-shadow: 0 4px 10px rgba(47, 128, 237, .24);
  }

  /* Keep the QR guidance dialog inside the phone viewport. */
  .shade_QR {
    z-index: 1000;
    padding: 16px;
    box-sizing: border-box;
  }

  .scancode {
    width: calc(100% - 32px);
    max-width: 390px;
    max-height: calc(100vh - 32px);
    padding: 24px 18px 20px;
    border-radius: 15px;
    overflow-y: auto;
  }

  .scancode h3 {
    font-size: 23px;
  }

  .scancode h5 {
    padding: 0 20px;
    font-size: 14px;
    line-height: 1.5;
  }

  .scancode .scancode_IMG {
    width: min(54vw, 190px);
    margin: 18px auto;
  }

  .scancode ul {
    padding: 13px 0 0;
  }

  .scancode li {
    font-size: 13px;
    line-height: 1.6;
  }

  .closeSQR {
    width: 34px;
    height: 34px;
    right: 10px;
    top: 10px;
  }

  .closeSQR::before,
  .closeSQR::after {
    right: 15px;
    top: 8px;
    height: 15px;
  }

  .commodity {
    display: none !important;
  }

  /* Preserve a usable cart and confirmation flow on phones. */
  #suspend .suspend {
    display: flex !important;
    flex-direction: column;
    top: auto !important;
    right: 14px !important;
    bottom: 14px;
    width: 48px;
    margin: 0 !important;
    transform: none !important;
    z-index: 900;
  }

  #suspend .suspend > a:not(#all_buycar):not(#scrollTo) {
    display: none !important;
  }

  #suspend .suspend #all_buycar,
  #suspend .suspend #scrollTo {
    width: 48px;
    height: 48px;
    margin: 0 0 8px;
    padding: 10px;
    border-radius: 50%;
    box-sizing: border-box;
  }

  #suspend .suspend #all_buycar img,
  #suspend .suspend #scrollTo img {
    width: 28px;
    height: 28px;
  }

  #suspend .suspend #all_buycar .count {
    top: -3px;
    right: -3px;
  }

  #suspend .sideR.mobile-cart-open {
    position: fixed;
    inset: 0;
    display: block !important;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(18, 28, 43, .45);
    z-index: 1100;
  }

  #suspend .sideR .right {
    display: none;
  }

  #suspend .sideR .left {
    left: auto;
    right: 0;
    display: flex !important;
    flex-direction: column;
    width: min(92vw, 420px);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    border: 0;
    border-radius: 16px 0 0 16px;
    box-sizing: border-box;
  }

  #suspend .sideR .left .clouse {
    width: 40px;
    height: 40px;
    right: 7px;
    top: 3px;
    background-position: center;
    background-repeat: no-repeat;
  }

  #suspend .sideR .left h4 {
    flex: 0 0 48px;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 50px 0 16px;
    line-height: 48px;
    box-sizing: border-box;
  }

  #suspend .sideR .left_list {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 14px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  #suspend .sideR .side_end {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 100%;
    padding: 10px 4px 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid #eceff3;
    background: #fff;
    box-shadow: 0 -4px 14px rgba(24, 39, 58, .08);
    box-sizing: border-box;
  }

  #suspend .sideR .side_end .statistics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 20px);
    min-height: 24px;
    margin: 0 10px 8px !important;
    overflow: visible;
    box-sizing: border-box;
  }

  #suspend .sideR .side_end .statistics .span_l,
  #suspend .sideR .side_end .statistics .span_r {
    float: none;
    line-height: 24px;
  }

  #suspend .sideR .side_end > a {
    display: block !important;
    width: calc(100% - 20px);
    min-height: 44px;
    height: 44px !important;
    margin: 0 10px !important;
    border-radius: 6px;
    background: #f88158 !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 44px !important;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
  }

  #suspend .shade {
    z-index: 1200;
  }

  #suspend .pop-up1 {
    left: 50% !important;
    top: 50% !important;
    width: calc(100% - 32px);
    max-width: 360px;
    margin: 0 !important;
    padding: 38px 16px 24px;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    z-index: 1201;
  }

  #suspend .pop-up1 p {
    margin: 38px 0 24px;
    font-size: 17px;
    line-height: 1.55;
    max-height: none;
  }

  #suspend .pop-up1 a {
    width: calc(50% - 7px);
    max-width: 123px;
    min-height: 40px;
    height: 40px;
    line-height: 38px;
    box-sizing: border-box;
  }

  #suspend .pop-up1 .btn_close {
    margin-left: 8px;
  }

  /* Checkout form becomes a scrollable full-screen sheet. */
  #suspend #gray {
    z-index: 1150;
  }

  #suspend #popup.payment {
    top: max(8px, env(safe-area-inset-top)) !important;
    left: 8px !important;
    width: calc(100% - 16px) !important;
    height: calc(100vh - 16px);
    height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom))) !important;
    max-height: none;
    margin: 0 !important;
    border-radius: 14px;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1160;
  }

  body.payment-dialog-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.payment-dialog-open #nb_icon_wrap,
  body.payment-dialog-open #newBridge,
  body.payment-dialog-open #suspend > .suspend,
  body.payment-dialog-open .m-accessibility-entry {
    display: none !important;
  }

  #suspend .payment .payment_top > p {
    height: 50px;
    padding: 11px 44px 8px;
    box-sizing: border-box;
  }

  #suspend .payment .payment_top > p img {
    width: 28px;
    margin-right: 8px;
  }

  #suspend .payment .payment_top > p span {
    font-size: 19px;
  }

  #suspend .payment .payment_top > p strong {
    right: 14px;
    font-size: 22px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    top: 5px;
    text-align: center;
  }

  #suspend .payment .payment_top .procedure {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 72px;
    padding: 10px 20px 0;
    background-size: cover;
    box-sizing: border-box;
  }

  #suspend .payment .payment_top .procedure li,
  #suspend .payment .payment_top .procedure li:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    float: none;
    width: 72px;
    line-height: 16px;
    font-size: 13px;
    white-space: nowrap;
    color: #fff;
  }

  #suspend .payment .payment_top .procedure li:last-child {
    color: #0d61c1;
  }

  #suspend .payment .payment_top .procedure li:first-child > img,
  #suspend .payment .payment_top .procedure li:last-child > img {
    display: block;
    width: 42px;
    height: 42px;
    margin: 0 auto 2px;
    flex: 0 0 42px;
  }

  #suspend .payment .payment_top .procedure li:nth-of-type(2) {
    display: block;
    flex: 1;
    width: auto;
    margin: 15px 6px 0;
    overflow: hidden;
  }

  #suspend .payment .payment_top .procedure li:nth-of-type(2) > img {
    display: block;
    width: 100%;
    height: 13px;
    object-fit: fill;
  }

  #suspend .payment_body {
    height: calc(100% - 122px);
    overflow: hidden;
  }

  #suspend .payment_body #title {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 4px;
    height: 50px;
    margin: 0;
    padding: 5px;
    border: 0;
    background: #f3f7fb;
    box-sizing: border-box;
  }

  #suspend .payment_body #title a,
  #suspend .payment_body #title a:first-child {
    flex: 1;
    width: auto;
    height: 40px;
    line-height: 40px;
    border: 0;
    border-radius: 8px;
    color: #5b6675;
    background: transparent;
    box-sizing: border-box;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  #suspend .payment_body #title a.select {
    line-height: 40px;
    border: 0;
    color: #1677e8;
    font-weight: 600;
    background: #fff;
    box-shadow: 0 2px 9px rgba(39, 111, 180, .14);
  }

  #suspend .payment_body #word,
  #suspend .payment_body1 .word {
    height: calc(100% - 50px);
    max-height: none !important;
    padding: 0 14px;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-sizing: border-box;
  }

  #suspend .payment_body #word .notes {
    text-align: left;
    margin: 10px 0 4px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7faff;
    line-height: 1.65;
  }

  #suspend .payment_body #word .notes p {
    width: 100%;
    margin-top: 4px;
  }

  #suspend .payment_body #word > li:not(.tomd) .notes {
    margin-top: 18px;
  }

  #suspend .payment_body #word .tomd > div:last-child {
    padding: 0 !important;
  }

  #suspend .payment_body #word label {
    display: block;
    margin-top: 12px;
  }

  #suspend .payment_body #word label > span {
    display: block;
    width: 100%;
    margin: 0 0 5px;
    text-align: left;
  }

  #suspend .payment_body #word input,
  #suspend .payment_body #word textarea,
  #suspend .payment_body #word select {
    width: 100%;
    min-height: 44px;
    height: 44px;
    margin: 0;
    padding: 9px 11px;
    box-sizing: border-box;
    font-size: 16px;
  }

  #suspend .payment_body #word section,
  #suspend .payment_body #word a section {
    position: static;
    margin-top: 5px;
  }

  #suspend .payment_body #word .next {
    width: 100%;
    min-height: 46px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 5px 14px rgba(33, 138, 239, .2);
  }

  #suspend .payment_body1 {
    height: calc(100% - 122px);
    overflow: hidden;
  }

  #suspend .payment_body1 p.title {
    height: 50px;
    line-height: 50px;
    padding-left: 16px;
    font-size: 18px;
    box-sizing: border-box;
  }

  #suspend .payment_body1 .word {
    height: calc(100% - 50px);
  }

  #suspend .payment_list {
    padding: 0 14px;
  }

  #suspend .payment_list label {
    width: calc(50% - 6px);
    margin: 10px 3px !important;
    padding: 12px 4px;
    box-sizing: border-box;
  }

  #suspend .payment_body1 .button {
    display: flex;
    gap: 10px;
    padding: 16px 14px;
  }

  #suspend .payment_body1 .button input,
  #suspend .payment_body1 .button input:first-child {
    flex: 1;
    width: auto;
    min-width: 0;
    margin: 0;
  }
}

@media screen and (max-width: 380px) {
  .price_main .container {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .price_right article {
    padding: 9px;
  }

  .price_right article li a {
    min-height: 32px;
    padding: 5px 10px;
  }

  .price_right article .btn {
    min-width: 86px;
    padding: 0 10px;
    font-size: 13px;
  }
}
