/* ============================================================================
   ePostcode Order Popup - self-contained
   Does NOT rely on PortalV2 / ProUI (those force ~13px admin type and wash out contrast)
   Use hard px sizes so iframe isolation is reliable
   ============================================================================ */

html.ep-ov-html,
html.ep-ov-html body.ep-order-popup-body {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ep-order-popup-body {
    background: #eef1f6 !important;
    color: #0f172a !important;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ep-order-popup-form {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ep-order-popup-shell {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ---------- Root ---------- */
.ep-order-view {
    --ep-pink: #EC2E5E;
    --ep-ink: #0f172a;
    --ep-ink-2: #1e293b;
    --ep-muted: #334155;
    --ep-soft: #64748b;
    --ep-line: #cbd5e1;
    --ep-line-soft: #e2e8f0;
    --ep-surface: #ffffff;
    --ep-canvas: #eef1f6;
    --ep-radius: 16px;
    color: var(--ep-ink) !important;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.ep-order-view *,
.ep-order-view *::before,
.ep-order-view *::after {
    box-sizing: border-box;
}

.ep-order-view--popup,
.ep-order-view--popup .ep-order-view__frame {
    height: 100% !important;
}

.ep-order-view__frame {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    background: var(--ep-canvas) !important;
}

.ep-order-view__feedback {
    flex: 0 0 auto;
    padding: 12px 20px 0;
}

/* ---------- Header (fixed) ---------- */
.ep-order-view__header {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 20px 24px 18px 28px !important;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%) !important;
    border-bottom: 1px solid var(--ep-line) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
    position: relative !important;
    z-index: 5 !important;
}

.ep-order-view__header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--ep-pink) 0%, #f472b6 100%);
}

.ep-order-view__kicker {
    margin: 0 0 6px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #475569 !important;
}

.ep-order-view__title-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 12px !important;
}

.ep-order-view__title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em !important;
    color: var(--ep-ink) !important;
}

.ep-order-view__meta {
    margin: 8px 0 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

.ep-order-view__meta-sep {
    margin: 0 8px !important;
    color: #94a3b8 !important;
}

.ep-order-view__header-actions {
    flex-shrink: 0 !important;
}

.ep-order-view__status {
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 999px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    border: 1px solid transparent !important;
    white-space: nowrap !important;
}

.ep-order-view__status--success {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border-color: #6ee7b7 !important;
}

.ep-order-view__status--danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}

.ep-order-view__status--neutral {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}

/* ---------- Scroll body ---------- */
.ep-order-view__scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 20px 24px 28px !important;
    background: var(--ep-canvas) !important;
}

/* ---------- Support ---------- */
.ep-order-view__support {
    display: flex !important;
    gap: 14px !important;
    align-items: flex-start !important;
    margin: 0 0 18px !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    background: #fff7ed !important;
    border: 1px solid #fdba74 !important;
    color: #9a3412 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

.ep-order-view__support-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffedd5 !important;
    color: #c2410c !important;
    flex-shrink: 0 !important;
    font-size: 16px !important;
}

.ep-order-view__support strong,
.ep-order-view__support-ref {
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* ---------- Tabs ---------- */
.ep-order-view__tabs {
    background: var(--ep-surface) !important;
    border: 1px solid var(--ep-line) !important;
    border-radius: var(--ep-radius) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden !important;
}

.ep-order-view__tablist {
    display: flex !important;
    gap: 4px !important;
    padding: 8px 10px 0 !important;
    background: #f8fafc !important;
    border-bottom: 1px solid var(--ep-line-soft) !important;
}

.ep-order-view__tab {
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 14px 18px 12px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #475569 !important;
    cursor: pointer !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 10px 10px 0 0 !important;
}

.ep-order-view__tab:hover {
    color: var(--ep-ink) !important;
    background: rgba(15, 23, 42, 0.03) !important;
}

.ep-order-view__tab.is-active {
    color: var(--ep-pink) !important;
    border-bottom-color: var(--ep-pink) !important;
    background: #ffffff !important;
}

.ep-order-view__tab:focus {
    outline: none !important;
}

.ep-order-view__tab:focus-visible {
    box-shadow: 0 0 0 3px rgba(236, 46, 94, 0.25) !important;
}

.ep-order-view__tabpanels {
    padding: 20px !important;
}

.ep-order-view__tabpanel[hidden] {
    display: none !important;
}

/* ---------- Sections ---------- */
.ep-order-view__section {
    margin: 0 0 22px !important;
}

.ep-order-view__section:last-child {
    margin-bottom: 0 !important;
}

.ep-order-view__section-title {
    margin: 0 0 12px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    color: var(--ep-ink) !important;
}

.ep-order-view__facts {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
}

.ep-order-view__fact {
    margin: 0 !important;
    background: #f8fafc !important;
    border: 1px solid var(--ep-line) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
}

.ep-order-view__fact--wide {
    grid-column: 1 / -1 !important;
}

.ep-order-view__fact dt {
    margin: 0 0 6px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #475569 !important;
}

.ep-order-view__fact dd {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--ep-ink) !important;
    line-height: 1.35 !important;
}

/* ---------- Tables / items ---------- */
.ep-order-view__panel {
    background: #ffffff !important;
    border: 1px solid var(--ep-line) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.ep-order-view__table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

.ep-order-view__table th,
.ep-order-view__table td {
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--ep-line-soft) !important;
    vertical-align: top !important;
    text-align: left !important;
    font-size: 15px !important;
    color: var(--ep-ink) !important;
}

.ep-order-view__table th {
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #475569 !important;
    background: #f1f5f9 !important;
}

.ep-order-view__table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.ep-order-view__table--history td {
    font-size: 15px !important;
    font-weight: 600 !important;
}

.ep-order-view__num {
    text-align: right !important;
    white-space: nowrap !important;
    width: 1% !important;
    font-variant-numeric: tabular-nums !important;
}

.ep-order-view__amount {
    font-weight: 800 !important;
    font-size: 16px !important;
}

.ep-order-view__item-name {
    font-weight: 800 !important;
    font-size: 16px !important;
    color: var(--ep-ink) !important;
    line-height: 1.35 !important;
}

.ep-order-view__item-sku {
    margin-top: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

.ep-order-view__licence {
    margin-top: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #334155 !important;
}

.ep-order-view__licence code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    word-break: break-all !important;
    color: #0f172a !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
}

.ep-order-view__totals {
    border-top: 1px solid var(--ep-line) !important;
    padding: 14px 16px 16px !important;
    background: #f8fafc !important;
}

.ep-order-view__total-row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 5px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.ep-order-view__total-row--grand {
    margin-top: 8px !important;
    padding-top: 12px !important;
    border-top: 1px dashed #94a3b8 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--ep-pink) !important;
}

.ep-order-view__total-row--vat {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

.ep-order-view__status-icon {
    margin-right: 10px !important;
    font-size: 16px !important;
}

.ep-order-view__status-icon--ok,
.ep-order-view__status-icon--current { color: #059669 !important; }
.ep-order-view__status-icon--alert,
.ep-order-view__status-icon--cancel { color: #dc2626 !important; }

.ep-order-view__notes {
    background: #f8fafc !important;
    border: 1px solid var(--ep-line) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.55 !important;
}

.ep-order-view__empty {
    padding: 32px 18px !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #475569 !important;
}

/* ---------- Buttons ---------- */
a.ep-order-view__btn,
.ep-order-view__btn,
button.ep-order-view__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 11px 18px !important;
    border-radius: 11px !important;
    font-family: Inter, "Segoe UI", system-ui, sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

a.ep-order-view__btn--ghost,
.ep-order-view__btn--ghost {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

a.ep-order-view__btn--ghost:hover,
.ep-order-view__btn--ghost:hover {
    background: #f8fafc !important;
    border-color: #64748b !important;
    color: #0f172a !important;
}

a.ep-order-view__btn--secondary,
.ep-order-view__btn--secondary {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

a.ep-order-view__btn--secondary:hover,
.ep-order-view__btn--secondary:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

a.ep-order-view__btn--primary,
.ep-order-view__btn--primary,
button.ep-order-view__btn--primary {
    background: var(--ep-pink) !important;
    color: #ffffff !important;
    border-color: var(--ep-pink) !important;
    box-shadow: 0 8px 18px rgba(236, 46, 94, 0.28) !important;
}

a.ep-order-view__btn--primary:hover,
.ep-order-view__btn--primary:hover {
    filter: brightness(0.97);
    color: #ffffff !important;
}

/* ---------- Invoice download card ---------- */
a.ep-order-view__invoice-card,
.ep-order-view__invoice-card {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 18px 18px 16px !important;
    text-align: left !important;
    text-decoration: none !important;
    color: inherit !important;
    background:
        linear-gradient(135deg, #ffffff 0%, #fff8fb 48%, #f8fafc 100%) !important;
    border: 1px solid #f9a8d4 !important;
    border-radius: 16px !important;
    box-shadow:
        0 14px 34px rgba(236, 46, 94, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
    cursor: pointer !important;
}

.ep-order-view__invoice-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #EC2E5E 0%, #fb7185 55%, #f59e0b 100%);
}

.ep-order-view__invoice-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -50px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 46, 94, 0.12) 0%, rgba(236, 46, 94, 0) 70%);
    pointer-events: none;
}

a.ep-order-view__invoice-card:hover,
.ep-order-view__invoice-card:hover {
    transform: translateY(-2px);
    border-color: #EC2E5E !important;
    box-shadow:
        0 18px 40px rgba(236, 46, 94, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.95) inset !important;
    text-decoration: none !important;
    color: inherit !important;
}

a.ep-order-view__invoice-card:focus,
.ep-order-view__invoice-card:focus {
    outline: none !important;
}

a.ep-order-view__invoice-card:focus-visible,
.ep-order-view__invoice-card:focus-visible {
    box-shadow:
        0 0 0 3px rgba(236, 46, 94, 0.28),
        0 18px 40px rgba(236, 46, 94, 0.16) !important;
}

.ep-order-view__invoice-icon {
    position: relative !important;
    flex: 0 0 auto !important;
    width: 72px !important;
    height: 84px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1 !important;
}

.ep-order-view__invoice-icon-badge {
    width: 64px !important;
    height: 76px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(160deg, #fff1f2 0%, #fecdd3 42%, #fb7185 100%) !important;
    border: 1px solid #fda4af !important;
    box-shadow:
        0 10px 20px rgba(244, 63, 94, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
    color: #9f1239 !important;
    font-size: 34px !important;
    line-height: 1 !important;
}

.ep-order-view__invoice-icon-badge .fa {
    display: block !important;
    margin-top: 4px !important;
}

.ep-order-view__invoice-file-tag {
    position: absolute !important;
    right: -2px !important;
    bottom: 4px !important;
    min-width: 38px !important;
    padding: 4px 7px !important;
    border-radius: 7px !important;
    background: linear-gradient(180deg, #b91c1c 0%, #991b1b 100%) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    text-align: center !important;
    box-shadow: 0 6px 12px rgba(153, 27, 27, 0.35) !important;
    border: 1px solid #7f1d1d !important;
}

.ep-order-view__invoice-copy {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    z-index: 1 !important;
}

.ep-order-view__invoice-title {
    display: block !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
}

.ep-order-view__invoice-sub {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    line-height: 1.4 !important;
}

.ep-order-view__invoice-meta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 0.01em !important;
}

.ep-order-view__invoice-meta .fa {
    color: #059669 !important;
}

.ep-order-view__invoice-action {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 11px 16px !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #EC2E5E 0%, #db2777 100%) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 18px rgba(236, 46, 94, 0.28) !important;
    border: 1px solid #be123c !important;
    z-index: 1 !important;
    white-space: nowrap !important;
}

.ep-order-view__invoice-card:hover .ep-order-view__invoice-action {
    filter: brightness(1.04);
}

.ep-order-view__invoice-action .fa {
    font-size: 15px !important;
}

@media (max-width: 640px) {
    a.ep-order-view__invoice-card,
    .ep-order-view__invoice-card {
        flex-wrap: wrap !important;
        padding: 16px !important;
    }

    .ep-order-view__invoice-action {
        width: 100% !important;
        justify-content: center !important;
    }

    .ep-order-view__invoice-title {
        font-size: 16px !important;
    }
}

/* ---------- Superuser status management ---------- */
.ep-order-view__admin {
    margin: 18px 0 4px !important;
}

.ep-order-view__admin-card {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #334155 100%) !important;
    border: 1px solid #334155 !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22) !important;
    overflow: hidden !important;
    color: #f8fafc !important;
}

.ep-order-view__admin-header {
    padding: 16px 18px 12px !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25) !important;
}

.ep-order-view__admin-kicker {
    margin: 0 0 4px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #fda4af !important;
}

.ep-order-view__admin-title {
    margin: 0 0 4px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.01em !important;
}

.ep-order-view__admin-desc {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #cbd5e1 !important;
    line-height: 1.4 !important;
}

.ep-order-view__admin-body {
    padding: 14px 18px 16px !important;
}

.ep-order-view__admin-label {
    display: block !important;
    margin: 0 0 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #e2e8f0 !important;
}

.ep-order-view__admin-row {
    display: flex !important;
    gap: 10px !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
}

.ep-order-view__admin-select,
select.ep-order-view__admin-select {
    flex: 1 1 220px !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid #64748b !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.ep-order-view__admin-row .ep-order-view__btn {
    flex: 0 0 auto !important;
}

.ep-order-view__admin-error {
    display: block !important;
    margin-top: 8px !important;
    color: #fecaca !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

@media (max-width: 640px) {
    .ep-order-view__admin-row .ep-order-view__btn {
        width: 100% !important;
    }
}

/* ---------- Footer (fixed) ---------- */
.ep-order-view__footer {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    padding: 14px 24px !important;
    background: #ffffff !important;
    border-top: 1px solid var(--ep-line) !important;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06) !important;
    z-index: 5 !important;
}

.ep-order-view__footer-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-left: auto !important;
}

/* ---------- Unavailable ---------- */
.ep-order-view__unavailable {
    margin: 28px !important;
    background: #ffffff !important;
    border: 1px solid var(--ep-line) !important;
    border-radius: 16px !important;
    padding: 40px 28px !important;
    text-align: center !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

.ep-order-view__unavailable h1 {
    margin: 0 0 10px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--ep-ink) !important;
}

.ep-order-view__unavailable p {
    margin: 0 0 18px !important;
    color: #475569 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.ep-order-view .muted,
.ep-order-view tr.muted td {
    color: #475569 !important;
}

.ep-order-view tr.muted td {
    font-weight: 500 !important;
}

@media (max-width: 640px) {
    .ep-order-view__header {
        flex-direction: column !important;
        padding: 16px !important;
    }

    .ep-order-view__header-actions,
    .ep-order-view__header-actions .ep-order-view__btn {
        width: 100% !important;
    }

    .ep-order-view__scroll {
        padding: 14px !important;
    }

    .ep-order-view__tabpanels {
        padding: 14px !important;
    }

    .ep-order-view__facts {
        grid-template-columns: 1fr !important;
    }

    .ep-order-view__footer {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        padding: 12px 14px !important;
    }

    .ep-order-view__footer-actions {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .ep-order-view__footer .ep-order-view__btn,
    .ep-order-view__footer-actions .ep-order-view__btn {
        width: 100% !important;
    }

    .ep-order-view__title {
        font-size: 24px !important;
    }
}
