/* Custom Variable Radios & Actions */
:root {
    --yeemenu-main-color: #E4002B;
    --yeemenu-main-color-hover: #E4002B;
}

.yeemenu-variation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.yeemenu-addon-option-frontend-wrapper {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background-color: #fff;
}

.yeemenu-addon-sizes-list-frontend {
    padding: 0px 16px 16px 0px;
}

.yeemenu-radio-label {
    display: block;
    cursor: pointer;
    position: relative;
    padding: 12px 16px;
    transition: all 0.2s ease;
    background: #ffffff;
    border-radius: 13px;
    margin: 0 !important;
}

.yeemenu-radio-label:hover:not(.yeemenu-out-of-stock) {
    border-color: #94a3b8;
    background: #f8fafc;
}

.yeemenu-radio-label.yeemenu-out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

.yeemenu-radio-label input[type="radio"],
.yeemenu-radio-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.yeemenu-radio-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yeemenu-radio-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yeemenu-radio-custom,
.yeemenu-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.yeemenu-radio-label input[type="radio"]:checked~.yeemenu-radio-content .yeemenu-radio-custom {
    border-color: var(--yeemenu-main-color);
}

.yeemenu-radio-label input[type="radio"]:checked~.yeemenu-radio-content .yeemenu-radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--yeemenu-main-color);
    border-radius: 50%;
}

.yeemenu-radio-label input[type="radio"]:checked~.yeemenu-radio-content .yeemenu-radio-text {
    font-weight: 700;
}

/* Fallback for label selected state using :has() if supported */
/* .yeemenu-radio-label:has(input[type="radio"]:checked),
.yeemenu-radio-label.active {
    border-color: var(--yeemenu-main-color);
     background: var(--yeemenu-main-color-alpha);
} */
.yeemenu-addon-sizes-frontend {
    border-top: 1px dashed #cbd5e1;
    padding-top: 5px;
}

.yeemenu-addon-sizes-frontend {
    display: none;
    margin-left: 20px;
    margin-top: 10px;
}

.yeemenu-addon-sizes-list-frontend .yeemenu-size-label-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 0;
    font-size: 13px;
    cursor: pointer;
}

.yeemenu-container dd {
    margin-left: 15px;
}

.yeemenu-size-box {
    color: var(--yeemenu-main-color);
    font-weight: 600;
}

.yeemenu-addon-sizes-list-frontend .yeemenu-radio-custom,
.yeemenu-addon-sizes-list-frontend .yeemenu-checkbox-custom {
    width: 15px;
    height: 15px;
}

.yeemenu-addon-sizes-list-frontend .yeemenu-radio-text {
    font-size: 13px;
}

/* Hide native radio input for sizes */
.yeemenu-size-label-inner input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Rely on shared .yeemenu-radio-label selector for icons */
.yeemenu-radio-custom {
    border-radius: 50%;
}

.yeemenu-radio-label input[type="radio"]:checked~.yeemenu-radio-content .yeemenu-radio-custom {
    border-color: var(--yeemenu-main-color);
}

.yeemenu-radio-label input[type="radio"]:checked~.yeemenu-radio-content .yeemenu-radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--yeemenu-main-color);
    border-radius: 50%;
}

.yeemenu-addon-sizes-list-frontend-inner {
    display: flex;
    flex-wrap: wrap;
}

.yeemenu-addon-group-title {
    padding-bottom: 15px;
}

/* --- 3. Style riêng cho Checkbox (Hình vuông + Dấu tích) --- */
.yeemenu-checkbox-custom {
    border-radius: 4px;
    /* Hình vuông bo góc */
}

/* Khi checkbox được chọn: Đổi màu nền xanh luôn cho chuyên nghiệp */
.yeemenu-checkbox-label input[type="checkbox"]:checked~.yeemenu-radio-content .yeemenu-checkbox-custom {
    border-color: var(--yeemenu-main-color);
    background: var(--yeemenu-main-color);
}

/* Vẽ dấu tích màu trắng */
.yeemenu-checkbox-label input[type="checkbox"]:checked~.yeemenu-radio-content .yeemenu-checkbox-custom::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* --- 4. Hiệu ứng chung khi Checked (Text đậm & Background Label) --- */
.yeemenu-radio-label input:checked~.yeemenu-radio-content .yeemenu-radio-text,
.yeemenu-checkbox-label input:checked~.yeemenu-radio-content .yeemenu-radio-text {
    font-weight: 700;
}

.yeemenu-radio-text {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
}

.yeemenu-radio-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--yeemenu-main-color);
}