/**
 * Frontend styles for Simple WooCommerce Product Add-ons
 */

.simple-wc-addons {
    margin: 20px 0;
    padding: 0;
}

.simple-wc-addons .addon-group {
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.simple-wc-addons .addon-group h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.simple-wc-addons .addon-group h4 .required {
    color: #dc3545;
    margin-left: 3px;
}

.simple-wc-addons .addon-group-subtitle {
    font-size: 14px;
    color: #666;
    margin: -8px 0 12px 0;
    font-weight: 400;
}

.simple-wc-addons .addon-option-item {
    margin-bottom: 0;
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
}

.simple-wc-addons .addon-option-item:last-child {
    border-bottom: none;
}

.simple-wc-addons .addon-option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 14px 0;
    transition: background-color 0.2s ease;
    position: relative;
}

.simple-wc-addons .addon-option-label:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Hide default radio and checkbox */
.simple-wc-addons .addon-option-label input[type="radio"],
.simple-wc-addons .addon-option-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Left side content */
.simple-wc-addons .addon-option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.simple-wc-addons .addon-option-name {
    font-size: 15px;
    color: #000;
    font-weight: 500;
    margin-bottom: 2px;
}

.simple-wc-addons .addon-option-price {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Right side - Plus icon */
.simple-wc-addons .addon-option-icon {
    width: 24px;
    height: 24px;
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

/* Selected state */
.simple-wc-addons .addon-option-label input:checked~.addon-option-icon {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Checkbox - show checkmark when selected */
.simple-wc-addons .addon-option-label input[type="checkbox"]:checked~.addon-option-icon::before {
    content: "✓";
}

/* Radio - show dot when selected */
.simple-wc-addons .addon-option-label input[type="radio"]:checked~.addon-option-icon::before {
    content: "✓";
}

/* Plus icon for unselected */
.simple-wc-addons .addon-option-icon::after {
    content: "+";
}

.simple-wc-addons .addon-option-label input:checked~.addon-option-icon::after {
    content: "";
}

.simple-wc-addons .addon-validation-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.simple-wc-addons .addon-validation-error.show {
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .simple-wc-addons .addon-group {
        padding: 0;
    }

    .simple-wc-addons .addon-option-label {
        padding: 12px 0;
    }

    .simple-wc-addons .addon-option-name {
        font-size: 14px;
    }

    .simple-wc-addons .addon-option-price {
        font-size: 13px;
    }
}