.priceHistory {
    padding: var(--external-padding-mobile);
    height: 620px;
}

.price-history-loading {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: 400px;
    margin-top: 10px;
  }

  .price-history-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: price-history-spin 1s linear infinite;
    margin-bottom: 16px;
  }

  .price-history-loading-text {
    color: #64748b;
    font-size: 20px;
    margin: 0;
  }

  @keyframes price-history-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .price-chart-container {
    margin-top: 10px;
  }

  #priceChart {
    margin-top: 10px;

    width: 100% !important;
    height: auto !important;
  }

  .price-history-legend {
    margin-top: 15px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #ecfdf3 0%, #e0f2fe 100%);
    border: 1px solid #c7e9c0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.5;
  }

  .price-history-legend-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

  .price-history-legend-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .price-history-legend-title {
    color: #0f172a;
    font-size: 20px;
    font-weight:700;
}

  .price-history-legend-text {
    color: #0f172a;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.5;
}

  @media(min-width: 900px) {

    .priceHistory {
      padding: var(--external-padding-desktop);
      min-height: 600px;
    } 
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}