/* Focused checkout shell — no marketing navigation */
.co-body {
    background: #f5f8fd;
}

.co-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 0;
    background: #f7f9fc;
}

.co-main {
    flex: 1 1 auto;
    padding: 1.4rem 0 3.25rem;
}

.co-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--co-line);
    box-shadow: 0 1px 0 rgba(11, 27, 51, 0.02);
    backdrop-filter: blur(10px);
}

.co-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    min-height: 72px;
}

.co-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    color: var(--co-ink);
    text-decoration: none;
}

.co-brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--co-blue), #0e9fbe);
    box-shadow: 0 8px 20px rgba(11, 63, 158, 0.22);
    color: #ffffff;
}

.co-brand-mark svg {
    width: 22px;
    height: 22px;
}

.co-brand-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.co-brand-name small {
    margin-top: 4px;
    color: var(--co-muted);
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.co-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.co-header-link {
    color: #40546f;
    text-decoration: none;
    transition: color 160ms ease;
}

.co-header-link:hover {
    color: var(--co-blue);
}

.co-secure {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.55rem;
    border: 1px solid #cfe8da;
    border-radius: 999px;
    background: #f2fbf6;
    color: #087a55;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.co-secure svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.co-trustbar {
    background: #f1f6fe;
    border-bottom: 1px solid #e1ebf8;
    color: #40546f;
    font-size: 0.76rem;
}

.co-trustbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    min-height: 38px;
    padding-block: 0.4rem;
}

.co-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.co-trust-item svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: #0e9fbe;
}

.co-trust-item strong {
    color: var(--co-blue);
    font-weight: 700;
}

.co-trust-item a {
    color: var(--co-blue);
    font-weight: 600;
    text-decoration: none;
}

.co-trust-item a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.co-footer {
    margin-top: auto;
    padding: 2.4rem 0 1.1rem;
    border-top: 1px solid var(--co-line);
    background: #ffffff;
}

.co-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: start;
    padding-bottom: 1.4rem;
}

.co-footer-brand {
    max-width: 400px;
}

.co-footer-logo {
    display: inline-block;
    color: var(--co-ink);
    font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.co-footer-brand p {
    margin: 0.6rem 0 0;
    color: var(--co-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.co-footer-brand address {
    margin-top: 0.7rem;
    color: var(--co-muted);
    font-size: 0.74rem;
    font-style: normal;
    line-height: 1.6;
}

.co-footer-brand address a {
    color: #40546f;
    text-decoration: none;
}

.co-footer-brand address a:hover {
    color: var(--co-blue);
}

.co-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 0.55rem 1rem;
    font-size: 0.78rem;
}

.co-footer-links a {
    color: #40546f;
    text-decoration: none;
}

.co-footer-links a:hover {
    color: var(--co-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.co-footer-secure {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.co-footer-secure small {
    color: var(--co-muted);
    font-size: 0.7rem;
    line-height: 1.5;
}

.co-footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--co-line);
    color: #8190a6;
    font-size: 0.7rem;
    line-height: 1.5;
}

.co-footer-bottom p {
    margin: 0;
}

.co-account-chip {
    max-width: 14rem;
    overflow: hidden;
    color: var(--co-muted);
    font-size: 0.72rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.co-account-chip strong {
    color: var(--co-ink);
    font-weight: 700;
}

.co-account-readonly {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--co-line);
    border-radius: 0.7rem;
    background: var(--co-soft);
}

.co-account-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--co-muted);
    font-size: 0.78rem;
}

.co-account-row strong {
    color: var(--co-ink);
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.co-account-readonly a {
    color: var(--co-blue);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.co-account-readonly a:hover {
    text-decoration: underline;
}

.co-cycles {
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

@media (max-width: 600px) {
    .co-cycles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .co-header-inner {
        min-height: 64px;
    }

    .co-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .co-footer-secure {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .co-account-chip {
        display: none;
    }

    .co-header-inner {
        flex-wrap: wrap;
        gap: 0.7rem;
        padding-block: 0.65rem;
    }

    .co-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .co-trustbar-inner {
        display: grid;
        gap: 0.3rem;
        padding-block: 0.55rem;
    }

    .co-footer {
        padding-top: 1.8rem;
    }

    .co-footer-main {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .co-footer-secure {
        grid-column: auto;
    }

    .co-footer-bottom {
        display: block;
    }

    .co-footer-bottom p + p {
        margin-top: 0.4rem;
    }
}

@media (max-width: 420px) {
    .co-header-actions {
        gap: 0.6rem;
        font-size: 0.74rem;
    }

    .co-header-actions .co-secure {
        display: none;
    }

    .co-brand-name {
        font-size: 1rem;
    }
}
