/*This styles are using for resizer*/

#lw-floating-button {
    all: unset;
    display: block;
    position: fixed;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    z-index: 99999;
    outline-offset: 2px;
    transition: all .25s ease-out;
    box-shadow: 0 2px 2px 0 #00000040;
}

#lw-floating-button:hover {
    box-shadow: 0 6px 6px 0 #00000040;

}

#lw-floating-button:focus-visible {
    outline: 2px solid #1849a9;
    outline-offset: 2px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
}


#lw-floating-image {
    display: block;
}


#lw-chat-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    border: none;
    z-index: -1;
    max-width: calc(100vw - 40px);
    border-radius: 16px;
    transition: all .25s ease-out;
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale3d(0.95, 0.95, 0.95);
    pointer-events: none !important;
    box-sizing: border-box;
    padding: 12px;
}

#lw-chat-wrapper.full {
    padding: 0;
}

#lw-chat-iframe-resizable {
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: 16px;
    box-shadow: 0 0 20px 0 #0A0D122E;
}

#lw-chat-wrapper.show {
    z-index: 9999999;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    pointer-events: auto !important;
}

#lw-chat-wrapper.full {
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw;
    max-height: 100vh !important;
}

#lw-chat-wrapper-top-resize.resize,
#lw-chat-wrapper-left-resize.resize,
#lw-chat-wrapper-right-resize.resize,
#lw-chat-wrapper-bottom-resize.resize,
#lw-chat-wrapper-top-left-resize.resize,
#lw-chat-wrapper-top-right-resize.resize,
#lw-chat-wrapper-bottom-left-resize.resize,
#lw-chat-wrapper-bottom-right-resize.resize {
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

#lw-chat-wrapper-top-resize.full,
#lw-chat-wrapper-left-resize.full,
#lw-chat-wrapper-right-resize.full,
#lw-chat-wrapper-bottom-resize.full,
#lw-chat-wrapper-top-left-resize.full,
#lw-chat-wrapper-top-right-resize.full,
#lw-chat-wrapper-bottom-left-resize.full,
#lw-chat-wrapper-bottom-right-resize.full {
    display: none !important;
}


@media (width <= 768px) {
    #lw-chat-wrapper.full.myday {
        padding-top: 30px;
        box-shadow: none;
        border-radius: 0;
        background-color: white;
    }
}

@media (max-width: 48em) {
    #lw-floating-button.hide-mobile {
        display: none !important;
    }
}

@media (min-width: 75em) {
    #lw-chat-wrapper.full {
        background: rgba(0, 0, 0, 0.8);
        border-radius: 0;
    }

    #lw-floating-button.full.opened {
        display: none;
    }
}

#lw-iframe-preview-dialog,
#lw-approval-details-dialog,
#lw-chart-preview-dialog {
    position: fixed;
    z-index: 999999999999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: show-bg 0.3s;
}

#lw-iframe-preview-dialog > .preview-content,
#lw-approval-details-dialog > .preview-content,
#lw-chart-preview-dialog > .preview-content {
    position: relative;
    border-radius: 12px;
    padding: 80px;
    background-color: #fff;
    width: 60%;
    height: 60%;
    will-change: transform;
    animation: show-preview .25s;
}

#lw-iframe-preview-dialog > .preview-content > iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#lw-chart-preview-dialog > .chart-preview-content {
    padding: 48px;
    width: min(90vw, 1200px);
    height: min(85vh, 900px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-preview-title {
    margin: 0;
    font-size: clamp(16px, 1rem, 20px);
    line-height: 1.5;
    color: #212529;
}

#lw-chart-preview-dialog > .chart-preview-content > img {
    width: 100%;
    min-height: 0;
    flex: 1;
    object-fit: contain;
}

#lw-approval-details-dialog > .approval-details-content {
    padding: 32px;
    width: min(80vw, 920px);
    max-height: 80vh;
    height: auto;
    overflow: visible;
}

.ad-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(80vh - 64px);
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.ad-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ad-method {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: clamp(12px, 0.75rem, 15px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.6;
}

.ad-endpoint,
.ad-actual-path {
    font-family: monospace;
    font-size: clamp(14px, 0.875rem, 18px);
    color: #495057;
    word-break: break-all;
}

.ad-actual-path {
    margin: 4px 0 8px;
}

.ad-summary {
    font-size: clamp(14px, 0.875rem, 18px);
    color: #495057;
    margin: 4px 0 12px;
}

.ad-section-title {
    font-size: clamp(12px, 0.75rem, 15px);
    font-weight: 600;
    color: #495057;
    margin: 12px 0 4px;
}

.ad-grid {
    display: grid;
    grid-template-columns: minmax(120px, auto) 1fr 1fr;
    gap: 0;
    font-size: clamp(14px, 0.875rem, 18px);
    border-top: 1px solid #e9ecef;
}

.ad-cell {
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
    min-width: 0;
}

.ad-name {
    font-weight: 500;
}

.ad-value {
    font-family: monospace;
    word-break: break-all;
}

.ad-type {
    font-size: clamp(12px, 0.75rem, 15px);
    color: #495057;
    font-style: italic;
}

.ad-desc {
    color: #495057;
}

.ad-required {
    color: #c92a2a;
    font-size: clamp(11px, 0.6875rem, 14px);
    margin-left: 2px;
}

/* Markdown rendered inside description / summary fields (Blackboard OpenAPI
   descriptions: GFM tables, emphasis, links). Keep it compact and readable. */
.ad-summary > :first-child,
.ad-desc > :first-child {
    margin-top: 0;
}

.ad-summary > :last-child,
.ad-desc > :last-child {
    margin-bottom: 0;
}

.ad-summary p,
.ad-desc p {
    margin: 0 0 4px;
}

.ad-summary ul,
.ad-summary ol,
.ad-desc ul,
.ad-desc ol {
    margin: 0 0 4px;
    padding-left: 18px;
}

.ad-summary code,
.ad-desc code {
    font-family: monospace;
}

.ad-summary table,
.ad-desc table {
    border-collapse: collapse;
    width: auto;
    margin: 4px 0;
    font-size: clamp(13px, 0.8125rem, 16px);
}

.ad-summary th,
.ad-summary td,
.ad-desc th,
.ad-desc td {
    border: 1px solid #e9ecef;
    padding: 2px 6px;
    text-align: left;
}

.preview-button {
    height: 36px;
    width: 36px;
    padding: 8px;
    border-radius: 8px;
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(150%);
    background-color: #fff;
    border: none;
    cursor: pointer;
    transition:.25s ease-out;
}

.preview-button img {
    width: 20px;
    height: 20px;
}


.preview-button:hover {
    background-color: #ccc;
}

/* WCAG 2.4.7 — Focus Visible: :focus-visible shows ring on keyboard only, not mouse */

.preview-button:focus-visible {
    outline: 2px solid #1849a9;
    outline-offset: 2px;
}

.preview-button.preview-link {
    transform: translate(150%, 150%);
}


@keyframes show-bg {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes show-preview {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Notification badge on floating button */
.lw-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    /* WCAG 1.4.3 — white count text needs >= 4.5:1;
       #d32f2f (~5:1 on white) keeps the alert-red while meeting AA. */
    background: #d32f2f !important;
    color: #fff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    line-height: 18px !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    border: 2px solid #fff;
    text-align: center;
    pointer-events: none;
    box-sizing: border-box;
}

/* Notification card container */
.lw-notification-cards {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 400px;
    pointer-events: auto;
}

.lw-notification-cards > .lw-notification-card {
    width: 100%;
    box-sizing: border-box;
}

/* Individual notification card */
.lw-notification-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow:
        0 2px 2px -1px rgba(10, 13, 18, 0.04),
        0 4px 6px -2px rgba(10, 13, 18, 0.03),
        0 12px 16px -4px rgba(10, 13, 18, 0.08);
    padding: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: lw-notification-slide-in-from-below 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 1px solid #d5d7da;
}

/* Cards render ABOVE the button (placement top-*) → slide up from below into view. */
.lw-notification-cards[data-corner="top-start"] .lw-notification-card,
.lw-notification-cards[data-corner="top-end"] .lw-notification-card {
    animation: lw-notification-slide-in-from-below 0.3s ease;
}

/* Cards render BELOW the button (placement bottom-*) → slide down from above into view. */
.lw-notification-cards[data-corner="bottom-start"] .lw-notification-card,
.lw-notification-cards[data-corner="bottom-end"] .lw-notification-card {
    animation: lw-notification-slide-in-from-above 0.3s ease;
}

.lw-notification-card:hover {
    box-shadow:
        0 2px 2px -1px rgba(10, 13, 18, 0.06),
        0 4px 6px -2px rgba(10, 13, 18, 0.05),
        0 12px 16px -4px rgba(10, 13, 18, 0.12);
}

/* WCAG 2.4.7 — Focus Visible: notification card is role="button" with tabIndex */

.lw-notification-card:focus-visible {
    outline: 2px solid #1849a9;
    outline-offset: 2px;
}

.lw-notification-card-exit {
    opacity: 0;
    transform: translateX(20px);
}

/* Exit slides toward the nearest viewport edge horizontally. */
.lw-notification-cards[data-corner$="-start"] .lw-notification-card-exit {
    transform: translateX(-20px);
}
.lw-notification-cards[data-corner$="-end"] .lw-notification-card-exit {
    transform: translateX(20px);
}

/* Close button (absolute top-right) */
.lw-notification-close {
    all: unset;
    position: absolute;
    top: 7px;
    right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    color: #a4a7ae;
    flex-shrink: 0;
    z-index: 1;
    box-sizing: border-box;
}

.lw-notification-close:hover {
    color: #181d27;
    background: rgba(0, 0, 0, 0.04);
}

/* WCAG 2.4.7 — Focus Visible: :focus-visible shows ring on keyboard only, not mouse */

.lw-notification-close:focus-visible {
    outline: 2px solid #1849a9;
    outline-offset: 2px;
}

.lw-notification-close svg {
    width: 20px;
    height: 20px;
}

/* Content row: icon + text */
.lw-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Icon circle */
.lw-notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lw-notification-icon--reply {
    background: #d3eaff;
    color: #3b82f6;
}

.lw-notification-icon--announcement {
    background: #f3f4f6;
    color: #6b7280;
}

/* Text column */
.lw-notification-text {
    flex: 1;
    min-width: 0;
    padding-right: 32px;
}

/* Defensive typography overrides: title is a <span> and body is markdown
   HTML (p, headings, strong, em, a, ...) injected via innerHTML — both sit
   in the host page's DOM and are exposed to host stylesheets like
   `body strong`, `body p`, `body * { text-transform: uppercase !important }`,
   `body a[target="_blank"]::after`. Host rules often outrank our class
   selectors. The !important markers below lock the typography we control to
   the values declared here. Same precedent as the
   `.lw-notification-btn-primary` block further down — do not remove the
   !important markers. */
.lw-notification-title {
    display: block;
    /* Rendered as a <button> (the keyboard-focusable "open" control); reset native button chrome
       so it stays visually identical to the previous heading text. */
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: clamp(14px, 0.875rem, 18px) !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: #181d27 !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    margin-bottom: 4px;
}

.lw-notification-title:focus-visible {
    outline: 2px solid #1849a9;
    outline-offset: 2px;
    border-radius: 4px;
}

.lw-notification-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: clamp(14px, 0.875rem, 18px) !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: #181d27 !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    max-height: 80px;
    overflow-y: auto;
    overscroll-behavior: contain;
    word-break: break-word;
    scrollbar-width: thin;
    scrollbar-color: rgba(10, 13, 18, 0.05) transparent;
    transition: scrollbar-color 0.2s ease;
}

.lw-notification-body > *:first-child {
    margin-top: 0;
}

.lw-notification-body > *:last-child {
    margin-bottom: 0;
}

.lw-notification-body p {
    margin: 0 0 6px;
    font-family: inherit !important;
    font-size: clamp(14px, 0.875rem, 18px) !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.5 !important;
    color: inherit !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
}

.lw-notification-body h1,
.lw-notification-body h2,
.lw-notification-body h3,
.lw-notification-body h4 {
    font-family: inherit !important;
    font-size: clamp(14px, 0.875rem, 18px) !important;
    font-weight: 700 !important;
    font-style: normal !important;
    line-height: 1.5 !important;
    margin: 8px 0 4px;
    color: #181d27 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
}

.lw-notification-body ul,
.lw-notification-body ol {
    margin: 4px 0 6px;
    padding-left: 18px;
    font-family: inherit !important;
    font-size: clamp(14px, 0.875rem, 18px) !important;
    color: inherit !important;
    text-transform: none !important;
}

.lw-notification-body li {
    margin: 0 0 2px;
    font-family: inherit !important;
    font-size: clamp(14px, 0.875rem, 18px) !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.5 !important;
    color: inherit !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
}

.lw-notification-body a {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: #1849a9 !important;
    text-decoration: underline !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-break: break-all;
}

/* Suppress host-injected pseudo-glyphs on body links (e.g.
   `body a[target="_blank"]::after { content: "↗" }`). Class is doubled to
   bump specificity (0,2,3) above the common host pattern (0,1,3) — when
   both sides use !important, specificity decides. */
.lw-notification-body.lw-notification-body a::before,
.lw-notification-body.lw-notification-body a::after {
    content: none !important;
    display: none !important;
}

.lw-notification-body code {
    padding: 1px 4px;
    background: #f3f4f6 !important;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size: clamp(12px, 0.75rem, 15px) !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: inherit !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
}

.lw-notification-body blockquote {
    margin: 6px 0;
    padding: 4px 10px;
    border-left: 3px solid #717680;
    font-family: inherit !important;
    font-size: clamp(14px, 0.875rem, 18px) !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.5 !important;
    color: #535862 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
}

.lw-notification-body hr {
    margin: 8px 0;
    border: 0;
    border-top: 1px solid #a4a7ae;
}

.lw-notification-body strong,
.lw-notification-body b {
    font-family: inherit !important;
    font-weight: 700 !important;
    font-style: inherit !important;
    color: inherit !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    background: transparent !important;
}

.lw-notification-body em,
.lw-notification-body i {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-style: italic !important;
    color: inherit !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    background: transparent !important;
}

.lw-notification-card:hover .lw-notification-body {
    scrollbar-color: rgba(10, 13, 18, 0.3) transparent;
}

.lw-notification-body::-webkit-scrollbar {
    width: 6px;
}

.lw-notification-body::-webkit-scrollbar-track {
    background: transparent;
}

.lw-notification-body::-webkit-scrollbar-thumb {
    background: rgba(10, 13, 18, 0.2);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.lw-notification-card:hover .lw-notification-body::-webkit-scrollbar-thumb {
    background: rgba(10, 13, 18, 1);
}

/* Scroll-hint chevron: pulses at the bottom of the body when content
   overflows, until the user scrolls or hovers the card. */
.lw-notification-body-wrap {
    position: relative !important;
}

.lw-notification-scroll-hint {
    position: absolute !important;
    right: 4px !important;
    bottom: 2px !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #06114c !important;
    color: #fff !important;
    pointer-events: none !important;
    box-shadow: 0 1px 3px rgba(10, 13, 18, 0.25) !important;
    z-index: 2 !important;
}

.lw-notification-scroll-hint svg {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
}

.lw-notification-body-wrap--scrollable .lw-notification-scroll-hint {
    display: flex !important;
    animation: lw-notification-hint-pulse 1.2s ease-in-out infinite !important;
}

@keyframes lw-notification-hint-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}

.lw-notification-card:hover .lw-notification-scroll-hint {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .lw-notification-body-wrap--scrollable .lw-notification-scroll-hint {
        animation: none !important;
    }
}

/* Actions row */
.lw-notification-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.lw-notification-btn-primary {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: #06114c;
    color: #fff;
    font-size: clamp(14px, 0.875rem, 18px);
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    transition: background 0.15s ease;
    box-shadow:
        0 1px 2px 0 rgba(16, 24, 40, 0.05),
        inset 0 -2px 0 0 rgba(10, 13, 18, 0.05),
        inset 0 0 0 1px rgba(10, 13, 18, 0.18);
}

.lw-notification-btn-primary:hover {
    background: #0c27a3;
}

/* Defensive overrides: primary button renders as <button> or <a> (when
   action_type === 'link'). Host pages often declare aggressive
   `body button` / `body a` rules with !important that out-rank a single
   class selector. Class is doubled below to bump specificity above patterns
   like `body a[target="_blank"]` (0,1,3) and `body button *` (0,1,2) —
   when both sides use !important, specificity decides. */
.lw-notification-btn-primary.lw-notification-btn-primary,
a.lw-notification-btn-primary.lw-notification-btn-primary:link,
a.lw-notification-btn-primary.lw-notification-btn-primary:visited,
a.lw-notification-btn-primary.lw-notification-btn-primary:hover,
a.lw-notification-btn-primary.lw-notification-btn-primary:focus,
a.lw-notification-btn-primary.lw-notification-btn-primary:active {
    color: #fff !important;
    background: #06114c !important;
    font-family: inherit !important;
    font-size: clamp(14px, 0.875rem, 18px) !important;
    font-weight: 700 !important;
    font-style: normal !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
}

.lw-notification-btn-primary.lw-notification-btn-primary:hover,
a.lw-notification-btn-primary.lw-notification-btn-primary:hover {
    background: #0c27a3 !important;
}

/* Suppress host-injected pseudo-glyphs (e.g.
   `body a[target="_blank"]::after { content: "↗" }`). Class doubled for
   specificity. */
.lw-notification-btn-primary.lw-notification-btn-primary::before,
.lw-notification-btn-primary.lw-notification-btn-primary::after {
    content: none !important;
    display: none !important;
}

/* WCAG 2.4.7 — Focus Visible: ring sits against white card bg; #1849a9 on white = 7.52:1 ✓ */

.lw-notification-btn-primary:focus-visible {
    outline: 2px solid #1849a9;
    outline-offset: 2px;
}

/* Class doubled for specificity — host `body button { ... !important }`
   would otherwise beat a single class selector. */
.lw-notification-btn-reply.lw-notification-btn-reply {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: #e7f3ff !important;
    border: 1px solid #82b8ff !important;
    color: #06114c !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: clamp(14px, 0.875rem, 18px) !important;
    font-weight: 700 !important;
    font-style: normal !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    text-align: center !important;
    text-transform: none !important;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.lw-notification-btn-reply.lw-notification-btn-reply:hover {
    background: #d3eaff !important;
}

.lw-notification-btn-reply.lw-notification-btn-reply::before,
.lw-notification-btn-reply.lw-notification-btn-reply::after {
    content: none !important;
    display: none !important;
}

/* WCAG 2.4.7 — Focus Visible: :focus-visible shows ring on keyboard only, not mouse */

.lw-notification-btn-reply:focus-visible {
    outline: 2px solid #1849a9;
    outline-offset: 2px;
}

@keyframes lw-notification-slide-in-from-below {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lw-notification-slide-in-from-above {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feedback chat popup (shown near chat launcher on grader pages) */

#lw-chat-feedback-dialog {
    background-color: #fff;
    position: fixed;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #D5D7DA;
    box-shadow: 0 12px 16px -4px rgba(10, 13, 18, 0.08),
                0 4px 6px -2px rgba(10, 13, 18, 0.03),
                0 2px 2px -1px rgba(10, 13, 18, 0.04);
    font-family: 'Satoshi', sans-serif;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    z-index: 2147483647;
    width: 400px;
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    animation: lw-chat-feedback-show 0.5s 0.5s forwards;
    opacity: 0;
}

@keyframes lw-chat-feedback-show {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#lw-chat-feedback-icon {
    flex-shrink: 0;
    line-height: 0;
}

#lw-chat-feedback-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

#lw-chat-feedback-text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 32px;
}

#lw-chat-feedback-title {
    font-weight: 700;
    font-size: 14px;
    color: #181D27;
    line-height: 1.5;
}

#lw-chat-feedback-description {
    color: #181D27;
    font-size: 14px;
    line-height: 1.5;
}

#lw-chat-feedback-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

#lw-chat-feedback-btn {
    display: inline-block;
    background-color: #06114C;
    color: white;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05),
                inset 0 -2px 0 rgba(10, 13, 18, 0.05),
                inset 0 0 0 1px rgba(10, 13, 18, 0.18);
    border: none;
}

#lw-chat-feedback-btn:hover {
    background-color: #0a1d7a;
}

#lw-chat-feedback-btn:focus-visible {
    outline: 2px solid #1849a9;
    outline-offset: 2px;
}

#lw-chat-feedback-close-btn {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    position: absolute;
    border: none;
    right: 7px;
    top: 7px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s;
    border-radius: 8px;
}

#lw-chat-feedback-close-btn:hover {
    opacity: 0.6;
}

#lw-chat-feedback-close-btn:focus-visible {
    outline: 2px solid #1849a9;
    outline-offset: 2px;
    opacity: 1;
}

#lw-chat-feedback-close-btn::after,
#lw-chat-feedback-close-btn::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 1.5px;
    background-color: #A4A7AE;
}

#lw-chat-feedback-close-btn::after {
    transform: rotate(45deg);
}

#lw-chat-feedback-close-btn::before {
    transform: rotate(-45deg);
}
