body.ceett-home {
  min-height: 100vh;
  color: #253247;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

body.ceett-home .full-bg {
  filter: saturate(0.82) brightness(0.92);
}

.ceett-home-shell {
  width: calc(100% - 32px) !important;
  max-width: 680px;
  padding: 24px 0 32px;
}

.ceett-home-shell > br {
  display: none;
}

.ceett-home-shell > .block,
.ceett-home-shell > .panel {
  margin-bottom: 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(31, 45, 61, 0.16);
}

.ceett-home-hero {
  overflow: hidden;
}

.ceett-home-hero-banner {
  position: relative;
  display: flex;
  min-height: 154px;
  align-items: center;
  justify-content: center;
  padding: 22px !important;
  overflow: hidden;
  background-position: center !important;
  background-size: cover !important;
}

.ceett-home-hero-banner::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(21, 53, 76, 0.22);
}

.ceett-home-identity {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ceett-home-identity .img-avatar {
  width: 78px;
  height: 78px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 18px rgba(17, 34, 51, 0.22);
}

.ceett-home-brand-name {
  max-width: 100%;
  margin-top: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(16, 32, 48, 0.42);
  overflow-wrap: anywhere;
}

.ceett-home-quick-actions {
  padding: 0 !important;
  background: #fff !important;
}

.ceett-home-quick-actions .btn-group-justified {
  table-layout: fixed;
}

.ceett-home-quick-actions .btn-group + .btn-group {
  border-left: 1px solid #e7ebf0;
}

.ceett-home-quick-actions .ceett-quick-action {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #435066;
  font-weight: 600;
  white-space: nowrap;
}

.ceett-home-quick-actions .ceett-quick-action:hover,
.ceett-home-quick-actions .ceett-quick-action:focus {
  background: #f5f8fb;
  color: #0f766e;
}

.ceett-home-quick-actions .ceett-quick-announcement {
  color: #c2413a;
}

.ceett-home-quick-actions .ceett-quick-announcement:hover,
.ceett-home-quick-actions .ceett-quick-announcement:focus {
  background: #fff5f4;
  color: #a9342f;
}

.ceett-home-quick-actions .ceett-quick-download {
  color: #1d5fc1;
}

.ceett-home-quick-actions .ceett-quick-download:hover,
.ceett-home-quick-actions .ceett-quick-download:focus {
  background: #f1f6ff;
  color: #184e9e;
}

.ceett-home-quick-actions .ceett-quick-user {
  color: #137a55;
}

.ceett-home-quick-actions .ceett-quick-user:hover,
.ceett-home-quick-actions .ceett-quick-user:focus {
  background: #eff9f4;
  color: #0f6345;
}

.ceett-platform-notices {
  position: relative;
  overflow: hidden;
  border-left: 4px solid #238069 !important;
}

.ceett-platform-notices__toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.ceett-platform-notices__head {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e5ebe8;
  background: #f5f8f7;
}

.ceett-platform-notices__head h2 {
  margin: 0;
  color: #263a34;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.ceett-platform-notices__head h2 .fa {
  margin-right: 7px;
  color: #238069;
}

.ceett-platform-notices__hint {
  color: #7a8984;
  font-size: 12px;
}

.ceett-platform-notices__control {
  display: none;
}

.ceett-platform-notices__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf1ef;
}

.ceett-platform-notices__item:last-child {
  border-bottom: 0;
}

.ceett-platform-notices__tag {
  display: inline-block;
  min-width: 64px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #edf1ef;
  color: #42514c;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.ceett-platform-notices__item--info .ceett-platform-notices__tag {
  background: #e5f3f8;
  color: #24617a;
}

.ceett-platform-notices__item--recovery .ceett-platform-notices__tag {
  background: #def2ea;
  color: #196b55;
}

.ceett-platform-notices__item--warning .ceett-platform-notices__tag {
  background: #fff0cc;
  color: #855c12;
}

.ceett-platform-notices__item--urgent .ceett-platform-notices__tag {
  background: #fde7e7;
  color: #9b3535;
}

.ceett-platform-notices__copy {
  min-width: 0;
}

.ceett-platform-notices__copy h3 {
  margin: 0 0 3px;
  color: #26332f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ceett-platform-notices__copy p {
  margin: 0;
  color: #61706b;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.ceett-platform-notices__copy a {
  display: inline-block;
  margin-top: 6px;
  color: #237965;
  font-size: 13px;
  font-weight: 600;
}

.ceett-platform-notices__item > time {
  padding-top: 2px;
  color: #87938f;
  font-size: 12px;
  white-space: nowrap;
}

.ceett-home-main {
  overflow: hidden;
}

.ceett-home-tabs {
  display: flex;
  border-bottom: 1px solid #e5eaf0;
  background: #fbfcfd;
}

.ceett-home-tabs::before,
.ceett-home-tabs::after {
  display: none;
}

.ceett-home-tabs > li {
  float: none;
  flex: 1 1 0;
}

.ceett-home-tabs > li > a {
  margin: 0;
  padding: 16px 4px 14px;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  color: #626f80;
  font-size: 14px;
}

.ceett-home-tabs > li > a:hover,
.ceett-home-tabs > li > a:focus {
  background: #f4f7fa;
  color: #0f766e;
}

.ceett-home-tabs > li.active > a,
.ceett-home-tabs > li.active > a:hover,
.ceett-home-tabs > li.active > a:focus {
  background: #fff;
  border-bottom-color: #0f766e !important;
  color: #0f766e;
}

.ceett-home-tabs > li > a .fa {
  margin-right: 3px;
}

.ceett-home-tabs > li > a[href="#shop"] {
  color: #0f766e;
}

.ceett-home-tabs > li > a[href="#search"] {
  color: #a95708;
}

.ceett-home-tabs > li > a[href="#more"] {
  color: #465aa6;
}

.ceett-home-tabs > li > a[href="#shop"]:hover,
.ceett-home-tabs > li > a[href="#shop"]:focus {
  background: #eef8f6;
  color: #0b5f59;
}

.ceett-home-tabs > li > a[href="#search"]:hover,
.ceett-home-tabs > li > a[href="#search"]:focus {
  background: #fff7ed;
  color: #8a4506;
}

.ceett-home-tabs > li > a[href="#more"]:hover,
.ceett-home-tabs > li > a[href="#more"]:focus {
  background: #f2f4fb;
  color: #374887;
}

.ceett-home-tabs > li.active > a[href="#shop"],
.ceett-home-tabs > li.active > a[href="#shop"]:hover,
.ceett-home-tabs > li.active > a[href="#shop"]:focus {
  border-bottom-color: #0f766e !important;
  color: #0f766e;
}

.ceett-home-tabs > li.active > a[href="#search"],
.ceett-home-tabs > li.active > a[href="#search"]:hover,
.ceett-home-tabs > li.active > a[href="#search"]:focus {
  border-bottom-color: #a95708 !important;
  color: #a95708;
}

.ceett-home-tabs > li.active > a[href="#more"],
.ceett-home-tabs > li.active > a[href="#more"]:hover,
.ceett-home-tabs > li.active > a[href="#more"]:focus {
  border-bottom-color: #465aa6 !important;
  color: #465aa6;
}

.ceett-home-tab-content {
  padding: 22px !important;
}

.ceett-home-tab-content .form-group {
  margin-bottom: 12px;
}

.ceett-home-tab-content .input-group {
  width: 100%;
}

.ceett-home-tab-content .input-group-addon {
  width: 118px;
  min-width: 118px;
  padding: 10px 12px;
  border-color: #dbe2ea;
  background: #f5f7fa;
  color: #46566c;
  font-weight: 600;
  text-align: left;
}

.ceett-home-tab-content .form-control {
  height: 42px;
  border-color: #dbe2ea;
  color: #29384d;
  box-shadow: none;
}

.ceett-home-tab-content .form-control:focus {
  border-color: #0f9388;
  box-shadow: 0 0 0 2px rgba(15, 147, 136, 0.12);
}

#display_searchBar .input-group-addon:last-child {
  width: 44px;
  min-width: 44px;
  color: #0f766e;
  text-align: center;
  cursor: pointer;
}

.ceett-catalog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 0 12px;
  border-bottom: 1px solid #e5eaf0;
}

.ceett-catalog-title {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  color: #253247;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ceett-catalog-image {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
  background: #f1f4f8;
}

.ceett-catalog-head[hidden],
.ceett-catalog-list[hidden],
.ceett-catalog-state[hidden],
.ceett-catalog-image[hidden] {
  display: none;
}

/* Enhanced mode only: the list is the visible control. The class is removed
   whenever the list is cleared, so the native select returns as fallback. */
.ceett-home-tab-content .ceett-catalog-select--replaced {
  display: none;
}

.ceett-catalog-list {
  margin-bottom: 12px;
}

.ceett-catalog-list__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 2px 7px;
}

.ceett-catalog-list__label {
  color: #46566c;
  font-size: 13px;
  font-weight: 700;
}

.ceett-catalog-list__count {
  color: #7c8798;
  font-size: 12px;
}

.ceett-catalog-list__items {
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dbe2ea;
  border-radius: 6px;
  background: #fff;
  list-style: none;
}

.ceett-catalog-item + .ceett-catalog-item {
  border-top: 1px solid #eef1f5;
}

.ceett-catalog-item__button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #29384d;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ceett-catalog-item__name {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ceett-catalog-item__price {
  color: #b4442c;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.ceett-catalog-item__meta {
  grid-column: 1 / -1;
  color: #7c8798;
  font-size: 12px;
  line-height: 1.5;
}

.ceett-catalog-item__button:hover,
.ceett-catalog-item__button:focus {
  background: #f4f8fa;
}

.ceett-catalog-item__button:focus-visible {
  outline: 2px solid #0f9388;
  outline-offset: -2px;
}

.ceett-catalog-item.is-selected .ceett-catalog-item__button {
  background: #edf7f5;
  box-shadow: inset 3px 0 0 #0f766e;
}

.ceett-catalog-item.is-selected .ceett-catalog-item__name {
  color: #0b5f59;
}

.ceett-catalog-item.is-closed {
  background: #faf8f8;
}

.ceett-catalog-item.is-closed .ceett-catalog-item__button {
  color: #97a1ae;
  cursor: not-allowed;
}

.ceett-catalog-item.is-closed .ceett-catalog-item__price {
  color: #97a1ae;
  text-decoration: line-through;
}

.ceett-catalog-state {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #dbe2ea;
  border-radius: 6px;
  background: #f7f9fb;
  color: #46566c;
  font-size: 13px;
  line-height: 1.6;
}

.ceett-catalog-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ceett-catalog-state__retry {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ceett-catalog-state__retry:focus-visible {
  outline: 2px solid #0f9388;
  outline-offset: 2px;
}

.ceett-catalog-state[data-state="loading"] {
  color: #5c6b7f;
}

.ceett-catalog-state[data-state="empty"] {
  border-color: #e3d5b4;
  background: #fdf9f0;
  color: #7a5a1c;
}

.ceett-catalog-state[data-state="error"] {
  border-color: #e8c4c0;
  background: #fdf4f3;
  color: #9b3535;
}

.ceett-category-parent-wrap {
  display: grid !important;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: stretch;
}

.ceett-category-parent-wrap #category-parent-back {
  display: flex !important;
  width: 100%;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 10px 12px;
  align-items: center;
  border-color: #dbe2ea;
  border-radius: 4px 0 0 4px;
  background: #f5f7fa;
  color: #46566c;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
  white-space: nowrap;
}

.ceett-category-parent-wrap #category-parent {
  float: none;
  width: 100%;
  min-width: 0;
  border-left: 0;
  border-radius: 0 4px 4px 0;
}

.ceett-category-parent-wrap #category-parent-back.is-active {
  background: #edf7f5;
  color: #0f766e;
  cursor: pointer;
}

.ceett-category-parent-wrap #category-parent-back.is-active::before {
  content: "\f060";
  font-family: FontAwesome;
  font-weight: normal;
  margin-right: 5px;
}

.ceett-category-parent-wrap #category-parent-back.is-active:hover,
.ceett-category-parent-wrap #category-parent-back.is-active:focus {
  background: #dff1ed;
  color: #0b5f59;
}

.ceett-category-parent-wrap #category-parent-back:focus {
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(15, 147, 136, 0.16);
}

.ceett-home-tab-content #submit_cart_shop,
.ceett-home-tab-content #submit_buy {
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  font-weight: 700;
}

.ceett-home-tab-content #submit_cart_shop {
  background: #138a72;
}

.ceett-home-tab-content #submit_cart_shop:hover,
.ceett-home-tab-content #submit_cart_shop:focus {
  background: #0f705e;
}

.ceett-home-tab-content #submit_buy {
  background: #e85d4a;
}

.ceett-home-tab-content #submit_buy:hover,
.ceett-home-tab-content #submit_buy:focus {
  background: #ce4938;
}

.ceett-home-promo {
  margin: 14px 0 0;
  padding: 11px 14px;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: 6px !important;
  background: #fff7ed !important;
  color: #9a3412;
  line-height: 1.55;
}

.ceett-home-promo .fa {
  margin-right: 6px;
  color: #ea580c;
}

.ceett-home-promo a {
  color: #9a3412 !important;
  font-weight: 600;
}

.ceett-home-footer {
  overflow: hidden;
  text-align: center;
}

.ceett-home-footer .panel-body {
  padding: 16px 20px;
}

.ceett-home-footer p {
  margin: 0;
  color: #607087;
  line-height: 1.75;
}

.ceett-home-footer .ceett-footer-site {
  color: #34445a;
}

.ceett-home-footer .ceett-footer-site .fa {
  color: #0f766e;
}

.ceett-home-footer a {
  color: #2875b8;
}

.ceett-home-footer .footer-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: -3px;
}

.ceett-home .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(22, 34, 48, 0.24);
}

.ceett-home .modal-header,
.ceett-home .modal-footer {
  border-color: #e7ebf0;
}

@media (max-width: 767px) {
  .ceett-home-shell {
    width: calc(100% - 16px) !important;
    padding: 10px 0 22px;
  }

  .ceett-home-shell > .block,
  .ceett-home-shell > .panel {
    margin-bottom: 9px;
    box-shadow: 0 8px 22px rgba(31, 45, 61, 0.14);
  }

  .ceett-home-hero-banner {
    min-height: 124px;
    padding: 16px !important;
  }

  .ceett-home-identity .img-avatar {
    width: 68px;
    height: 68px;
  }

  .ceett-home-brand-name {
    margin-top: 7px;
    font-size: 19px;
  }

  .ceett-home-quick-actions .ceett-quick-action {
    height: 44px;
    gap: 5px;
    padding: 0 4px;
    font-size: 13px;
  }

  .ceett-platform-notices__head {
    min-height: 40px;
    align-items: center;
    padding: 8px 10px;
  }

  .ceett-platform-notices__hint {
    display: none;
  }

  .ceett-platform-notices__control {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 5px;
    margin: -3px -4px -3px 0;
    padding: 4px 6px;
    color: #317563;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
  }

  .ceett-platform-notices__control .fa {
    transition: transform .2s ease;
  }

  .ceett-platform-notices__less {
    display: none;
  }

  .ceett-platform-notices__toggle:focus + .ceett-platform-notices__head .ceett-platform-notices__control {
    outline: 2px solid #70aa9b;
    outline-offset: 1px;
  }

  .ceett-platform-notices__toggle:checked + .ceett-platform-notices__head .ceett-platform-notices__more {
    display: none;
  }

  .ceett-platform-notices__toggle:checked + .ceett-platform-notices__head .ceett-platform-notices__less {
    display: inline;
  }

  .ceett-platform-notices__toggle:checked + .ceett-platform-notices__head .ceett-platform-notices__control .fa {
    transform: rotate(180deg);
  }

  .ceett-platform-notices__item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 8px;
    padding: 9px 10px;
  }

  .ceett-platform-notices__toggle:not(:checked) ~ .ceett-platform-notices__item:not(:first-of-type) {
    display: none;
  }

  .ceett-platform-notices__toggle:not(:checked) ~ .ceett-platform-notices__item:first-of-type .ceett-platform-notices__copy h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ceett-platform-notices__toggle:not(:checked) ~ .ceett-platform-notices__item:first-of-type .ceett-platform-notices__copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .ceett-platform-notices__tag {
    min-width: 58px;
    padding: 2px 6px;
  }

  .ceett-platform-notices__item > time {
    grid-column: 2;
    padding-top: 0;
    white-space: normal;
  }

  .ceett-platform-notices__toggle:not(:checked) ~ .ceett-platform-notices__item:first-of-type > time {
    display: none;
  }

  .ceett-home-tabs > li > a {
    padding: 14px 2px 12px;
    font-size: 13px;
  }

  .ceett-home-tab-content {
    padding: 14px !important;
  }

  .ceett-home-tab-content .input-group-addon {
    width: 104px;
    min-width: 104px;
    padding: 10px 8px;
    font-size: 13px;
  }

  .ceett-category-parent-wrap {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .ceett-category-parent-wrap #category-parent-back {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 12px;
  }

  #display_searchBar .input-group-addon:last-child {
    width: 42px;
    min-width: 42px;
  }

  .ceett-home-tab-content #submit_cart_shop,
  .ceett-home-tab-content #submit_buy {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 14px;
  }

  .ceett-home-promo {
    padding: 10px 11px;
    text-align: left;
  }

  .ceett-home-footer .panel-body {
    padding: 14px 10px;
  }

  .ceett-home-footer p {
    font-size: 12px;
  }

  .ceett-catalog-head {
    gap: 9px;
    padding-bottom: 10px;
  }

  .ceett-catalog-title {
    font-size: 15px;
  }

  .ceett-catalog-image {
    width: 40px;
    height: 40px;
  }

  .ceett-catalog-list__items {
    max-height: 272px;
  }

  .ceett-catalog-item__button {
    min-height: 52px;
    padding: 10px 11px;
  }

  .ceett-catalog-item__name,
  .ceett-catalog-item__price {
    font-size: 13px;
  }

  .ceett-catalog-state {
    padding: 11px 12px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ceett-home .animated,
  .ceett-home .fade,
  .ceett-home .fade-up,
  .ceett-home .fade-right {
    animation: none !important;
    transition: none !important;
  }
}
