:root {
    --order-primary: #6d28d9;
    --order-primary-dark: #4c1d95;
    --order-secondary: #2563eb;
    --order-success: #16a34a;
    --order-success-dark: #15803d;
    --order-warning: #d97706;
    --order-danger: #dc2626;
    --order-dark: #111827;
    --order-text: #334155;
    --order-muted: #64748b;
    --order-border: #e2e8f0;
    --order-soft: #f6f7fb;
    --order-white: #ffffff;
    --order-shadow: 0 22px 55px rgba(15, 23, 42, 0.085);
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--order-text);
    background: #f5f6fb;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body,
body * {
    box-sizing: border-box;
}

body [hidden] {
    display: none !important;
}

body button,
body input {
    font: inherit;
}

body button,
body a {
    -webkit-tap-highlight-color: transparent;
}

body button {
    cursor: pointer;
}

.order-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/*
|--------------------------------------------------------------------------
| Cargador
|--------------------------------------------------------------------------
*/

.order-page-loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--order-primary-dark);
    background:
        radial-gradient(circle at 85% 12%, rgba(109, 40, 217, 0.12), transparent 30%),
        #ffffff;
    gap: 18px;
}

.order-loader-icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    color: #fff;
    border-radius: 24px;
    background: linear-gradient(135deg, #6d28d9, #2563eb);
    box-shadow: 0 18px 40px rgba(109, 40, 217, 0.27);
    font-size: 31px;
    animation: order-loader-pulse 1.1s ease-in-out infinite;
}

.order-page-loader > span {
    font-size: 15px;
    font-weight: 800;
}

@keyframes order-loader-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.04);
    }
}

/*
|--------------------------------------------------------------------------
| Encabezado
|--------------------------------------------------------------------------
*/

.order-header {
    position: sticky;
    z-index: 100;
    top: 0;
    min-height: 76px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(18px);
}

.order-navbar {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.order-brand {
    display: inline-flex;
    max-width: 245px;
    min-height: 50px;
    align-items: center;
    color: var(--order-primary-dark);
    text-decoration: none;
}

.order-brand:hover {
    color: var(--order-primary);
    text-decoration: none;
}

.order-brand img {
    display: block;
    width: auto;
    max-width: 220px;
    height: auto;
    max-height: 56px;
    object-fit: contain;
}

.order-brand span {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.7px;
}

.order-store-link {
    display: inline-flex;
    min-height: 44px;
    padding: 0 17px;
    align-items: center;
    justify-content: center;
    color: var(--order-text);
    border: 1px solid var(--order-border);
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    gap: 8px;
    transition: 0.2s ease;
}

.order-store-link:hover {
    color: var(--order-primary);
    border-color: rgba(109, 40, 217, 0.33);
    box-shadow: 0 10px 24px rgba(109, 40, 217, 0.1);
    text-decoration: none;
    transform: translateY(-2px);
}

/*
|--------------------------------------------------------------------------
| Hero de estado
|--------------------------------------------------------------------------
*/

.order-main {
    min-height: calc(100vh - 160px);
}

.order-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 102px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(135deg, #35106f 0%, #6d28d9 48%, #2563eb 100%);
}

.order-hero.status-approved,
.order-hero.status-completed {
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.2), transparent 24%),
        linear-gradient(135deg, #065f46 0%, #16a34a 52%, #0891b2 100%);
}

.order-hero.status-rejected {
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(135deg, #7f1d1d 0%, #dc2626 52%, #ea580c 100%);
}

.order-hero.status-cancelled {
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.12), transparent 24%),
        linear-gradient(135deg, #1e293b 0%, #475569 55%, #64748b 100%);
}

.order-hero::before,
.order-hero::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.order-hero::before {
    width: 310px;
    height: 310px;
    right: -115px;
    bottom: -195px;
}

.order-hero::after {
    width: 170px;
    height: 170px;
    left: -80px;
    top: -105px;
}

.order-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 24px;
}

.order-status-icon {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 27px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-size: 39px;
}

.order-status-copy {
    min-width: 0;
}

.order-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.order-status-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 47px);
    font-weight: 900;
    letter-spacing: -1.4px;
    line-height: 1.05;
}

.order-status-copy p {
    max-width: 610px;
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
}

.order-number-box {
    display: flex;
    min-width: 245px;
    padding: 18px 20px;
    align-items: flex-start;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.order-number-box > span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.order-number-box > strong {
    margin-top: 4px;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

#copyOrderNumber {
    display: inline-flex;
    min-height: 34px;
    margin-top: 12px;
    padding: 0 11px;
    align-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.11);
    font-size: 11px;
    font-weight: 800;
    gap: 6px;
    transition: 0.2s ease;
}

#copyOrderNumber:hover,
#copyOrderNumber.is-copied {
    color: var(--order-primary-dark);
    border-color: #fff;
    background: #fff;
}

/*
|--------------------------------------------------------------------------
| Estructura del contenido
|--------------------------------------------------------------------------
*/

.order-content {
    position: relative;
    z-index: 5;
    margin-top: -58px;
    padding-bottom: 65px;
}

.order-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 365px;
    gap: 24px;
}

.order-main-column,
.order-side-column {
    display: grid;
    gap: 20px;
}

.order-side-column {
    position: sticky;
    top: 98px;
}

.order-card,
.order-message-card,
.order-security-card,
.order-help-card {
    border: 1px solid var(--order-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.065);
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        box-shadow 0.25s ease;
}

.order-card.is-visible,
.order-message-card.is-visible,
.order-security-card.is-visible,
.order-help-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.order-card:hover {
    box-shadow: var(--order-shadow);
}

.order-card-heading {
    display: flex;
    padding: 24px 26px 20px;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #edf0f5;
    gap: 16px;
}

.order-card-heading > div > span,
.side-card-heading > span {
    display: block;
    margin-bottom: 3px;
    color: var(--order-primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.order-card-heading h2,
.side-card-heading h2 {
    margin: 0;
    color: var(--order-dark);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.order-date,
.products-count {
    display: inline-flex;
    min-height: 30px;
    padding: 0 10px;
    flex: 0 0 auto;
    align-items: center;
    color: #475569;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 11px;
    font-weight: 800;
    gap: 6px;
}

/*
|--------------------------------------------------------------------------
| Línea de progreso
|--------------------------------------------------------------------------
*/

.order-timeline {
    display: flex;
    padding: 32px 28px 34px;
    align-items: flex-start;
}

.timeline-step {
    display: flex;
    width: 170px;
    flex: 0 0 170px;
    align-items: center;
    text-align: left;
    gap: 11px;
}

.timeline-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    color: #94a3b8;
    border: 2px solid #dbe2ea;
    border-radius: 14px;
    background: #f8fafc;
    font-size: 16px;
}

.timeline-step > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.timeline-step strong {
    color: #475569;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.timeline-step small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.25;
}

.timeline-step.is-active .timeline-icon {
    color: var(--order-primary);
    border-color: #c4b5fd;
    background: #f3e8ff;
    box-shadow: 0 0 0 5px rgba(109, 40, 217, 0.07);
}

.timeline-step.is-active strong {
    color: var(--order-primary-dark);
}

.timeline-step.is-complete .timeline-icon {
    color: #fff;
    border-color: var(--order-success);
    background: var(--order-success);
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.08);
}

.timeline-step.is-complete strong {
    color: var(--order-success-dark);
}

.timeline-step.is-error .timeline-icon {
    color: #fff;
    border-color: var(--order-danger);
    background: var(--order-danger);
    box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.08);
}

.timeline-step.is-error strong {
    color: var(--order-danger);
}

.timeline-line {
    height: 2px;
    margin: 21px 10px 0;
    flex: 1 1 auto;
    border-radius: 999px;
    background: #e2e8f0;
}

.timeline-line.is-complete {
    background: var(--order-success);
}

.timeline-line.is-error {
    background: var(--order-danger);
}

/*
|--------------------------------------------------------------------------
| Mensajes de estado
|--------------------------------------------------------------------------
*/

.order-message-card {
    display: flex;
    padding: 22px 24px;
    align-items: flex-start;
    gap: 16px;
}

.message-card-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 16px;
    font-size: 23px;
}

.order-message-card h2 {
    margin: 2px 0 5px;
    color: var(--order-dark);
    font-size: 18px;
    font-weight: 900;
}

.order-message-card p {
    margin: 0;
    color: var(--order-muted);
    font-size: 13px;
    line-height: 1.55;
}

.message-review {
    border-color: #ddd6fe;
    background: linear-gradient(135deg, #fff, #faf7ff);
}

.message-review .message-card-icon {
    color: var(--order-primary);
    background: #ede9fe;
}

.message-error {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff, #fff7f7);
}

.message-error .message-card-icon {
    color: var(--order-danger);
    background: #fee2e2;
}

/*
|--------------------------------------------------------------------------
| Descargas
|--------------------------------------------------------------------------
*/

.downloads-available-badge {
    display: inline-flex;
    min-height: 31px;
    padding: 0 11px;
    flex: 0 0 auto;
    align-items: center;
    color: #166534;
    border-radius: 999px;
    background: #dcfce7;
    font-size: 11px;
    font-weight: 900;
    gap: 6px;
}

.order-downloads {
    display: grid;
    padding: 22px 25px 26px;
    gap: 13px;
}

.download-product-card {
    display: grid;
    padding: 15px;
    align-items: center;
    border: 1px solid #dfe7e3;
    border-radius: 17px;
    background: linear-gradient(135deg, #fbfffc, #f7fcff);
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 13px;
    transition: 0.2s ease;
}

.download-product-card:hover {
    border-color: rgba(22, 163, 74, 0.34);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.08);
    transform: translateY(-2px);
}

.download-product-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--order-success);
    border-radius: 14px;
    background: #dcfce7;
    font-size: 21px;
}

.download-product-information {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.download-product-information strong {
    overflow: hidden;
    color: var(--order-dark);
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-product-information span {
    margin-top: 3px;
    color: var(--order-muted);
    font-size: 11px;
}

.download-product-button {
    display: inline-flex;
    min-width: 104px;
    min-height: 41px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #16a34a, #0891b2);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.17);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    gap: 7px;
    transition: 0.2s ease;
}

.download-product-button:hover {
    color: #fff;
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.25);
    text-decoration: none;
    transform: translateY(-2px);
}

.download-product-button.is-disabled,
.download-product-button:disabled {
    color: #94a3b8;
    background: #e2e8f0;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.download-product-button.is-loading {
    pointer-events: none;
}

.order-button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: order-spin 0.7s linear infinite;
}

@keyframes order-spin {
    to {
        transform: rotate(360deg);
    }
}

/*
|--------------------------------------------------------------------------
| Productos comprados
|--------------------------------------------------------------------------
*/

.order-products-list {
    display: grid;
    padding: 21px 25px 25px;
    gap: 11px;
}

.order-product-row {
    display: grid;
    padding: 13px;
    align-items: center;
    border: 1px solid #e7ebf1;
    border-radius: 16px;
    background: #fbfcfe;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 13px;
}

.order-product-visual {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: var(--order-primary);
    border-radius: 14px;
    background: #ede9fe;
    font-size: 22px;
}

.order-product-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.order-product-copy strong {
    overflow: hidden;
    color: var(--order-dark);
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-product-copy span {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
}

.order-product-price {
    color: var(--order-primary-dark);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Panel lateral
|--------------------------------------------------------------------------
*/

.order-summary-card,
.customer-card {
    padding: 23px;
}

.side-card-heading {
    padding-bottom: 17px;
    border-bottom: 1px solid #edf0f5;
}

.side-card-heading h2 {
    font-size: 19px;
}

.order-information-list {
    display: grid;
    margin-top: 18px;
    gap: 13px;
}

.order-information-list > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.order-information-list > div > span {
    color: var(--order-muted);
    font-size: 11px;
}

.order-information-list > div > strong {
    max-width: 58%;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
    overflow-wrap: anywhere;
}

.order-information-list .status-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-text.status-review {
    color: var(--order-primary-dark);
}

.status-text.status-approved,
.status-text.status-completed {
    color: var(--order-success-dark);
}

.status-text.status-rejected {
    color: var(--order-danger);
}

.status-text.status-cancelled {
    color: #475569;
}

.order-total-box {
    display: flex;
    margin-top: 20px;
    padding: 16px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd6fe;
    border-radius: 16px;
    background: linear-gradient(135deg, #faf7ff, #f7faff);
    gap: 12px;
}

.order-total-box span {
    color: var(--order-muted);
    font-size: 12px;
    font-weight: 700;
}

.order-total-box strong {
    color: var(--order-primary-dark);
    font-size: 23px;
    font-weight: 900;
    white-space: nowrap;
}

.customer-information {
    display: grid;
    margin-top: 18px;
    gap: 14px;
}

.customer-information > div {
    display: grid;
    align-items: center;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
}

.customer-information > div > i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--order-primary);
    border-radius: 12px;
    background: #f3e8ff;
    font-size: 16px;
}

.customer-information > div > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.customer-information small {
    color: #94a3b8;
    font-size: 10px;
}

.customer-information strong {
    overflow: hidden;
    color: var(--order-dark);
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Seguridad y ayuda
|--------------------------------------------------------------------------
*/

.order-security-card {
    display: flex;
    padding: 18px;
    align-items: flex-start;
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4, #f7fffc);
    gap: 12px;
}

.order-security-card > i {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    color: var(--order-success-dark);
    border-radius: 13px;
    background: #dcfce7;
    font-size: 19px;
}

.order-security-card strong {
    display: block;
    color: #166534;
    font-size: 13px;
    font-weight: 900;
}

.order-security-card p {
    margin: 3px 0 0;
    color: #4b7b5e;
    font-size: 11px;
    line-height: 1.45;
}

.order-help-card {
    padding: 18px;
}

.order-help-card > div:first-child {
    display: grid;
    align-items: center;
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 11px;
}

.order-help-card > div:first-child > i {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    color: var(--order-primary);
    border-radius: 13px;
    background: #ede9fe;
    font-size: 19px;
}

.order-help-card > div:first-child > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.order-help-card strong {
    color: var(--order-dark);
    font-size: 13px;
    font-weight: 900;
}

.order-help-card small {
    margin-top: 2px;
    color: var(--order-muted);
    font-size: 10px;
    line-height: 1.35;
}

.order-help-links {
    display: grid;
    margin-top: 13px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.order-help-links a {
    display: inline-flex;
    min-height: 38px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    color: var(--order-primary-dark);
    border-radius: 11px;
    background: #f3e8ff;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    gap: 6px;
    transition: 0.2s ease;
}

.order-help-links a:hover {
    color: #fff;
    background: var(--order-primary);
    text-decoration: none;
    transform: translateY(-2px);
}

/*
|--------------------------------------------------------------------------
| Pie de página
|--------------------------------------------------------------------------
*/

.order-footer {
    padding: 25px 0;
    color: #94a3b8;
    border-top: 1px solid var(--order-border);
    background: #fff;
    font-size: 12px;
}

.order-footer .order-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.order-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.order-footer i {
    color: var(--order-success);
}

/*
|--------------------------------------------------------------------------
| SweetAlert2
|--------------------------------------------------------------------------
*/

.order-alert {
    border-radius: 24px !important;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18) !important;
    font-family: "Source Sans 3", "Segoe UI", sans-serif !important;
}

.order-alert .swal2-title {
    color: var(--order-dark) !important;
    font-size: 24px !important;
    font-weight: 900 !important;
}

.order-alert .swal2-html-container,
.order-alert .swal2-content {
    color: var(--order-muted) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.order-alert-confirm {
    min-height: 45px;
    padding: 0 20px;
    color: #fff;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #6d28d9, #2563eb);
    box-shadow: 0 12px 25px rgba(109, 40, 217, 0.2);
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
}

.order-alert-confirm:hover {
    transform: translateY(-2px);
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1080px) {
    .order-layout {
        grid-template-columns: minmax(0, 1fr) 335px;
    }

    .order-hero-content {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .order-status-icon {
        width: 78px;
        height: 78px;
        border-radius: 23px;
        font-size: 34px;
    }

    .order-number-box {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        gap: 15px;
    }

    .order-number-box > strong {
        margin: 0 auto 0 8px;
    }

    #copyOrderNumber {
        margin-top: 0;
    }

    .timeline-step {
        width: 145px;
        flex-basis: 145px;
    }
}

@media (max-width: 900px) {
    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-side-column {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-summary-card,
    .customer-card {
        min-height: 100%;
    }

    .order-security-card,
    .order-help-card {
        min-height: 100%;
    }
}

@media (max-width: 700px) {
    .order-shell {
        width: min(1180px, calc(100% - 24px));
    }

    .order-header,
    .order-navbar {
        min-height: 66px;
    }

    .order-brand {
        max-width: 180px;
        min-height: 42px;
    }

    .order-brand img {
        max-width: 170px;
        max-height: 47px;
    }

    .order-brand span {
        font-size: 21px;
    }

    .order-store-link {
        width: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 12px;
    }

    .order-store-link span {
        display: none;
    }

    .order-hero {
        padding: 36px 0 91px;
    }

    .order-hero-content {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .order-status-icon {
        width: 67px;
        height: 67px;
        border-radius: 20px;
        font-size: 29px;
    }

    .order-status-copy h1 {
        font-size: 34px;
    }

    .order-status-copy p {
        font-size: 14px;
    }

    .order-number-box {
        display: grid;
        width: 100%;
        padding: 15px;
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
    }

    .order-number-box > span {
        grid-column: 1;
    }

    .order-number-box > strong {
        margin: 0;
        grid-column: 1;
    }

    #copyOrderNumber {
        margin: 0;
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .order-content {
        margin-top: -46px;
        padding-bottom: 43px;
    }

    .order-card,
    .order-message-card,
    .order-security-card,
    .order-help-card {
        border-radius: 20px;
    }

    .order-card-heading {
        padding: 20px;
    }

    .order-date,
    .products-count,
    .downloads-available-badge {
        align-self: flex-start;
    }

    .order-timeline {
        padding: 26px 22px;
        flex-direction: column;
    }

    .timeline-step {
        width: 100%;
        flex-basis: auto;
    }

    .timeline-line {
        width: 2px;
        height: 30px;
        margin: 7px 0 7px 20px;
        flex: 0 0 30px;
    }

    .order-downloads,
    .order-products-list {
        padding: 18px 20px 21px;
    }

    .order-side-column {
        grid-template-columns: 1fr;
    }

    .order-summary-card,
    .customer-card {
        padding: 20px;
    }

    .order-footer .order-shell {
        text-align: center;
        flex-direction: column;
        gap: 7px;
    }
}

@media (max-width: 510px) {
    .order-card-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .order-card-heading h2 {
        font-size: 18px;
    }

    .order-message-card {
        padding: 18px;
    }

    .message-card-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
        font-size: 19px;
    }

    .download-product-card {
        grid-template-columns: 43px minmax(0, 1fr);
    }

    .download-product-icon {
        width: 43px;
        height: 43px;
        border-radius: 13px;
        font-size: 18px;
    }

    .download-product-button {
        width: 100%;
        grid-column: 1 / -1;
    }

    .order-product-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .order-product-visual {
        width: 48px;
        height: 48px;
    }

    .order-product-price {
        grid-column: 2;
    }

    .order-number-box > strong {
        font-size: 15px;
    }

    #copyOrderNumber {
        min-height: 36px;
        padding: 0 9px;
        font-size: 10px;
    }

    .order-help-links {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .order-card,
    .order-message-card,
    .order-security-card,
    .order-help-card {
        opacity: 1;
        transform: none;
    }
}
