.nt-preview {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

.nt-preview:hover,
.nt-preview:focus,
.nt-preview:focus-visible,
.nt-preview:hover *,
.nt-preview:focus *,
.nt-preview:focus-visible * {
    color: inherit;
    text-decoration: none !important;
}

.nt-preview__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    background: #fff;
    padding: 12px;
}

.nt-preview__tabs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.nt-preview__tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: #003064;
    white-space: nowrap;
    flex-shrink: 0;
}

.nt-preview__tab::after {
    content: "";
    display: none;
    width: 7px;
    height: 7px;
    border-top: 2px solid #003064;
    border-right: 2px solid #003064;
    transform: rotate(45deg);
}

.nt-preview__tab--active {
    border-color: #d8e4f1;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 48, 100, 0.08);
}

.nt-preview__tabs-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d8dee8;
    border-radius: 6px;
    color: #6f7c8f;
    font-size: 11px;
    font-weight: 600;
    padding: 7px 10px;
    white-space: nowrap;
}

.nt-preview__panel {
    border: 1px solid #d8e4f1;
    border-radius: 8px;
    background: transparent;
    color: #003064;
    padding: 12px;
    min-height: 110px;
}

.nt-preview__panel-title {
    margin: 0;
    color: #003064;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.nt-preview__panel-body {
    margin: 8px 0 0;
    color: #003064;
    font-size: 12px;
    line-height: 1.55;
}

.nt-preview__panel-body--placeholder {
    color: #003064;
    font-style: italic;
}

.nt-preview__image-wrap--above {
    margin-bottom: 10px;
}

.nt-preview__image-wrap--below {
    margin-top: 10px;
}

.nt-preview__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.nt-preview__empty {
    margin: 0;
    padding: 12px;
    border: 1px dashed #d8dee8;
    border-radius: 8px;
    color: #6f7c8f;
    font-style: italic;
    font-size: 12px;
    background: #fff;
}

@media (min-width: 768px) {
    .nt-preview__layout {
        grid-template-columns: minmax(170px, 30%) 1fr;
        gap: 14px;
        padding: 14px;
    }

    .nt-preview__tabs {
        flex-direction: column;
        overflow: visible;
        gap: 6px;
        padding-bottom: 0;
    }

    .nt-preview__tab {
        width: 100%;
        justify-content: space-between;
    }

    .nt-preview__tab::after {
        display: inline-block;
        opacity: 0;
    }

    .nt-preview__tab--active::after {
        opacity: 1;
    }
}
