.tool-box {
    position: relative;
}

.buy-premium-rephrase {
    position: relative;
}

.rephrase__suggestions_container {
    height: 150px;
    overflow-y: auto;
}

.suggestion_paragraphs.active,
.suggestion_paragraphs:hover {
    text-decoration: underline !important;
    background-color: #f3f7fb !important;
    cursor: pointer !important;
}

#result__wrapper {
    position: relative;
}

mark {
    color: #150d34;
    background: transparent;
}
.premium__Popup__header {
    align-items: center;
}
.premium__Popup__header p {
    margin: 0;
    color: #94929c;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    margin-right: auto;
}
#rephrase__suggestions {
    width: 0%;
    margin: auto !important;
    position: absolute;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0px -1px 23px 0px #0000003d;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    max-width: 95%;
}

#suggestion__topbar {
    display: flex;
    gap: 4px;
    justify-content: space-between;
    background: #f2f5f8;
    padding: 5px 12px;
    position: sticky !important;
    top: 0px;
    z-index: 10000;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

#suggestion__topbar button {
    border: 1px solid transparent;
    outline: none;
    background: transparent;
    transition: 0.3s ease;
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 8px;
    color: #94929c;
}

#suggestion__topbar button img {
    max-width: 16px;
}

#suggestion__topbar button.active {
    background: #3a99d9;
    color: #fff;
    /* border: 1px solid lightgray; */
}

#suggestion__topbar button.active img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%)
        hue-rotate(131deg) brightness(102%) contrast(101%);
}

#switch__orignal {
    border: 1px solid #dbe8fb !important;
    border-radius: 16px;
}

#switch__orignal:hover {
    background: #fff;
    box-shadow: 0 2px 16px 0 #0000000f;
}

#rephrase__suggestions p {
    padding: 0px !important;
}

#rephrase__suggestions div {
    position: relative;
}

#rephrase__suggestions div > span {
    position: absolute;
    right: 17px;
    top: 60%;
    transform: translateY(-40%);
    font-size: 16px;
    cursor: pointer;
}

#rephrase__suggestions div > span::before {
    content: attr(data-title);
    position: absolute;
    top: -35px;
    background-color: #000;
    padding: 3px 5px;
    color: #fff;
    border: 1px solid #000;
    font-size: 10px;
    left: -15px;
    display: none;
}

#rephrase__suggestions div > span:hover::before {
    display: block;
}

#rephrase__suggestions div > span.active::before {
    content: "Copied";
    left: -22px;
}

#rephrase__suggestions div span img {
    width: 16px;
}

#rephrase__suggestions .suggestion__para {
    padding: 8px 15px !important;
    padding-right: 42px !important;
    position: relative;
    margin-top: 0 !important;
    margin-bottom: 0px !important;
}

/* #rephrase__suggestions .suggestion__para::before {
    content: '📋';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s ease;
}
 */

#rephrase__suggestions .suggestion__para::before:hover {
    transform: scale(1.05);
}

.suggestion__para {
    border-top: 1px solid #e4e6e8;
    cursor: pointer;
    font-size: 16px !important;
    transition: 0.3s ease;
}

#rephrase__suggestions > div > span {
    display: none;
}

#rephrase__suggestions > div:hover > span {
    display: block;
}

.suggestion__para:hover {
    background: #f6f6f6;
}

.suggestion__para:hover mark {
    background: #f6f6f6;
    border-top: 1px solid #e4e6e8;
    padding: 8px;
}

#rephrase__btn {
    background: var(--color-green-links);
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 14px;
    position: absolute;
    z-index: 1;
    border-radius: 6px;
    cursor: pointer;
    padding: 6px 10px;
    border: none;
    overflow: hidden;
}

#rephrase__btn::before {
    /* content: ""; */
    display: inline-block;
    background-image: url("/web_assets/frontend/img/rephrase.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

#rephrase__btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    border-radius: 6px;
    padding: 2.2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.suggestion_paragraphs.active,
.suggestion_paragraphs:hover {
    text-decoration: underline !important;
    background-color: #f3f7fb !important;
    cursor: pointer !important;
}

.buy-premium-rephrase article {
    background: #fff;
    width: 100%;
    position: relative;
    padding: 5px;
    box-sizing: border-box;
    overflow-x: hidden;
    border: 1px solid #e3e3e3;
    height: 66px;
}

article {
    background: #fff;
    width: 100%;
    position: relative;
    padding: 5px;
    box-sizing: border-box;
    overflow-x: hidden;
    border: 1px solid #e3e3e3;
}

article .line {
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #f5f5f5 0%, #f8f8f8 101.26%);
    margin: 10px 0;
    overflow: hidden;
}

article .line-half {
    width: 50% !important;
}

article .shimmer {
    background-image: linear-gradient(
        to right,
        #f1f2f3 0%,
        #edeef1 20%,
        #e7e7e7 40%,
        #f6f7f8 100%
    );
    background-repeat: no-repeat;
    background-size: 800px 104px;
    margin-top: -5px;
    display: inline-block;
    position: relative;
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: forwards;
    height: 18px;
    width: 100%;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-name: placeholderShimmer;
    -webkit-animation-timing-function: linear;
}

.shimmer-half {
    width: 50%;
}

.suggestion__para b {
    color: #8172d5 !important;
    font-weight: 400 !important;
}

.d-none {
    display: none !important;
}

.rephrase__suggestion__premium {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: space-between;
    min-height: 200px;
    justify-content: center;
    position: absolute;
    z-index: 1;
    background-color: #ffffff33;
    position: absolute;
    z-index: 1;
    width: 100%;
    padding: 10px;
    top: 0;
    text-align: center;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
}
.rephrase__suggestion__premium p {
    margin: 0;
}
.rephrase__suggestion__premium p strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    color: #171618;
}

.rephrase__suggestion__premium small {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #363347;
}

.rephrase__suggestion__premium a {
    background: #171618;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    border: none;
    padding: 5px 16px;
    margin-top: 10px;
    cursor: pointer;
    text-decoration: none;
}

.rephrase__suggestion__premium a:hover {
    background: #000000;
    color: #ffffff;
}
