.stock-button-group {
  display: flex;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.stock-button-container {
  display: flex;
  flex: 1;
  gap: 0;
  min-width: 0;
  max-width: 100%;
}

.symbol-button-wrapper {
  display: flex;
  align-items: flex-start;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.symbol-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.market-cap-text {
  font-size: 11px;
  color: #999;
  margin-top: 1px;
  font-weight: 400;
  text-align: center;
}

.news-button.with-market-cap {
  height: 40px;
  /* min-width: 140px; */
}

/* Make search button match the height when market cap is present */
.search-button.with-market-cap {
  height: 40px;
}

.inline-trade-button-base {
  cursor: pointer;
  background-color: #2c2c2c;
  border: 1px solid #4d4d4d;
  color: #ffffff;
  font-weight: bold;
  transition:
    background-color 0.1s ease,
    border-color 0.1s ease;
  text-align: center;
  font-size: 13px;
  flex: 1;
  border-radius: 3px;
  margin-right: 5px;
}

.inline-trade-button-base:hover {
  background-color: #444;
  border-color: #666;
}

.inline-trade-button-base:active {
  background-color: #555;
  border-color: #888;
}

.inline-short-button {
  /* color: #ef2d56; */
  border-color: #ff5c5c;
}

.inline-long-button {
  /* color: #2fbf71; */
  border-color: #2fbf71;
}

/* New Styles for Trade Buttons Container */
.trade-options-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 5px;
  gap: 3px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* Option Button Styling */

/* Border color based on Calls and Puts */
.call {
  color: #2fbf71; /* Green border for Calls */
}

/* Hover effect for Option Button */

/* Aligning Strike left, Bid/Ask center, Percent Change right */

.neutral {
  color: #999; /* Gray for neutral/0% */
}

.positive {
  color: #00ff88;
}

.negative {
  color: #ff5c5c;
}

/* OI left, Vol right */
.symbol-price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-left: 10px;
}
/* Option buttons are now integrated into SymbolButton */
.option-button-row {
  display: flex;
  width: 100%;
}

.option-button-container {
  display: flex;
  width: 100%;
}

/* Wrapper for info+size buttons to handle spacing like stock buttons */
.option-button-pair {
  display: flex;
  gap: 0;
  width: 100%;
}

/* Option info button - shows strike/expiry/price + size 1 */
.option-info-btn {
  cursor: pointer;
  background-color: #2c2c2c;
  border: 1px solid #4d4d4d;
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.1s ease;
  text-align: left;
  border-radius: 3px;
  padding: 0 5px;
  margin-right: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.option-info-btn:hover {
  background-color: #444;
}

.option-info-btn:active {
  background-color: #555;
}

.option-info-btn.call {
  border-color: #2fbf71;
}

.option-info-btn.put {
  border-color: #ff5c5c;
}

.option-info-btn.illiquid-yellow {
  background-color: rgba(251, 191, 36, 0.3);
}

.option-info-btn.illiquid-red {
  background-color: rgba(239, 68, 68, 0.4);
}

.option-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.option-strike {
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

.option-price {
  font-size: 11px;
  color: #aaa;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

.option-size {
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}

/* Size 2 button */
.option-size-btn {
  cursor: pointer;
  background-color: #2c2c2c;
  border: 1px solid #4d4d4d;
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.1s ease;
  text-align: center;
  font-size: 13px;
  flex: 1;
  border-radius: 3px;
  margin-right: 5px;
}

.option-size-btn:hover {
  background-color: #444;
}

.option-size-btn:active {
  background-color: #555;
}

.option-size-btn.call {
  border-color: #2fbf71;
}

.option-size-btn.put {
  border-color: #ff5c5c;
}

.option-size-btn.illiquid-yellow {
  background-color: rgba(251, 191, 36, 0.25);
}

.option-size-btn.illiquid-red {
  background-color: rgba(239, 68, 68, 0.3);
}

/* Blink animation for option updates */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.option-button-row.blink {
  animation: blink 0.5s ease-in-out;
}
