/*
 * mediaoembed Consent Handler Styles
 * Minimal structural styling. Uses Bootstrap variables as fallbacks where available.
 */

:root {
    --moe-bg: var(--bs-gray-200, #f5f5f5);
    --moe-preview-bg: var(--bs-light, #f0f0f0);
}

/* Container */
.tx-mediaoembed-embed {
    position: relative;
    background-color: var(--moe-bg);
}

/* Inner container - centered content */
.tx-mediaoembed-embed .tx-mediaoembed-consent__inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* Message container */
.tx-mediaoembed-consent__message {
    width: 100%;
    text-align: center;
}

/* Message text */
.tx-mediaoembed-consent__message-text {
    margin: 0 0 15px;
}

/* Preview section */
.tx-mediaoembed-consent__preview {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

/* Preview code - force wrap and prevent horizontal scroll */
.tx-mediaoembed-consent__preview-code {
    background-color: var(--moe-preview-bg);
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tx-mediaoembed-embed .tx-mediaoembed-consent__inner {
        padding: 15px;
    }
}
