/* Promotional product search — grouped dropdown, no page overlay. */

.ps-wrap,
.ps-wrap *,
.ps-wrap *::before,
.ps-wrap *::after {
  box-sizing: border-box;
}

.ps-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  overflow: visible;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.ps-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.ps-field {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  height: auto;
  width: auto !important;
}

.ps-field .help-block {
  display: none;
}

.ps-input {
  display: block;
  width: 100%;
  height: 46px !important;
  min-height: 46px !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  color: #26313a !important;
  background: #fff !important;
  border: 1px solid #fff !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

.ps-input::placeholder {
  color: #8a9199 !important;
  text-transform: none !important;
}

.ps-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #5c7f9f;
  z-index: 1;
}

.ps-btn {
  flex: none;
  height: 46px;
  min-height: 46px;
  padding: 0 22px;
  background: #c4470c;
  border: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.ps-btn:hover,
.ps-btn:focus {
  background: #a83c0a;
  color: #fff;
  outline: none;
}

.ps-btn.is-busy {
  opacity: 0.72;
}

.ps-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 100%;
  z-index: 40;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 0;
  background: #fff !important;
  border: 1px solid #dfe4e8;
  border-top: 0;
  box-shadow: 0 10px 22px rgba(20, 40, 60, 0.16);
  color: #26313a;
  text-transform: none;
}

.ps-panel[hidden] {
  display: none !important;
}

.ps-panel.is-loading {
  min-height: 48px;
}

.ps-panel.is-loading::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #204e75 0%, #c4470c 50%, #204e75 100%);
  background-size: 200% 100%;
  animation: ps-shimmer 0.9s linear infinite;
}

@keyframes ps-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ps-panel.is-loading::before {
    animation: none;
  }
}

.ps-group-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #f4f6f8;
  border-top: 1px solid #e6e9ec;
  border-bottom: 1px solid #e6e9ec;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #55606a;
}

.ps-group-head span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
  color: #8a9199;
}

.ps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  background: #fff !important;
  border: 0;
  border-bottom: 1px solid #eef0f2;
  border-left: 3px solid transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none !important;
  color: #26313a !important;
  height: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
}

.ps-row:hover,
.ps-row.is-active {
  background: #eef3f8 !important;
  border-left-color: #204e75;
  color: #26313a !important;
}

.ps-thumb {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e9ec;
}

.ps-thumb img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
}

.ps-thumb.is-empty {
  background: repeating-linear-gradient(
    -45deg,
    #f4f6f8,
    #f4f6f8 4px,
    #eef0f2 4px,
    #eef0f2 8px
  );
}

.ps-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ps-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #26313a;
  line-height: 1.3;
}

.ps-title mark {
  background: #fde8d8;
  color: inherit;
  font-weight: 700;
  padding: 0;
}

.ps-sub {
  font-size: 12px;
  color: #8a9199;
  line-height: 1.3;
}

.ps-sub mark {
  background: #fde8d8;
  color: inherit;
  font-weight: 700;
  padding: 0;
}

.ps-empty {
  padding: 14px 12px;
  font-size: 13px;
  color: #55606a;
}

.ps-more {
  padding: 8px 12px 10px;
  font-size: 11.5px;
  color: #8a9199;
  text-align: center;
  min-height: 20px;
}

.ps-panel.is-more .ps-more {
  color: #55606a;
}

.hc-promo-search {
  position: relative;
  z-index: 5;
  overflow: visible;
}

.hc-promo-search .ps-btn {
  background: #c4470c;
}

.promoCover .ps-input {
  border: 1px solid #c9ced3 !important;
  border-right: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
}

.promoCover .ps-btn {
  height: 40px;
  min-height: 40px;
}
