:root {
    color-scheme: light;
    --ink: #172033;
    --muted: #64748b;
    --panel: rgba(255, 255, 255, 0.92);
    --line: rgba(148, 163, 184, 0.34);
    --orange: #f97316;
    --orange-soft: #ffedd5;
    --blue: #2563eb;
    --green: #16a34a;
    --red: #dc2626;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 10%, rgba(251, 146, 60, 0.2), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(37, 99, 235, 0.16), transparent 26%),
        linear-gradient(135deg, #f8fafc 0%, #eef6ff 46%, #fff7ed 100%);
    color: var(--ink);
    font-family: Inter, ui-rounded, "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.money-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1500px, calc(100vw - 2rem));
    margin: 1rem auto 0.75rem;
}

.money-page-header p,
.money-page-header h1 {
    margin: 0;
}

.money-page-header p {
    color: #ea580c;
    font-size: 0.72rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.money-page-header h1 {
    color: #172033;
    font-size: 1.85rem;
    line-height: 1;
}

.money-page-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.money-page-header a,
.money-page-button,
.money-fullscreen-exit {
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #334155;
    cursor: pointer;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
}

.money-page-button {
    border-color: rgba(37, 99, 235, 0.22);
    background: #dbeafe;
    color: #1d4ed8;
}

.money-fullscreen-exit {
    position: fixed;
    top: auto;
    right: 1rem;
    bottom: 7.6rem;
    z-index: 10001;
    display: none;
    border-color: rgba(249, 115, 22, 0.28);
    background: #ffedd5;
    color: #9a3412;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

button,
select,
input {
    font: inherit;
}

.money-widget {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    height: 100vh;
    padding: 1rem;
}

.money-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.money-topbar h1 {
    margin: 0.15rem 0 0;
    font-size: clamp(1.65rem, 2.4vw, 2.8rem);
    line-height: 1;
    letter-spacing: 0;
}

.admin-preview {
    display: inline-flex;
    border: 1px solid rgba(249, 115, 22, 0.24);
    border-radius: 999px;
    background: var(--orange-soft);
    color: #9a3412;
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.money-total-card {
    position: relative;
    min-width: 14rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12);
    padding: 0.8rem 1rem;
    text-align: right;
}

.total-toggle-button {
    display: inline-grid;
    place-items: center;
    position: absolute;
    top: 0.55rem;
    left: 0.7rem;
    width: 2.35rem;
    height: 2.1rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    cursor: pointer;
    padding: 0;
}

.total-eye {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.total-eye-closed,
.money-total-card.is-hidden .total-eye-open {
    display: none;
}

.money-total-card.is-hidden .total-eye-closed {
    display: block;
}

.money-total-card span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.money-total-card strong {
    display: block;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1;
}

.money-total-card.is-hidden strong {
    color: transparent;
    text-shadow: 0 0 18px rgba(23, 32, 51, 0.48);
}

.money-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
}

.money-panel,
.money-workspace-wrap,
.settings-panel {
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--panel);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.money-panel {
    min-height: 0;
    padding: 1rem;
}

.money-tray-dock {
    display: grid;
    grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    max-height: 7.25rem;
    overflow: hidden;
}

.currency-block {
    display: grid;
    align-content: center;
    gap: 0.35rem;
}

.tray-block {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
}

.money-label,
.tray-heading h2 {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 1000;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.money-select,
.settings-panel select,
.amount-dialog input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 0.85rem;
    background: white;
    color: var(--ink);
    padding: 0.55rem 0.75rem;
    font-weight: 900;
}

.tray-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.tray-heading h2 {
    margin: 0;
}

.tray-heading span {
    display: inline-grid;
    place-items: center;
    min-width: 2rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.2rem 0.55rem;
    font-weight: 1000;
}

.money-tray {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    height: 4.2rem;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.1rem 0.2rem 0.25rem 0;
}

.tray-item,
.money-piece {
    user-select: none;
    touch-action: none;
}

.tray-item {
    display: grid;
    place-items: center;
    flex: 0 0 4.35rem !important;
    width: 4.35rem !important;
    min-width: 4.35rem !important;
    max-width: 4.35rem !important;
    height: 3.55rem;
    min-height: 3.55rem;
    max-height: 3.55rem;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 0.65rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 7px 14px rgba(15, 23, 42, 0.07);
    cursor: grab;
    overflow: hidden;
    padding: 0.2rem;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tray-item:hover,
.tray-item:focus-visible {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.16);
    transform: translateY(-2px) scale(1.02);
    outline: none;
}

.tray-item img,
.money-piece img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 3rem;
    object-fit: contain;
    pointer-events: none;
}

.money-note img,
.money-piece.money-note img {
    max-height: 2.65rem;
}

.money-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 2.85rem;
    border: 2px dashed rgba(37, 99, 235, 0.22);
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
    color: #1e3a8a;
    font-size: 0.9rem;
    font-weight: 1000;
    text-align: center;
}

.tray-item.money-coin .money-placeholder,
.money-piece.money-coin .money-placeholder {
    aspect-ratio: 1;
    min-height: 2.75rem;
    border-radius: 999px;
}

.money-workspace-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 0.8rem;
}

.target-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid rgba(22, 163, 74, 0.22);
    border-radius: 999px;
    background: #dcfce7;
    color: #14532d;
    padding: 0.45rem 0.6rem 0.45rem 1rem;
    font-weight: 1000;
}

.target-copy {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.target-copy[hidden] {
    display: none !important;
}

.money-message {
    min-height: 2rem;
    padding: 0.45rem 0.3rem;
    color: #334155;
    font-weight: 900;
    text-align: center;
}

.money-message.is-success {
    color: #15803d;
}

.money-message.is-error {
    color: #b91c1c;
}

.money-workspace {
    position: relative;
    flex: 1;
    min-height: 22rem;
    overflow: hidden;
    border: 2px dashed rgba(148, 163, 184, 0.34);
    border-radius: 1rem;
    background:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        rgba(255, 255, 255, 0.58);
    background-size: 28px 28px;
}

.change-divider {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.change-divider::before {
    content: "";
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 36%;
    width: 0;
    border-left: 3px dashed rgba(249, 115, 22, 0.45);
}

.change-paid-label,
.change-needed-label {
    position: absolute;
    top: 1rem;
    border: 1px solid rgba(249, 115, 22, 0.24);
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.92);
    color: #9a3412;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 1000;
}

.change-paid-label {
    left: 1rem;
}

.change-needed-label {
    left: calc(36% + 1rem);
}

.change-needed-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    pointer-events: auto;
}

.change-answer-toggle {
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.55rem;
    border: 1px solid rgba(249, 115, 22, 0.24);
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    cursor: pointer;
    padding: 0;
}

.change-answer-toggle .total-eye {
    width: 0.95rem;
    height: 0.95rem;
}

.change-needed-label.is-hidden-answer [data-change-needed-copy] {
    color: transparent;
    text-shadow: 0 0 10px rgba(154, 52, 18, 0.45);
}

.change-needed-label .total-eye-closed,
.change-needed-label.is-hidden-answer .total-eye-open {
    display: none;
}

.change-needed-label.is-hidden-answer .total-eye-closed {
    display: block;
}

.workspace-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 0.35rem;
    color: #64748b;
    text-align: center;
    pointer-events: none;
}

.workspace-empty strong {
    color: #1e293b;
    font-size: clamp(1.35rem, 2.5vw, 2.5rem);
}

.money-piece {
    position: absolute;
    width: 8.5rem;
    min-height: 4.8rem;
    display: grid;
    place-items: center;
    border-radius: 0.95rem;
    cursor: grab;
    filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.2));
    transform-origin: center;
    animation: money-pop 220ms ease both;
}

.money-piece.money-coin {
    width: 8.4rem;
    min-height: 8.4rem;
}

.money-piece.money-note {
    width: 18rem;
    min-height: 8.5rem;
}

.money-piece.money-note img {
    max-height: 8.2rem;
}

.money-piece.money-coin img {
    max-height: 7.9rem;
}

.money-piece .money-placeholder {
    min-height: 4.8rem;
    font-size: 1.25rem;
}

.money-piece.money-coin .money-placeholder {
    min-height: 7.6rem;
    font-size: 1.55rem;
}

.money-piece.money-note .money-placeholder {
    min-height: 8rem;
    font-size: 1.6rem;
}

.money-piece.is-selected {
    outline: 4px solid rgba(37, 99, 235, 0.45);
    outline-offset: 4px;
}

.money-piece-delete {
    position: absolute;
    top: -0.55rem;
    right: -0.55rem;
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    color: transparent;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(127, 29, 29, 0.26);
    padding: 0;
}

.money-piece-delete::before,
.money-piece-delete::after {
    content: "";
    position: absolute;
    width: 0.65rem;
    height: 0.16rem;
    border-radius: 999px;
    background: #fff;
    transform: rotate(45deg);
}

.money-piece-delete::after {
    transform: rotate(-45deg);
}

.money-piece.is-reference {
    cursor: default;
    opacity: 0.86;
    filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.14));
}

.money-piece.is-reference::after {
    content: "Paid";
    position: absolute;
    left: 50%;
    bottom: -0.65rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #ffedd5;
    color: #9a3412;
    padding: 0.12rem 0.42rem;
    font-size: 0.62rem;
    font-weight: 1000;
}

.money-piece.is-dragging {
    cursor: grabbing;
    transform: scale(1.05);
}

.money-piece.is-counted {
    animation: count-pulse 320ms ease;
}

.money-piece.is-clearing {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 180ms ease, transform 180ms ease;
}

.money-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-left: auto;
}

.control-button,
.ghost-button {
    min-height: 2.75rem;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 999px;
    background: #f8fafc;
    color: #1e293b;
    cursor: pointer;
    font-weight: 1000;
    padding: 0.65rem 1rem;
    transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.control-button:hover,
.ghost-button:hover {
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.control-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.control-button.primary {
    border-color: rgba(37, 99, 235, 0.2);
    background: #dbeafe;
    color: #1d4ed8;
}

.control-button.danger-soft {
    border-color: rgba(220, 38, 38, 0.2);
    background: #fee2e2;
    color: #b91c1c;
}

.ghost-button {
    min-height: 2.1rem;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    min-width: 2.75rem;
    padding-inline: 0.75rem;
    font-size: 1.15rem;
    line-height: 1;
}

.icon-button[aria-expanded="true"] {
    border-color: rgba(249, 115, 22, 0.28);
    background: #ffedd5;
    color: #9a3412;
}

.settings-panel {
    position: fixed;
    right: 1rem;
    bottom: 8.2rem;
    z-index: 30;
    display: grid;
    gap: 0.75rem;
    width: min(22rem, calc(100vw - 2rem));
    padding: 1rem;
}

.settings-panel[hidden] {
    display: none !important;
}

.settings-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.settings-actions .control-button {
    min-height: 2.35rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.settings-actions .control-button:nth-child(1),
.settings-actions .control-button:nth-child(4) {
    grid-column: 1 / -1;
}

.settings-panel label {
    display: grid;
    gap: 0.35rem;
    color: #334155;
    font-weight: 900;
}

.settings-panel label:has(input) {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.amount-dialog {
    width: min(25rem, calc(100vw - 2rem));
    border: 0;
    border-radius: 1.2rem;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
    padding: 0;
}

.amount-dialog::backdrop {
    background: rgba(15, 23, 42, 0.34);
}

.amount-form {
    display: grid;
    gap: 0.8rem;
    padding: 1.2rem;
}

.amount-form h2 {
    margin: 0;
    font-size: 1.5rem;
}

.amount-form label {
    color: var(--muted);
    font-weight: 1000;
    text-transform: uppercase;
}

.change-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.change-grid label {
    display: grid;
    gap: 0.35rem;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.confetti {
    position: fixed;
    top: -1rem;
    z-index: 40;
    width: 0.7rem;
    height: 1rem;
    border-radius: 0.25rem;
    animation: confetti-fall 1100ms ease-in forwards;
    pointer-events: none;
}

.money-workspace.is-wrong {
    animation: shake 360ms ease;
}

@keyframes money-pop {
    from {
        opacity: 0;
        transform: scale(0.78);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes count-pulse {
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 16px 24px rgba(249, 115, 22, 0.34));
    }
}

@keyframes shake {
    25% {
        transform: translateX(-8px);
    }
    50% {
        transform: translateX(8px);
    }
    75% {
        transform: translateX(-5px);
    }
}

@keyframes confetti-fall {
    to {
        transform: translateY(105vh) rotate(540deg);
        opacity: 0;
    }
}

@media (max-width: 900px) {
    body {
        overflow: auto;
    }

    .money-widget {
        height: auto;
        min-height: 100vh;
    }

    .money-topbar,
    .money-shell {
        grid-template-columns: 1fr;
    }

    .money-topbar {
        display: grid;
    }

    .money-total-card {
        min-width: 0;
        text-align: left;
    }

    .money-tray-dock {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .money-workspace {
        min-height: 28rem;
    }

    .money-controls {
        border-radius: 1.2rem;
    }
}

/* Money Widget classroom mat layout override */
.money-widget {
    grid-template-rows: minmax(0, 1fr) 6.8rem !important;
}

.money-shell {
    display: block !important;
    min-height: 0 !important;
}

.money-workspace-wrap {
    height: 100% !important;
}

.money-workspace {
    min-height: 0 !important;
    height: 100% !important;
}

.money-tray-dock {
    display: grid !important;
    grid-template-columns: 13rem minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 0.65rem !important;
    height: 6.8rem !important;
    max-height: 6.8rem !important;
    overflow: hidden !important;
    padding: 0.45rem 0.65rem !important;
}

.currency-block {
    min-width: 0 !important;
}

.currency-block .money-label {
    margin-bottom: 0.15rem !important;
}

.money-select {
    min-height: 2.65rem !important;
    padding: 0.45rem 0.65rem !important;
    font-size: 0.88rem !important;
}

.tray-block {
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    min-width: 0 !important;
    height: 100% !important;
}

.tray-heading {
    margin: 0 0 0.25rem !important;
}

.money-tray {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.35rem !important;
    height: 4.55rem !important;
    min-height: 4.55rem !important;
    max-height: 4.55rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 2.75rem 0.2rem 0 !important;
    scroll-padding-right: 2.75rem;
    -webkit-overflow-scrolling: touch;
}

.money-tray .tray-item {
    flex: 0 0 4.7rem !important;
    width: 4.7rem !important;
    min-width: 4.7rem !important;
    max-width: 4.7rem !important;
    height: 4.05rem !important;
    min-height: 4.05rem !important;
    max-height: 4.05rem !important;
    border-radius: 0.7rem !important;
    padding: 0.2rem !important;
}

.money-tray .tray-item img {
    width: 100% !important;
    height: 100% !important;
    max-height: 3.55rem !important;
    object-fit: contain !important;
}

.money-tray .tray-item.money-note img {
    max-height: 3.1rem !important;
}

.money-tray .tray-item .money-placeholder {
    min-height: 3.2rem !important;
    font-size: 0.9rem !important;
}

.money-tray .tray-item.money-coin .money-placeholder {
    min-height: 3.15rem !important;
}

.target-strip {
    min-height: 4.15rem !important;
    gap: 0.55rem !important;
    padding: 0.4rem 0.55rem !important;
}

.target-strip .admin-preview {
    flex: 0 0 auto;
    padding: 0.2rem 0.48rem;
    font-size: 0.66rem;
}

.target-copy {
    flex: 0 1 auto;
    white-space: nowrap;
}

.target-strip .money-controls {
    flex-wrap: nowrap;
    margin-left: auto;
}

.target-strip .control-button {
    min-height: 2.35rem;
    padding: 0.48rem 0.75rem;
    font-size: 0.9rem;
}

.target-strip .icon-button {
    min-width: 2.35rem;
    padding-inline: 0.55rem;
}

.target-strip .money-total-card {
    flex: 0 0 auto;
    min-width: 11rem;
    border-radius: 0.9rem;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
    padding: 0.42rem 0.75rem 0.46rem 3.2rem;
}

.target-strip .money-total-card strong {
    font-size: clamp(1.35rem, 2.2vw, 2.1rem);
}

.target-strip .money-total-card span {
    font-size: 0.68rem;
}

.target-strip .total-toggle-button {
    top: 50%;
    left: 0.65rem;
    transform: translateY(-50%);
    width: 2.2rem;
    height: 1.95rem;
}

/* Standalone page sizing: open normally, then expand only when requested. */
body {
    overflow: auto !important;
}

.money-widget {
    position: relative;
    width: min(1500px, calc(100vw - 2rem)) !important;
    height: min(820px, calc(100vh - 7.5rem)) !important;
    min-height: 650px !important;
    margin: 0 auto 1rem !important;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

.money-widget.is-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0;
    border-radius: 0;
}

.money-resize-handle {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    z-index: 35;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.65rem;
    background: rgba(255, 237, 213, 0.96);
    cursor: nwse-resize;
    opacity: 0.95;
    padding: 0;
}

.money-resize-handle::after {
    content: "";
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    width: 0.9rem;
    height: 0.9rem;
    border-right: 3px solid #ea580c;
    border-bottom: 3px solid #ea580c;
    border-radius: 0 0 0.3rem 0;
}

.money-widget:hover .money-resize-handle,
.money-resize-handle:focus-visible {
    opacity: 1;
}

.money-widget.is-fullscreen .money-resize-handle {
    display: none;
}

body.money-fullscreen-active {
    overflow: hidden !important;
}

body.money-fullscreen-active .money-page-header {
    display: none;
}

.money-widget.is-fullscreen .money-fullscreen-exit {
    display: inline-flex;
}
