/* FastRig 3.0.3 — scoped to existing #middle-header; no menu or cart logic changes. */
body .main-header #middle-header {
  --frh-green: #84cc00;
  --frh-orange: #ff6500;
  --frh-orange-text: #ff9954;
  --frh-surface: #16191b;
  --frh-border: #3b4146;
  --frh-text: #f5f6f7;
  --frh-muted: #bac0c5;
}
body #middle-header .main-box-header {
  display: flex !important;
  flex: 1 1 0;
  flex-wrap: wrap;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 0;
  gap: 12px 16px;
  margin: 0 !important;
}
body #middle-header .main-box-header > .search-box {
  display: block !important;
  flex: 1 1 230px;
  width: auto !important;
  max-width: 520px;
  min-width: 0;
  margin: 0 !important;
}
body #middle-header .header-search { width: 100%; min-width: 0; }
body #middle-header .header-search form {
  display: flex;
  align-items: center;
  position: relative;
  gap: 5px;
  margin: 0 !important;
  padding: 4px;
  min-width: 0;
  background: var(--frh-surface);
  border: 1px solid var(--frh-border);
  border-radius: 12px;
  box-shadow: none !important;
  box-sizing: border-box;
}
body #middle-header .header-search form:focus-within { border-color: var(--frh-green); }
body #middle-header .header-search form .search-field {
  flex: 1 1 0;
  min-width: 0;
  width: 0 !important;
  max-width: none !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  background: transparent !important;
  color: var(--frh-text) !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-size: 14px;
  box-shadow: none !important;
  box-sizing: border-box;
}
body #middle-header .header-search form .search-field::placeholder { color: var(--frh-muted) !important; opacity: 1; }
body #middle-header .header-search form :is(button,input[type="submit"]) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: static !important;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0;
  min-height: 42px;
  padding: 0 15px !important;
  margin: 0 !important;
  background: var(--frh-green) !important;
  color: #101310 !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: none;
  text-shadow: none !important;
  box-shadow: none !important;
}
body #middle-header .header-search form :is(button,input[type="submit"]):hover { background: #a0e22d !important; }
body #middle-header .main-box-header > .suport-box {
  display: flex !important;
  flex: 0 1 auto;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}
body #middle-header .suport-box .call-header { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* Draw a clean headset over the existing decorative icon; contact links are untouched. */
body #middle-header .suport-box .call-header > svg {
  display: block;
  flex: 0 0 42px;
  width: 42px; height: 42px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--frh-border);
  border-radius: 11px;
  box-sizing: border-box;
  background: var(--frh-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2384cc00' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14v-3a9 9 0 0 1 18 0v3M3 14a2 2 0 0 1 2-2h1a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2zm18 0a2 2 0 0 0-2-2h-1a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1a2 2 0 0 0 2-2zm-4 5c0 2-2 3-5 3'/%3E%3C/svg%3E") center/21px no-repeat !important;
  fill: transparent !important;
}
body #middle-header .suport-box .call-header > svg path { fill: transparent !important; }
body #middle-header .contact-box { display: grid; gap: 3px; justify-content: start; text-align: left; min-width: 0; }
body #middle-header .contact-box > span { color: var(--frh-muted) !important; font-size: 12px; line-height: 1.4; font-weight: 500; }
body #middle-header .contact-box > span > a { color: var(--frh-text) !important; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; text-decoration: none; }
body #middle-header .contact-box > span > a:hover { color: var(--frh-green) !important; text-decoration: underline; }
body #middle-header .main-box-header > .account-box {
  display: flex !important;
  flex: 0 0 auto;
  flex-direction: row !important;
  flex-wrap: nowrap;
  width: auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px;
  margin: 0 !important;
}
body #middle-header .account-box :is(a.account-area,span.wishlist,span.cart_no) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 44px;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 11px !important;
  border: 1px solid var(--frh-border) !important;
  background: var(--frh-surface) !important;
  color: var(--frh-text) !important;
  box-shadow: none !important;
  box-sizing: border-box;
  transition: border-color .16s, background-color .16s;
}
body #middle-header .account-box :is(span.wishlist,span.cart_no) > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: inherit; border-radius: inherit; }
body #middle-header .account-box :is(a.account-area,span.wishlist,span.cart_no) svg { width: 19px; height: 19px; margin: 0; fill: currentColor !important; color: inherit; }
/* Replace the login arrow visually with an account outline; existing URL/title remain. */
body #middle-header .account-box a.account-area > svg { display: none; }
body #middle-header .account-box a.account-area::after {
  content: "";
  display: block;
  width: 21px; height: 21px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E") center/contain no-repeat;
}
body #middle-header .account-box :is(a.account-area,span.wishlist,span.cart_no):is(:hover,:focus-within) { border-color: var(--frh-green) !important; color: var(--frh-green) !important; background: #202721 !important; }
body #middle-header .account-box :is(span.wishlist,span.cart_no):is(:hover,:focus-within) { border-color: var(--frh-orange) !important; color: var(--frh-orange-text) !important; background: #28211c !important; }
body #middle-header .account-box .cart-value {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: -6px;
  right: -5px;
  min-width: 19px;
  width: auto !important;
  height: 19px;
  padding: 0 4px;
  border: 2px solid #101214;
  border-radius: 20px;
  background: var(--frh-orange) !important;
  color: #111 !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  box-sizing: border-box;
}
body #middle-header .account-box .cart-price { color: var(--frh-orange-text) !important; font-size: 15px; font-weight: 750; white-space: nowrap; margin-left: 5px; }
body #middle-header .main-box-header :is(a,button,input):focus-visible { outline: 2px solid var(--frh-green); outline-offset: 2px; }
@media (min-width: 992px) {
  body #middle-header .header-wrapper.header-box { gap: 18px !important; }
  body #middle-header .header-titles { flex: 0 0 auto; width: auto; }
}
@media (max-width: 991px) {
  body #middle-header .header-wrapper.header-box { display: flex !important; flex-direction: column !important; gap: 12px !important; }
  body #middle-header .main-box-header { flex: 0 0 auto; width: 100% !important; justify-content: space-between !important; }
  body #middle-header .main-box-header > .search-box { flex: 1 0 100%; max-width: none; }
}
@media (max-width: 575px) {
  body #middle-header .main-box-header { justify-content: center !important; gap: 12px; }
  body #middle-header .main-box-header > .suport-box { flex: 1 0 100%; justify-content: center !important; }
  body #middle-header .main-box-header > .account-box { justify-content: center !important; }
  body #middle-header .header-search form :is(button,input[type="submit"]) { padding-inline: 12px !important; }
}
@media (prefers-reduced-motion: reduce) { body #middle-header .account-box :is(a.account-area,span.wishlist,span.cart_no) { transition: none; } }
