:root {
    --page-bg: #f7f8f5;
    --surface: #ffffff;
    --text: #13211d;
    --muted: #6b7772;
    --line: #e1e6e3;
    --line-dark: #cbd4d0;
    --accent: #0e9384;
    --accent-hover: #087b70;
    --accent-soft: #e9f8f5;
    --success: #079455;
    --success-soft: #ecfdf3;
    --warning: #b54708;
    --warning-soft: #fffaeb;
    --danger: #d92d20;
    --danger-soft: #fef3f2;
    --info: #175cd3;
    --info-soft: #eff8ff;
    --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.deposit-page {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--page-bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
}

[hidden] {
    display: none !important;
}

.deposit-container {
    width: min(calc(100% - 28px), 720px);
    margin-inline: auto;
}

/* Header */

.deposit-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(247, 248, 245, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.deposit-header__inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.deposit-header__left,
.deposit-header__right {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.deposit-back-button,
.deposit-header-action {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 17px;
    font-weight: 650;
    transition: background-color 0.2s ease;
}

.deposit-back-button:hover,
.deposit-header-action:hover {
    background: #ecefd0;
}

.deposit-back-button svg {
    width: 21px;
    height: 21px;
}

.deposit-page-title {
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-pill {
    min-height: 28px;
    padding: 5px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 14px;
    background: #edf0ee;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.service-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #98a29e;
}

.service-pill--online .service-pill__dot {
    background: var(--success);
}

.service-pill--offline .service-pill__dot,
.service-pill--maintenance .service-pill__dot {
    background: var(--danger);
}

/* Main */

.deposit-main {
    padding: 18px 0 36px;
}

.deposit-shell {
    min-width: 0;
}

.deposit-tabs {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    gap: 26px;
    border-bottom: 1px solid var(--line);
}

.deposit-tab {
    position: relative;
    min-height: 42px;
    padding: 0 1px 11px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.deposit-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: transparent;
}

.deposit-tab.is-active {
    color: var(--text);
}

.deposit-tab.is-active::after {
    background: var(--accent);
}

.deposit-tab__badge {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-size: 10px;
    font-weight: 700;
}

.deposit-panel {
    width: 100%;
}

/* Service */

.service-notice {
    margin-bottom: 16px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-left: 3px solid var(--info);
    background: var(--info-soft);
}

.service-notice--success {
    border-left-color: var(--success);
    background: var(--success-soft);
}

.service-notice--warning {
    border-left-color: var(--warning);
    background: var(--warning-soft);
}

.service-notice--error {
    border-left-color: var(--danger);
    background: var(--danger-soft);
}

.service-notice__icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--info);
    font-size: 10px;
    font-weight: 700;
}

.service-notice--success .service-notice__icon {
    color: var(--success);
}

.service-notice--warning .service-notice__icon {
    color: var(--warning);
}

.service-notice--error .service-notice__icon {
    color: var(--danger);
}

.service-notice__content {
    min-width: 0;
}

.service-notice h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 650;
}

.service-notice p {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 11px;
}

/* Asset row */

.deposit-compact-row {
    padding: 0 0 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.deposit-asset {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.deposit-asset__icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-size: 17px;
    font-weight: 700;
}

.deposit-asset > span:last-child {
    min-width: 0;
    display: grid;
}

.deposit-asset strong {
    font-size: 14px;
    font-weight: 650;
}

.deposit-asset small {
    color: var(--muted);
    font-size: 11px;
}

.deposit-network {
    display: grid;
    gap: 1px;
    text-align: right;
}

.deposit-network > span {
    color: var(--muted);
    font-size: 10px;
}

.deposit-network strong {
    font-size: 12px;
    font-weight: 650;
}

.deposit-card__status,
.verified-badge {
    min-height: 24px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf0ee;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
}

.deposit-card__status.is-ready,
.verified-badge {
    background: var(--success-soft);
    color: var(--success);
}

.deposit-card__status.is-unavailable {
    background: var(--danger-soft);
    color: var(--danger);
}

.network-warning {
    margin: 12px 0 0;
    padding: 9px 11px;
    border-left: 3px solid var(--warning);
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 11px;
    font-weight: 550;
}

/* Address */

.deposit-address-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.deposit-section-heading {
    margin-bottom: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.deposit-section-heading h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.deposit-address-layout {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.deposit-qr-card {
    position: relative;
    width: 126px;
    height: 126px;
    padding: 7px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.deposit-qr-card canvas {
    width: 110px;
    height: 110px;
    max-width: 100%;
}

.deposit-qr-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--surface);
}

.deposit-address-content {
    min-width: 0;
}

.deposit-address-box {
    min-width: 0;
    min-height: 48px;
    padding: 5px 5px 5px 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: var(--surface);
}

.deposit-address-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 147, 132, 0.1);
}

.deposit-address-box code {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.45;
}

.copy-button,
.input-action-button {
    min-width: 64px;
    min-height: 36px;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: #edf0ee;
    color: var(--text);
    font-size: 11px;
    font-weight: 650;
    transition: background-color 0.2s ease;
}

.copy-button:hover:not(:disabled),
.input-action-button:hover:not(:disabled) {
    background: #dfe5e1;
}

.copy-button.is-copied {
    background: var(--success-soft);
    color: var(--success);
}

.deposit-meta-row {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.deposit-meta-row > span {
    color: var(--muted);
    font-size: 11px;
}

.deposit-meta-row strong {
    color: var(--text);
    font-size: 11px;
    font-weight: 650;
}

/* Form */

.deposit-form {
    padding-top: 20px;
    display: grid;
    gap: 16px;
}

.form-field {
    min-width: 0;
}

.form-field > label {
    margin-bottom: 6px;
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.amount-input,
.input-with-action {
    min-height: 48px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: var(--surface);
}

.amount-input:focus-within,
.input-with-action:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 147, 132, 0.1);
}

.amount-input input,
.input-with-action input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.amount-input input::placeholder,
.input-with-action input::placeholder,
.history-search input::placeholder {
    color: #98a29e;
}

.amount-input__asset {
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.input-with-action .input-action-button {
    margin-right: -5px;
}

.form-field input:disabled {
    color: #98a29e;
}

.form-field__hint {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.form-field__error {
    display: block;
    margin-top: 3px;
    color: var(--danger);
    font-size: 10px;
}

.form-field.has-error .amount-input,
.form-field.has-error .input-with-action {
    border-color: var(--danger);
}

.deposit-confirmations {
    display: grid;
    gap: 9px;
}

.confirmation-check {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
}

.confirmation-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.confirmation-check__box {
    width: 19px;
    height: 19px;
    min-width: 19px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-dark);
    border-radius: 5px;
    background: var(--surface);
    color: transparent;
    font-size: 11px;
}

.confirmation-check input:checked + .confirmation-check__box {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.confirmation-check input:disabled + .confirmation-check__box {
    opacity: 0.55;
}

.primary-deposit-button,
.modal-primary-button {
    min-height: 46px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.primary-deposit-button:hover:not(:disabled),
.modal-primary-button:hover:not(:disabled) {
    background: var(--accent-hover);
}

.primary-deposit-button:disabled,
.modal-primary-button:disabled {
    background: #dfe4e1;
    color: #98a29e;
}

/* History */

.history-header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.history-header h1 {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
}

.secondary-action-button,
.pagination-button,
.modal-secondary-button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 11px;
    font-weight: 650;
}

.secondary-action-button:hover:not(:disabled),
.pagination-button:hover:not(:disabled),
.modal-secondary-button:hover:not(:disabled) {
    background: #edf0ee;
}

.history-summary {
    margin-bottom: 16px;
    padding-bottom: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
}

.history-summary__item {
    min-width: 0;
    padding: 0 12px;
    border-right: 1px solid var(--line);
}

.history-summary__item:first-child {
    padding-left: 0;
}

.history-summary__item:last-child {
    padding-right: 0;
    border-right: 0;
}

.history-summary__item span {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.history-summary__item strong {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-filters {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 8px;
}

.history-search {
    min-height: 42px;
    padding: 0 6px 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: var(--surface);
}

.history-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 147, 132, 0.1);
}

.history-search input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 12px;
}

.history-search button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 17px;
}

.history-search button:hover {
    background: #edf0ee;
}

#historyStatusFilter {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    outline: 0;
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
}

#historyStatusFilter:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 147, 132, 0.1);
}

.deposit-history-list {
    border-top: 1px solid var(--line);
}

.deposit-history-item {
    padding: 13px 0;
    display: grid;
    grid-template-columns:
        minmax(150px, 1.4fr)
        0.8fr
        0.9fr
        auto
        auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.deposit-history-item__primary {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.deposit-history-item__asset-icon {
    width: 31px;
    height: 31px;
    min-width: 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.deposit-history-item__primary > div {
    min-width: 0;
    display: grid;
}

.deposit-history-item__primary strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deposit-history-item__primary small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deposit-history-item__cell {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.deposit-history-item__cell strong {
    overflow: hidden;
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deposit-history-item__cell > span:not(.deposit-status-badge) {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deposit-status-badge {
    width: max-content;
    max-width: 100%;
    padding: 4px 7px;
    overflow: hidden;
    border-radius: 10px;
    background: #edf0ee;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deposit-status-badge.is-success {
    background: var(--success-soft);
    color: var(--success);
}

.deposit-status-badge.is-warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.deposit-status-badge.is-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.deposit-status-badge.is-info {
    background: var(--info-soft);
    color: var(--info);
}

.deposit-history-item__action {
    min-height: 34px;
    padding: 6px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--accent-hover);
    font-size: 10px;
    font-weight: 650;
}

.deposit-history-item__action:hover {
    background: var(--accent-soft);
}

.history-loading,
.history-empty {
    min-height: 170px;
    padding: 30px 14px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.history-empty h2 {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
}

.history-empty p {
    margin: 0;
    font-size: 11px;
}

.history-empty .primary-deposit-button {
    min-height: 38px;
    margin-top: 5px;
    padding: 8px 14px;
    font-size: 11px;
}

.history-pagination {
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.history-pagination > span {
    color: var(--muted);
    font-size: 10px;
}

.pagination-button:disabled {
    opacity: 0.45;
}

/* Modals */

body.is-modal-open {
    overflow: hidden;
}

.deposit-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    padding: 16px;
    display: grid;
    place-items: center;
}

.deposit-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 33, 29, 0.64);
    backdrop-filter: blur(3px);
}

.deposit-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border-radius: 11px;
    background: var(--surface);
    box-shadow: 0 18px 50px rgba(19, 33, 29, 0.22);
}

.deposit-modal__dialog--detail {
    width: min(100%, 540px);
}

.deposit-modal__header,
.deposit-modal__body,
.deposit-modal__footer {
    padding: 17px 18px;
}

.deposit-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.deposit-modal__header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
}

.deposit-modal__close {
    width: 32px;
    height: 32px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: #edf0ee;
    color: var(--muted);
    font-size: 19px;
}

.deposit-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid var(--line);
}

.deposit-modal__footer--stacked {
    flex-direction: column;
}

.deposit-modal__footer--stacked button {
    width: 100%;
}

.confirmation-summary,
.detail-list {
    margin: 0;
}

.confirmation-summary > div,
.detail-list > div {
    min-height: 38px;
    padding: 9px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.confirmation-summary dt,
.detail-list dt {
    color: var(--muted);
    font-size: 11px;
}

.confirmation-summary dd,
.detail-list dd {
    max-width: 65%;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 11px;
    font-weight: 650;
    text-align: right;
}

.detail-list a {
    color: var(--accent-hover);
}

.detail-loading {
    min-height: 140px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
}

.deposit-detail-content {
    padding: 0 18px 18px;
}

.detail-timeline {
    margin-top: 15px;
}

#detailTimelineList {
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-timeline-item {
    position: relative;
    padding: 0 0 14px 23px;
}

.detail-timeline-item::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 0;
    left: 5px;
    width: 1px;
    background: var(--line);
}

.detail-timeline-item:last-child::before {
    display: none;
}

.detail-timeline-item__dot {
    position: absolute;
    top: 3px;
    left: 0;
    width: 11px;
    height: 11px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--surface);
}

.detail-timeline-item__content {
    display: grid;
    gap: 1px;
}

.detail-timeline-item__content strong {
    font-size: 11px;
    font-weight: 650;
}

.detail-timeline-item__content p,
.detail-timeline-item__content time {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.success-modal-copy {
    text-align: center;
}

.success-modal-copy h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 650;
}

.success-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    font-size: 21px;
    font-weight: 700;
}

.success-reference {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--page-bg);
}

.success-reference strong {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.success-reference button {
    border: 0;
    background: transparent;
    color: var(--accent-hover);
    font-size: 11px;
    font-weight: 650;
}

/* Alerts and loading */

.deposit-alert {
    position: fixed;
    top: 68px;
    right: 14px;
    z-index: 300;
    width: min(360px, calc(100% - 28px));
    padding: 11px 12px;
    border-left: 3px solid var(--info);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 11px;
    box-shadow: 0 12px 30px rgba(19, 33, 29, 0.14);
}

.deposit-alert.is-success {
    border-left-color: var(--success);
}

.deposit-alert.is-warning {
    border-left-color: var(--warning);
}

.deposit-alert.is-error {
    border-left-color: var(--danger);
}

.deposit-loading {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    background: rgba(247, 248, 245, 0.97);
}

.deposit-loading.is-hidden {
    display: none !important;
}

.deposit-loading__content {
    display: grid;
    gap: 1px;
}

.deposit-loading__content strong {
    font-size: 13px;
    font-weight: 650;
}

.deposit-loading__content span {
    color: var(--muted);
    font-size: 11px;
}

.deposit-loading__spinner,
.deposit-qr-placeholder__spinner,
.primary-deposit-button__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(14, 147, 132, 0.18);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: deposit-spin 0.8s linear infinite;
}

.primary-deposit-button__spinner {
    width: 16px;
    height: 16px;
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
}

@keyframes deposit-spin {
    to {
        transform: rotate(360deg);
    }
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-error {
    color: var(--danger);
}

/* Mobile */

@media (max-width: 620px) {
    .deposit-container {
        width: min(calc(100% - 24px), 720px);
    }

    .deposit-main {
        padding: 14px 0 28px;
    }

    .deposit-tabs {
        margin-bottom: 16px;
    }

    .deposit-compact-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .deposit-card__status {
        display: none;
    }

    .deposit-address-layout {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 12px;
    }

    .deposit-qr-card {
        width: 108px;
        height: 108px;
        padding: 6px;
    }

    .deposit-qr-card canvas {
        width: 94px;
        height: 94px;
    }

    .deposit-address-box {
        align-items: stretch;
        flex-direction: column;
        padding: 9px;
    }

    .copy-button {
        width: 100%;
    }

    .deposit-meta-row {
        min-height: 31px;
    }

    .history-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 0;
    }

    .history-summary__item:nth-child(2) {
        border-right: 0;
    }

    .history-summary__item:nth-child(3) {
        padding-left: 0;
    }

    .history-filters {
        grid-template-columns: minmax(0, 1fr) 110px;
    }

    .deposit-history-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
    }

    .deposit-history-item__primary {
        grid-column: 1;
        grid-row: 1;
    }

    .deposit-history-item__cell--network,
    .deposit-history-item__cell--date {
        grid-column: 1;
    }

    .deposit-history-item__cell:not(
        .deposit-history-item__cell--network
    ):not(
        .deposit-history-item__cell--date
    ) {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .deposit-history-item__action {
        grid-column: 2;
        align-self: end;
    }
}

@media (max-width: 420px) {
    .service-pill {
        display: none;
    }

    .deposit-header__inner {
        min-height: 54px;
    }

    .deposit-address-layout {
        grid-template-columns: 1fr;
    }

    .deposit-qr-card {
        width: 116px;
        height: 116px;
        margin-inline: auto;
    }

    .deposit-qr-card canvas {
        width: 102px;
        height: 102px;
    }

    .history-filters {
        grid-template-columns: 1fr;
    }

    .deposit-modal {
        padding: 10px;
        align-items: end;
    }

    .deposit-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
    }

    .deposit-modal__footer {
        flex-direction: column-reverse;
    }

    .deposit-modal__footer button {
        width: 100%;
    }

    .confirmation-summary > div,
    .detail-list > div {
        display: grid;
        gap: 3px;
    }

    .confirmation-summary dd,
    .detail-list dd {
        max-width: 100%;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}