:root {
    color-scheme: dark;
    --bg: #111214;
    --surface: #191a1e;
    --surface-2: #202126;
    --surface-3: #292a30;
    --border: #303137;
    --text: #f3f3f4;
    --muted: #92939b;
    --accent: #ff5a5a;
    --green: #5fd98a;
    --yellow: #f5c451;
    --red: #ff6666;
    --blue: #8aa7ff;
    --shadow: 0 18px 50px #0005;
    --radius: 14px;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f5f7;
    --surface: #fff;
    --surface-2: #f1f2f4;
    --surface-3: #e8e9ed;
    --border: #dedfe4;
    --text: #202126;
    --muted: #70727b;
    --shadow: 0 18px 50px #20212612;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
}

button,
input,
select,
textarea {
    font: inherit
}

input,
textarea,
select {
    font-size: 14px;
}

button {
    cursor: pointer
}

.app {
    min-height: 100vh
}

.topbar {
    height: 72px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(18px, 4vw, 54px);
    position: sticky;
    top: 0;
    z-index: 5
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent);
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    font-size: 17px;
    box-shadow: 0 5px 18px #ff5a5a35
}

.brand-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.3px
}

.brand-sub {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: 1px
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.username {
    font-size: 13px;
    color: var(--muted);
    padding-right: 4px
}

.username strong {
    color: var(--text);
    font-weight: 650
}

.btn {
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 9px;
    padding: 8px 12px;
    font-weight: 650;
    font-size: 12px;
    transition: .15s
}

.btn:hover {
    border-color: #777982;
    transform: translateY(-1px)
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white
}

.btn-primary:hover {
    background: #ff7070;
    border-color: #ff7070
}

.btn-ghost {
    background: transparent
}

.btn-danger {
    color: var(--red);
    border-color: #ff666633;
    background: #ff66660b
}

.btn-sm {
    padding: 6px 9px;
    font-size: 11px
}

.icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 15px
}

main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 34px clamp(18px, 4vw, 54px) 60px
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px
}

.eyebrow {
    font-size: 11px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase
}

h1 {
    font-size: 26px;
    letter-spacing: -.8px;
    margin: 4px 0 0
}

.subheading {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px
}

.heading-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile layout */
@media (max-width: 600px) {
    .heading-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .heading-actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.4;
        box-sizing: border-box;
    }

    /* Make Add Task button full width */
    #addTaskBtn {
        grid-column: 1 / -1;
    }
}

/* .heading-actions {
      width: 100%
    } */

/* .heading-actions .btn {
      flex: 1
    } */

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px
}

.metric {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    position: relative;
    overflow: hidden
}

.metric:after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    right: -28px;
    top: -38px;
    /* background: var(--metric-color); */
    /* opacity: .08 */
}

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650
}

.metric-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--metric-color) 14%, transparent);
    color: var(--metric-color);
    font-size: 15px
}

.metric-value {
    font-size: 29px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
    margin-top: 14px;
    font-variant-numeric: tabular-nums
}

.metric-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    font-weight: normal !important;
}

.metric.cart {
    --metric-color: var(--yellow)
}

.metric.checkout {
    --metric-color: var(--green)
}

.metric.error {
    --metric-color: var(--red)
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden
}

.panel-head {
    padding: 17px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px
}

.panel-title {
    font-weight: 750;
    font-size: 14px
}

.panel-meta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px
}

.head-left {
    display: flex;
    align-items: center;
    gap: 10px
}

.count-pill {
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 20px;
    background: var(--surface-3);
    color: var(--muted);
    font-weight: 700
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 8px
}

.search {
    width: 210px
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 9px;
    padding: 10px 11px;
    outline: none;
    transition: border .15s
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px #ff5a5a18
}

input::placeholder,
textarea::placeholder {
    color: var(--muted)
}

.table-wrap {
    overflow-x: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px
}

th {
    text-align: left;
    padding: 12px 16px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 750;
    background: var(--surface-2);
    white-space: nowrap
}

td {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    vertical-align: middle
}

tbody tr:hover {
    background: color-mix(in srgb, var(--surface-2) 65%, transparent)
}

.product-title {
    font-weight: 700;
    font-size: 12px;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.product-link {
    display: block;
    color: var(--muted);
    font-size: 10px;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px
}

.merchant {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #f5a66b;
    background: #f5a66b14;
    border: 1px solid #f5a66b30;
    border-radius: 6px;
    padding: 4px 7px;
    display: inline-block
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: var(--muted)
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
    border: 1px solid transparent
}

.status:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor
}

.status-success {
    color: var(--green);
    background: #5fd98a14;
    border-color: #5fd98a35
}

.status-warning {
    color: var(--yellow);
    background: #f5c45114;
    border-color: #f5c45135
}

.status-danger {
    color: var(--red);
    background: #ff666614;
    border-color: #ff666635
}

.status-info {
    color: var(--blue);
    background: #8aa7ff14;
    border-color: #8aa7ff35
}

.status-neutral {
    color: var(--muted);
    background: var(--surface-3);
    border-color: var(--border)
}

.row-actions {
    display: flex;
    gap: 5px;
    white-space: nowrap
}

.empty {
    padding: 54px 20px;
    text-align: center;
    color: var(--muted)
}

.empty-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    font-size: 19px
}

.empty strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    margin-bottom: 4px
}

.overlay {
    position: fixed;
    inset: 0;
    background: #0009;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 20
}

.overlay.open {
    display: flex
}

.modal {
    width: min(650px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow)
}

.modal-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.modal-head h2 {
    font-size: 15px;
    margin: 0
}

.modal-body {
    padding: 20px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.field.full {
    grid-column: 1/-1
}

.field label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700
}

.field small {
    font-size: 10px;
    color: var(--muted)
}

.modal-foot {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px
}

.status-preview {
    margin-top: 4px
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(7px)
    }

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

@media(max-width:760px) {
    .topbar {
        height: 64px;
        padding: 0 16px
    }

    .username {
        display: none
    }

    main {
        padding: 25px 14px 45px
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .page-heading>.btn {
        width: 100%
    }

    .metrics {
        gap: 8px
    }

    .metric {
        padding: 13px 12px
    }

    .metric-value {
        font-size: 23px
    }

    .metric-top {
        font-size: 10px
    }

    .metric-icon {
        width: 25px;
        height: 25px
    }

    .panel-head {
        align-items: flex-start;
        flex-direction: column
    }

    .toolbar {
        width: 100%
    }

    .search {
        width: 100%;
        flex: 1
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .field.full {
        grid-column: auto
    }
}

@media(max-width:390px) {
    .metrics {
        grid-template-columns: 1fr
    }

    .metric {
        display: flex;
        align-items: center;
        justify-content: space-between
    }

    .metric-value {
        margin: 0
    }

    .metric-note {
        display: none
    }
}
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 12px;
  cursor: pointer;
  animation: toast-in .2s ease;
  transition: opacity .2s, transform .2s;
}

.toast-item.hide {
  opacity: 0;
  transform: translateX(12px);
}

.toast-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.toast-item .toast-text { min-width: 0; flex: 1; }

.toast-item .toast-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.toast-item time { color: var(--muted); white-space: nowrap; }

.toast-item small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.csv-chip {
  display: inline-flex;
  align-items: center;
  max-width: 260px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border, rgba(128,128,128,.35));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.csv-chip[hidden] { display: none; }


/* Mobile toolbar layout */
@media (max-width: 760px) {
    .toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    /* Search takes full width */
    .toolbar .search {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    /* Status and region filters */
    .toolbar select {
        width: 100% !important;
        min-width: 0;
    }

    /* Start all tasks takes full width */
    #toggleAllBtn {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 44px;
        white-space: nowrap;
    }
}

/* Global task settings */
.global-setting-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 18px;
    border-left: 1px solid var(--border);
}

.global-setting-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.global-setting-label {
    font-size: 12px;
    font-weight: 700;
}

.global-setting-description {
    color: var(--muted);
    font-size: 10px;
}

.setting-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 21px;
    flex: none;
}

.setting-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.setting-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: .2s;
}

.setting-slider::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    left: 2px;
    top: 2px;
    background: var(--muted);
    border-radius: 50%;
    transition: .2s;
}

.setting-switch input:checked + .setting-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.setting-switch input:checked + .setting-slider::before {
    transform: translateX(17px);
    background: #fff;
}

.setting-status {
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    min-width: 25px;
}

.setting-status.active {
    color: var(--accent);
}

@media (max-width: 600px) {
    .global-setting-option {
        padding-left: 0;
        padding-top: 12px;
        border-left: 0;
        border-top: 1px solid var(--border);
        justify-content: space-between;
    }
}

.global-settings {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 18px;
    overflow: hidden;
}

/* Header */

.global-settings-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.global-settings-title {
    font-size: 12px;
    font-weight: 750;
    color: var(--text);
}

.global-settings-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 3px 7px;
    border-radius: 5px;
}

/* Settings body */

.global-settings-body {
    display: flex;
    align-items: stretch;
    padding: 0 18px;
}

.global-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex: 1;
    min-width: 0;
    padding: 15px 0;
}

.global-setting-row + .global-setting-row {
    border-left: 1px solid var(--border);
    padding-left: 22px;
    margin-left: 22px;
}

.global-setting-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.global-setting-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.global-setting-description {
    font-size: 10px;
    color: var(--muted);
}

/* Region select */

.global-setting-row select {
    width: 145px;
    min-width: 0;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 650;
}

/* Checkout toggle */

.global-setting-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: none;
}

.setting-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex: none;
}

.setting-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.setting-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: .2s;
}

.setting-slider::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 2px;
    top: 2px;
    background: var(--muted);
    border-radius: 50%;
    transition: .2s;
}

.setting-switch input:checked + .setting-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.setting-switch input:checked + .setting-slider::before {
    transform: translateX(16px);
    background: #fff;
}

.setting-switch input:focus-visible + .setting-slider {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.setting-status {
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    min-width: 23px;
}

.setting-status.active {
    color: var(--accent);
}

@media (max-width: 760px) {
    .global-settings-body {
        flex-direction: column;
    }

    .global-setting-row {
        padding: 13px 0;
    }

    .global-setting-row + .global-setting-row {
        border-left: 0;
        border-top: 1px solid var(--border);
        padding-left: 0;
        margin-left: 0;
    }

    .global-setting-row select {
        width: 140px;
    }
}

@media (max-width: 390px) {
    .global-settings-header {
        padding: 12px 14px;
    }

    .global-settings-body {
        padding: 0 14px;
    }

    .global-setting-description {
        max-width: 190px;
    }
}

.metric.checkout {
    cursor: pointer;
}

/* Overlay */

.checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.checkout-overlay.active {
    display: flex;
}

/* Modal */

.checkout-modal {
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Header */

.checkout-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px;
    border-bottom: 10px solid var(--hair);
    margin-bottom: -5px;
}

.checkout-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    margin-bottom: -10px;
}

.checkout-brand > img {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 13px;
}

.checkout-brand h2 {
    margin: 0;
    color: var(--text);
    font-size: 19px;
    font-weight: 750;
}

.checkout-merchant-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.checkout-sp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-sp-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.checkout-header-divider {
    width: 1px;
    height: 17px;
    flex-shrink: 0;
    background: var(--hair);
}

.checkout-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--btn);
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

.checkout-close:hover {
    filter: brightness(1.15);
}

/* Summary */

.checkout-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 22px 26px 24px;
    margin-top: -10px !important;
}

.checkout-section-title {
    flex-shrink: 0;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

/* Checkout List */

.checkout-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.checkout-list::-webkit-scrollbar {
    width: 5px;
}

.checkout-list::-webkit-scrollbar-track {
    background: transparent;
}

.checkout-list::-webkit-scrollbar-thumb {
    background: var(--hair);
    border-radius: 10px;
}

/* Checkout Item */

.checkout-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.12); */
}

.checkout-item:first-child {
    padding-top: 8px;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item img {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 12px;
    background: var(--card);
}

/* Product Information */

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
}

.checkout-region {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

/* Timestamp + Quantity */

.checkout-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 8px;
    color: #a1a1aa;
    font-size: 12px;
}

.checkout-clock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-clock svg {
    display: block;
    width: 19px;
    height: 19px;
}

.checkout-timestamp,
.checkout-quantity {
    white-space: nowrap;
}

.checkout-meta-dot {
    color: #a1a1aa;
    font-size: 14px;
}

/* Price */

.checkout-item-price {
    flex-shrink: 0;
    color: var(--green);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Empty State */

.checkout-empty {
    padding: 40px 12px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* Mobile */

@media (max-width: 480px) {
    .checkout-overlay {
        padding: 12px;
    }

    .checkout-modal {
        max-height: 85vh;
        border-radius: 15px;
    }

    .checkout-header {
        padding: 18px;
        margin-bottom: -5px;
    }

    .checkout-brand {
        gap: 12px;
        margin-bottom: -10px;
    }

    .checkout-brand > img {
        width: 44px;
        height: 44px;
    }

    .checkout-brand h2 {
        font-size: 16px;
    }

    .checkout-merchant-summary {
        gap: 8px;
        font-size: 11px;
    }

    .checkout-content {
        padding: 18px;
    }

    .checkout-item {
        gap: 12px;
        padding: 14px 0;
    }

    .checkout-item img {
        width: 56px;
        height: 56px;
    }

    .checkout-item-title {
        font-size: 12px;
    }

    .checkout-item-meta {
        gap: 6px;
        font-size: 11px;
    }

    .checkout-clock svg {
        width: 16px;
        height: 16px;
    }

    .checkout-item-price {
        font-size: 12px;
    }
}

#logsModal .modal {
    width: min(650px, 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#logsModal .modal-head {
    flex-shrink: 0;
}

#logsModal .modal-head h2 {
    font-size: 15px;
    margin: 0;
}

#logsModal .modal-body {
    display: flex;
    flex: 1;
    min-height: 0;
    padding: 20px;
}

#logsTextarea {
    display: block;
    width: 100%;
    height: 60vh;
    max-height: 500px;
    min-height: 250px;

    max-width: 800px;
    box-sizing: border-box;
    resize: none;

    padding: 14px;

    background: var(--bg);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;

    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    /* font-size: 12px; */
    font-size: 12px;
    line-height: 1.6;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow-y: auto;
}

#logsTextarea::placeholder {
    color: var(--muted);
}

#logsTextarea:focus {
    border-color: var(--accent);
}

@media (max-width: 480px) {
    #logsModal {
        padding: 16px;
    }

    #logsModal .modal {
        max-height: 85vh;
    }

    #logsModal .modal-body {
        padding: 16px;
    }

    #logsTextarea {
        height: 65vh;
        min-height: 200px;
        font-size: 12px !important;
    }
}
