@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;
}

#cookiemessage {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 370px;
    max-width: calc(100% - 40px);
    background: #ffffff;
    border: 1px solid #e8eaeb;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2147483647;
    padding: 22px;
    text-align: left;
    line-height: normal;
    font-family: 'Azo Sans', sans-serif;
    font-size: 14px;
}

#cookiemessage.cookie-in {
    animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#cookiemessage.cookie-out {
    animation: cookieSlideDown 0.3s ease both;
}

@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cookieSlideDown {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(20px) scale(0.97); }
}

#cookiemessage .cookie-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #f1f3f4;
    color: #64748b;
    font-size: 18px;
    line-height: 30px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
}

#cookiemessage .cookie-close:hover {
    background: #e8eaeb;
    color: #393D3F;
}

#cookiemessage .cookie-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f56100 0%, #ff8a3d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 4px 10px rgba(245, 97, 0, 0.3);
}

#cookiemessage .cookie-icon svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
}

#cookiemessage .cookie-title {
    font-family: 'Azo Sans Bold', 'Azo Sans', sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: #393D3F;
    margin: 0 0 6px;
}

#cookiemessage .cookie-text {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0 0 6px;
}

#cookiemessage .cookie-text:last-of-type {
    margin-bottom: 16px;
}

#cookiemessage .cookie-accept {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: linear-gradient(145deg, #ff5d00, #ff7a2e);
    color: #ffffff;
    font-family: 'Azo Sans Bold', 'Azo Sans', sans-serif;
    font-weight: bold;
    font-size: 14px;
    padding: 12px 0;
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.1s ease;
}

#cookiemessage .cookie-accept:hover {
    box-shadow: 0 6px 16px rgba(245, 97, 0, 0.4);
}

#cookiemessage .cookie-accept:active {
    transform: scale(0.98);
}