body.order-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f5f6f9;
  --order-header-offset: 64px;
}

/* 顶栏与产品中心下拉：覆盖 public(1).css 的 .view-control header { z-index: 1 } */
body.order-page-body .order-page__shell {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: var(--order-header-offset);
  overflow: visible;
}

body.order-page-body .order-page__shell.view-control .header.page-header-parent,
body.order-page-body .order-page__shell .page-header-parent.header {
  z-index: 1200 !important;
}

body.order-page-body .order-page__shell .page-header-parent .pls-nav-dropdown {
  z-index: 1201 !important;
}

/* 会员中心 common.css 含全局 .menu-item{display:flex}，会把产品中心下拉挤成一行 */
body.order-page-body
  .order-page__shell
  .page-header-parent
  .pls-nav-dropdown-content-inner
  .nav-menu-dropdown.pls-nav-dropdown-main
  .nav-menu-wrap {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.order-page-body
  .order-page__shell
  .page-header-parent
  .pls-nav-dropdown-content-inner
  .nav-menu-dropdown.pls-nav-dropdown-main
  .nav-menu-wrap
  .menu-item {
  display: block !important;
  flex: 0 0 auto !important;
  min-width: 190px !important;
  padding: 0 32px !important;
  margin: 0 !important;
  color: inherit !important;
  opacity: 1 !important;
  cursor: default !important;
}

body.order-page-body
  .order-page__shell
  .page-header-parent
  .pls-nav-dropdown-content-inner
  .nav-menu-dropdown.pls-nav-dropdown-main
  .nav-menu-wrap
  .menu-item
  .menu-item-title {
  display: flex !important;
  align-items: center !important;
}

body.order-page-body .order-page.inner-page {
  flex: 1 0 auto;
  padding: 0;
  padding-top: 0 !important;
  position: relative;
  z-index: 0;
}

body.order-page-body .order-page .main-content-box {
  position: relative;
  z-index: 0;
}

.order-page__inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  box-sizing: border-box;
}

.order-page .template {
  display: none;
  
}

.order-page .template.is-ready,
.order-page .template[style*="block"] {
  display: block !important;
}

.order-page #mainLoading {
  min-height: 320px;
}

.order-page .main-content-box {
  padding:3px 24px;
  /* background: #fff; */
  border-radius: 8px;
  /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); */
  overflow: visible;
}
.main-content-box .search-box{
  box-shadow: 0px 4px 12px 0px rgba(41, 57, 87, 0.08);
  border: 2px solid #FFFFFF;
  padding: 24px;
  overflow: visible;
}
/* 覆盖 cart goodsList 的 rem 固定高度，避免手机端裁切 */
.order-page .search-box .switch-row {
  display: flex !important;
  align-items: flex-start !important;
  height: auto !important;
  min-height: 0 !important;
  flex-wrap: nowrap !important;
  row-gap: 8px;
  margin-bottom: 0;
  overflow: visible !important;
}

.order-page .search-box .group-switch-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
}

.order-page .search-box .switch-label {
  width: 72px !important;
  min-width: 72px !important;
  flex-shrink: 0 !important;
  font-size: 14px !important;
  line-height: 36px !important;
  color: #35445f;
}

.order-page .search-box .switch-options {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
  margin-top: 4px !important;
  overflow: visible !important;
}

.order-page .search-box .switch-option {
  box-shadow: 8px 8px 20px 0 rgb(55 99 170 / 10%);
}

.order-page .search-box .switch-option.is-active {
  border-color: var(--color-primary) !important;
}

/* 可用区：与产品类型/地域同行布局，选项在 switch-options 内换行 */
.order-page .search-box .switch-options {
  row-gap: 8px;
}

.order-page .search-box .switch-options .shopping-item {
  margin-top: 0 !important;
  height: auto !important;
  min-height: 32px;
  line-height: normal !important;
  flex: 0 0 auto;
  overflow: visible !important;
  align-items: center;
  box-shadow: 8px 8px 20px 0 rgb(55 99 170 / 10%);
}

.order-page .search-box .switch-options .shopping-item:first-child {
  border-left: 1px solid #cfd4dc !important;
}

.order-page .search-box .switch-options .shopping-item .goods-title-only {
  font-size: 14px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.order-page .goods-preview-box {
  /* margin-top: ; */
  border-radius: 8px;
  overflow: visible;
  /* background: #fff; */
  border: 1px solid transparent;
  width: 100%;
  margin: 0px auto;
  background: #f5f6f9;
}

.order-page .goods-preview-frame {
  width: 100%;
  height: auto;
  min-height: 320px;
  overflow: hidden;
  display: block;
  background-color: transparent !important;
  border: 0;
}

.order-page .goods-preview-error-bar {
  position: sticky;
  top: var(--order-header-offset, 64px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #fde2e2;
  background: #fef0f0;
  color: #f56c6c;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(245, 108, 108, 0.15);
}
.order-page .goods-preview-error-bar.is-warning {
  border-color: #faecd8;
  background: #fdf6ec;
  color: #e6a23c;
}
.order-page .goods-preview-error-text {
  flex: 1;
  min-width: 0;
}
.order-page .goods-preview-error-close {
  flex-shrink: 0;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.8;
}

@media screen and (max-width: 992px) {
  .order-page .goods-preview-box {
    /* margin-top: ; */
    border-radius: 8px;
    overflow: visible;
    background: #fff;
    border: 1px solid transparent;
    width: auto;
    margin: 20px auto;
  }
  .order-page .search-box .switch-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .order-page .search-box .switch-label {
    width: 100% !important;
    min-width: 100% !important;
    line-height: 22px !important;
    margin-bottom: 4px;
  }

  .order-page .search-box .switch-options {
    width: 100% !important;
    flex: 0 0 auto !important;
  }

  .order-page .search-box .switch-option,
  .order-page .search-box .switch-options .shopping-item {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
    max-width: 100%;
    justify-content: center;
  }

  .order-page .search-box .switch-options .shopping-item .goods-title-only {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding: 6px 10px !important;
    display: block;
  }

  .order-page .search-box .switch-options .shopping-item {
    height: auto !important;
    min-height: 36px;
    line-height: normal !important;
    align-items: center;
  }
}

@media screen and (max-width: 768px) {
  .order-page .goods-preview-box {
    /* margin-top: ; */
    border-radius: 8px;
    overflow: visible;
    background: #fff;
    border: 1px solid transparent;
    width: auto;
    margin: 20px auto;
  }
  body.order-page-body {
    --order-header-offset: 56px;
  }

  .order-page__inner {
    padding: 0 12px;
  }

  .order-page .main-content-box {
    padding: 16px 12px;
    border-radius: 8px;
  }

  .main-content-box .search-box {
    box-shadow: none;
    border: none;
    padding: 0 12px 8px;
    background: #fff;
    border-radius: 8px;
  }

  .order-page .search-box .group-switch-box {
    gap: 0;
  }

  .order-page .label-pc {
    display: none;
  }
  .order-page .label-m,
  .order-page .switch-basic-title,
  .order-page .switch-selected,
  .order-page .switch-tip {
    display: block;
  }

  .order-page .search-box .switch-row--type {
    flex-direction: column !important;
    align-items: stretch !important;
    margin: 0 0 12px;
    padding: 0;
    border-bottom: none;
  }
  .order-page .search-box .switch-row--type .switch-label {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 8px;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 22px !important;
    color: #1d2129;
  }
  .order-page .search-box .switch-row--type .switch-selected {
    display: none !important;
  }
  .order-page .search-box .switch-row--type .switch-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px;
    overflow: visible;
    width: 100% !important;
    margin-top: 0 !important;
  }
  .order-page .search-box .switch-row--type .switch-option {
    flex: 0 0 calc((100% - 16px) / 3) !important;
    width: calc((100% - 16px) / 3) !important;
    min-width: 0 !important;
    max-width: calc((100% - 16px) / 3);
    box-sizing: border-box;
    height: auto !important;
    min-height: 36px;
    padding: 8px 6px !important;
    border: 1px solid #dcdfe6 !important;
    border-radius: 0 !important;
    background: #f5f7fa !important;
    box-shadow: 8px 8px 20px 0 rgb(55 99 170 / 10%) !important;
    color: #303133;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3 !important;
    white-space: normal;
    text-align: center;
    justify-content: center;
    display: flex !important;
    align-items: center;
  }
  .order-page .search-box .switch-row--type .switch-option.is-active {
    color: #fff !important;
    background: #0d2357 !important;
    border-color: #0d2357 !important;
  }

  .order-page .switch-basic-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    padding: 12px 0 16px;
  }
  .order-page .switch-basic-title::before {
    content: "";
    width: 3px;
    height: 14px;
    margin-right: 8px;
    background: var(--color-primary);
    border-radius: 2px;
  }

  .order-page .search-box .switch-row--region,
  .order-page .search-box .switch-row--zone {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label selected"
      "options options"
      "tip tip";
    row-gap: 10px;
    margin-bottom: 18px;
  }
  .order-page .search-box .switch-row--region .switch-label,
  .order-page .search-box .switch-row--zone .switch-label {
    grid-area: label;
    width: auto !important;
    min-width: 0 !important;
    margin: 0;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 22px !important;
    color: #1d2129;
  }
  .order-page .switch-selected {
    grid-area: selected;
    font-size: 13px;
    line-height: 22px;
    color: #4e5969;
    text-align: right;
  }
  .order-page .search-box .switch-row--region .switch-options,
  .order-page .search-box .switch-row--zone .switch-options {
    grid-area: options;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px;
    width: 100% !important;
    margin-top: 0 !important;
  }
  .order-page .search-box .switch-row--region .switch-option,
  .order-page .search-box .switch-row--zone .switch-option,
  .order-page .search-box .switch-row--zone .shopping-item {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: 100%;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 14px !important;
    border: 1px solid #e5e6eb !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #1d2129;
    font-size: 13px;
    line-height: 30px !important;
    justify-content: center;
  }
  .order-page .search-box .switch-row--region .switch-option.is-active,
  .order-page .search-box .switch-row--zone .switch-option.is-active,
  .order-page .search-box .switch-row--zone .shopping-item.is-active {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
  }
  .order-page .search-box .switch-row--zone .shopping-item:first-child {
    border-left: 1px solid #e5e6eb !important;
  }
  .order-page .search-box .switch-row--zone .shopping-item.is-active:first-child {
    border-left-color: var(--color-primary) !important;
  }
  .order-page .search-box .switch-row--zone .shopping-item .goods-title-only {
    padding: 0 !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 30px;
    color: inherit;
  }
  .order-page .switch-tip {
    grid-area: tip;
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: #86909c;
  }
  .order-page .second-desc {
    display: none;
  }

  .order-page .goods-preview-frame {
    min-height: 280px;
    overflow: hidden;
  }

  .order-page .goods-preview-error-bar {
    position: sticky;
    top: var(--order-header-offset, 56px);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #fde2e2;
    background: #fef0f0;
    color: #f56c6c;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(245, 108, 108, 0.15);
  }
  .order-page .goods-preview-error-bar.is-warning {
    border-color: #faecd8;
    background: #fdf6ec;
    color: #e6a23c;
  }
  .order-page .goods-preview-error-text {
    flex: 1;
    min-width: 0;
  }
  .order-page .goods-preview-error-close {
    flex-shrink: 0;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.8;
  }
}

@media screen and (max-width: 1200px) {
  .order-page .goods-preview-frame {
    overflow: hidden;
  }
}
/* 广告位置css */
.advertisement {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0;
  padding-right: 12px;
  border-radius: 4px;
  background: linear-gradient(
    270deg,
    rgba(255, 60, 33, 0) 0%,
    rgb(255 60 33 / 20%) 100%
  );
  color: #ff3b20;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  min-height: 36px;
  box-sizing: border-box;
}
.advertisement img {
  flex-shrink: 0;
  height: 36px;
  width: auto;
  display: block;
}
.advertisement-text {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
}
.advertisement:hover {
  color: #ff3b20 ;
}
.advertisement:focus {
  color: #ff3b20 ;
}
.advertisement:active {
  color: #ff3b20 ;
}
.go{
  flex-shrink: 0;
  white-space: nowrap;
  color: #fe6461;
}
.go::after{
  display: inline-block;
  width: 8px;
  height: 12px;
  margin-left: 6px;
  overflow: hidden;
  vertical-align: middle;
  background-image: url(/web/my/assets/img/go-arrow.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform .4s;
  content: "";
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.advertisement:hover .go::after,
.go:hover::after {
  transform: translateX(5px);
}

@media screen and (max-width: 768px) {
  .advertisement {
    font-size: 13px;
    gap: 6px;
    padding-right: 10px;
  }
}

.el-dialog.login-tip-dialog {
  border-radius: 8px;
  max-width: calc(100vw - 32px);
}
.login-tip-dialog .el-dialog__header {
  padding: 20px 48px 8px 20px !important;
}
.login-tip-dialog .el-dialog__headerbtn {
  top: 20px !important;
  right: 16px !important;
}
.login-tip-dialog .login-tip-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: #1d2129;
  text-align: left;
}
.login-tip-dialog .el-dialog__body {
  padding: 0 20px 16px !important;
}
.login-tip-dialog .login-tip-body {
  font-size: 14px;
  line-height: 22px;
  color: #4e5969;
  text-align: left;
}
.login-tip-dialog .el-dialog__footer {
  padding: 0 20px 20px !important;
}
.login-tip-footer {
  display: flex;
  flex-direction: column;
}
.login-tip-footer .el-button {
  width: 100%;
  margin: 0 !important;
  height: 40px;
}
.login-tip-footer .el-button + .el-button {
  margin-top: 12px !important;
}
@media (max-width: 480px) {
  .el-dialog.login-tip-dialog {
    width: 86% !important;
    margin-top: 22vh !important;
  }
}