[hidden] {
    display: none !important;
}

.mobile {
    display: none;
}

body {
    box-sizing: border-box;
}

/* WordPress specific styles - remove iframe specific styles */
.wp-rosreestr-container.container {
    position: relative;
}

.wp-rosreestr-container {
    position: relative;
    width: 100%;
    padding: 1em 0;
    box-sizing: border-box;
}

.cadastral {
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin: 0 auto;
    width: 100%;
    max-width: 54em;
    padding-bottom: 6em;
}

.wp-rosreestr-container div.admin-cadastral {
    padding-bottom: 1em;
}

.form, .cadastral__head, .cadastral__label {
    text-align: center;
}

.popup-success__search,
.cadastral button {
    border: 1px solid var(--button-color);
    background: var(--button-color);
    color: #ffff;
    transition: all .25s ease, margin 0s;
    cursor: pointer;
}

.popup-success__search:focus,
.cadastral button:focus {
    box-shadow: 0 0 2px 1px var(--button-color);
    outline: none;
}

.popup-success__search:active,
.popup-success__search:hover,
.cadastral button:active,
.cadastral button:hover {
    box-shadow: 0 0 4px 1px var(--button-color);
}

.popup-success__search:active,
.cadastral button:active {
    transform: scale(0.98);
}

.cadastral__head {
    font-size: 1.6em;
    margin-bottom: .5em;
    margin-top: 0;
}

.cadastral__label {
    display: block;
    margin-bottom: 1em;
}

.form-group {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1em;
}

.main-form input {
    display: block;
    position: relative;
    width: 75%;
    box-sizing: border-box;
    z-index: 5;
    font-size: 1em;
    padding: 1em;
    border: 1px solid black;
    border-radius: 1em 0 0 1em;
    transition: .25s ease;
    border-right: none;
}

.main-form input:focus {
    box-shadow: 0 0 2px 1px #426FC5;
    border-color: #426FC5;
    border-radius: 1em 0 0 1em;
    outline: none;
}

.suggestions {
    display: none;
    position: absolute;
    z-index: 90;
    top: 100%;
    left: 0;
    background: #fff;
    box-sizing: border-box;
    margin: 0;
    padding: 0.5em 0;
    list-style-type: none;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-top: none;
    text-align: left;
    border-radius: 0 0 1em 1em;
    font-size: 0.9em;
    width: 100%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.2);
}

.suggestions_visible {
    display: block;
}

.suggestions li {
    padding: 0.5em 1em;
    border: 1px solid transparent;
    border-left: none;
    border-right: none;
    box-sizing: border-box;
    cursor: pointer;
}

.suggestions li:focus {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2);
    outline: none;
    background: #f7fafd;
}

.suggestions li:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: #e8fbff;
}

.suggestions_visible ~ *,
.suggestions_visible ~ *:focus {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.form-btn {
    display: block;
    position: relative;
    width: 25%;
    font-size: 1em;
    padding: 1em .5em;
    border-width: 2px;
    min-width: 11em;
    border-radius: 0 1em 1em 0;
    color: #000;
    margin: 0;
    z-index: 10;
    box-sizing: border-box;
    transition: .25s ease;
}

.form-btn_submit {
    --button-color: #426FC5;
}

.form-btn_delete {
    --button-color: #d50000;
}

button.main-form__add-input {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.3;
    background: #eee;
    color: #000;
    border: 0.05em dashed #000;
    font-size: 2.5em;
    width: 100%;
    height: 1.3em;
    border-radius: .3em;
}

button.main-form__add-input:hover {
    opacity: 1;
}

.info:not(.info_visible) {
    display: none;
}

.table {
    margin: 1em auto 0;
    font-size: 0.865em;
}

.table table {
    max-width: 100%;
    padding: 1em 0;
    margin-bottom: 0.5em;
}

table {
    border-spacing: 0;
}

td, th {
    border: 1px solid black;
    padding: 0.3em;
}

.table td {
    width: 50%;
    text-align: left;
    max-width: calc(50vw - 20px);
}

.info-block h3 {
    text-align: center;
}

.info-block {
    max-width: 100vw;
    overflow-x: scroll;
}

.info-block::-webkit-scrollbar {
    display: none;
}

.info-block table {
    width: 100%;
}

.info-block th:not(.text-center) {
    text-align: left;
}

.info-block th {
    font-weight: normal;
    font-style: italic;
}

.text-center {
    text-align: center;
}

.download-params {
    margin-top: 2em;
}

.download-params .form-group {
    justify-content: center;
    max-width: 29.5em;
    margin: 0 auto;
}

.download-params input {
    display: none;
}

.download-params label {
    display: block;
    width: 100%;
}

.download-param,
.buttons button {
    font-size: 1.1em;
    padding: .5em;
    transition: .25s ease;
    text-align: center;
}

.download-param {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: 1px solid #AD1457;
    box-sizing: border-box;
    cursor: pointer;
    min-height: 100%;
}

.download-param:hover {
    box-shadow: 0 0 3px 1px #AD1457;
}

.download-params input:checked + .download-param {
    background: #AD1457;
    color: #fff;
}

.download-params label:first-child .download-param {
    border-top-left-radius: .6em;
    border-bottom-left-radius: .6em;
}
.download-params label:last-child .download-param {
    border-top-right-radius: .6em;
    border-bottom-right-radius: .6em;
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1em;
}

.buttons button {
    width: 100%;
    max-width: 27em;
    margin-top: 1em;
    border-radius: .6em;
}

.buttons__download {
    --button-color: #426FC5;
}

.buttons__download[data-type="word"] {
    --button-color: #AD1457;
}

.buttons__download[data-type="egrn"] {
    --button-color: #00897b;
}

.buttons__request {
    --button-color: #ff033e;
}

.copy__iframe {
    display: block;
    position: relative;
    border: none;
    outline: none;
    border-radius: 0;
    width: 100%;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all .25s ease, opacity 0s .25s;
    margin-top: 2em;
}

.copy {
    position: absolute;
    width: 100%;
    bottom: 1.5em;
    left: 0;
}

.copy__button {
    display: block;
    --button-color: #00897b;
    color: #00897b;
    opacity: 0.3;
    padding: .5em;
    border-radius: .5em;
}

.copy__button:hover {
    opacity: 1;
}

.copy_visible .copy__iframe {
    height: 1.5em;
    opacity: 1;
    margin-top: .5em;
    transition: all .25s ease, opacity 0s 0s;
}

.copy_visible .copy__button {
    opacity: 1;
}

.copy_visible .copy__button::before {
    content: 'Скопировано';
}

.copy_visible .copy__button::after {
    content: "\f00c";
    font-family: "FontAwesome";
}

.copy_visible .copy__button span {
    font-size: 0;
}

.copy__link {
    height: 0;
}

.grecaptcha-badge {
    visibility: hidden;
}

.recaptcha-txt {
    font-size: 10px;
    color: gray;
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
}

.tax-economy span {
    font-weight: bold;
}

.tax-economy__line {
    font-size: 16px;
}

.tax-economy__tax {
    color: #990000;
}

.tax-economy__economy {
    color: #3c78d8;
    font-size: 1.25em;
    margin-bottom: 0;
}


@media (max-width: 600px) {
    .mobile {
        display: unset;
    }

    .cadastral {
        padding-bottom: 8em;
    }

    .desktop {
        display: none;
    }

    .main-form input {
        width: 80%;
    }

    .form-btn {
        width: 20%;
        min-width: 2.5em;
    }

    .table td {
        font-size: 0.9em;
    }

    .buttons button {
        font-size: 1em;
    }

    .copy {
        bottom: 2.5em;
    }
}