/* Revert Fancybox fixup */
body.compensate-for-scrollbar {
    margin-right: 0;
}

.block-user[data-value="1"] svg {
    color: red;
}
.avatar-img-box--blocked {
    opacity: 0.35;
}
.user-card--is_blocked .user-card-img__img {
    opacity: 0.35;
}
.testimonial_text--preview img {
    max-height: 200px;
    width: auto;
}
.account-gallery-imb-box {
    margin-bottom: 0;
}
.account-gallery-imb-box img {
    object-position: center top;
}
.profile-photo-block__container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-photo-block__avatar {
    flex-shrink: 0;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}

.profile-photo-block__avatar-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    cursor: pointer;
}

.profile-photo-block__upload-progress {
    display: flex;
    position: absolute;
    inset: 0 0 0 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    justify-content: center;
    align-items: center;
    font-weight: 400;
}
.profile-photo-block__upload-progress--moderation {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    font-size: 12px;
}
.profile-photo-block__info {
    flex-grow: 1;
}

.profile-photo-block__name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.profile-photo-block__age {
    font-size: 20px;
    color: #818181;
    font-weight: 400;
}

.profile-photo-block__id {
    font-size: 20px;
    color: #888;
    font-weight: 400;
}

.upload-photo-tile {
    position: relative;
    border-radius: 4px;
}

.upload-photo-tile__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    inset: 0;
    justify-content: center;
    cursor: pointer;
    margin: 0;
    background: #F0F8FD;
}

.upload-photo-tile__label .icon {
    margin-bottom: 1em;
}

.upload-photo-tile__subtitle, .upload-photo-tile__progress {
    color: #818181;
}

/* @start dialog style 1 */
dialog.dlg-1 {
    border: none;
    border-radius: 7px;
    font-size: 14px;
    box-sizing: border-box;
    overflow: visible;
    background: #F0F8FD;
    padding: 0;
}

dialog.dlg-1::backdrop {
    background-color: #000000AB;
}

form.dlg-1__form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

textarea.dlg-1__textarea {
    border: 1px solid #dedede;
    border-radius: 4px;
    resize: both;
    width: 100%;
    box-sizing: border-box;
    min-height: 10em;
    font-size: inherit;
    padding: 0.5em;
}

.dlg-1__btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 33px 38px;
}

.dlg-1__btn {
    flex: 1;
    line-height: 2;
    border: none;
    background: #fff;
    padding: 5px 10px;
    color: #2A67A3;
    font-weight: 500;
}

.dlg-1__btn:focus {
    outline: 1px solid #999;
}

.dlg-1__btn .icon {
    color: #17A2B7;
    margin-right: 1ex;
}

.dlg-1__close {
    width: 24px;
    height: 24px;
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0;
    border: none;
    cursor: pointer;
    background: none;
}
/* @end dialog style 1 */
/* @start dialog style 2 */
.dlg-2[open] {
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    height: 100dvh;
    overflow: visible;
    font-size: 14px;
    padding: 20px 0;
    margin: 0 auto;
    max-height: 100dvh;
}

.dlg-2::backdrop {
    background-color: rgba(0,0,0,0.75);
}

.dlg-2__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    max-height: 100%;
    gap: 20px;
}
.dlg-2__btns {
    display: flex;
    gap: 1em;
    justify-content: center;
}

.dlg-2__btn {
    flex: 1;
    line-height: 1.2;
    max-width: max-content;
    background-color: #2B6CBF;
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
}

.dlg-2__btn:focus {
    outline: 1px solid #999;
}
.dlg-2__close {
    width: 40px;
    height: 40px;
    display: block;
    position: fixed;
    top: 10px;
    right: 10px;
    background: url(https://static.behappy2day.com/i/close-grey-circle-white-cross.svg)!important;
    padding: 0;
    border: none;
    cursor: pointer;
}
.dlg-2__top-text {
    color: #fff;
    line-height: 1.2;
    text-align: center;
    padding: 0;
    font-size: 1.2em;
}
/* @end dialog style 2 */
.avatar-crop-container-wrap {
    min-height: 120px;
    flex: 1 1 auto;
    width: fit-content;
    align-self: center;
}
.avatar-crop-container {
    height: 100%;
    width: auto;
    max-width: 95dvw;
}
.avatar-crop-container cropper-canvas {
    width: 100%;
    height: 100%;
}
.popover.context-menu {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 8.8px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    overflow: hidden;
    padding: 0;
    opacity: 1;
}
.popover.context-menu .popover-body {
    padding: 0;
    color: #222222;
}
.popover.context-menu .popover-body .context-menu-items {
    display: grid;
    grid-template-columns: 100%;
    gap: 1px;
    background-color: #fff;
    overflow: hidden;
}
.popover.context-menu .popover-body .context-menu-item {
    background-color: #fff;
    padding: 8px;
    text-decoration: none;
    color: currentColor;
    position: relative;
    text-align: left;
    cursor: pointer;
}
.popover.context-menu .popover-body .context-menu-item--danger {
    color: #F88989;
}
/* Cropper */
cropper-custom-round-selection-helper {
    position: absolute;
    inset: 0 0 auto 0;
    border: 2px solid #A4A4A4;
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
}
cropper-handle[action$="resize"] {
    width: 28px;
    height: 28px;
    border: 3px solid #fff;
}

cropper-handle[action$="resize"]::after {
    display: none;
}
cropper-handle[action="ne-resize"] { border-width: 3px 3px 0 0; transform: translate(-4px, 4px);}
cropper-handle[action="se-resize"] { border-width: 0 3px 3px 0; transform: translate(-4px, -4px);}
cropper-handle[action="nw-resize"] { border-width: 3px 0 0 3px; transform: translate(4px, 4px);}
cropper-handle[action="sw-resize"] { border-width: 0 0 3px 3px; transform: translate(4px, -4px);}