/**
 * Width Input Switcher Styles
 * Styles for the width input mode selector with radio buttons and help popups
 */

.width-input-switcher .input-mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-direction: column;
}

.width-input-switcher .radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.4rem;
    gap: 5px;
    max-width: 180px;
}

.width-input-switcher .radio-option input[type="radio"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.width-input-switcher .radio-label {
    user-select: none;
    color: #333;
    font-weight: 400;
}

.width-input-switcher .radio-option input[type="radio"]:checked + .radio-label {
    color: #333;
    font-weight: 600;
}

.width-input-switcher .radio-option input[type="radio"] {
    accent-color: #fe0094;
}

.width-input-switcher .help-icon {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    border-radius: 3px;
    padding: 2px;

}

.width-input-switcher .help-icon .icon-help:before {
    content: '\e60c';
    border: 1px solid;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 1.6rem;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'luma-icons';
    color: #bbbbbb;
    transition: color 0.2s ease;
}

.width-input-switcher .help-icon:hover .icon-help:before {
    color: #000;
}



/* Help Popup Styles */
.help-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.help-popup-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    animation: slideIn 0.3s ease;
}

.help-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
}

.help-popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.help-popup-close {
    background: none;
    border: none;
    font-size: 42px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.help-popup-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.help-popup-body {
    padding: 20px 25px 25px;
}

.help-popup-images {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.help-popup-images .help-popup-image {
    max-width: calc(50% - 8px);
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex: 1 1 auto;
}

.help-popup-image {
    width: 100%;
    max-width: 500px;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.help-popup-description {
    color: #555;
    line-height: 1.6;
}

.help-popup-description p {
    margin: 0;
    font-size: 1.6rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .help-popup-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }

    .help-popup-header,
    .help-popup-body {
        padding: 15px 20px;
    }

    .help-popup-header h3 {
        font-size: 16px;
    }

    .help-popup-images .help-popup-image {
        max-width: 100%;
    }
}

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
}
