@font-face { font-family: 'Merchant Copy'; src: url('./assets/Merchant Copy.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Merchant Copy Wide'; src: url('./assets/Merchant Copy Wide.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: block; }

.mr-receipt-widget, .mr-receipt-widget *, .mr-mobile-panel, .mr-mobile-panel * { box-sizing: border-box; }
.mr-receipt-widget { position: fixed; z-index: 99990; width: 250px; color: #111; font-family: 'Merchant Copy', monospace; font-weight: 400; }
.mr-mobile-panel { font-family: 'Merchant Copy', monospace; font-weight: 400; }
.mr-receipt-widget.is-hidden, .mr-mobile-button.is-hidden { display: none !important; }
.mr-receipt-widget.is-editing { z-index: 100200; }
.mr-receipt-card { position: relative; width: 100%; min-height: 330px; padding: 24px 23px 25px; overflow: hidden; color: #111; background: #fff; box-shadow: 0 9px 24px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.13); }
.mr-receipt-slide-group { position: relative; width: 250px; }
.mr-receipt-login-card { position: absolute; left: 0; bottom: calc(100% + 12px); width: 250px; height: 150px; padding: 24px 22px 20px; color: #111; background: #fff; box-shadow: 0 9px 24px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.13); font-family: var(--content-font-family); font-size: var(--content-font-size); font-weight: 400; }
.mr-receipt-login-form { width: 100%; height: 100%; display: flex; flex-direction: column; font-family: inherit; font-size: inherit; color: inherit; }
.mr-receipt-login-input { width: 100%; height: 38px; margin: 0; padding: 6px 0; border: 0 !important; border-radius: 0 !important; outline: 0 !important; color: #111 !important; background: transparent !important; box-shadow: none !important; font-family: var(--content-font-family) !important; font-size: var(--content-font-size) !important; font-weight: 400; transform: none !important; transition: none !important; }
.mr-receipt-login-input + .mr-receipt-login-input { margin-top: 4px; }
.mr-receipt-login-input:hover, .mr-receipt-login-input:focus { border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; transform: none !important; }
.mr-receipt-widget .mr-receipt-login-card input.mr-receipt-login-input[type="text"]:focus, .mr-receipt-widget .mr-receipt-login-card input.mr-receipt-login-input[type="password"]:focus, .mr-mobile-panel .mr-receipt-login-card input.mr-receipt-login-input[type="text"]:focus, .mr-mobile-panel .mr-receipt-login-card input.mr-receipt-login-input[type="password"]:focus { border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; transform: none !important; }
.mr-receipt-login-input:-webkit-autofill, .mr-receipt-login-input:-webkit-autofill:hover, .mr-receipt-login-input:-webkit-autofill:focus { -webkit-text-fill-color: #111 !important; -webkit-box-shadow: 0 0 0 1000px #fff inset !important; box-shadow: 0 0 0 1000px #fff inset !important; transition: background-color 9999s ease-out 0s !important; }
.mr-receipt-login-input::placeholder { color: rgba(17,17,17,.55); opacity: 1; transform: none !important; transition: none !important; }
.mr-receipt-login-input:focus::placeholder { color: rgba(17,17,17,.55); opacity: 1; transform: none !important; }
.mr-receipt-login-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--content-font-family); font-size: calc(var(--content-font-size) * .84); line-height: 1.2; }
.mr-receipt-login-actions-left { min-width: 0; display: flex; align-items: center; gap: 11px; }
.mr-receipt-login-register, .mr-receipt-auto-login label, .mr-receipt-login-submit { margin: 0; padding: 0; border: 0; border-radius: 0; color: #111; background: transparent; box-shadow: none; font: inherit; font-weight: 400; line-height: inherit; letter-spacing: 0; text-decoration: none; white-space: nowrap; transition: none; transform: none; }
.mr-receipt-login-register:hover { color: #111; background: transparent; box-shadow: none; text-shadow: none; filter: none; transform: none; }
.mr-receipt-auto-login { position: relative; display: inline-flex; align-items: center; }
.mr-receipt-auto-login-input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.mr-receipt-auto-login label { cursor: pointer; user-select: none; }
.mr-receipt-auto-login label:hover { color: #111; }
.mr-receipt-auto-login-input:checked + label, .mr-receipt-auto-login-input:checked + label:hover { color: var(--accent-color); }
.mr-receipt-login-submit { flex: 0 0 auto; cursor: pointer; }
.mr-receipt-login-submit:hover { color: var(--accent-color); background: transparent; box-shadow: none; filter: none; transform: none; }
.mr-receipt-heading { width: 153.846%; margin-top: 4px; margin-bottom: 4px; margin-left: -26.923%; font-family: 'Merchant Copy Wide', 'Merchant Copy', monospace; font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.8px; text-align: center; transform: scaleX(.65); transform-origin: center; }
.mr-receipt-slide-toggle { width: 100%; border: 0; padding: 0; color: inherit; background: transparent; font: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; text-align: inherit; cursor: pointer; }
.mr-receipt-subtitle { min-height: 18px; margin-top: 8px; font-size: 18px; line-height: 18px; text-align: center; white-space: normal; }
.mr-receipt-coordinates { height: 18px; display: flex; align-items: baseline; justify-content: center; gap: 0; font-size: 18px; font-weight: 400; line-height: 18px; text-align: center; white-space: nowrap; }
.mr-coordinate-group { position: relative; display: inline-flex; align-items: baseline; }
.mr-coordinate-group.has-degree { padding-right: 1ch; }
.mr-coordinate-group.has-prime { padding-right: 1ch; }
.mr-coordinate-group.has-double-prime { padding-right: 1ch; }
.mr-coordinate-symbol { position: absolute; top: -1px; display: block; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; line-height: 1; pointer-events: none; }
.mr-coordinate-degree { left: auto; right: 1px; top: -2px; }
.mr-coordinate-prime { left: auto; right: 2px; }
.mr-coordinate-double-prime { left: auto; right: 0; }
.mr-receipt-section-title { height: 18px; margin-top: 18px; font-size: 18px; line-height: 18px; }
.mr-receipt-rule { height: 18px; margin: 0; overflow: hidden; border: 0; font-family: 'Merchant Copy', monospace; font-size: 18px; font-weight: 400; line-height: 18px; letter-spacing: 0; white-space: nowrap; }
.mr-receipt-columns, .mr-receipt-credit { height: 18px; display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: 18px; font-weight: 400; line-height: 18px; }
.mr-receipt-columns b { font-weight: 400; }
.mr-receipt-items { list-style: none; margin: 0; padding: 0; }
.mr-receipt-items li { margin: 0; padding: 0; }
.mr-receipt-items a { height: 18px; display: flex; justify-content: space-between; align-items: baseline; color: inherit; font-size: 18px; line-height: 18px; text-decoration: none; }
.mr-receipt-items a strong { min-width: 0; overflow-wrap: anywhere; font-weight: 400; text-shadow: .5px 0 0 currentColor; }
.mr-receipt-items a span { flex: 0 0 auto; margin-left: 14px; font-weight: 400; }
.mr-receipt-items a:hover { color: #a7cbec; }
.mr-receipt-qr { display: block; width: 62px; height: 62px; margin: 18px auto 0; object-fit: contain; image-rendering: pixelated; }
.mr-receipt-footer { margin-top: 17px; margin-bottom: 4px; font-size: 18px; line-height: 16px; text-align: center; }
.mr-receipt-drag, .mr-receipt-settings { position: absolute; z-index: 3; display: none; border: 0; border-radius: 4px; padding: 5px 7px; color: #fff; background: #111; font: 11px/1 sans-serif; cursor: pointer; }
.mr-receipt-drag { top: 7px; left: 7px; touch-action: none; cursor: grab; }
.mr-receipt-settings { top: 7px; right: 7px; }
.mr-receipt-widget.is-admin:hover .mr-receipt-settings, .mr-receipt-widget.is-admin.is-editing .mr-receipt-settings, .mr-receipt-widget.is-admin.is-editing .mr-receipt-drag { display: block; }
.mr-receipt-widget.is-dragging .mr-receipt-drag { cursor: grabbing; }
.mr-receipt-settings-rescue { position: fixed; z-index: 100201; top: 8px; right: 8px; display: none; border: 0; border-radius: 4px; padding: 7px 9px; color: #fff; background: #111; font: 11px/1 sans-serif; cursor: pointer; }
.mr-receipt-settings-rescue.is-visible { display: block; }

/* Desktop receipt slide-away */
@media (min-width: 769px) {
    .mr-receipt-slide-group {
        transition: transform 320ms cubic-bezier(.22, .61, .36, 1);
        will-change: transform;
    }

    .mr-receipt-widget.is-tucked {
        pointer-events: none;
    }

    .mr-receipt-widget.is-tucked .mr-receipt-slide-group {
        transform: translateX(-240px);
        pointer-events: none;
    }

    .mr-receipt-widget.is-tucked .mr-receipt-card,
    .mr-receipt-widget.is-tucked .mr-receipt-login-card {
        pointer-events: auto;
        cursor: pointer;
    }
}

.mr-mobile-button, .mr-mobile-overlay, .mr-mobile-panel { display: none; }
.mr-settings-modal[hidden] { display: none; }
.mr-settings-modal { position: fixed; z-index: 100100; inset: 0; display: grid; place-items: center; }
.mr-settings-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.38); }
.mr-settings-dialog { position: relative; z-index: 1; width: min(760px, calc(100% - 32px)); height: min(760px, calc(100% - 32px)); overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.28); }
.mr-settings-dialog iframe { width: 100%; height: 100%; border: 0; }
.mr-settings-close { position: absolute; z-index: 2; top: 9px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #111; background: #eee; font-size: 22px; cursor: pointer; }
.mr-receipt-mobile-open, .mr-receipt-settings-open { overflow: hidden; }

@media (max-width: 768px) {
    .mr-receipt-settings-rescue { display: none !important; }
    .mr-receipt-widget { display: none !important; }
    .mr-mobile-button { position: fixed; z-index: 99998; top: 15px; right: 15px; width: 45px; height: 45px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid #ddd; border-radius: 5px; padding: 0; color: #111; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; }
    .mr-mobile-button > span:not(.sound_only) { width: 19px; height: 2px; background: currentColor; }
    .mr-mobile-overlay { position: fixed; z-index: 99999; inset: 0; display: block; border: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
    .mr-mobile-overlay.is-open { opacity: 1; visibility: visible; }
    .mr-mobile-panel { position: fixed; z-index: 100000; top: 0; right: 0; width: min(300px, 88vw); height: 100%; display: block; overflow-y: auto; padding: 54px 20px 24px; background: #fff; box-shadow: -4px 0 12px rgba(0,0,0,.15); transform: translateX(105%); transition: transform .3s ease; }
    .mr-mobile-panel.is-open { transform: translateX(0); }
    .mr-mobile-close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; color: #111; background: transparent; font-size: 27px; cursor: pointer; }
    .mr-mobile-panel .mr-receipt-login-card { position: relative; left: auto; bottom: auto; width: 250px; max-width: 100%; height: 150px; margin: 0 auto 12px; }
    .mr-receipt-card--mobile { width: 100%; padding-right: 12px; padding-left: 12px; box-shadow: none; }
    .mr-mobile-settings { display: block; width: 100%; margin-top: 12px; border: 1px solid #111; padding: 9px; color: #111; background: #fff; font: 12px sans-serif; cursor: pointer; }
}

@media (min-width: 769px) {
    .mr-mobile-button, .mr-mobile-overlay, .mr-mobile-panel { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .mr-mobile-overlay, .mr-mobile-panel, .mr-receipt-slide-group { transition-duration: .01ms; }
}
