.vedenkulutuslaskuri-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vedenkulutuslaskuri-container h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.vedenkulutus-form {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #34495e;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group small {
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 5px;
}

.calculate-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.calculate-btn:active {
    transform: translateY(0);
}

.calculation-results {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #3498db;
    margin-top: 20px;
}

.calculation-results h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.result-card h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    gap: 10px;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.result-label {
    color: #5a6c7d;
    font-size: 14px;
}

.result-value {
    font-weight: 600;
    color: #2c3e50;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.result-value.cost {
    color: #e74c3c;
}

.result-value.usage {
    color: #27ae60;
}

.usage-breakdown {
    margin-top: 30px;
}

.usage-breakdown h5 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
}

.breakdown-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.breakdown-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease;
}

.breakdown-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.breakdown-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.category-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.category-percentage {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.breakdown-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    color: #7f8c8d;
    font-size: 14px;
}

.detail-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.detail-value.hot {
    color: #e74c3c;
}

.detail-value.cold {
    color: #3498db;
}

.highlight-box {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.highlight-box h6 {
    margin-bottom: 10px;
    font-size: 16px;
}

.highlight-box .big-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.highlight-box .small-text {
    font-size: 14px;
    opacity: 0.9;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.loading:before {
    content: "⏳";
    margin-right: 10px;
}

/* Vedensäästötuotteiden tyylit */
.water-saving-section {
    background: #f0f8ff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    border: 2px solid #3498db;
}

.savings-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card input[type="checkbox"]:checked + .product-info {
    color: #2980b9;
}

.product-card input[type="checkbox"]:checked {
    background: #3498db;
}

.product-label {
    display: block;
    cursor: pointer;
    margin: 0;
}

.product-label input[type="checkbox"] {
    float: right;
    margin: 0 0 10px 10px;
    transform: scale(1.3);
}

.product-info h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.product-specs {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 8px;
}

.product-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 14px;
}

.inline-select {
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 13px;
    margin: 0 5px;
}

.savings-results-section {
    margin-top: 20px;
}

.water-saving-section h4 {
    color: #2980b9;
    margin-bottom: 10px;
    font-size: 18px;
}

.water-saving-section p {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 14px;
}

.water-saving-section .form-group {
    margin-bottom: 15px;
}

.water-saving-section label {
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}

.water-saving-section input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.flow-options {
    margin-top: 10px;
    padding: 10px;
    background: #e8f4f8;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

.flow-options label {
    font-weight: 600;
    color: #2980b9;
    margin-right: 10px;
}

.flow-options select {
    padding: 5px 10px;
    border: 1px solid #bdc3c7;
    border-radius: 3px;
    background: white;
}

/* Vedensäästötulosten tyylit */
.water-savings-results {
    margin-top: 30px;
    padding: 20px;
    background: #f8fffa;
    border-radius: 10px;
    border: 2px solid #27ae60;
}

.water-savings-results h4 {
    color: #27ae60;
    margin-bottom: 20px;
    font-size: 20px;
}

.savings-highlight {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
}

.savings-card {
    background: #f8fffa;
    border: 1px solid #27ae60;
}

.savings-card h5 {
    color: #27ae60;
}

.result-value.green {
    color: #27ae60;
    font-weight: 700;
}

.result-value.payback {
    color: #f39c12;
    font-weight: 700;
}

.big-number.green {
    color: #ffffff;
}

.final-cta {
    margin-top: 30px;
    background: #fff;
    border-radius: 15px;
    border: 2px solid #27ae60;
    overflow: hidden;
}

.cta-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 20px;
    text-align: center;
}

.cta-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
}

.benefit-card {
    padding: 20px;
    background: #f8fffa;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.3s ease;
}

.benefit-card:hover {
    background: #f0f8f0;
}

.benefit-card:nth-child(even) {
    background: #ffffff;
}

.benefit-card:nth-child(even):hover {
    background: #f8f8f8;
}

.benefit-icon {
    font-size: 32px;
    min-width: 50px;
    text-align: center;
}

.benefit-text {
    flex: 1;
    color: #000000;
    line-height: 1.4;
}

.benefit-text strong {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
}

.shop-button-container {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 2px solid #27ae60;
}

.shop-button {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
    border: none;
    cursor: pointer;
}

.shop-button:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

.shop-button:active {
    transform: translateY(0);
}

.shop-promo-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #e74c3c;
}

.shop-promo-section p {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
}

.shop-promo-button {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.shop-promo-button:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

/* Palkkikaavion tyylit */
.chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.pie-chart-container {
    text-align: center;
}

.pie-chart-container h6 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.bar-chart-container h6 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.bar-chart-item {
    margin-bottom: 15px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-color-indicator[data-category="peseytyminen"] {
    background: #3498db;
}

.category-color-indicator[data-category="keittio"] {
    background: #e74c3c;
}

.category-color-indicator[data-category="wc"] {
    background: #f39c12;
}

.category-color-indicator[data-category="pyykinpesu"] {
    background: #9b59b6;
}

.category-color-indicator[data-category="muu"] {
    background: #95a5a6;
}

.category-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.category-value {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
}

.bar-container {
    background: #ecf0f1;
    border-radius: 8px;
    height: 25px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 8px;
    position: relative;
    transition: width 0.3s ease;
    min-width: 2px;
    display: flex;
    overflow: hidden;
}

.bar-cold {
    background: #3498db;
    height: 100%;
    transition: width 0.3s ease;
}

.bar-hot {
    background: #e74c3c;
    height: 100%;
    transition: width 0.3s ease;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2c3e50;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.hot {
    background: rgba(231, 76, 60, 0.8);
}

.legend-color.cold {
    background: #3498db;
}

@media (max-width: 768px) {
    .vedenkulutuslaskuri-container {
        margin: 5px;
        padding: 15px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .vedenkulutuslaskuri-container h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .chart-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-legend {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .legend-item {
        font-size: 13px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .breakdown-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .breakdown-card {
        padding: 12px;
    }
    
    .category-name {
        font-size: 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: 15px;
        border-right: none;
    }
    
    .benefit-icon {
        font-size: 24px;
        min-width: 40px;
    }
    
    .benefit-text {
        font-size: 14px;
    }
    
    .benefit-text strong {
        font-size: 15px;
        color: #000000;
    }
    
    .cta-header {
        padding: 15px;
    }
    
    .cta-header h4 {
        font-size: 18px;
        color: #000000;
    }
    
    .water-saving-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .savings-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-info h5 {
        font-size: 15px;
    }
    
    .product-specs {
        font-size: 13px;
    }
    
    .inline-select {
        font-size: 12px;
        padding: 3px 5px;
    }
    
    .cta-benefits {
        grid-template-columns: 1fr;
    }
    
    .shop-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .shop-promo-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Parempi kosketusnäyttö-tuki */
    .product-checkbox {
        transform: scale(1.5);
        margin-right: 15px;
    }
    
    /* Kaikki klikkattavat elementit suuremmiksi mobiilissa */
    .product-card {
        min-height: 60px;
        padding: 15px;
    }
    
    .product-label input[type="checkbox"] {
        min-width: 20px;
        min-height: 20px;
        margin: 5px 10px 10px 10px;
    }
    
    .inline-select {
        min-height: 35px;
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .calculate-btn {
        padding: 15px 25px;
        font-size: 16px;
        min-height: 50px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Lomakekentät mobiilissa */
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 16px;
        min-height: 44px;
        box-sizing: border-box;
    }
    
    .form-group label {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .form-group small {
        font-size: 13px;
    }
    
    /* Tuloskortit mobiilissa */
    .result-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .result-item {
        padding: 10px 0;
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .result-label {
        font-size: 13px;
    }
    
    .result-value {
        font-size: 14px;
        font-weight: 600;
    }
    
    .highlight-box {
        padding: 15px;
        margin: 15px 0;
    }
    
    .big-number {
        font-size: 24px;
    }
    
    .small-text {
        font-size: 12px;
    }
    
    .calculation-results h4 {
        font-size: 18px;
    }
    
    .result-card h5 {
        font-size: 15px;
    }
    
    .usage-breakdown h5 {
        font-size: 16px;
    }
    
    .category-name {
        font-size: 14px;
    }
    
    .category-value {
        font-size: 12px;
    }
	
	.ct-section-inner-wrap {
    padding-block: var(--section-space-m);
    padding-inline: 0px !important;
}
}