/* MT Editor — frontend shortcode container */

.mteditor-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.mteditor-iframe {
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mteditor-iframe.is-ready {
    opacity: 1;
}

.mteditor-loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.mteditor-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-left-color: #bdfa7b;
    border-radius: 50%;
    animation: mteditor-spin 0.9s linear infinite;
}

@keyframes mteditor-spin {
    to { transform: rotate(360deg); }
}

.mteditor-error {
    padding: 16px 20px;
    border: 1px solid #f0b7b7;
    background: #fff5f5;
    color: #8a1f1f;
    border-radius: 6px;
    font-size: 14px;
}

.mteditor-error a { color: #8a1f1f; text-decoration: underline; }

/* Restricted-access notice */
.mteditor-restricted {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 360px;
    border-radius: 12px;
    margin: 24px 0;
    padding: 32px;
    box-sizing: border-box;
}

.mteditor-restricted-inner {
    max-width: 520px;
    text-align: center;
    color: #fff;
}

.mteditor-restricted-inner h3 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.mteditor-restricted-inner p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.mteditor-restricted-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #bdfa7b;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.mteditor-restricted-btn:hover {
    transform: scale(1.03);
    opacity: 0.95;
}
