.ttp-section {
    --ttp-heading: #060318;
    --ttp-title: #262626;
    --ttp-paragraph: #3c3f40;
    --ttp-disable: #7a7b8e;
    --ttp-placeholder: #9a9cac;
    --ttp-placeholder-2: #aaacb7;
    --ttp-stroke: #e8e8e8;
    --ttp-light: #f4f5fb;
    --ttp-light-disabled: #f3f5f9;
    --ttp-bg-1: #f8fafc;
    --ttp-white: #ffffff;
}

.ttp-section {
    padding: 30px 16px;
}

.ttp-card-slot {
    width: 1200px;
    max-width: 100%;
    height: 500px;
    margin: 0 auto;
}

.ttp-card {
    width: 100%;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--ttp-white);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    box-shadow: 0 8px 20px 0 rgba(64, 110, 243, 0.1);
}

.ttp-card.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9990;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: var(--ttp-bg-1);
    box-shadow: none;
}

html.ttp-scroll-lock {
    overflow-y: hidden;
    scrollbar-gutter: stable;
}

html.ttp-fs-on .dropdown,
html.ttp-fs-on .typeahead-popover,
html.ttp-fs-on .link-editor,
html.ttp-fs-on .floating-text-format-popup {
    z-index: 9995 !important;
}

html.ttp-fs-on #overlay,
html.ttp-fs-on #premium-overlay {
    z-index: 9996 !important;
}

html.ttp-fs-on #popup-component,
html.ttp-fs-on .feedback-overlay {
    z-index: 9997 !important;
}

html.ttp-fs-on .feedback-form-container,
html.ttp-fs-on .feedback-success-container,
html.ttp-fs-on .feedback-already-submitted {
    z-index: 9998 !important;
}

#cloud_flare_captcha {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 10010;
}

.ttp-upload-area {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--ttp-white);
    border: 1px solid var(--ttp-stroke);
    border-radius: 12px;
    overflow: hidden;
}

.ttp-upload-area.dragging::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px dashed #d145bf;
    border-radius: 12px;
    background: rgba(209, 69, 191, 0.04);
    pointer-events: none;
    z-index: 3;
}

.ttp-upload-area #editor {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ttp-fullscreen-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--ttp-white);
    cursor: pointer;
}

.ttp-fullscreen-btn:hover {
    background: var(--ttp-light);
}

.ttp-fullscreen-btn .ttp-fs-exit,
.ttp-card.is-fullscreen .ttp-fullscreen-btn .ttp-fs-enter {
    display: none;
}

.ttp-card.is-fullscreen .ttp-fullscreen-btn .ttp-fs-exit {
    display: block;
}

.ttp-upload-area:has(.editor-skeleton) .ttp-fullscreen-btn {
    pointer-events: none;
}

.ttp-upload-area:has(.editor-skeleton) .ttp-fullscreen-btn img {
    display: none;
}

.ttp-upload-area:has(.editor-skeleton) .ttp-fullscreen-btn::before {
    content: "";
    display: block;
    width: 20px;
    height: 18px;
    border-radius: 4px;
    background: linear-gradient(90deg, #ededed 25%, #f5f5f5 50%, #ededed 75%);
    background-size: 200% 100%;
    animation: es-shimmer 1s linear infinite;
}
.main-content-container{
    padding: 10px;
}
@media (prefers-reduced-motion: reduce) {
    .ttp-upload-area:has(.editor-skeleton) .ttp-fullscreen-btn::before {
        animation: none;
    }
}

.ttp-upload-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: max-content;
    max-width: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.ttp-card.has-content .ttp-upload-actions {
    display: none;
}

.ttp-upload-actions .ttp-drop-text {
    display: none;
    margin: 0;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    color: var(--ttp-heading);
    text-align: center;
}

.ttp-upload-area.dragging .ttp-drop-text {
    display: block;
}

.ttp-upload-area.dragging .ttp-upload-buttons {
    display: none;
}

.ttp-upload-buttons {
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.ttp-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    margin: 0;
    padding: 8px 16px;
    border: 1px solid var(--ttp-stroke);
    border-radius: 999px;
    background: var(--ttp-white);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: var(--ttp-paragraph);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.ttp-pill-btn span {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: inherit;
}

.ttp-pill-btn:hover:not(:disabled) {
    background-color: var(--ttp-light);
}

.ttp-pill-btn img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ttp-pill-btn .ttp-btn-loader,
.ttp-pill-btn.is-loading .ttp-btn-icon {
    display: none;
}

.ttp-pill-btn.is-loading .ttp-btn-loader {
    display: block;
}

.ttp-pill-btn.is-loading {
    pointer-events: none;
}

.ttp-light-btn {
    background: var(--ttp-light);
    color: var(--ttp-heading);
}

.ttp-light-btn:hover:not(:disabled) {
    background-color: #e9ebf5;
}

.ttp-icon-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--ttp-stroke);
    border-radius: 999px;
    background: var(--ttp-light);
    cursor: pointer;
}

.ttp-icon-btn:hover:not(:disabled) {
    background-color: #e9ebf5;
}

.ttp-icon-btn img {
    width: 20px;
    height: 20px;
}

.ttp-download-btn {
    display: inline-grid;
    border-color: var(--ttp-heading);
    background: var(--ttp-heading);
    color: var(--ttp-white);
}

.ttp-download-btn > span {
    grid-area: 1 / 1;
    text-align: center;
}

.ttp-download-btn .ttp-label-busy,
.ttp-download-btn.is-busy .ttp-label {
    visibility: hidden;
}

.ttp-download-btn.is-busy .ttp-label-busy {
    visibility: visible;
}

.ttp-download-btn:hover:not(:disabled) {
    background-color: #1d1a33;
}

.ttp-download-btn:disabled {
    cursor: not-allowed;
}

.ttp-download-btn:disabled:not(.is-busy) {
    opacity: 0.4;
}

.ttp-clear-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.ttp-actions {
    position: relative;
    flex: 0 0 52px;
    height: 52px;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ttp-actions .ttp-word-count {
    flex: 0 0 auto;
    margin: 0;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: var(--ttp-disable);
    white-space: nowrap;
}

.ttp-actions .ttp-word-count span {
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: inherit;
}

.ttp-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ttp-card:not(.has-content) .ttp-clear-btn {
    display: none;
}

.ttp-preview-btn .ttp-preview-icon {
    display: none;
}

.ttp-preview-btn:disabled {
    background: var(--ttp-light-disabled);
    color: var(--ttp-placeholder-2);
    cursor: not-allowed;
}

.ttp-feedback {
    width: 1200px;
    max-width: 100%;
    height: 32px;
    margin: 16px auto 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ttp-feedback .feedback-container {
    gap: 8px;
}

.ttp-feedback .feedback-container > p {
    margin: 0;
    white-space: nowrap;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 700 !important;
    color: var(--ttp-disable) !important;
}

.ttp-feedback .feedback-rating-container > label {
    margin: 0;
    background: transparent;
}

.ttp-card.is-busy #editor .toolbar {
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
}

.ttp-card.is-busy #editor .editor-container {
    cursor: not-allowed;
}

.ttp-fullscreen-btn:disabled {
    opacity: 0.12;
    cursor: not-allowed;
    pointer-events: none;
}

@media screen and (max-width: 767px) {
    .ttp-card {
        padding: 10px;
    }

    .ttp-fullscreen-btn {
        display: none;
    }

    .ttp-preview-btn {
        width: 40px;
        padding: 0;
        background: var(--ttp-light);
    }

    .ttp-preview-btn .ttp-preview-text {
        display: none;
    }

    .ttp-preview-btn .ttp-preview-icon {
        display: block;
    }

    .ttp-preview-btn:disabled {
        background: var(--ttp-light);
    }

    .ttp-card:not(.has-content) .ttp-action-buttons {
        opacity: 0.4;
    }

    .ttp-card:not(.has-content) .ttp-download-btn:disabled:not(.is-busy) {
        opacity: 1;
    }
}

@media screen and (max-width: 360px) {
    .ttp-pill-btn {
        padding: 8px 12px;
    }

    .ttp-preview-btn {
        padding: 0;
    }
}

/* ============================================
~~~~~~~~~~~~~~FAQ CSS~~~~~~~~~~~~~~~
============================================ */
.freq_ans {
    color: var(--color-paragraph);
    font-family: var(--Nunito);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    margin-top: 16px;
}

.freq-questions {
    padding: 0 !important;
    cursor: default !important;
}

[id^="non_color_icon"],
.active [id^="color_icon"] {
    display: none !important;
}

.active [id^="non_color_icon"] {
    display: inline !important;
}

[id^="color_icon"] {
    display: inline !important;
}

@media (max-width: 768px) {
    .freq-question-container,
    .freq-questions {
        width: 100%;
    }
}
