.rfq-container {
  padding-top: 1rem;
  padding-bottom: 2rem;
  justify-content: center;
  align-items: center;
  /* transform: translate(-50%, -50%); */
  min-width: 380px;
  width: 600px;
}

.rfq-wrapper-global {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.rfq-wrapper-1 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
}


.rfq-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rfq-bid {
  border: 1px solid black;
  background-color: #aaa;
  cursor: pointer;
  border-radius: 10px 0 0 10px;
  /* Rounded on left side only */
  width: 50%;
  position: relative;
  height: 150px;
  transition: background-color 0.3s;
  /* Smooth transition for hover effect */
}

.rfq-bid:hover {
  background-color: green;
  box-shadow: 0 0 40px rgba(1, 214, 1, 0.76);
  transform: scaleY(1.1);
}

.rfq-ask {
  border: 1px solid black;
  background-color: #aaa;
  cursor: pointer;
  border-radius: 0 10px 10px 0;
  /* Rounded on right side only */
  width: 50%;
  position: relative;
  height: 150px;
  transition: background-color 0.3s;
  /* Smooth transition for hover effect */
}

.rfq-ask:hover {
  background-color: rgb(192, 4, 4);
  box-shadow: 0 0 40px rgba(192, 4, 4, 0.719);
  transform: scaleY(1.1);
}



.rfq-spread-container {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background-color: grey;
  border: 1px solid black;
  border-radius: 8px;
  padding: 5px 15px;
  z-index: 10;
  text-align: center;
  width: 100px;
  /* Adjust width as needed */
}

.rfq-spread {
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  border: 1px none white;
  text-align: center;
  grid-template-rows: auto;
  grid-template-columns: 1fr .25fr 1fr;
  grid-auto-columns: 1fr;
  text-decoration: none;
  display: grid;
  position: static;
  inset: auto 0% 0%;
}

.rfq-description {
  text-align: center;
  text-decoration: none;
}

.rfq-price {
  justify-content: center;
  margin-top: 21px;
  padding-top: 0;
  display: flex;
}

.rfq-price.spread {
  margin-top: 0;
}

.rfq-text {
  color: white;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: .75rem;
  text-decoration: none;
  position: static;
}

.rfq-empty {
  border-right: 1px solid white;
  border-bottom: 1px solid white;
  border-left: 1px solid white;
}

.rfq-empty.left {
  border-right-style: none;
  border-right-color: black;
  border-bottom-color: black;
  border-left-color: black;
  background-color: #aaa;
  border-bottom-left-radius: 10px;
}

.rfq-empty.right {
  border-right-color: black;
  border-bottom-color: black;
  border-left-style: none;
  border-left-color: black;
  background-color: #aaa;
  border-bottom-right-radius: 10px;
}

.rfq-non-pips-price {
  color: black;
  text-align: right;
  font-family: Arial, sans-serif;
}

.rfq-pips-price {
  color: black;
  margin-left: 10px;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.select-field {
  border-radius: 20px;
  width: 30%;
  font-family: Arial, sans-serif;
}

.form {
  display: flex;
}

.rfq-fxpair {
  border-radius: 20px;
  width: 200px;
  height: 30px;
  padding-top: 3px;
  padding-bottom: 3px;
  font-family: Arial, sans-serif;
}

.rfq-form {
  padding-top: 1rem;
  padding-bottom: 1rem;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr .5fr .5fr;
  grid-auto-columns: 1fr;
  display: grid;
}

@media (max-width: 768px) {
  .rfq-form {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

.rfq-product {
  border-radius: 20px;
  width: 200px;
  height: 30px;
  padding: 3px 12px;
  font-family: Arial, sans-serif;
}

.rfq-date {
  border-radius: 20px;
  width: 200px;
  height: 30px;
  padding-top: 3px;
  padding-bottom: 3px;
  font-family: Arial, sans-serif;
}


.date-input{
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 3px solid #ccc;
  border-radius: 5px;
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
  color: black;
}

.currency-input{
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 3px solid #ccc;
  border-radius: 5px;
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
  color: black;
}




.credentials-input {
  width: 100%;
  padding: 0.5rem 0.5rem;
  border: 3px solid #ccc;
  border-radius: 5px;
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
  color: black;
}


.spot-currency-input {
  width: 27%;
  padding: 0.5rem 0.75rem;
  border: 3px solid #ccc;
  /* border-left: none; */
  border-radius: 5px;
  background: #fff;
  font-size: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  color: black;
}

.amount-input {
  width: 67%;
  padding: 0.5rem 0.75rem;
  padding-left: 2rem;
  border: 3px solid #ccc;
  /* border-right: none; */
  border-radius: 5px;
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
  color: black;
}

.input-row {
  display: flex;
  justify-content: space-between;
}

.rfq-form select:focus,
.rfq-form input:focus {
  outline: none;
  border-color: #153fca;
}



/* Quote details: combine text + currency select */
.ms-input-wrap {
  display: flex;
  align-items: stretch;
}

/* Left: amount input */
.ms-input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

/* Right: currency dropdown */
.ms-dropdown {
  width: 5rem;
  
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
  padding-right: 1.5rem;
}

/* Reposition the icon inside the ms-input-wrap */
.ms-svg {
  position: absolute;
  display: flex;
  direction: ltr;
  pointer-events: none;
  transform: translateY(30%);
}


.inputs-spot {
  cursor: pointer;
  display: block;
}

.inputs-ndf {
  display: none;
}

.rfq-button {
  text-align: center;
  transition: transform 0.2s ease;
}

.rfq-button:hover {
  transform: translateY(2px) scale(1.03);
}

.rfq-timer-wrapper {
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%); 
  /* bottom: -60px; */
  /* Adjust as needed to position below rfq-wrapper */
  z-index: 20;
  /* Make sure it's above other elements */
}

.rfq-timer-number {
  color: white;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all .3s;
  display: flex;
  position: absolute;
  inset: 0%;
}

.rfq-timer-conic {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(#0afdb4 0%, #fff 0%);
  display: flex;
  justify-content: center;
  align-items: center;
  filter: blur(2px);
}

.div-block-16 {
  background-color: black;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  display: flex;
  position: absolute;
}

.div-block-11 {
  background-color: var(--base-color-neutral--neutral-dark);
  border-style: solid;
  border-width: 1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  width: 100%;
}


.white-text-bold {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}






.bouncing-arrow {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 20px solid white;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}







.ms-toggle-checkbox:checked~.ms-switch-select {
  left: 50%;
}

.ms-toggle-checkbox:checked~.ms-switch-bg {
  background-color: var(--main-active-color);
}

.ms-pill-checkbox:checked~.ms-pill-label.has-icon {
  background-color: rgba(41, 98, 255, 0.1);
  border-color: #2962ff;
  color: #2962ff;
  padding-left: 35px;
}

.ms-pill-checkbox:checked~.ms-pill-icon {
  display: flex;
}


/* Container for the “?” icon */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 4px;       /* space from the label */
  font-weight: bold;
  color: white;
}

/* Hidden by default */
.tooltip .tooltip-content {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  
  /* Positioning */
  position: absolute;
  bottom: 100%;           /* appear above the icon */
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;     /* small gap */
  
  /* Styling */
  width: 300px;           /* adjust as needed */
  padding: 10px;
  font-size: 11.5px;
  line-height: 1.5em;
  color: black;
  background-color: #fafbfe;
  border: 1px solid #d8e3f0;
  border-radius: 10px;
  box-shadow: 1px 1px 8px rgba(45,62,80,0.12);
  z-index: 9999;
}

/* Reveal on hover/focus */
.tooltip:hover .tooltip-content,
.tooltip:focus-within .tooltip-content {
  visibility: visible;
  opacity: 1;
}

/* The little “diamond” arrow at the bottom of the tooltip box */
.tooltip .tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;              /* at the bottom edge of the box */
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #fafbfe transparent transparent transparent;
}

.rate-limited {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  position: relative;
}

.rate-limited::before {
  content: "🔒";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

/* Loading overlay styles - add or update these */
.loading-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.7) !important; /* Darker background */
  z-index: 999999 !important; /* Extra high z-index */
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}

.loading-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.3s, visibility 0s;
}

.loader {
  width: 80px !important;
  height: 80px !important;
  border: 6px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
  border-top-color: #0afdb4 !important;
  animation: spin 1s ease-in-out infinite !important;
  box-shadow: 0 0 20px rgba(10, 253, 180, 0.5) !important; /* Glow effect */
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.commercial-spread-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
}

.spread-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  justify-content: flex-end;
  
}

.spread-value-bid {
  background: #aaa;
  border: 1px solid black;
  border-radius: 12px 12px 0px 0px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  color: black;
  text-align: center;
  min-width: 100px;
}

.highlight-spread-bid {
  background-color: green !important;
  box-shadow: 0 0 40px rgba(1, 214, 1, 0.76) !important;
  transform: scaleY(1.1) !important;
}

.spread-value-ask {
  background: #aaa;
  border: 1px solid black;
  border-radius: 12px 12px 0px 0px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  color: black;
  text-align: center;
  min-width: 100px;
}

.highlight-spread-ask {
  background-color: rgb(192, 4, 4) !important;
  box-shadow: 0 0 40px rgba(192, 4, 4, 0.719) !important;
  transform: scaleY(1.1) !important;
}

.spread-label {
  font-size: 12px;
  color: #6c757d;
  margin-top: 5px;
  text-align: center;
}

.commercial-input .spread-value {
  background: transparent;
  border: none;
  padding: 0;
}

.commercial-spread-input-container {
  display: flex;
  align-items: center;
  background: grey;
  border: 1px solid black;
  border-radius: 12px;
  padding: 4px;
}

.spread-btn {
  background: var(--brand-color);
  color: white;
  border: none;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.spread-btn:hover {
  background: var(--brand-color-hover);
  transform: scale(1.15);
}

.spread-btn-small {
  background: var(--brand-color);
  color: white;
  border: none;
  border-radius: 4px;
  width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  margin-left: 5px;
  margin-right: 5px;
}

.spread-btn-small:hover {
  background: var(--brand-color-hover);
  transform: scale(1.15);
}

.input-with-symbol {
  position: relative;
  display: inline-block;
}

.percentage-symbol {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: black;
}


#commercial-spread {
  border: none;
  background: transparent;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  width: 60px;
  padding: 8px 4px;
  color: black;
  min-width: 70px;
}

#commercial-spread:focus {
  outline: none;
}


/* Responsive design */
@media (max-width: 768px) {
  .commercial-spread-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .spread-control {
    min-width: auto;
  }
}


/* Spread toggle switch styling */
.spread-type-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  gap: 6px;
}

.mode-option {
  font-size: 12px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.active-mode {
  color: white;
  font-weight: bold;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #666;
  transition: .3s;
  border-radius: 18px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--brand-color, #0afdb4);
}

input:checked + .slider:before {
  transform: translateX(18px);
}