/* Styles for Oz (weight) to Grams Converter */
.calcufacil-oz_grams_weight_converter.calcufacil-container.enhanced-ozgrams-calc {
    max-width: 550px; /* Compact */
    margin: 25px auto;
    background: #fffcf8; /* Light yellow-orange for food/kitchen */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Arial', sans-serif;
}

.calcufacil-oz_grams_weight_converter .calculator-form-compact {
    text-align: center;
}
.calcufacil-oz_grams_weight_converter .calculator-form-compact h3 {
    font-size: 20px; color: #e67e22; /* Carrot Orange */
    margin-top:0; margin-bottom: 10px; font-weight: 600;
}
.calcufacil-oz_grams_weight_converter .calculator-form-compact .description {
    font-size: 14px; color: #d35400; /* Pumpkin */ margin-bottom: 20px; line-height: 1.5;
}

/* General input group styling for the main select */
.calcufacil-oz_grams_weight_converter .input-group {
    margin-bottom: 15px;
    width:100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align label to the left */
}
.calcufacil-oz_grams_weight_converter .input-group label {
    font-weight: 500; color: #e67e22; margin-bottom: 5px; font-size: 13.5px;
}
.calcufacil-oz_grams_weight_converter .input-group select {
    width: 100%; padding: 9px; border: 1px solid #f39c12; /* Orange border */ border-radius: 4px;
    font-size: 14px; box-sizing: border-box;
}

/* Styling for the inline group holding value input and button */
.calcufacil-oz_grams_weight_converter .form-inline-group-ozg {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: center; /* Center items */
    align-items: flex-end; /* Align items to bottom */
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.calcufacil-oz_grams_weight_converter .input-group.ozg-input {
    display: flex; /* Managed by JS (flex or none) */
    flex-direction: column;
    align-items: flex-start; /* Label above input */
    flex-grow: 1; /* Allow input to take available space */
    margin-bottom: 0; /* Gap is handled by parent */
}
.calcufacil-oz_grams_weight_converter .input-group.ozg-input label {
     font-weight: 500; color: #e67e22; margin-bottom: 5px; font-size: 13.5px;
}
.calcufacil-oz_grams_weight_converter .input-group.ozg-input input[type="text"] {
    padding: 9px; border: 1px solid #f39c12; border-radius: 4px;
    font-size: 14px; box-sizing: border-box;
    width: 100%; /* Take full width of its flex item container */
    min-width: 120px; /* Don't get too small */
}


.calcufacil-oz_grams_weight_converter button.compact-submit-button {
    background: #d35400; color: #fff; padding: 10px 18px; border: none; border-radius: 5px;
    cursor: pointer; font-size: 14px; font-weight: bold;
    transition: background-color 0.2s ease;
    height: 38px; /* Match input height */
    white-space: nowrap; /* Prevent button text from wrapping */
}
.calcufacil-oz_grams_weight_converter button.compact-submit-button:hover { background: #e67e22; }

.calcufacil-oz_grams_weight_converter .ozgrams-result-display {
    margin-top: 20px; padding: 15px; background-color: #fff5e6;
    border: 1px solid #ffe0b2; border-radius: 6px;
}
.calcufacil-oz_grams_weight_converter .ozgrams-result-display p {
    font-size: 1.1em; color: #d35400; margin: 0 0 8px 0;
}
.calcufacil-oz_grams_weight_converter .calculated-value-box-ozgrams {
    font-size: 2em; font-weight: bold; color: #bf360c; /* Deep Orange */
    padding: 10px; background-color: #fff; border-radius: 4px;
    display: inline-block; border: 1px solid #ffe0b2;
}
.calcufacil-oz_grams_weight_converter .conversion-factors-note {
    margin-top: 10px; font-size: 0.8em; color: #e67e22;
}
.calcufacil-oz_grams_weight_converter .conversion-factors-note p { margin: 0; }


.calcufacil-oz_grams_weight_converter .errors.main-error ul { list-style:none; padding:0; margin:0; color: #c00; }
.calcufacil-oz_grams_weight_converter .initial-message.compact-initial-message {
    text-align: center; padding: 15px; background-color: #fff5e6;
    border: 1px dashed #ffe0b2; border-radius: 5px; margin-top: 20px; color: #d35400;
    font-size: 0.95em;
}

@media (max-width: 550px) {
    .calcufacil-oz_grams_weight_converter .form-inline-group-ozg {
        flex-direction: column; align-items: stretch;
    }
    .calcufacil-oz_grams_weight_converter .input-group.ozg-input input[type="text"] {
        max-width: none; width: 100%;
    }
     .calcufacil-oz_grams_weight_converter button.compact-submit-button { width: 100%; }
}