/* =========================================================
   Custom Elementor Widgets - PDF Attachments
   ========================================================= */

.cew-pdf-attachments {
    width: 100%;
}

.cew-pdf-group-title {
    margin: 0 0 20px;
}

.cew-pdf-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
}

.cew-pdf-list-row {
    margin: 0;
    padding: 0;
}

.cew-pdf-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.25s ease;
    color: inherit;
}

.cew-pdf-item:hover {
    text-decoration: none;
}

.cew-pdf-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.25s ease;
}

.cew-pdf-item-icon svg {
    display: block;
    transition: fill 0.25s ease;
}

.cew-pdf-item-text {
    transition: color 0.25s ease;
    word-break: break-word;
}

.cew-pdf-item--no-file {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Popup duplicati (editor) */
.cew-duplicate-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cew-duplicate-modal {
    background: #fff;
    border-radius: 6px;
    max-width: 520px;
    width: 90%;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cew-duplicate-modal h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #d63638;
}

.cew-duplicate-modal p {
    margin: 0 0 16px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.cew-duplicate-file-info {
    background: #f6f7f7;
    border-left: 3px solid #2271b1;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 13px;
}

.cew-duplicate-file-info strong {
    display: block;
    margin-bottom: 4px;
}

.cew-duplicate-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cew-duplicate-modal-actions button {
    padding: 8px 16px;
    border-radius: 3px;
    border: 1px solid #2271b1;
    background: #2271b1;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.cew-duplicate-modal-actions button:hover {
    background: #135e96;
}

.cew-duplicate-modal-actions button.cew-btn-secondary {
    background: #fff;
    color: #2271b1;
}

.cew-duplicate-modal-actions button.cew-btn-secondary:hover {
    background: #f0f6fc;
}

.cew-duplicate-modal-actions button.cew-btn-cancel {
    background: #fff;
    color: #666;
    border-color: #ccc;
}

.cew-duplicate-modal-actions button.cew-btn-cancel:hover {
    background: #f0f0f1;
}
