// main: ../modal.scss

.vlp-form-section {
    border-bottom: 1px solid #ccc;
    margin: 5px 0;
}

.vlp-form-line {
    margin-bottom: 5px;

    .vlp-form-label {
        font-weight: bold;
    }

    .vlp-form-input {
        input[type="text"],
        textarea,
        select {
            width: 100%;
            max-width: 400px;
        }

        input[type="radio"] {
            margin: 0 5px 5px 0;
            width: 16px;
            height: 16px;
        }

        label {
            vertical-align: top;
        }
    }

    a {
        display: block;
        margin-top: 5px;
    }

    .vlp-form-description {
        font-style: italic;
        font-size: 12px;
        color: #666;
    }

    #vlp-link-summary {
        min-height: 60px;
        font-family: inherit;
    }
}

.vlp-url-provider-line {
    .vlp-form-label,
    .vlp-form-description {
        padding-top: 0;
    }

    .vlp-url-provider-status {
        font-size: 13px;
        color: #666;
    }

    .vlp-provider-used {
        margin-bottom: 8px;
    }

    .vlp-provider-error {
        color: #d63638;
        margin-bottom: 8px;
    }

    .vlp-provider-retry select {
        font-size: 13px;
        padding: 2px 5px;
    }
}

#vlp-preview-loader-container {
    margin-top: -20px;
}

@media only screen and (min-width: 783px) {
    .vlp-form-section {
        width: 100%;
        max-width: 700px;
        display: table;
        margin-top: 0;
    }

    .vlp-form-line {
        display: table-row;

        .vlp-form-label,
        .vlp-form-input,
        .vlp-form-description {
            display: table-cell;
            padding: 5px;
            vertical-align: top;
        }

        .vlp-form-label,
        .vlp-form-description {
            padding-top: 10px;
        }

        .vlp-form-label {
            width: 20%;
            text-align: right;
        }
        .vlp-form-input {
            width: 50%;
        }
        .vlp-form-description {
            width: 30%;
        }
    }
}

// Elementor editor overrides to avoid theme/editor style bleed.
.elementor-editor-active {
    .vlp-modal {
        color: #1d2327;

        .vlp-frame-title h1 {
            color: #1d2327;
        }

        .vlp-form-label {
            color: #1d2327;
            font-weight: 600;
        }

        .vlp-form-description {
            color: #646970;
        }

        input[type="text"],
        textarea,
        select {
            background: #fff;
            color: #1d2327;
            border: 1px solid #c3c4c7;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
        }

        .button {
            background: #f6f7f7;
            border: 1px solid #c3c4c7;
            color: #1d2327;
            box-shadow: 0 1px 0 #c3c4c7;
            border-radius: 4px;
            padding: 6px 12px;
            font-size: 13px;
            font-weight: 600;
            line-height: 1.4;
            height: auto;

            &:hover,
            &:focus {
                background: #f0f0f1;
                color: #1d2327;
            }
        }

        .button-primary {
            background: #2271b1;
            border-color: #2271b1;
            color: #fff;
            box-shadow: 0 1px 0 #135e96;
            border-radius: 4px;
            padding: 6px 12px;
            font-size: 13px;
            font-weight: 600;
            line-height: 1.4;
            height: auto;

            &:hover,
            &:focus {
                background: #135e96;
                border-color: #135e96;
                color: #fff;
            }
        }
    }

    .vlp-modal-close {
        background: transparent;
        border: 0;
        box-shadow: none;

        .vlp-modal-icon:before {
            content: "×";
            font-family: inherit;
            font-size: 24px;
            line-height: 1;
            color: #1d2327;
        }
    }
}
