/* 
 * Future Solar Calc Styles
 * Minimal styles to avoid overriding Flatsome.
 * The layout relies on Flatsome's col/row grid system.
 */

/* Optional: Add smooth transition for result updates */
.value {
  transition: color 0.3s ease;
}
/* Comparison View Alignment */
.calc-comparison .calc-row {
  justify-content: space-between;
  align-items: center;
}

.calc-comparison .calc-row .label {
  flex: 1;
  text-align: left;
}

.calc-comparison .calc-row .value {
  width: 25%; /* align with header columns */
  text-align: right;
  padding-left: 10px;
}

/* Header Alignment matching values */
.calc-comparison .calc-header-right {
  display: flex;
  width: 50%; /* Assume header right takes 50% usually, or adjust */
  justify-content: flex-end;
}
.calc-comparison .calc-header-right .col-title {
  width: 50%;
  text-align: right;
}

.highlight-row {
  background-color: #fff8e1; /* Light Orange for Savings */
}

.highlight-tier {
  background-color: #ffffdd; /* Light Yellow for Tier */
}

.mt-30 { margin-top: 30px; }

/* Styling for "Before" columns - SPECIFIC TARGETING */
/* User requested #bababa on specific classes */
.fs-val-cmp-grid-kwh-before,
.fs-val-cmp-grid-bill-before,
.fs-val-cmp-grid-tier-before,
.fs-val-cmp-grid-savings-percent-before,
.fs-val-cmp-grid-savings-amount-before,
.fs-val-cmp-grid-co2-before,
.fs-val-cmp-grid-trees-before,
.fs-val-cmp-hybrid-kwh-before,
.fs-val-cmp-hybrid-bill-before,
.fs-val-cmp-hybrid-tier-before,
.fs-val-cmp-hybrid-savings-percent-before,
.fs-val-cmp-hybrid-savings-amount-before,
.fs-val-cmp-hybrid-co2-before,
.fs-val-cmp-hybrid-trees-before {
    color: #bababa !important;
    font-weight: 300;
}

/* Styling for "After" columns */
/* Target the 3rd child (last value column) */
.calc-comparison .calc-row .value:nth-child(3) {
    color: #f60; /* Orange - matches existing savings amount color */
    font-weight: bold;
}

/* Full Page Loading Overlay */
.fs-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.fs-loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #f60;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.fs-loading-text {
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

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