body {
	margin-top: 70px;
}
@media (max-width: 768px) {
  .body {
		margin-top: 50px;
  }
}

.main-nav-container.fixed-header .inner {
  top: 70px !important;
}
.toggle-arrow {
  display: none;
}

.mfgp-price-currency {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.mfgp-logo {
  height: 40px !important;
}

.mfgp-card.mfgp-silver .mfgp-logo {
  filter: grayscale(100%);
}

.mfgp-price,
.mfgp-currency {
  display: inline-block;
  font-weight: bold;
}

.mfgp-top-bar {
  position: fixed;
  top: 0 !important;
  left: 0;
  width: 100%;
  padding: 3px 8px;
  background: #f9f9f9;
  display: flex;
  gap: 8px;
  z-index: 99999 !important;
  box-sizing: border-box;
  overflow-x: hidden;
}

.mfgp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex: 1 1 0;
  min-width: 120px;
  box-sizing: border-box;
  border: 1px solid #f6c358;
}

div.mfgp-card.mfgp-silver {
  border: 1px solid #c0c0c0;
}

.mfgp-card .mfgp-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-grow: 1;
  overflow: hidden;
  gap: 6px;
}

.mfgp-card .mfgp-name {
  font-weight: bold;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mfgp-card .mfgp-price,
.mfgp-card .mfgp-currency {
  font-size: 1.2rem !important;
  font-weight: bold;
}

.mfgp-card .mfgp-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mfgp-gold .mfgp-name {
  color: #e3b352;
}
.mfgp-silver .mfgp-name {
  color: #c0c0c0;
}

.mfgp-price-currency.mfgp-up .mfgp-price,
.mfgp-price-currency.mfgp-up .mfgp-currency {
  color: #00b208 !important;
}
.mfgp-price-currency.mfgp-down .mfgp-price,
.mfgp-price-currency.mfgp-down .mfgp-currency {
  color: #ff0000 !important;
}

.mfgp-arrow-up {
  transform: rotate(0deg);
  color: #00b208;
}
.mfgp-arrow-down {
  transform: rotate(180deg);
  color: #ff0000;
}

.mfgp-mobile-toggle {
  display: none;
}

@keyframes card-flash-up {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: #d4ffd4 !important;
    box-shadow: 0 0 10px #00b208 inset;
  }
  100% {
    background-color: transparent;
  }
}

@keyframes card-flash-down {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: #ffd4d4 !important;
    box-shadow: 0 0 10px #ff0000 inset;
  }
  100% {
    background-color: transparent;
  }
}

.mfgp-card.flash-up {
  animation: card-flash-up 0.8s ease-in-out !important;
}

.mfgp-card.flash-down {
  animation: card-flash-down 0.8s ease-in-out !important;
}

.mfgp-top-bar.mfgp-open .mfgp-card:not(.mfgp-main-card) {
  display: none;
}

@keyframes slideBounce {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  60% {
    opacity: 1;
    transform: translateY(3px);
  }
  100% {
    transform: translateY(0);
  }
}

.mfgp-card.show-slide {
  display: flex !important;
  animation: slideBounce 0.5s forwards;
}

#mfgp-currency-xau,
#mfgp-currency-xag {
  font-size: 1.1rem !important;
}

/* Tablet & Small Laptop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .mfgp-top-bar {
    padding: 3px 6px;
    gap: 6px;
  }

  .mfgp-card {
    gap: 8px;
    padding: 6px 10px;
    min-width: 100px;
  }

  .mfgp-logo {
    height: 32px !important;
  }

  .mfgp-card .mfgp-name {
    font-size: 0.85rem;
  }

  .mfgp-card .mfgp-price,
  .mfgp-card .mfgp-currency {
    font-size: 1rem !important;
  }

  .mfgp-card .mfgp-text {
    gap: 4px;
  }

  #mfgp-currency-xau,
  #mfgp-currency-xag {
    font-size: 0.95rem !important;
  }
}

/* Small Desktop (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .mfgp-top-bar {
    padding: 3px 6px;
    gap: 6px;
  }

  .mfgp-card {
    gap: 10px;
    padding: 7px 11px;
  }

  .mfgp-logo {
    height: 36px;
  }

  .mfgp-card .mfgp-name {
    font-size: 0.9rem;
  }

  .mfgp-card .mfgp-price,
  .mfgp-card .mfgp-currency {
    font-size: 1.1rem !important;
  }

  #mfgp-currency-xau,
  #mfgp-currency-xag {
    font-size: 1rem !important;
  }
}

/* Mobile (up to 768px) */
@media (max-width: 768px) {
  body {
    margin-top: 43px;
  }

  .mfgp-card .mfgp-price,
  .mfgp-card .mfgp-currency {
    font-size: 0.85rem;
  }

  .mfgp-card .mfgp-text {
    gap: 10px;
  }

  .mfgp-logo {
    height: 20px;
  }

  .main-nav-container.fixed-header .inner {
    top: 52px !important;
  }
  .mm-spn.mm-spn--navbar.mm-spn--main {
    cursor: default;
    margin-top: 33px !important;
  }

  .mfgp-top-bar {
    flex-direction: column;
    gap: 3px;
  }

  .mfgp-card {
    display: none;
    align-items: center;
    position: relative;
  }

  .mfgp-main-card {
    display: flex;
    order: 0;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px;
  }

  .mfgp-top-bar.mfgp-open .mfgp-card {
    display: flex;
    padding: 12px 20px;
  }

  .mfgp-top-bar.mfgp-open .mfgp-card:not(.mfgp-main-card) {
    order: 1;
  }

  .mfgp-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px;
    white-space: nowrap;
    text-align: center;
  }

  .mfgp-left {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 6px;
  }

  .mfgp-arrow {
    width: 16px;
    height: 16px;
  }

  .mfgp-mobile-toggle {
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.25s ease;
    color: #ffffff;
    display: block;
    margin: 0 6px;
  }

  .mfgp-top-bar.mfgp-open .mfgp-mobile-toggle {
    transform: rotate(180deg);
  }

  .mfgp-main-card .mfgp-mobile-toggle {
    display: inline-block;
    color: black !important;
  }

  .mfgp-top-bar.mfgp-open .mfgp-main-card .mfgp-mobile-toggle {
    transform: rotate(180deg);
  }

  #mfgp-currency-xau,
  #mfgp-currency-xag {
    font-size: 1rem !important;
  }
}