.cprev-mdl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    box-sizing: border-box;
    direction: rtl;
}

.cprev-mdl * {
    box-sizing: border-box;
}

.cprev-mdl .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.cprev-modal-container {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: right;
}

.ng-hide {
    display: none !important;
}

.cprev-modal-header {
    height: 4rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background-color: #f9fafb;
    flex-shrink: 0;
}

.cprev-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 80%;
}

.cprev-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.cprev-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.cprev-badge-live {
    background-color: #dcfce7;
    color: #15803d;
}

.cprev-badge-draft {
    background-color: #fef9c3;
    color: #a16207;
}

.cprev-btn-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 9999px;
    transition: color 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cprev-btn-close:hover {
    color: #4b5563;
    background-color: #e5e7eb;
}

.cprev-btn-close i {
    font-size: 1.25rem;
}

.cprev-modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.cprev-pane-image {
    width: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-left: 1px solid #e5e7eb;
}

.cprev-img-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    height: 100%;
}

.cprev-content-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.cprev-content-video {
    width: 100%;
    height: 100%;
    background-color: #000;
    object-fit: contain;
}

.cprev-content-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #fff;
    zoom: 0.6;
}

.cprev-wrapper-iframe {
    background-color: #fff;
}

.cprev-img-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 5;
    pointer-events: none;
}

.cprev-pane-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.cprev-scroll-area {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.cprev-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cprev-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cprev-btn-copy {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.cprev-copy-default {
    color: #3b82f6;
    font-size: 16px;
}

.cprev-copy-default:hover {
    background-color: #eff6ff;
}

.cprev-copy-success {
    color: #16a34a;
    background-color: #f0fdf4;
    font-weight: 700;
}

.cprev-text-content {
    color: #374151;
    white-space: pre-wrap;
    line-height: 1.625;
    font-size: 0.875rem;
}

.cprev-footer {
    padding: 1.5rem;
    background-color: #f9fafb;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.cprev-label-row button.action.aiassit {

    height: 30px;

    width: auto;

    padding: 0px 16px;

    background: transparent;
}

.cprev-channels-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cprev-channel-item {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.cprev-color-facebook {
    color: #2563eb;
}

.cprev-color-instagram {
    color: #db2777;
}

.cprev-color-whatsapp {
    color: #22c55e;
}

.cprev-color-email {
    color: #4b5563;
}

.cprev-color-sms {
    color: #60a5fa;
}

.cprev-color-twitter {
    color: #000000;
}

.cprev-color-default {
    color: #6b7280;
}

.cprev-no-channels {
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
    display: flex;
    align-items: center;
}

.cprev-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cprev-time-display {
    display: flex;
    align-items: center;
    color: #374151;
    font-weight: 500;
    direction: rtl;
}

.cprev-btn-action {
    background-color: #2563eb;
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: none;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.2s;
}

.cprev-btn-action:hover {
    background-color: #1d4ed8;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.cprev-trigger-btn {
    background-color: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    font-family: 'Rubik', sans-serif;
    margin: 50px auto;
    display: block;
}

.ng-hide-remove {
    animation: 0.3s cprevFadeIn ease-out;
}

@keyframes cprevFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}