/* WooCommerce Combo Options – Frontend Styles */

/* ---- Full-width wrapper ---- */
.wco-combo-wrapper {
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0 18px;
    padding: 18px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    font-family: inherit;
    clear: both;
}

/* Force full width even inside WooCommerce summary column */
.summary .wco-combo-wrapper,
.product .summary .wco-combo-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* ---- Title row ---- */
.wco-combo-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wco-combo-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #96588a;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Optional badge */
.wco-optional-badge {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 2px 9px;
    letter-spacing: 0.3px;
}

/* ---- Options list ---- */
.wco-combo-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* ---- Individual option card ---- */
.wco-combo-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    user-select: none;
    position: relative;
}

.wco-combo-option:hover {
    border-color: #96588a;
    background: #fdf6fc;
}

.wco-combo-option.wco-selected {
    border-color: #96588a;
    background: #fdf6fc;
    box-shadow: 0 0 0 3px rgba(150, 88, 138, 0.12);
}

/* Hide native radio */
.wco-combo-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom radio circle */
.wco-combo-option::before {
    content: "";
    display: inline-flex;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #bbb;
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.wco-combo-option.wco-selected::before {
    border-color: #96588a;
    background: radial-gradient(circle, #96588a 45%, #fff 46%);
}

/* Label text */
.wco-option-label {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Price badge */
.wco-option-price {
    font-size: 13px;
    font-weight: 600;
    color: #96588a;
    white-space: nowrap;
}

.wco-included {
    font-size: 12px;
    font-weight: 500;
    color: #4caf50;
    background: #f0fff0;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #c8e6c9;
}

/* ---- "No combo selected" note ---- */
.wco-no-combo-note {
    margin-top: 12px;
    font-size: 12px;
    color: #aaa;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.2px;
}

/* ---- Price summary bar (shown only when combo selected) ---- */
.wco-price-summary {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #f3e8f0;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.wco-price-summary .wco-total-label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wco-price-summary .wco-total-price {
    font-weight: 700;
    font-size: 18px;
    color: #96588a;
    white-space: nowrap;
}

.wco-combo-extra-note {
    font-size: 12px;
    color: #888;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .wco-combo-wrapper {
        padding: 14px 12px;
    }
    .wco-combo-option {
        padding: 10px 12px;
    }
    .wco-price-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .wco-price-summary .wco-total-price {
        font-size: 16px;
    }
}
