@font-face {
    font-family: "thCentury";
    src: url("../fonts/thCentury.ttf");
}

@font-face {
    font-family: "Dynamo_MN_Bold";
    src: url("../fonts/Dynamo_MN_Bold.ttf");
}

@font-face {
    font-family: "EthernalBold_personal";
    src: url("../fonts/EthernalBold_personal.ttf");
}

@font-face {
    font-family: "SnellBT";
    src: url("../fonts/SnellBT.ttf");
}

.mediameta-custom-text {
    border: 1px solid #e3e3e3;
    clear: both;
    margin: 1rem 0 2rem;
    max-width: 44.5rem;
    position: relative;
}

.mediameta-custom-text__toggle {
    align-items: center;
    background: #ececec;
    border: 0;
    display: flex;
    justify-content: space-between;
    min-height: 6rem;
    padding: .6rem 1.5rem;
    text-align: left;
    text-transform: uppercase;
    width: 100%;
}

.mediameta-custom-text__arrow {
    height: 1.6rem;
    width: 1.6rem;
}

.mediameta-custom-text__content {
    background: #fff;
    padding: 2rem;
    position: relative;
    z-index: 4;
}

.mediameta-custom-text__content .fieldset {
    margin: 0;
}

.mediameta-custom-text__content .legend {
    border: 0;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 .6rem;
    padding: 0;
}

.mediameta-custom-text__fonts {
    display: flex;
    gap: .4rem;
    margin-bottom: 1rem;
}

.mediameta-custom-text__fonts input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.mediameta-custom-text__fonts label {
    align-items: center;
    border: 1px solid #c8c8c8;
    cursor: pointer;
    display: flex;
    font-size: 1.6rem;
    height: 4rem;
    justify-content: center;
    margin: 0;
    width: 4rem;
}

.mediameta-custom-text__fonts input:checked + label {
    border-color: #000;
}

.mediameta-custom-text__input-row {
    display: flex;
    gap: .4rem;
}

.mediameta-custom-text__input {
    height: 4rem;
    max-width: none;
}

.mediameta-custom-text__preview-button {
    align-items: center;
    background: #fff;
    border: 1px solid #333;
    display: flex;
    flex: 0 0 4rem;
    height: 4rem;
    justify-content: center;
    padding: 0;
}

.mediameta-custom-text__eye {
    border: 1.5px solid #222;
    border-radius: 50% 0 50% 0;
    display: block;
    height: 1rem;
    position: relative;
    transform: rotate(45deg);
    width: 1rem;
}

.mediameta-custom-text__eye::after {
    background: #222;
    border-radius: 50%;
    content: "";
    height: .35rem;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: .35rem;
}

.mediameta-custom-text__preview {
    background: #fff;
    border: 1px solid #e4e4e4;
    box-shadow: 0 1px 15px 2px rgba(0, 0, 0, .1);
    height: 20rem;
    left: 3rem;
    overflow: hidden;
    position: absolute;
    top: 16rem;
    width: 32rem;
    z-index: 99;
}

.mediameta-custom-text__preview-header {
    align-items: center;
    border-bottom: 1px solid #e4e4e4;
    display: flex;
    height: 4rem;
    justify-content: space-between;
    padding: .6rem;
}

.mediameta-custom-text__preview-header strong {
    font-size: 1.4rem;
}

.mediameta-custom-text__preview-image {
    height: 16rem;
    overflow: hidden;
    position: relative;
}

.mediameta-custom-text__preview img {
    display: block;
    height: 18rem;
    object-fit: cover;
    width: 100%;
}

.mediameta-custom-text__preview-value {
    color: transparent;
    font-size: 1.8rem;
    left: 50%;
    margin: 0;
    position: absolute !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4), 0 -1px 0 rgba(162, 145, 13, .8);
    top: 5rem;
    transform: translateX(-50%);
    white-space: nowrap;
}

.mediameta-custom-text__close {
    background: transparent;
    border: 0;
    color: #777;
    font-size: 2rem;
    line-height: 1;
    padding: 0 .4rem;
}

@media (max-width: 767px) {
    .mediameta-custom-text {
        max-width: none;
    }

    .mediameta-custom-text__input-row {
        align-items: stretch;
    }

    .mediameta-custom-text__preview {
        left: 0;
        max-width: 100%;
        top: 16rem;
    }
}
