/* Styles for DIY Weight Gainer Shake Profiler */
.calcufacil-diy_gainer_shake.calcufacil-container {
    max-width: 900px; margin: 25px auto; background: #fdfdfd; padding: 25px;
    border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex; flex-direction: row; flex-wrap: wrap; gap: 30px;
    font-family: 'Arial', sans-serif; border: 1px solid #FF8F00; /* Amber/Orange for food/fitness */
    box-sizing: border-box;
}
.calcufacil-diy_gainer_shake.calcufacil-container *,
.calcufacil-diy_gainer_shake.calcufacil-container *::before,
.calcufacil-diy_gainer_shake.calcufacil-container *::after { box-sizing: border-box; }

.calcufacil-diy_gainer_shake h2 {
    width: 100%; text-align: center; color: #E65100; /* Dark Orange */
    margin-top:0; margin-bottom: 10px; font-size: 1.6em;
}
.calcufacil-diy_gainer_shake .calcufacil-left.calculator-form {
    flex: 1.5; min-width: 400px; padding: 20px; background-color: #fff;
    border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #FFF3E0;
}
.calcufacil-diy_gainer_shake .calcufacil-right.results {
    flex: 1; min-width: 320px; background: #FFF3E0; /* Very Light Orange */
    padding: 25px; border-radius: 8px; border: 1px solid #FFE0B2; /* Light Orange */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); display: flex; flex-direction: column;
    justify-content: flex-start; align-items: center;
}

.calcufacil-diy_gainer_shake .ingredient-row {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for custom fields */
    gap: 10px;
    align-items: flex-end; /* Align bottoms of inputs/selects */
    padding: 10px;
    border: 1px solid #FFECB3;
    border-radius: 6px;
    margin-bottom: 10px;
    background-color: #FFF9F2;
}
.calcufacil-diy_gainer_shake .ingredient-row .input-group { margin-bottom: 5px; flex-grow:1; }
.calcufacil-diy_gainer_shake .ingredient-select-group { flex-basis: 200px; min-width:180px; }
.calcufacil-diy_gainer_shake .ingredient-qty-group { flex-basis: 120px; min-width:100px; }
.calcufacil-diy_gainer_shake .ingredient-qty-group .unit-display { font-weight: normal; font-size: 0.85em; color: #777; }

.calcufacil-diy_gainer_shake .custom-fields-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%; /* Take full width in the row */
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #FFECB3;
}
.calcufacil-diy_gainer_shake .custom-fields-group input[type="text"] {
    flex: 1 1 100px; /* Allow them to grow but have a base size */
    font-size: 0.85em;
    padding: 6px 8px;
}


.calcufacil-diy_gainer_shake label {
    display: block; font-weight: 600; color: #D84315; /* Deep Orange */
    margin-bottom: 4px; font-size: 0.9em;
}
.calcufacil-diy_gainer_shake input[type="text"],
.calcufacil-diy_gainer_shake input[type="number"],
.calcufacil-diy_gainer_shake select {
    width: 100%; padding: 8px 10px; border: 1px solid #FFCC80; /* Light Orange border */
    border-radius: 4px; font-size: 0.95em; background: #FFFFF0; /* Ivory */ font-family: sans-serif;
}
.calcufacil-diy_gainer_shake input[type="text"]:focus,
.calcufacil-diy_gainer_shake input[type="number"]:focus,
.calcufacil-diy_gainer_shake select:focus {
    border-color: #FFA726; box-shadow: 0 0 0 2px rgba(255, 167, 38, 0.2); outline: none;
}
.calcufacil-diy_gainer_shake .note { font-size: 0.85em; color: #E65100; margin-bottom:15px; line-height: 1.4; text-align: left;}

.calcufacil-diy_gainer_shake .add-row-button,
.calcufacil-diy_gainer_shake .remove-ingredient-row {
    background-color: #FFB74D; color: #422000; border: none;
    padding: 6px 10px; border-radius: 4px; cursor: pointer;
    font-size: 0.9em; transition: background-color 0.2s ease;
    align-self: flex-end; /* Align with bottom of inputs */
    margin-left: 5px;
    height: 38px; /* Match input height */
}
.calcufacil-diy_gainer_shake .add-row-button { width: 100%; margin-top: 10px; background-color: #FF9800; color:white;}
.calcufacil-diy_gainer_shake .remove-ingredient-row { background-color: #FF8A65; }
.calcufacil-diy_gainer_shake .add-row-button:hover { background-color: #FB8C00; }
.calcufacil-diy_gainer_shake .remove-ingredient-row:hover { background-color: #FF7043; }


.calcufacil-diy_gainer_shake button[type="submit"] {
    background-color: #FB8C00; /* Darker Orange */ color: #fff; padding: 12px 25px;
    border: none; border-radius: 5px; cursor: pointer; font-size: 1.05em;
    width: 100%; transition: background-color 0.3s ease; font-weight: 600; margin-top:20px;
}
.calcufacil-diy_gainer_shake button[type="submit"]:hover { background-color: #F57C00; }

/* Results Styling */
.calcufacil-diy_gainer_shake .results-header h2 { color: #E65100; margin-bottom: 20px; font-size: 1.4em; }
.calcufacil-diy_gainer_shake .results-header h4 { color: #F57C00; margin-top:15px; margin-bottom:8px; font-size:1.15em; text-align:left; border-bottom: 1px solid #FFE0B2; padding-bottom: 4px;}
.calcufacil-diy_gainer_shake .initial-message {
    text-align: center; color: #E65100; font-style: italic; padding: 20px;
    background-color: #FFF3E0; border: 1px dashed #FFCC80; border-radius: 5px; width:100%;
}
.calcufacil-diy_gainer_shake .calculation-summary { width: 100%; margin-bottom: 20px; }
.calcufacil-diy_gainer_shake .calculation-desc { font-size: 1.05em; color: #D84315; margin-bottom: 15px; text-align:center; }
.calcufacil-diy_gainer_shake .calculation-desc strong { font-weight: bold; }

.calcufacil-diy_gainer_shake .totals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.calcufacil-diy_gainer_shake .main-result {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background-color: #FFECB3; padding: 12px; border-radius: 6px;
    border: 1px solid #FFE082; font-size: 1em; color: #D84315;
}
.calcufacil-diy_gainer_shake .main-result.final-result {
    background-color: #FFA000; /* Amber */ color: #fff; font-size: 1.3em;
    padding: 15px; border-color: #FF8F00; font-weight: bold;
    grid-column: 1 / -1; /* Span full width in grid */
}
.calcufacil-diy_gainer_shake .main-result span:first-child { font-size: 0.85em; opacity:0.9; }
.calcufacil-diy_gainer_shake .main-result span:last-child { font-size: 1.5em; font-weight: bold; margin-top: 3px; }
.calcufacil-diy_gainer_shake .main-result.final-result span:last-child { font-size: 1.8em; }

.calcufacil-diy_gainer_shake .composition-list {
    list-style: none; padding: 0; margin-top:10px; text-align: left; font-size: 0.9em;
}
.calcufacil-diy_gainer_shake .composition-list li {
    padding: 5px 0; border-bottom: 1px dotted #FFECB3; color: #BF360C;
}
.calcufacil-diy_gainer_shake .composition-list li:last-child { border-bottom: none; }
.calcufacil-diy_gainer_shake .composition-list li strong { color: #A04000; }


.calcufacil-diy_gainer_shake .errors {
    color: #D32F2F; background-color: #FFCDD2; border: 1px solid #EF9A9A;
    padding: 10px 15px; border-radius: 4px; margin: 15px 0; text-align: center; width:100%;
}
.calcufacil-diy_gainer_shake .errors ul { list-style: none; padding: 0; margin: 0; }

.calcufacil-diy_gainer_shake .disclaimer-box.info {
    padding: 15px; background-color: #E8F5E9; /* Light Green for info */
    border: 1px solid #C8E6C9; border-left: 5px solid #66BB6A; /* Green accent */
    border-radius: 8px; font-size: 0.85em; color: #2E7D32; width:100%;
}
.calcufacil-diy_gainer_shake .disclaimer-box.info h4 {
    color: #388E3C; font-size: 1.1em; margin-top: 0; margin-bottom: 10px;
}
.calcufacil-diy_gainer_shake .disclaimer-box.info ul { list-style: disc; margin-left: 20px; padding-left: 0; line-height: 1.6; }

/* Responsive */
@media (max-width: 768px) {
    .calcufacil-diy_gainer_shake.calcufacil-container { flex-direction: column; gap: 20px; padding: 15px; }
    .calcufacil-diy_gainer_shake .calcufacil-left.calculator-form,
    .calcufacil-diy_gainer_shake .calcufacil-right.results { min-width: unset; width: 100%; }
    .calcufacil-diy_gainer_shake .ingredient-row { flex-direction:column; align-items: stretch; }
    .calcufacil-diy_gainer_shake .ingredient-row .input-group { flex-basis:auto; }
    .calcufacil-diy_gainer_shake .ingredient-row .remove-ingredient-row { width:100%; margin-left:0; margin-top:5px;}
    .calcufacil-diy_gainer_shake .custom-fields-group { flex-direction:column;}
    .calcufacil-diy_gainer_shake .custom-fields-group input[type="text"] { flex-basis:auto;}
}