.demo-wrap {
    margin: 0 1px;
}

/*
 * V2 unified font-size. Базовый шаг 13px по body/table — лёгкий нудж
 * вниз от legacy 14px (~7%) для более плотной информации на cards.
 * <small> принудительно наследует размер родителя, чтобы шаблоны вроде
 * правил и соглашения (где вёрстка обёрнута в <small>) рендерились
 * тем же шрифтом что и остальной сайт. Единый размер 13px везде.
 */
body,
table {
    font-size: 13px;
}

small {
    font-size: inherit;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

/* Override legacy style.css rules that force underlines in item/list meta rows */
.div_with_back table tr td small,
.div_without_back table tr td small,
.div_with_back table tr td small small,
.div_without_back table tr td small small,
.div_with_back table tr td small a,
.div_without_back table tr td small a {
    text-decoration: none !important;
}

/* Keep links clean in V2 without globally overriding all elements. */
.main a,
.main a:link,
.main a:visited,
.main a:hover,
.main a:active {
    text-decoration: none;
}

/* Legacy-like rendering for link-buttons in both patterns:
   1) <a class="input_submit">...</a>
   2) <a><div class="input_submit">...</div></a> */
.main a.input_submit,
.main a.buy_submit,
.main a .input_submit,
.main a .buy_submit,
.demo-wrap a.input_submit,
.demo-wrap a.buy_submit,
.demo-wrap a .input_submit,
.demo-wrap a .buy_submit {
    display: block;
    text-align: center;
    color: #2C1F12 !important;
    line-height: 1.2;
}

/* Normalize real form controls that use legacy .input_submit skin. */
.main button.input_submit,
.main input.input_submit,
.demo-wrap button.input_submit,
.demo-wrap input.input_submit {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    color: #2C1F12;
    line-height: 1.2;
}

.main button.input_submit::-moz-focus-inner,
.demo-wrap button.input_submit::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.demo-panel {
    background-color: #19120d;
    border-style: solid;
    border-width: 12px 0 12px;
    border-image: url(/legacy/images/new_dis/quest.png) 13 0 13 repeat round;
}

.input_submit_big {
    border: 2px solid #000;
    border-radius: 8px;
    margin: 2px;
    padding: 4px 2px;
    text-align: center;
    background: #161616;
    min-height: 56px;
}

.save_submit {
    margin: 2px;
    border: 1px solid #336600;
    border-radius: 2px;
    background: #4b7b17;
    color: #ccff66;
    text-align: center;
    padding: 6px 8px;
    font-size: 14px;
    line-height: 1.2;
}

.head-money img {
    width: 8px;
    margin-top: -2px;
    margin-right: 1px;
}

.demo-mini {
    color: #8a8a8a;
    font-size: 12px;
}

.demo-footer {
    text-align: center;
    color: gray;
    margin: 2px 0 8px;
    line-height: 1.35;
}

.demo-footer a {
    color: gray;
    text-decoration: none;
}

.profile-more-wrap {
    display: none;
    height: auto;
    overflow: hidden;
}

.profile-more-wrap > .div_with_back,
.profile-more-wrap > .div_without_back {
    visibility: hidden;
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
}

.profile-more-wrap.is-open {
    display: block;
}

.profile-more-wrap.is-open > .div_with_back,
.profile-more-wrap.is-open > .div_without_back {
    visibility: visible;
}
