.panel-manset-backdrop {
    background-color: rgba(0, 0, 0, 0.55);
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1040;
}

.panel-manset-backdrop.is-open {
    display: block;
}

body.panel-manset-modal-open {
    overflow: hidden;
}

#headline-modal-wrapper.panel-manset-editor-modal {
    background-color: #1b1c29;
    border-radius: 0.8rem;
    color: #898989;
    display: none;
    left: 50%;
    max-height: 92vh;
    max-width: 1280px;
    overflow: hidden;
    position: fixed;
    top: 4%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    z-index: 1050;
}

#headline-modal-wrapper.panel-manset-editor-modal.is-open {
    display: block;
}

#headline-modal-wrapper textarea {
    background-color: #32354d;
    border: none;
    border-radius: 0.2rem;
    color: #fff;
    outline: none;
    padding: 0.5rem;
    resize: none;
}

#headline-modal-wrapper input[type="number"],
#headline-modal-wrapper input[type="text"] {
    background-color: #282c3d;
    border: none;
    border-radius: 0.2rem;
    color: #fff;
    outline: none;
    padding: 0.3rem;
    width: 100%;
}

#headline-modal-wrapper input[type="color"] {
    appearance: none;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    height: 20px;
    padding: 0;
    width: 20px;
}

#headline-modal-wrapper input[type="color"]::-webkit-color-swatch,
#headline-modal-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    border: none;
    border-radius: 50%;
    padding: 0;
}

#headline-modal-wrapper input[type="range"] {
    background: #707486;
    height: 0.1rem;
}

#headline-modal-wrapper .headline-section,
#headline-modal-wrapper .headline-section .headline-section_control {
    height: 68vh;
}

#headline-modal-wrapper .headline-header,
#headline-modal-wrapper .headline-section {
    display: grid;
    grid-template-columns: 8fr 2fr;
}

#headline-modal-wrapper .headline-header {
    color: #fff;
    font-size: 11px;
    min-height: 8vh;
}

#headline-modal-wrapper .headline-section {
    align-items: stretch;
    background-color: #32354b;
}

.gap-section {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.headline-btn.save {
    align-items: center;
    display: flex;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    text-transform: uppercase;
    width: 5rem !important;
}

.headline-btn.save .save-btn-text.disable {
    display: none;
}

.headline-btn.save .loader {
    animation: panel-manset-rotation 1s linear infinite;
    border: 1px solid #fff;
    border-radius: 50%;
    box-sizing: border-box;
    display: inline-block;
    height: 16px;
    position: relative;
    width: 16px;
}

.headline-btn.save .loader.disable {
    display: none;
}

@keyframes panel-manset-rotation {
    to { transform: rotate(360deg); }
}

.headline-header-left {
    border-right: 1px solid #32354b;
    width: 100%;
}

.headline-header-left,
.headline-header-right {
    align-items: center;
    display: flex;
    padding: 0 1rem;
}

.headline-header-right {
    gap: 0.5rem;
    justify-content: flex-end;
}

.header-left-control {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: start;
    padding: 0 1rem;
}

.header-right-control {
    display: flex;
    flex-grow: 1;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: end;
}

.headline-btn {
    border: none;
    border-radius: 0.25rem;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05rem;
    padding: 0.5rem;
}

.headline-btn.reverse,
.reverse-img-btn {
    background-color: #27819d;
}

.headline-btn.tag {
    background-color: #1f4356;
}

.headline-btn.save {
    background-color: #207051;
}

.headline-btn.cls {
    background-color: #b5494d;
}

.c-img-direction,
.c-overlay-bg,
.c-text-direction {
    align-items: center;
    display: flex;
    gap: 0.3rem;
}

.c-overlay-bg input[type="color"] {
    border: 1px solid hsla(0, 0%, 60%, 0.49);
    height: 25px;
    width: 25px;
}

.canvas {
    aspect-ratio: 982 / 330;
    height: 330px;
    margin: 0 auto;
    position: relative;
    width: 982px;
    max-width: 100%;
}

.canvas.canvas-ust {
    aspect-ratio: 982 / 280;
    height: 280px;
    width: 900px;
}

.canvas.canvas-ust .img-wrapper img {
    height: 280px;
}

.canvas .img-wrapper {
    position: relative;
    text-align: right;
}

.canvas .img-wrapper.reverse {
    text-align: left;
}

.canvas .img-wrapper img {
    height: 330px;
    max-width: 100%;
    object-fit: cover;
    width: auto;
}

.canvas .img-wrapper img.reverse {
    transform: scaleX(-1);
}

.overlay-bg {
    background: linear-gradient(90deg, #0a1420, #0a1420 0%, #0e1a28 75%, transparent);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 55%;
    z-index: 5;
}

.overlay-bg.reverse {
    left: auto;
    right: 0;
}

.canvas .safezone-border {
    box-sizing: border-box;
    height: 100%;
    left: 0;
    padding: 1rem;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.canvas .safezone-border .text-wrapper {
    border: 1px solid hsla(0, 0%, 60%, 0.49);
    border-radius: 0.2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    line-height: 1.15;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.canvas .safezone-border .text-wrapper.reverse {
    align-items: end;
    text-align: right;
}

.canvas .text {
    border: 1px dashed rgba(255, 255, 255, 0.25);
    color: #fff;
    display: inline-block;
    padding: 0.2rem 0;
    white-space: normal;
    word-wrap: break-word;
}

.tag-box-headline {
    display: none;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 15;
}

.tag-box-headline.is-visible {
    display: flex;
}

.tag-box-headline span {
    border-radius: 0.2rem;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 0.45rem 0.75rem;
}

.tag-box-headline.tl { align-items: start; justify-content: start; }
.tag-box-headline.tc { align-items: start; justify-content: center; }
.tag-box-headline.tr { align-items: start; justify-content: end; }
.tag-box-headline.bl { align-items: end; justify-content: start; }
.tag-box-headline.bc { align-items: end; justify-content: center; }
.tag-box-headline.br { align-items: end; justify-content: end; }

#headline-modal-wrapper .headline-section .headline-section_control {
    background-color: #1b1c29;
    display: flex;
    flex-direction: column;
    font-size: 0.6rem;
    gap: 0.3rem;
    letter-spacing: 0.1em;
    overflow: auto;
    text-transform: uppercase;
}

.control-box {
    display: none;
    padding: 1rem;
}

.control-box.active {
    display: block;
}

.headline-main-title {
    background-color: #262a3c;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
}

.headline-main-title.active {
    background-color: #ff8254;
    color: #fff;
    font-weight: 700;
}

.headline-section_control p {
    background-color: #32354b;
    margin: 0.3rem 0;
}

.headline-section_control label {
    display: block;
    margin: 0;
}

.headline-section_control .title-section textarea {
    height: 50px;
    width: 100%;
}

.headline-section_control .color-section,
.text-bg-section {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr;
}

.padding-section p,
.size-section p,
.text-bg p,
.text-width-section p {
    align-items: center;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 5fr 2fr;
    padding: 0.5rem;
}

.color p,
.shadow p,
.text-bg p {
    align-items: center;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
}

.color p span,
.shadow p span,
.text-bg p span {
    padding: 0 0.5rem;
}

.text-bg-is-opacity p input {
    margin: 0.75rem 0.5rem !important;
}

.tag-options-box {
    align-items: stretch;
    background: #1f4356;
    display: none;
    gap: 0.5rem;
    padding: 0.5rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 20;
}

.tag-options-box.show {
    display: flex;
}

.tag-options-box select#select-tag {
    margin-bottom: 0.5rem;
    outline: none;
    padding: 0.5rem;
    width: 150px;
}

.tag-options-box input.custom-tag {
    background-color: #fff !important;
    color: #1b1c29 !important;
    padding: 0.5rem !important;
    width: 150px !important;
}

.tag-options-box .tag-detail,
.tag-settings {
    display: flex;
    flex-direction: column;
}

.tag-settings {
    gap: 0.5rem;
}

.corner {
    align-items: center;
    display: grid;
    gap: 0.2rem;
    grid-template-columns: 1fr 1fr 1fr;
}

.corner > div {
    background-color: #123141;
    border-radius: 0.2rem;
    cursor: pointer;
    height: 1rem;
    width: 1rem;
}

.corner > div.active {
    background-color: #e00909 !important;
}

.tag-color-palette {
    align-items: center;
    display: flex;
    flex-grow: 1;
    justify-content: space-around;
}

.tag-color-palette input {
    border: 1px solid rgba(81, 116, 135, 0.7);
    height: 1.5rem !important;
    padding: 0 !important;
    width: 1.5rem !important;
}

@media (max-width: 991.98px) {
    #headline-modal-wrapper .headline-header,
    #headline-modal-wrapper .headline-section {
        grid-template-columns: 1fr;
    }

    #headline-modal-wrapper .headline-section,
    #headline-modal-wrapper .headline-section .headline-section_control {
        height: auto;
        max-height: 55vh;
    }

    .canvas {
        height: auto;
        width: 100%;
    }

    .canvas .img-wrapper img {
        height: auto;
        max-height: 220px;
        width: 100%;
    }
}
