@font-face {
    font-family: 'Azo Sans';
    src: url('../../mathsapp/fonts/AzoSans-Regular.eot');
    src: url('../../mathsapp/fonts/AzoSans-Regular.eot?#iefix') format('embedded-opentype'),
        url('../../mathsapp/fonts/AzoSans-Regular.woff') format('woff'),
        url('../../mathsapp/fonts/AzoSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Azo Sans Bold';
    src: url('../../mathsapp/fonts/AzoSans-Bold.otf');
    font-weight: bold;
    font-style: normal;
}

.message-box {
    position: fixed;
    top: 24px;
    right: 24px;
    width: min(420px, calc(100vw - 48px));
    box-sizing: border-box;
    padding: 20px 48px 20px 20px;
    background: #ffffff;
    color: #20252b;
    border: 1px solid rgba(32, 37, 43, 0.12);
    border-left: 5px solid #FE5B18;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(32, 37, 43, 0.18), 0 3px 8px rgba(32, 37, 43, 0.08);
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(-18px);
    z-index: 2147483647;
    font-family: 'Azo Sans', 'Lato', sans-serif;
}

.message-icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    box-sizing: border-box;
    background: #fff1e9;
    border-radius: 50%;
}

.message-icon svg {
    width: 24px;
    height: 24px;
    color: #d94d0d;
}

.message-content {
    min-width: 0;
    flex: 1;
}

.message-title {
    color: #20252b;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 5px;
}

.message-body {
    color: #59616b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.message-body a {
    color: #d94d0d;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.message-body a:hover,
.message-body a:focus-visible {
    color: #a93608;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #59616b;
    background: transparent;
    font-family: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.close-btn:hover,
.close-btn:focus-visible {
    background: #fff1e9;
    color: #d94d0d;
    outline: none;
}

@keyframes edupillarMessageSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes edupillarMessageSlideOut {
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.edupillar-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(32, 37, 43, 0.48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.edupillar-modal-overlay.is-open {
    display: flex;
}

.edupillar-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 34px 36px 32px;
    box-sizing: border-box;
    border: 1px solid rgba(32, 37, 43, 0.12);
    border-radius: 16px;
    color: #20252b;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(32, 37, 43, 0.28);
    font-family: 'Azo Sans', 'Lato', sans-serif;
    transform: translate(-50%, -50%);
    animation: edupillarModalSlideIn 0.25s ease both;
}

.edupillar-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #59616b;
    background: transparent;
    font-family: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.edupillar-modal-close:hover,
.edupillar-modal-close:focus-visible {
    color: #d94d0d;
    background: #fff1e9;
    outline: none;
}

.edupillar-modal h2 {
    margin: 0 36px 18px 0;
    color: #20252b;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
}

.edupillar-modal ol {
    margin: 0;
    padding-left: 24px;
    color: #59616b;
    font-size: 15px;
    line-height: 1.55;
}

.edupillar-modal li {
    padding-left: 4px;
}

.edupillar-modal li + li {
    margin-top: 12px;
}

.edupillar-modal a {
    color: #d94d0d;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

@keyframes edupillarModalSlideIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.98); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media only screen and (max-width: 480px) {
    .message-box {
        top: 16px;
        right: 16px;
        width: calc(100vw - 32px);
        padding: 18px 44px 18px 16px;
    }

    .edupillar-modal-overlay {
        padding: 16px;
    }

    .edupillar-modal {
        width: calc(100vw - 32px);
        max-height: calc(100vh - 32px);
        padding: 30px 22px 24px;
    }

    .edupillar-modal h2 {
        font-size: 20px;
    }

    .edupillar-modal ol {
        font-size: 14px;
    }
}