/*
----------------------------------------------------------

                    Search & Replace Styles

----------------------------------------------------------
*/

.wrap.search-and-replace {
    max-width: 60rem;
}
.wrap.search-and-replace .submit-buttons {
    display: flex;
    align-items: center;
    gap: 1em;
}
.wrap.search-and-replace label.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* radios */
fieldset.search-replace-mode {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, max-content));
    gap: 1em;
    margin: 1em 0;
}
fieldset.search-replace-mode input {
    position: absolute;
    z-index: -99;
    opacity: 0;
    height: 0px;
    width: 0px;
    overflow: hidden;
}
fieldset.search-replace-mode label {
    display: flex;
    gap: 1em;
    padding: 1em 0.7em 0.6em 1.5em;
    background-color: rgb(255 255 255 / 50%);
    border: 1px solid #dadada;
    border-radius: 2px;
    transition: all .2s ease;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none;
}
@media screen and (max-width: 782px) {
    fieldset.search-replace-mode label {
        flex-direction: column;
    }
}
fieldset.search-replace-mode label strong {
    display: block;
    margin-bottom: 0.4em;
}
fieldset.search-replace-mode label small {
    opacity: 0.7;
    line-height: 1.3;
    display: block;
}
/* hover */
fieldset.search-replace-mode label:hover {
    border-color: #a5a5a5;
}
/* checked */
fieldset.search-replace-mode input:checked + label {
    background-color: #fff;
    color: #000;
    border-color: var(--wp-admin-theme-color, #007cba);
    box-shadow: inset 0.3em 0 0 0 var(--wp-admin-theme-color, #007cba);
}
fieldset.search-replace-mode input:checked + label .dashicons {
    color: var(--wp-admin-theme-color, #007cba);
}
/* checked */
fieldset.search-replace-mode input:disabled + label {
    opacity: 0.5;
    pointer-events: none;
}

/* logs */
.wrap.search-and-replace .logs {
    background-color: rgb(0,0,0,.05);
    padding: 1em;
    margin-bottom: 2em;
    list-style: disc;
    list-style-type: '👉';
}
.wrap.search-and-replace .logs .log {
    margin-bottom: .4em;
    margin-left: 1em;
    padding-left: 1em;
}
.wrap.search-and-replace .logs .log.log-head {
    font-weight: bold;
    margin-bottom: .8em;
}
.wrap.search-and-replace .logs .log.log-head:not(:first-child) {
    margin-top: 1.2em;
}
.wrap.search-and-replace .logs .log.log-head,
.wrap.search-and-replace .logs .log.log-separator {
    margin-left: 0;
    padding-left: 0;
}
.wrap.search-and-replace .logs .log.log-head::marker,
.wrap.search-and-replace .logs .log.log-separator::marker {
    content: "";
}
.wrap.search-and-replace .logs .log.log-success::marker {
    content: "✅";
}
.wrap.search-and-replace .logs .log.log-error::marker {
    content: "❗";
}
.wrap.search-and-replace .logs .log.log-separator:last-child {
    display: none;
}
.wrap.search-and-replace .logs hr {
    border-top: none;
    border-bottom-color: rgb(0,0,0,.1);
    margin: 1em 0;
}
.wrap.search-and-replace .logs code {
    font-size: .9em;
    line-height: 1;
}