:root {
    --xmwcc-hide-pink: #f04494;
    --xmwcc-hide-pink-soft: rgba(240, 68, 148, .1);
    --xmwcc-hide-border: rgba(240, 68, 148, .72);
    --xmwcc-hide-text: #4e5358;
    --xmwcc-hide-bg: #fff;
    --xmwcc-hide-radius: 10px;
}

.hidden-box.xmwcc-hidden-box,
.entry-content .hidden-box,
.article-content .hidden-box,
.theme-box .hidden-box {
    position: relative;
    margin: 22px 0;
    padding: 28px 30px 26px;
    border: 1px dashed var(--xmwcc-hide-border);
    border-radius: var(--xmwcc-hide-radius);
    background: var(--main-bg-color, var(--xmwcc-hide-bg));
    color: var(--main-color, var(--xmwcc-hide-text));
    box-sizing: border-box;
    clear: both;
}

.hidden-box.xmwcc-hidden-box.show,
.entry-content .hidden-box.show,
.article-content .hidden-box.show,
.theme-box .hidden-box.show {
    min-height: 80px;
}

.hidden-box.xmwcc-hidden-box > .hidden-text,
.entry-content .hidden-box > .hidden-text,
.article-content .hidden-box > .hidden-text,
.theme-box .hidden-box > .hidden-text {
    position: absolute;
    z-index: 2;
    top: -1px;
    left: -1px;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 26px);
    min-height: 31px;
    padding: 5px 14px;
    border: 1px dashed var(--xmwcc-hide-border);
    border-top-left-radius: var(--xmwcc-hide-radius);
    border-bottom-right-radius: 8px;
    background: var(--main-bg-color, #fff);
    color: var(--xmwcc-hide-pink);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    text-decoration: none;
    box-shadow: none;
}

.hidden-box.xmwcc-hidden-box > a.hidden-text,
.entry-content .hidden-box > a.hidden-text,
.article-content .hidden-box > a.hidden-text,
.theme-box .hidden-box > a.hidden-text {
    right: auto;
    cursor: pointer;
}

.hidden-box.xmwcc-hidden-box > a.hidden-text:hover,
.entry-content .hidden-box > a.hidden-text:hover,
.article-content .hidden-box > a.hidden-text:hover,
.theme-box .hidden-box > a.hidden-text:hover {
    background: var(--xmwcc-hide-pink-soft);
    color: var(--xmwcc-hide-pink);
}

.hidden-box.xmwcc-hidden-box .hidden-content,
.entry-content .hidden-box .hidden-content,
.article-content .hidden-box .hidden-content,
.theme-box .hidden-box .hidden-content {
    width: 100%;
}

.hidden-box.xmwcc-hidden-box .hidden-content > :first-child {
    margin-top: 0;
}

.hidden-box.xmwcc-hidden-box .hidden-content > :last-child {
    margin-bottom: 0;
}

.xmwcc-hidden-password {
    display: flex;
    gap: 14px;
    align-items: center;
}

.xmwcc-hidden-password .hidden-pass-img {
    flex: 0 0 96px;
}

.xmwcc-hidden-password .hidden-pass-img img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
}

.xmwcc-hidden-password-body {
    flex: 1;
    min-width: 0;
}

.xmwcc-hidden-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.xmwcc-hidden-form .form-control {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 6px 12px;
    border: 1px solid var(--main-border-color, #e8e8e8);
    border-radius: 6px;
    background: var(--main-bg-color, #fff);
    color: var(--main-color, #333);
}

.xmwcc-hidden-form .but {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 6px 18px;
    border-radius: 6px;
}

.dark-theme .hidden-box.xmwcc-hidden-box,
.dark-theme .entry-content .hidden-box,
.dark-theme .article-content .hidden-box,
.dark-theme .theme-box .hidden-box {
    background: var(--main-bg-color, #323335);
}

.dark-theme .hidden-box.xmwcc-hidden-box > .hidden-text,
.dark-theme .entry-content .hidden-box > .hidden-text,
.dark-theme .article-content .hidden-box > .hidden-text,
.dark-theme .theme-box .hidden-box > .hidden-text {
    background: var(--main-bg-color, #323335);
}

@media (max-width: 767px) {
    .hidden-box.xmwcc-hidden-box,
    .entry-content .hidden-box,
    .article-content .hidden-box,
    .theme-box .hidden-box {
        margin: 18px 0;
        padding: 24px 14px 18px;
        border-radius: 9px;
    }

    .hidden-box.xmwcc-hidden-box > .hidden-text,
    .entry-content .hidden-box > .hidden-text,
    .article-content .hidden-box > .hidden-text,
    .theme-box .hidden-box > .hidden-text {
        max-width: calc(100% - 16px);
        padding: 5px 10px;
        font-size: 13px;
    }

    .xmwcc-hidden-password {
        display: block;
    }

    .xmwcc-hidden-password .hidden-pass-img {
        margin-bottom: 12px;
    }

    .xmwcc-hidden-form {
        display: block;
    }

    .xmwcc-hidden-form .but {
        width: 100%;
        margin-top: 10px;
    }
}

