// Need to replicate wp-core-ui styles in Elementor.
.elementor-editor-active {
    .wprm-admin-modal {
        color: #3c434a;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
        line-height: 1.4em;

        p {
            font-size: 13px;
            line-height: 1.5;
            margin: 1em 0;
        }
        h2, h3 {
            color: #1d2327;
            font-size: 1.3em;
            margin: 1em 0;
        }
        a {
            color: #2271b1;
            transition-property: border, background, color;
            transition-duration: .05s;
            transition-timing-function: ease-in-out;
        }

        // Inputs.
        textarea, input {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
            font-size: 14px;
        }
        input[type="text"], input[type="password"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"], select, textarea {
            box-shadow: 0 0 0 transparent;
            background-color: #fff;
            color: #2c3338;
        }
        input[type="text"]:focus, input[type="password"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="email"]:focus, input[type="month"]:focus, input[type="number"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="time"]:focus, input[type="url"]:focus, input[type="week"]:focus, input[type="checkbox"]:focus, input[type="radio"]:focus, select:focus, textarea:focus {
            border-color: #2271b1;
            box-shadow: 0 0 0 1px #2271b1;
            outline: 2px solid transparent;
        }
        input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"] {
            line-height: 2;
            min-height: 30px;
        }
        input[type="checkbox"], input[type="radio"] {
            border: 1px solid #8c8f94;
            border-radius: 4px;
            background: #fff;
            color: #50575e;
            clear: none;
            cursor: pointer;
            display: inline-block;
            line-height: 0;
            height: 1rem;
            margin: -0.25rem 0.25rem 0 0;
            outline: 0;
            padding: 0 !important;
            text-align: center;
            vertical-align: middle;
            width: 1rem;
            min-width: 1rem;
            -webkit-appearance: none;
            transition: .05s border-color ease-in-out;
        }
        input[type="radio"]:checked::before {
            content: "";
            border-radius: 50%;
            width: 0.5rem;
            height: 0.5rem;
            margin: 0.1875rem;
            background-color: #3582c4;
            line-height: 1.14285714;
        }
        input[type="checkbox"]:checked::before, input[type="radio"]:checked::before {
            float: left;
            display: inline-block;
            vertical-align: middle;
            width: 1rem;
            speak: never;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        input[type="checkbox"]:checked::before {
            content: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%233582c4%27%2F%3E%3C%2Fsvg%3E);
            margin: -0.1875rem 0 0 -0.25rem;
            height: 1.3125rem;
            width: 1.3125rem;
        }
        input[type="radio"] {
            border-radius: 50%;
            margin-right: 0.25rem;
            line-height: 0.71428571;
        }

        // Override again.
        .wprm-admin-modal-field-radio-option input:checked:before {
            margin: 3px;
            width: 8px;
            height: 8px;
        }
        input[type="checkbox"].wprm-admin-modal-field-checkbox {
            margin-top: 10px;
        }

        // Buttons.
        .button, .button-primary, .button-secondary {
            display: inline-block;
            text-decoration: none;
            font-size: 13px;
            line-height: 2.15384615;
            min-height: 30px;
            padding: 0 10px;
            cursor: pointer;
            border-width: 1px;
            border-style: solid;
            -webkit-appearance: none;
            border-radius: 3px;
            white-space: nowrap;
            box-sizing: border-box;
        }
        .button, .button-secondary {
            color: #2271b1;
            border-color: #2271b1;
            background: #f6f7f7;
            vertical-align: top;
        }
        .button-primary {
            background: #2271b1;
            border-color: #2271b1;
            color: #fff;
            text-decoration: none;
            text-shadow: none;
        }
        .button:active, .button-secondary:active {
            background: #f6f7f7;
            border-color: #8c8f94;
            box-shadow: none;
        }
        .button.focus, .button:focus, .button-secondary:focus {
            background: #f6f7f7;
            border-color: #3582c4;
            color: #0a4b78;
            box-shadow: 0 0 0 1px #3582c4;
            outline: 2px solid transparent;
            outline-offset: 0;
        }
        .button.hover, .button:hover, .button-secondary:hover {
            background: #f0f0f1;
            border-color: #0a4b78;
            color: #0a4b78;
        }
        .button-primary.hover, .button-primary:hover, .button-primary.focus, .button-primary:focus {
            background: #135e96;
            border-color: #135e96;
            color: #fff;
        }
        .button-primary.focus, .button-primary:focus {
            box-shadow: 0 0 0 1px #fff, 0 0 0 3px #2271b1;
        }
        .button-primary.active, .button-primary.active:hover, .button-primary.active:focus, .button-primary:active {
            background: #135e96;
            border-color: #135e96;
            box-shadow: none;
            color: #fff;
        }
    }   
}