/* ===== Order Page (my2) ===== */

body.order-page-body {
  --order-accent: var(--theme-accent);
  --order-accent-dark: var(--theme-accent-dark);
  --order-accent-light: var(--theme-accent-light-bg);
  --order-text: var(--theme-ink);
  --order-muted: #64748b;
  --order-border: #e2e8f0;
  --order-bg: var(--theme-cream);
  --order-header-offset: 64px;
  --color-primary: var(--theme-accent);

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--order-bg);
}

body.order-page-body .order-page__shell {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  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;
}

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;
  position: relative;
  z-index: 0;
}

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

/* Hero */
.order-hero {
  background: var(--theme-gradient-banner-diag);
  padding: 36px 0 40px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.order-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -120px;
  right: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.order-hero__inner {
  position: relative;
  z-index: 1;
}

.order-hero__title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.order-hero__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
}

.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 {
  position: relative;
  z-index: 0;
  padding: 0 0 48px;
  overflow: visible;
}

/* Promo strip */
.order-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    rgba(var(--theme-accent-rgb), 0.12) 0%,
    rgba(var(--theme-accent-light-rgb), 0.08) 100%
  );
  border: 1px solid rgba(var(--theme-accent-rgb), 0.2);
  color: var(--order-text);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.order-promo:hover {
  color: var(--order-text);
  border-color: var(--order-accent);
  box-shadow: 0 8px 24px rgba(var(--theme-accent-rgb), 0.12);
}

.order-promo__icon {
  flex-shrink: 0;
  width: 161px;
  height: 27px;
  border-radius: 10px;
  object-fit: cover;
}

.order-promo__text {
  flex: 1;
  min-width: 0;
}

.order-promo__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--theme-gradient-btn);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.order-promo__cta::after {
  content: "→";
  transition: transform 0.2s;
}

.order-promo:hover .order-promo__cta::after {
  transform: translateX(4px);
}

/* Config card */
.order-config-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px 28px;
  margin-bottom: 20px;
  box-shadow: 0 12px 40px rgba(30, 27, 75, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.order-config-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--order-border);
}

.order-config-card__step {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--order-accent-light);
  color: var(--order-accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-config-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--order-text);
}

.order-page .search-box {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

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

.order-page .search-box .switch-row,
.order-page .goods-list-div {
  display: flex !important;
  align-items: flex-start !important;
  height: auto !important;
  min-height: 0 !important;
  flex-wrap: wrap !important;
  gap: 10px 0;
  margin-bottom: 0;
}

.order-page .search-box .switch-label,
.order-page .goods-list-div .switch-label {
  width: 88px !important;
  min-width: 88px !important;
  flex-shrink: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 36px !important;
  color: var(--order-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.order-page .search-box .switch-option,
.order-page .shopping-item {
  padding: 0 18px !important;
  height: 36px !important;
  line-height: 36px !important;
  border: 1px solid var(--order-border) !important;
  border-left: 1px solid var(--order-border) !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  color: var(--order-text) !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0 !important;
}

.order-page .search-box .switch-option:hover,
.order-page .shopping-item:hover:not(.is-disabled) {
  border-color: var(--order-accent) !important;
  color: var(--order-accent) !important;
  /* background: var(--order-accent-light) !important; */
}

.order-page .search-box .switch-option.is-active,
.order-page .shopping-item.is-active {
  color: #fff !important;
  background: var(--theme-gradient-btn) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(var(--theme-accent-rgb), 0.28) !important;
}

.order-page .shopping-item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.order-page .goods-list-div {
  overflow: visible !important;
  width: 100% !important;
}

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

/* Region description */
.order-page .second-desc {
  margin-bottom: 20px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--order-border);
  color: var(--order-muted);
  font-size: 13px;
}

/* Preview panel */
.order-preview-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(30, 27, 75, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.order-preview-card__head {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--order-text);
}

.order-page .goods-preview-box {
  border-radius: 14px;
  overflow: hidden;
  background: var(--order-bg);
  border: 1px solid var(--order-border);
  width: 100%;
  margin: 0;
}

.order-page .goods-preview-frame {
  width: 100%;
  height: 640px;
  display: block;
  background-color: transparent !important;
  border: none;
}

.order-page .no-goods {
  padding: 40px 20px;
  text-align: center;
}

/* Footer on order page */
body.order-page-body .sf-footer,
body.order-page-body .page-footer {
  margin-top: 0;
}

@media screen and (max-width: 992px) {
  .order-page .search-box .switch-row,
  .order-page .goods-list-div {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .order-page .search-box .switch-label,
  .order-page .goods-list-div .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 .shopping-item {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
  }

  .order-page .shopping-item .goods-title-only {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    display: block;
  }

  .order-page .shopping-item {
    height: auto !important;
    min-height: 36px;
    line-height: normal !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  body.order-page-body {
    --order-header-offset: 56px;
  }

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

  .order-hero {
    padding: 28px 0 32px;
    margin-bottom: 20px;
  }

  .order-config-card,
  .order-preview-card {
    padding: 18px 16px 20px;
    border-radius: 16px;
  }

  .order-page .search-box .switch-option,
  .order-page .shopping-item {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .order-page .goods-preview-frame {
    height: 480px !important;
  }

  .order-promo {
    flex-wrap: wrap;
  }

  .order-promo__cta {
    width: 100%;
    justify-content: center;
  }
}

@media screen and (max-width: 1200px) {
  .order-page .goods-preview-frame {
    height: 520px !important;
  }
}
