/**
 * Kegs_Option Custom Options Styles
 */
.kegs-custom-options-wrapper {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fafafa;
}

.kegs-custom-options-wrapper .kegs-options-legend {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.kegs-custom-options-wrapper .required-mark {
    color: #e02b27;
    font-weight: bold;
}

.kegs-options-instruction {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    font-style: italic;
}

.kegs-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kegs-option-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.kegs-option-item:hover {
    border-color: #1979c3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kegs-option-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.kegs-option-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
}

.kegs-option-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    cursor: pointer;
    font-weight: normal;
}

.kegs-option-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    border: 1px solid #c2c2c2;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.kegs-option-qty-label {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.kegs-qty-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: #f4f4f4;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    transition: background 0.15s ease;
    user-select: none;
}

.kegs-qty-btn:hover:not(:disabled) {
    background: #e8e8e8;
    color: #1979c3;
}

.kegs-qty-btn:active:not(:disabled) {
    background: #d8d8d8;
}

.kegs-qty-btn:disabled {
    background: #f9f9f9;
    color: #ccc;
    cursor: not-allowed;
}

.kegs-qty-minus {
    border-right: 1px solid #c2c2c2;
}

.kegs-qty-plus {
    border-left: 1px solid #c2c2c2;
}

.kegs-option-qty {
    width: 50px;
    height: 32px;
    padding: 4px 6px;
    text-align: center;
    border: none;
    border-radius: 0;
    background: #fff;
    -moz-appearance: textfield;
}

/* Hide the native browser number-input arrows since we have custom buttons */
.kegs-option-qty::-webkit-outer-spin-button,
.kegs-option-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.kegs-option-qty:disabled {
    background: #f9f9f9;
    color: #999;
    cursor: not-allowed;
}

.kegs-option-title {
    color: #333;
    font-size: 14px;
}

.kegs-option-price {
    color: #1979c3;
    font-weight: 600;
    font-size: 14px;
}

.kegs-options-error {
    margin-top: 10px;
    padding: 10px;
    background: #fdf0d5;
    border: 1px solid #c07600;
    border-radius: 3px;
    color: #c07600;
    font-size: 13px;
    font-weight: 600;
}

.kegs-cart-options {
    margin-top: 5px;
    font-size: 12px;
    color: #555;
}

.kegs-cart-options .kegs-cart-option-line {
    display: block;
    padding: 2px 0;
}

.kegs-cart-options .kegs-cart-option-title {
    font-weight: 600;
}
