/* Gravity Forms settings page enhancements for the attachment download add-on. */
#wot_attachment_file_setting .gform-settings-input__container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#wot_attachment_file_setting .wot_attachment_name {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    max-width: min(100%, 360px);
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#wot_attachment_file_setting .wot-remove-attachment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d63638;
    border-radius: 3px;
    background: #fff;
    color: #b32d2e;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}

#wot_attachment_file_setting .wot-remove-attachment:hover {
    background: #fcf0f1;
    border-color: #8a2424;
    color: #8a2424;
}

#wot_attachment_file_setting .wot-remove-attachment:focus-visible,
#wot_attachment_option_setting input:focus-visible+label {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

#wot_attachment_option_setting .gform-settings-input__container {
    display: grid;
    gap: 8px;
}

#wot_attachment_option_setting .wot-attachment-option {
    display: flex;
    align-items: center;
    margin: 0;
}

#wot_attachment_option_setting .wot-attachment-option label {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

#wot_attachment_option_setting .wot-attachment-option input {
    flex: 0 0 auto;
    margin: 0 8px 0 0;
}

#wot_attachment_option_setting .gform-settings-choice-label {
    font-weight: 400;
}

@media (max-width: 480px) {
    #wot_attachment_file_setting .gform-settings-input__container {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    #wot_attachment_file_setting .wot_attachment_name {
        max-width: 100%;
    }
}