/*
 * Organio Quiz Callout — responsive to its Elementor COLUMN/CONTAINER width,
 * not merely to the browser viewport. No global Elementor/theme overrides.
 * The intro and the button are independent flex items. If both cannot fit,
 * the button wraps to its own line instead of colliding with the message.
 */
.orgw-quiz-frame {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    container-type: inline-size;
}
.orgw-quiz-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 83px;
    gap: 12px;
    padding: 12px 11px 12px 14px;
    background: #eef4eb;
    border: 1px solid #315644;
    border-radius: 13px;
}
.orgw-quiz-cta, .orgw-quiz-cta * { box-sizing: border-box; }
.orgw-quiz-intro {
    display: flex;
    flex: 1 1 215px;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}
.orgw-quiz-art {
    display: flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-width: 0;
    max-width: 100%;
}
.orgw-quiz-capsule, .orgw-quiz-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 62px;
    object-fit: contain;
}
.orgw-quiz-message {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    color: #182f39;
    font: 400 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    white-space: normal;
    overflow-wrap: anywhere;
}
/* Avoid theme/Elementor default paragraph margins inflating the compact callout. */
.orgw-quiz-message > :first-child { margin-top: 0; }
.orgw-quiz-message > :last-child { margin-bottom: 0; }
.orgw-quiz-message p { margin-block-start: 0; margin-block-end: .5em; }
.orgw-quiz-message a { text-decoration: underline; }
.orgw-quiz-button {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    margin-left: auto;
    padding: 11px 17px;
    border: 0;
    border-radius: 100px;
    background: #79bc13;
    color: #fff;
    text-align: center;
    text-decoration: none !important;
    font: 500 13px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background-color .18s ease, transform .18s ease;
    cursor: pointer;
}
.orgw-quiz-button:visited { color: #fff; }
.orgw-quiz-button:hover, .orgw-quiz-button:focus-visible { background: #619a0b; color: #fff; transform: translateY(-1px); }
.orgw-quiz-button:focus-visible { outline: 2px solid #1e5733; outline-offset: 3px; }
.orgw-quiz-button--preview { cursor: default; }
.orgw-quiz-button--preview:hover { transform: none; }

/* Container queries respond correctly even in a narrow desktop sidebar. */
@container (max-width: 350px) {
    .orgw-quiz-cta { gap: 10px; }
    .orgw-quiz-intro { flex: 1 1 100%; }
    .orgw-quiz-button {
        flex: 1 1 100%;
        width: 100%;
        margin-left: 0;
    }
}
@container (max-width: 220px) {
    .orgw-quiz-intro { flex-wrap: wrap; justify-content: center; }
    .orgw-quiz-message { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .orgw-quiz-button { transition: none; } }
