.swap-widget-box--order {
    --order-line: rgba(220, 229, 217, 0.9);
    --order-panel: rgba(255, 255, 255, 0.94);
    --order-soft: #f4f9f1;
    position: relative;
    isolation: isolate;
    max-width: 920px;
    margin: 16px auto 48px;
    padding: clamp(14px, 2.4vw, 22px);
    overflow: hidden;
    border: 1px solid var(--order-line);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 246, 0.9)),
        radial-gradient(circle at 10% 0%, rgba(105, 167, 216, 0.13), transparent 36%),
        radial-gradient(circle at 100% 12%, rgba(47, 125, 91, 0.13), transparent 34%);
    box-shadow: var(--shadow-lg);
}

.swap-widget-box--order::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: -1;
    border-radius: 23px;
    background:
        linear-gradient(135deg, rgba(47, 125, 91, 0.08), transparent 42%),
        linear-gradient(315deg, rgba(105, 167, 216, 0.11), transparent 36%);
    pointer-events: none;
}

#orderColsMain {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lookup-card,
.tools-link-box,
.tools-email-box,
.order-new-deposit,
.order-new-meta {
    border: 1px solid var(--order-line);
    border-radius: 22px;
    background: var(--order-panel);
    box-shadow: var(--shadow-sm);
}

.lookup-card {
    display: grid;
    gap: 16px;
    padding: clamp(22px, 4vw, 34px);
    text-align: center;
    backdrop-filter: blur(12px);
}

.lookup-header {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.lookup-header p {
    margin: 0;
    max-width: 520px;
    color: var(--text-secondary);
}

.order-access-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-access-orderid,
.order-id-val {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 12px;
    color: var(--accent-primary);
    border: 1px solid #cfe2cd;
    border-radius: 999px;
    background: #f3f8f1;
    font-weight: 950;
}

.order-id-val {
    color: var(--text-primary);
    min-height: 34px;
    padding: 6px 10px;
    border-color: #c8ddc4;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 6px 14px rgba(48, 65, 49, 0.06);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.order-id-val:hover {
    transform: translateY(-1px);
    border-color: var(--border-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 20px rgba(48, 65, 49, 0.1);
}

.order-id-val svg {
    width: 15px;
    height: 15px;
    color: var(--accent-primary);
}

.lookup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: min(520px, 100%);
    margin: 0 auto;
}

.lookup-input,
#orderEmailInput {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    outline: none;
    background: #fbfcf7;
}

.lookup-input:focus,
#orderEmailInput:focus {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 4px rgba(47, 125, 91, 0.1);
}

.order-new-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: clamp(14px, 2.4vw, 18px);
    border: 1px solid var(--order-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.order-new-id {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-width: 0;
    padding: 6px 7px 6px 12px;
    border: 1px solid #d7e5d3;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #f7fbf5);
    box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(48, 65, 49, 0.06);
}

.order-id-lbl,
.flow-lbl,
.meta-item label,
.deposit-field label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.order-id-lbl {
    flex: 0 0 auto;
    color: var(--text-muted);
    line-height: 1;
}

.order-new-status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid #cfe2cd;
    border-radius: 999px;
    background: #f3f8f1;
    color: var(--accent-primary);
    font-weight: 900;
    white-space: nowrap;
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(47, 125, 91, 0.11);
}

.status-badge.pending,
.badge.pending {
    color: var(--accent-warning);
    border-color: #ead7ab;
    background: #fff8e8;
}

.status-badge.processing,
.badge.processing {
    color: #3f7fae;
    border-color: #c9e0f1;
    background: #eef7fd;
}

.status-badge.success,
.badge.success {
    color: var(--accent-success);
    border-color: #b9dcc8;
    background: #edf8f0;
}

.status-badge.refunded,
.badge.refunded {
    color: #7c6596;
    border-color: #ddd1e9;
    background: #f6f1fb;
}

.status-badge.failed,
.badge.failed {
    color: var(--accent-error);
    border-color: #efc6c6;
    background: #fff1f1;
}

.order-new-status-details,
.order-new-status-txs {
    margin: 0;
    padding: 0;
    color: var(--text-secondary);
    border: 0;
    border-radius: 18px;
    background: transparent;
}

.order-new-status-details:empty,
.order-new-status-txs:empty { display: none; }

.order-cols-error {
    gap: 14px;
}

.order-cols-error .order-new-header {
    align-items: center;
}

.order-cols-error .order-new-status-details {
    display: grid;
    gap: 12px;
}

.order-status-error {
    padding: 16px 18px;
    color: var(--accent-error);
    border: 1px solid #efc6c6;
    border-radius: 18px;
    background: #fff1f1;
    font-weight: 800;
    text-align: center;
}

.order-access-home-row {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.order-access-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    max-width: 280px;
    padding: 0 20px;
    color: #ffffff;
    border: 1px solid rgba(47, 125, 91, 0.18);
    border-radius: 999px;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.34), transparent 24px),
        linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 14px 28px rgba(47, 125, 91, 0.22);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.15;
    text-decoration: none;
    text-align: center;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.order-access-home-link:hover,
.order-access-home-link:focus-visible {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(47, 125, 91, 0.28);
    filter: saturate(1.06);
}

.order-access-home-link:focus-visible {
    outline: 3px solid rgba(47, 125, 91, 0.18);
    outline-offset: 3px;
}

.order-new-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
}

.flow-side {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 92px;
    padding: clamp(12px, 2vw, 16px);
    border: 1px solid var(--order-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
}

.flow-send {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 232, 0.46));
}

.flow-receive {
    border-color: #cfe2cd;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 241, 0.9));
}

.flow-amt,
.order-token-amount {
    color: var(--text-primary);
    font-size: clamp(1.08rem, 2.25vw, 1.55rem);
    font-weight: 950;
    letter-spacing: -0.04em;
    min-width: 0;
    overflow-wrap: anywhere;
}

.order-token-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.order-token-amount {
    flex: 1 1 auto;
}

.order-token-label {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
    max-width: 42%;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}

.order-token-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    overflow: hidden;
    border-radius: 10px;
    background: #edf4e9;
    box-shadow: 0 8px 18px rgba(48, 65, 49, 0.12);
}

.order-token-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-receive,
.order-new-status-txs,
.order-new-status-txs a,
.order-reward-compact { color: var(--accent-primary); }

.flow-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-height: 100%;
    color: var(--accent-primary);
    border: 1px solid #cfe2cd;
    border-radius: 16px;
    background: #f3f8f1;
    box-shadow: var(--shadow-sm);
}

.flow-arrow svg {
    width: 22px;
    height: 22px;
}

.order-new-deposit {
    display: grid;
    gap: 14px;
    padding: clamp(16px, 2.6vw, 22px);
}

.deposit-instruction {
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 14px;
    color: #835f17;
    border: 1px solid #ead7ab;
    border-radius: 16px;
    background: #fff8e8;
    font-weight: 750;
    line-height: 1.45;
}

.deposit-copy-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #d6e3d2;
    border-radius: 18px;
    background: #fbfcf7;
    box-shadow: inset 0 1px 0 #fff;
}

.deposit-code {
    min-width: 0;
    padding: 6px 8px;
    color: var(--text-primary);
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(0.86rem, 1.6vw, 1rem);
    line-height: 1.45;
    word-break: break-word;
}

.order-new-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: clamp(12px, 2.2vw, 16px);
}

.meta-item {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fbfcf7;
}

.meta-item--recipient {
    grid-column: 1 / -1;
}

.order-time-inline {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.order-time-inline[hidden] {
    display: none !important;
}

.order-time-inline__label {
    color: inherit;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.meta-item:last-child { border-bottom: 1px solid var(--border-color); }

.meta-val {
    min-width: 0;
    color: var(--text-primary);
    font-weight: 800;
    text-align: left;
    word-break: break-word;
    line-height: 1.45;
}

.meta-val[role="button"] {
    cursor: pointer;
    color: var(--accent-primary);
}

#detailRecipient,
#detailRefundTo {
    font-family: Consolas, "Courier New", monospace;
    overflow-wrap: anywhere;
    word-break: normal;
}

.deadline-countdown {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 5px 10px;
    color: var(--accent-warning);
    border: 1px solid #ead7ab;
    border-radius: 999px;
    background: #fff8e8;
    font-weight: 950;
}

.order-new-actions {
    display: flex;
    gap: 10px;
}

.order-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 11px;
    color: #b65a5a;
    border: 1px solid rgba(239, 198, 198, 0.85);
    border-radius: 999px;
    background: rgba(255, 241, 241, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.order-delete-btn:hover,
.order-delete-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(200, 54, 54, 0.5);
    background: #fff8f8;
    box-shadow: 0 8px 18px rgba(200, 54, 54, 0.1);
}

.order-delete-modal__content {
    width: min(420px, 100%);
}

.order-delete-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    color: var(--accent-error);
    border-radius: 16px;
    background: #fff1f1;
}

#orderDeleteTitle {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    text-align: center;
}

.order-delete-modal__text {
    margin: 0 0 20px;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.5;
    text-align: center;
}

.order-delete-modal__actions {
    display: grid;
    gap: 10px;
}

.order-delete-confirm,
.order-delete-cancel {
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
    font-weight: 900;
}

.order-delete-confirm {
    color: #fff;
    background: var(--accent-error);
}

.order-delete-cancel {
    color: var(--text-secondary);
    background: #fff;
}

.order-delete-modal__msg {
    min-height: 20px;
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
}

.order-delete-modal__msg.success { color: var(--accent-success); }
.order-delete-modal__msg.error { color: var(--accent-error); }

.order-new-actions .btn-action {
    width: 100%;
    min-height: 50px;
    border-radius: 17px;
}

.order-new-actions .btn-action svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.order-guarantee {
    display: grid;
    gap: 12px;
    padding: clamp(14px, 2.4vw, 18px);
    border: 1px solid var(--order-line);
    border-radius: 22px;
    background: #fbfcf7;
    box-shadow: var(--shadow-sm);
}

.order-guarantee__head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.order-guarantee__title {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.order-guarantee__text {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.55;
}

.order-guarantee__help {
    flex: 0 0 auto;
    padding: 8px 11px;
    color: var(--accent-primary);
    border: 1px solid #cfe2cd;
    border-radius: 999px;
    background: #f3f8f1;
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
}

.order-guarantee__textarea {
    width: 100%;
    min-height: 270px;
    resize: vertical;
    padding: 12px;
    color: var(--text-primary);
    border: 1px solid #d6e3d2;
    border-radius: 16px;
    background: #fff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.86rem;
    line-height: 1.45;
}

.order-guarantee__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.order-guarantee__buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.order-guarantee__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--accent-primary);
    border: 1px solid #cfe2cd;
    border-radius: 14px;
    background: #f3f8f1;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.order-guarantee__icon-btn:hover {
    transform: translateY(-1px);
    border-color: var(--border-hover);
    background: #fff;
    box-shadow: 0 12px 24px rgba(50, 69, 54, 0.12);
}

.order-guarantee__icon-btn svg {
    width: 19px;
    height: 19px;
}

.order-guarantee__hash {
    min-width: 0;
    color: var(--text-muted);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.8rem;
    word-break: break-all;
}

.exec-log {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--order-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
}

.exec-log-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.36fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 10px;
    border-radius: 13px;
    background: #fbfcf7;
}

.exec-log-k {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.exec-log-v {
    min-width: 0;
    color: var(--text-primary);
    font-weight: 850;
    word-break: break-word;
}

.transaction-link {
    font-family: Consolas, "Courier New", monospace;
}

.exec-log--txs {
    gap: 6px;
    padding: 8px;
    border-color: #cfe2cd;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 241, 0.72));
}

.tx-compact-row {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 6px 7px;
    border: 1px solid rgba(207, 226, 205, 0.75);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
}

.tx-compact-row .exec-log-k {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 2px;
    color: #8a7a3f;
    white-space: nowrap;
}

.tx-compact-row--out {
    border-color: rgba(105, 167, 216, 0.36);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 252, 0.76));
}

.tx-compact-value {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(110px, 1fr);
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.tx-main-pills {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.tx-amount-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 8px 5px 6px;
    color: var(--text-primary);
    border: 1px solid #cfe2cd;
    border-radius: 999px;
    background: #f3f8f1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.tx-amount-pill--out {
    border-color: rgba(105, 167, 216, 0.38);
    background: #f0f7fc;
}

.tx-coin-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    overflow: hidden;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(48, 65, 49, 0.12);
}

.tx-coin-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tx-amount {
    min-width: 0;
    overflow: hidden;
    font-size: 0.86rem;
    font-weight: 950;
    text-overflow: ellipsis;
}

.tx-coin {
    color: var(--accent-primary);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.03em;
}

.tx-confirmations {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid rgba(105, 167, 216, 0.28);
    border-radius: 999px;
    background: rgba(240, 247, 252, 0.9);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.transaction-link--compact {
    min-width: 0;
    overflow: hidden;
    padding: 4px 7px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--accent-primary);
    font-size: 0.76rem;
    font-weight: 850;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-link--compact:hover {
    text-decoration: underline;
}

.order-email-modal__content {
    width: min(380px, 100%);
}

.order-email-modal__icon-row {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.order-email-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--accent-primary);
    border-radius: 15px;
    background: #f3f8f1;
}

#orderEmailTitle {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    text-align: center;
}

.order-email-modal__text {
    margin: 0 0 20px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    text-align: center;
    line-height: 1.45;
}

.email-row--modal {
    display: grid;
    gap: 10px;
}

#orderEmailSendBtn,
#orderEmailDismissBtn {
    width: 100%;
}

.email-btn--ghost {
    color: var(--text-secondary);
    background: #fff;
}

.email-msg {
    min-height: 20px;
    margin-top: 14px;
    font-size: 0.9rem;
    text-align: center;
}

.email-msg.success { color: var(--accent-success); }

@media (max-width: 768px) {
    .main {
        padding-top: 10px;
    }

    .main > .container {
        width: min(100% - 18px, 1080px);
    }

    .swap-widget-box--order {
        width: 100%;
        max-width: 100%;
        margin: 8px auto 34px;
        padding: 10px;
        overflow: clip;
        border-radius: 24px;
    }

    .swap-widget-box--order::before {
        inset: 6px;
        border-radius: 19px;
    }

    #orderColsMain {
        gap: 10px;
    }

    .order-new-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .order-new-status {
        width: 100%;
        min-width: 0;
        justify-content: space-between;
    }

    .order-new-id {
        max-width: 100%;
    }

    .order-id-val,
    .status-badge {
        max-width: 100%;
    }

    .order-id-val {
        justify-content: space-between;
        width: fit-content;
        min-width: 0;
    }

    .order-id-val span,
    .status-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .status-badge {
        flex: 1 1 auto;
        width: auto;
        justify-content: flex-start;
        white-space: normal;
        line-height: 1.25;
    }

    .order-delete-btn {
        flex: 0 0 auto;
    }

    .order-cols-error {
        gap: 10px;
    }

    .order-cols-error .order-new-header {
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .order-cols-error .order-new-id {
        width: 100%;
        justify-content: space-between;
    }

    .order-cols-error .order-new-status {
        width: 100%;
    }

    .order-cols-error .status-badge {
        min-height: 44px;
        justify-content: center;
        text-align: center;
    }

    .order-cols-error .order-new-status-details {
        gap: 10px;
    }

    .order-status-error {
        padding: 14px 12px;
        border-radius: 16px;
        font-size: 0.96rem;
        line-height: 1.35;
    }

    .order-access-home-row {
        margin-top: 0;
    }

    .order-access-home-link {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        padding: 0 16px;
    }

    .lookup-card {
        gap: 14px;
        padding: 18px 12px;
        border-radius: 20px;
    }

    .lookup-form,
    .order-new-flow,
    .deposit-copy-group,
    .order-new-meta,
    .meta-item,
    .exec-log-row {
        grid-template-columns: 1fr;
    }

    .lookup-input,
    #orderEmailInput,
    .lookup-button,
    .deposit-copy-btn {
        min-height: 46px;
    }

    .flow-side,
    .order-new-deposit,
    .order-new-meta {
        border-radius: 18px;
    }

    .flow-side {
        min-height: auto;
        padding: 14px;
        gap: 8px;
    }

    .flow-amt,
    .order-token-amount {
        overflow-wrap: anywhere;
        font-size: clamp(1.08rem, 7vw, 1.55rem);
        line-height: 1.16;
    }

    .order-token-block {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .order-token-amount {
        min-width: 0;
        flex: 1 1 auto;
    }

    .order-token-label {
        flex: 0 0 auto;
        justify-content: flex-end;
        max-width: 42%;
    }

    .flow-arrow {
        justify-self: center;
        width: 44px;
        height: 44px;
        min-height: 44px;
        border-radius: 15px;
        transform: none;
    }

    .flow-arrow svg {
        transform: rotate(90deg);
    }

    .order-new-deposit {
        gap: 12px;
        padding: 12px;
    }

    .deposit-instruction {
        display: block;
        padding: 11px 12px;
        font-size: 0.92rem;
    }

    .deposit-instruction .order-time-inline {
        justify-content: space-between;
        width: 100%;
        margin-top: 9px;
        padding-top: 9px;
        border-top: 1px solid rgba(245, 189, 79, 0.24);
    }

    .deposit-copy-group {
        padding: 8px;
    }

    .deposit-code,
    .meta-val,
    .exec-log-v,
    .transaction-link {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .deposit-copy-btn,
    .order-delete-btn,
    .order-new-actions .btn-action {
        width: 100%;
    }

    .order-new-meta {
        gap: 8px;
        padding: 10px;
    }

    .meta-item {
        gap: 6px;
        padding: 10px;
    }

    .exec-log {
        padding: 10px;
        border-radius: 16px;
    }

    .exec-log-row {
        gap: 6px;
    }

    .exec-log--txs {
        gap: 8px;
        padding: 8px;
    }

    .tx-compact-row {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 6px;
        padding: 8px;
    }

    .tx-compact-row .exec-log-k {
        min-height: auto;
        padding: 0 2px;
    }

    .tx-compact-value {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        width: 100%;
    }

    .tx-main-pills {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }

    .tx-amount-pill {
        flex: 1 1 130px;
        width: auto;
        max-width: none;
        justify-content: flex-start;
        padding: 6px 9px 6px 7px;
        overflow: hidden;
    }

    .tx-confirmations {
        flex: 0 0 auto;
        padding: 6px 8px;
    }

    .tx-amount {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.92rem;
        line-height: 1.15;
    }

    .tx-coin {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .transaction-link--compact {
        display: block;
        width: 100%;
        padding: 6px 8px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.72);
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
    }

    .order-email-modal__content {
        width: min(100%, 380px);
        padding: 22px 16px;
    }
}

@media (max-width: 620px) {
    .order-guarantee__head,
    .order-guarantee__actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .order-guarantee__buttons {
        justify-content: flex-end;
        width: 100%;
    }

    .order-guarantee__help {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .main > .container {
        width: calc(100% - 12px);
    }

    .swap-widget-box--order {
        margin-top: 4px;
        padding: 8px;
        border-radius: 20px;
    }

    .order-new-header,
    .flow-side,
    .order-new-deposit,
    .order-new-meta,
    .lookup-card {
        border-radius: 16px;
    }

    .order-cols-error .order-new-header {
        padding: 10px;
    }

    .order-cols-error .order-new-id {
        padding: 6px 7px 6px 10px;
    }

    .order-cols-error .status-badge {
        min-height: 42px;
        padding: 8px 10px;
        font-size: 0.86rem;
    }

    .order-status-error {
        padding: 12px 10px;
        border-radius: 14px;
        font-size: 0.92rem;
    }

    .order-access-home-link {
        min-height: 46px;
        border-radius: 16px;
        font-size: 0.92rem;
    }

    .order-access-orderid,
    .order-id-val {
        min-height: 36px;
        padding: 6px 10px;
        font-size: 0.92rem;
    }

    .order-id-lbl,
    .flow-lbl,
    .meta-item label,
    .deposit-field label,
    .exec-log-k {
        font-size: 10px;
        letter-spacing: 0.09em;
    }

    .order-token-icon {
        width: 24px;
        height: 24px;
        border-radius: 8px;
    }

    .order-token-block {
        gap: 8px;
    }

    .order-token-label {
        max-width: 46%;
        gap: 5px;
    }

    .tx-compact-row {
        padding: 8px;
    }

    .tx-coin-icon {
        width: 18px;
        height: 18px;
    }

    .tx-amount {
        font-size: 0.84rem;
    }

    .tx-coin {
        font-size: 0.72rem;
    }

    .tx-confirmations {
        padding: 5px 7px;
        font-size: 0.68rem;
    }

    .deposit-code {
        padding: 4px 6px;
        font-size: 0.82rem;
    }
}
