/* TinyMCE Button Styling */
.mce-i-optimal360:before {
    content: "360°";
    font-style: normal;
    font-weight: bold;
}

/* TinyMCE Modal Styles */
.optimal360-tinymce-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100100;
}

.optimal360-tinymce-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.optimal360-tinymce-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    max-width: 80vw;
    max-height: 80vh;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.optimal360-tinymce-modal .optimal360-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.optimal360-tinymce-modal .optimal360-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.optimal360-tinymce-modal .optimal360-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
}

.optimal360-tinymce-modal .optimal360-modal-close:hover {
    color: #333;
}

.optimal360-tinymce-modal .optimal360-modal-body {
    flex: 1;
    overflow: hidden;
}

.optimal360-tinymce-modal .optimal360-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.optimal360-tinymce-modal .optimal360-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.optimal360-tinymce-modal .optimal360-modal-close-btn {
    padding: 8px 20px;
}
