/* Minimal CSS for Toggle Switch - Rest all from Elementor */
.chefmate-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.chefmate-toggle-switch {
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

.chefmate-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.chefmate-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.chefmate-toggle-switch.active .chefmate-toggle-slider {
    background-color: #e67e22;
}

.chefmate-toggle-switch.active .chefmate-toggle-slider:before {
    transform: translateX(24px);
}

.chefmate-toggle-option {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: white;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.chefmate-toggle-option.metric {
    left: 6px;
}

.chefmate-toggle-option.imperial {
    right: 6px;
}

.chefmate-toggle-switch.active .chefmate-toggle-option.metric {
    opacity: 1;
}

.chefmate-toggle-switch:not(.active) .chefmate-toggle-option.imperial {
    opacity: 1;
}

/* Buttons Style */
.chefmate-toggle-buttons {
    display: inline-flex;
    flex-wrap: wrap;
}

.chefmate-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.chefmate-toggle-btn.active {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
}

.chefmate-toggle-btn:hover {
    background: #e2e8f0;
}

.chefmate-toggle-btn.active:hover {
    background: #d35400;
}

/* Tooltip */
.chefmate-toggle-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.chefmate-toggle-wrapper:hover .chefmate-toggle-tooltip {
    display: block;
}

.chefmate-toggle-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

