/**
 * Text Styling Settings Styles
 *
 * Styles for the text styling settings page
 *
 * @package    Instant_Popup_Builder
 * @subpackage Instant_Popup_Builder/admin/css
 */

.design_text_styling {
    padding: 10px 0;
}

.ipb_text_styling_wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.background_field {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
}

.background_field .label {
    min-width: 120px;
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 5px;
}

.input_fields_group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.input_fields_group .field_l {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 80px;
}

.input_fields_group .field_l label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.input_fields_group .field_l input {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.input_fields_group .field_l input:focus {
    outline: none;
    border-color: #1A73E8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.background_field .input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.background_field .input input[type="range"] {
    width: 150px;
}

.background_field .input input[type="color"] {
    width: 50px;
    height: 35px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
}

.info-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #6c757d;
    font-size: 13px;
}

.info-note i {
    color: #17a2b8;
    font-size: 14px;
}

.info-note strong {
    color: #495057;
}

.range_val {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    min-width: 40px;
}

.info {
    position: relative;
    display: inline-block;
}

.info img {
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.6;
}

.info img:hover {
    opacity: 1;
}

.info .detail {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: normal;
    z-index: 1000;
    margin-bottom: 5px;
    min-width: 150px;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    line-height: 1.4;
}

.info .detail::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

@media (max-width: 768px) {
    .input_fields_group {
        flex-direction: column;
        gap: 8px;
    }

    .input_fields_group .field_l {
        min-width: 100%;
    }

    .background_field {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

