.magic-copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
    background: #00D4FF;
    color: #2D5BE3;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    display: none;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.magic-copy-offscreen-textarea {
    position: absolute;
    left: -9999px;
    top: 0;
    opacity: 1;
}

.magic-copy-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.magic-copy-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.magic-copy-modal-title {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.magic-copy-modal-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

.magic-copy-modal-textarea {
    width: 100%;
    height: 300px;
    font-family: monospace;
    font-size: 12px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.magic-copy-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.magic-copy-modal-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.magic-copy-modal-btn-primary {
    background: #007cba;
    color: white;
}

.magic-copy-modal-btn-secondary {
    background: #ddd;
    color: #333;
}

.magic-copy-button:hover {
    background: #007cba !important;
    color: white !important;
    border-color: #007cba !important;
}

.magic-copy-button .magic-copy-icon {
    font-size: 14px;
}

[data-magiccopyel-copy="true"] {
    position: relative !important;
}

.elementor-editor-active [data-magiccopyel-copy="true"] {
    min-height: 50px;
}