/* ============================================================
   SOUNDIUM-STYLE CHECKOUT
   Two-tone split layout: white form (left) + light-grey order
   summary (right). Only checkout.css / checkout views are
   touched here; app.css & framework.css stay untouched.
   ============================================================ */

:root {
    --co-accent: #2b59ff;
    --co-accent-soft: rgba(43, 89, 255, 0.12);
    --co-ink: #1a1a1a;
    --co-text: #303030;
    --co-muted: #6b7177;
    --co-line: #dcdcdc;
    --co-line-soft: #e7e7e7;
    --co-field-border: #c4c8cd;
    --co-summary-bg: #f4f4f4;
    --co-field-bg: #ffffff;
    --co-radius: 8px;
    --co-col: 560px;
    --co-pay: #1a1a1a;
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
body {
    background: #fff !important;
    color: var(--co-text);
    position: relative;
}

#content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ------------------------------------------------------------
   Header — logo only, floated over the white (left) column so
   the grey summary panel can reach the very top on the right.
   ------------------------------------------------------------ */
#header {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    display: flex;
    align-items: center;
    padding: 26px 0 0;
    margin: 0;
    background: transparent;
    border: none;
    z-index: 5;
    pointer-events: none;
}
#header .logotype {
    margin-left: auto;
    width: 100%;
    max-width: var(--co-col);
    padding: 0 48px 0 24px;
    pointer-events: auto;
}
#header .logotype img {
    max-height: 34px;
    max-width: 180px;
    width: auto;
}
#header .middle,
#header .customer-service {
    display: none !important;
}

/* ------------------------------------------------------------
   Split layout
   ------------------------------------------------------------ */
#checkout-layout {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 100vh;
}

/* Left — form column (white), content hugged toward centre line */
#checkout-main {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 96px 0 80px;
}
#checkout-main > .wrapper {
    width: 100%;
    max-width: var(--co-col);
    padding: 0 48px 0 24px;
}
#checkout-main > .wrapper:empty {
    padding: 0;
}
/* Each section lives in its own wrapper, so the section's own margin can't
   separate the customer / shipping / payment blocks. Space the wrappers. */
#checkout-main > .customer.wrapper:not(:empty),
#checkout-main > .shipping.wrapper:not(:empty) {
    margin-bottom: 2.5rem;
}

/* Right — order summary column (grey). The column fills the full height
   (grey background), while its inner wrapper sticks while scrolling. */
#checkout-order-summary {
    background: var(--co-summary-bg);
    border-left: 1px solid var(--co-line);
}
.co-summary-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: var(--co-col);
    margin-right: auto;
    box-sizing: border-box;
    padding: 40px 24px 40px 48px;
}

/* ------------------------------------------------------------
   Section blocks & headings
   ------------------------------------------------------------ */
.checkout-section {
    margin-bottom: 2.25rem;
}
.checkout-section:last-child {
    margin-bottom: 0;
}

.checkout-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.co-head-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
/* No numbered badges in the reference design */
.co-step-num,
.checkout-step-heading .step-num {
    display: none !important;
}
.checkout-section-title {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--co-ink);
    letter-spacing: -0.01em;
}
.co-helper {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: var(--co-muted);
}
.checkout-fieldset-title {
    margin: 1.6rem 0 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--co-ink);
    letter-spacing: -0.01em;
}
.checkout-fieldset-title:first-child {
    margin-top: 0;
}

/* Sign in link */
.checkout-signin-row .signin-link,
.signin-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--co-accent);
    text-decoration: none;
    white-space: nowrap;
}
.signin-link:hover {
    text-decoration: underline;
}

/* Existing-account notice */
.checkout-account-alert {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    background: var(--co-accent-soft);
    border: 1px solid rgba(43, 89, 255, 0.25);
    color: #25324d;
    border-radius: var(--co-radius);
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.checkout-account-alert .fa {
    color: var(--co-accent);
}
.checkout-account-alert .alert-signin-link {
    font-weight: 600;
    color: var(--co-accent);
    text-decoration: none;
}
.checkout-account-alert .alert-signin-link:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   Form fields
   ------------------------------------------------------------ */
.form-group {
    margin-bottom: 0.75rem;
}
.checkout-section label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--co-muted);
    margin-bottom: 0.3rem;
}
.checkout-section .checkout-toggle-label,
.checkout-section .checkout-checkbox-label,
.co-consent {
    font-weight: 400;
    color: var(--co-text);
}

/* Neutralise the framework's icon input-group wrappers so email /
   phone / password render as clean single fields (no leading icon),
   matching the reference design. */
.checkout-section .input-group {
    display: block !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.checkout-section .input-group-text {
    display: none !important;
}

.checkout-section input[type="text"],
.checkout-section input[type="email"],
.checkout-section input[type="tel"],
.checkout-section input[type="number"],
.checkout-section input[type="password"],
.checkout-section select,
.checkout-section textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 0.95rem;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--co-ink);
    background: var(--co-field-bg);
    border: 1px solid var(--co-field-border) !important;
    border-radius: var(--co-radius) !important;
    box-shadow: none;
    transition:
        border-color 0.12s ease,
        box-shadow 0.12s ease;
    appearance: none;
    -webkit-appearance: none;
}
/* Framework gives input-group inputs pill corners (24px) — force the
   unified radius/border on the inner field too. */
.checkout-section .input-group .form-control {
    border: 1px solid var(--co-field-border) !important;
    border-radius: var(--co-radius) !important;
    background: var(--co-field-bg) !important;
}
.checkout-section textarea {
    min-height: 84px;
    resize: vertical;
}
.checkout-section input:focus,
.checkout-section select:focus,
.checkout-section textarea:focus {
    outline: none;
    border-color: var(--co-accent);
    box-shadow: 0 0 0 2px var(--co-accent);
}
.checkout-section input::placeholder,
.checkout-section textarea::placeholder {
    color: #9aa0a6;
}
.checkout-section select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236b7177' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    padding-right: 2.4rem;
    cursor: pointer;
}

/* ------------------------------------------------------------
   Floating labels (Shopify-style). The <label> sits inside the
   field as a placeholder and floats up on focus or when filled.
   A `placeholder=" "` is injected via JS so `:placeholder-shown`
   can detect the empty state.
   ------------------------------------------------------------ */
.checkout-section .form-group {
    position: relative;
}
.checkout-section .form-group > label {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    transform-origin: left top;
    margin: 0;
    max-width: calc(100% - 2.6rem);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: #6b7177;
    pointer-events: none;
    background: transparent;
    transition:
        top 0.12s ease,
        transform 0.12s ease,
        color 0.12s ease;
}
.checkout-section .form-group:focus-within > label,
.checkout-section .form-group:has(input:not(:placeholder-shown)) > label,
.checkout-section .form-group:has(textarea:not(:placeholder-shown)) > label,
.checkout-section .form-group:has(select) > label {
    top: 0.5rem;
    transform: translateY(0) scale(0.74);
    color: #6b7177;
}
.checkout-section .form-group input,
.checkout-section .form-group select,
.checkout-section .form-group textarea {
    min-height: 3.4rem;
    padding-top: 1.35rem;
    padding-bottom: 0.4rem;
}
.checkout-section .form-group textarea {
    min-height: 5rem;
}

/* Field rows */
.checkout-row,
.checkout-address-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.checkout-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.checkout-section fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Collapsible optional details */
.co-optional-details {
    margin: 0.25rem 0 0.75rem;
}
.co-optional-details > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--co-accent);
    padding: 0.25rem 0;
    user-select: none;
}
.co-optional-details > summary::-webkit-details-marker {
    display: none;
}
.co-optional-details > summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.8rem;
    line-height: 1;
}
.co-optional-details[open] > summary::before {
    content: "\2212";
}
.co-optional-details[open] > .form-group,
.co-optional-details[open] > .checkout-row,
.co-optional-details[open] > .co-summary-comments {
    margin-top: 0.5rem;
}

/* Checkboxes / toggles */
.checkout-toggle-label,
.checkout-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: var(--co-text);
    margin: 0.75rem 0;
    cursor: pointer;
}
.checkout-toggle-label input[type="checkbox"],
.checkout-checkbox-label input[type="checkbox"],
.co-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--co-accent);
    flex: 0 0 auto;
}

/* Autosave note + save button */
.checkout-autosave-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--co-muted);
    margin: 1rem 0 0.5rem;
}
.checkout-autosave-note .fa {
    color: #2e9e5b;
}
/* Autosave makes the explicit save button redundant; hide it to match
   the reference design (data is persisted on blur / step change). */
.checkout-save-btn {
    display: none !important;
}

/* ------------------------------------------------------------
   Shipping / Payment options
   ------------------------------------------------------------ */
.co-options {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--co-field-border);
    border-radius: var(--co-radius);
    overflow: hidden;
}
.co-option {
    position: relative;
    display: block;
    margin: 0 !important;
    padding: 0;
    cursor: pointer;
    background: #fff;
    border-top: 1px solid var(--co-line-soft);
}
.co-option:first-child {
    border-top: none;
}
.co-option:hover:not(.disabled):not(.active) {
    background: #fafbff;
}
.co-option.active {
    background: var(--co-accent-soft);
    box-shadow: inset 0 0 0 2px var(--co-accent);
    position: relative;
    z-index: 1;
}
/* Match the container's rounded corners when the active option sits at the
   top or bottom of the list; stay flush (square) against sibling options. */
.co-option.active:first-child {
    border-top-left-radius: var(--co-radius);
    border-top-right-radius: var(--co-radius);
}
.co-option.active:last-child {
    border-bottom-left-radius: var(--co-radius);
    border-bottom-right-radius: var(--co-radius);
}
/* The active highlight already provides a 2px accent border all around,
   so drop the divider that would otherwise double up against it. */
.co-option.active + .co-option {
    border-top: none;
}
.co-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.co-option-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
}
.co-option-img {
    max-height: 28px;
    max-width: 60px;
    width: auto;
    flex: 0 0 auto;
}
.co-option-text {
    flex: 1 1 auto;
    min-width: 0;
}
.co-option-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--co-ink);
}
.co-option-sep {
    color: var(--co-muted);
}
.co-option-name {
    color: var(--co-text);
}
.co-option-price {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--co-ink);
    white-space: nowrap;
}
.co-option-error {
    font-size: 0.82rem;
    color: #c0392b;
    margin-top: 0.2rem;
}

/* Radio / check indicators */
.co-option-radio {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1px solid var(--co-field-border);
    border-radius: 50%;
    position: relative;
}
.co-option.active .co-option-radio {
    border-color: var(--co-accent);
}
.co-option.active .co-option-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--co-accent);
}
.co-option-check {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 1px solid var(--co-field-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: transparent;
}
.co-option.active .co-option-check {
    background: var(--co-accent);
    border-color: var(--co-accent);
    color: #fff;
}

/* Shipping options have no check element in markup — give them a
   radio indicator so they read the same as the payment options. */
#box-checkout-shipping .co-option-inner::after {
    content: "";
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 1px solid var(--co-field-border);
    border-radius: 50%;
    box-sizing: border-box;
}
#box-checkout-shipping .co-option.active .co-option-inner::after {
    border-color: var(--co-accent);
    background: var(--co-accent);
    box-shadow: inset 0 0 0 3px #fff;
}

.co-option-content {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: var(--co-text);
}
.co-option-content .description {
    margin: 0 0 0.6rem;
    color: var(--co-muted);
}
.co-option-content select,
.co-option-content input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    border: 1px solid var(--co-field-border);
    border-radius: var(--co-radius);
    background: #fff;
    box-shadow: none;
}
.co-option:not(.active) .co-option-content {
    display: none;
}

/* ------------------------------------------------------------
   Order summary — cart
   ------------------------------------------------------------ */
.co-cart-head {
    margin-bottom: 1rem;
}
.co-cart-title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--co-muted);
}
.co-cart-subtitle {
    font-size: 0.82rem;
    color: var(--co-muted);
    margin-top: 0.2rem;
}

.co-cart-items {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}
.co-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--co-line-soft);
}
.co-cart-item:first-child {
    padding-top: 0;
}

.co-cart-item-img-wrap {
    position: relative;
    flex: 0 0 auto;
}
.co-cart-item-img-wrap img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid var(--co-line);
    border-radius: var(--co-radius);
    background: #fff;
}
.co-cart-item-qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4a4a4a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 999px;
}

.co-cart-item-info {
    flex: 1 1 auto;
    min-width: 0;
}
.co-cart-item-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--co-ink);
    line-height: 1.3;
}
.co-cart-item-options {
    font-size: 0.82rem;
    color: var(--co-muted);
    margin-top: 0.15rem;
}
.co-cart-item-edit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Quantity stepper */
.co-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--co-field-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.co-qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: #fff;
    color: var(--co-text);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.co-qty-btn:hover {
    background: #f0f0f0;
}
.co-cart-qty-input {
    width: 30px;
    height: 26px;
    border: none;
    border-left: 1px solid var(--co-line-soft);
    border-right: 1px solid var(--co-line-soft);
    text-align: center;
    font-size: 0.85rem;
    color: var(--co-ink);
    background: #fff;
    pointer-events: none;
}
.co-cart-qty-input::-webkit-inner-spin-button,
.co-cart-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.co-cart-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: var(--co-muted);
    cursor: pointer;
    border-radius: 6px;
}
.co-cart-btn:hover {
    color: #c0392b;
    background: #fff;
}

.co-cart-item-price {
    flex: 0 0 auto;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--co-ink);
    white-space: nowrap;
}

/* ------------------------------------------------------------
   Order summary — totals
   ------------------------------------------------------------ */
.co-summary-totals {
    border-top: 1px solid var(--co-line-soft);
    padding-top: 1rem;
    margin-bottom: 1rem;
}
.co-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--co-text);
    margin-bottom: 0.55rem;
}
.co-summary-row span:last-child {
    color: var(--co-ink);
    white-space: nowrap;
}
.co-summary-row.tax-note {
    font-size: 0.8rem;
    color: var(--co-muted);
    margin-top: -0.2rem;
}
.co-summary-row.tax-note span:last-child {
    color: var(--co-muted);
}
.co-summary-row.total {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--co-line-soft);
    font-size: 1.05rem;
}
.co-summary-row.total span:first-child {
    font-weight: 700;
    color: var(--co-ink);
    font-size: 1.25rem;
}
.co-summary-row.total span:last-child {
    font-weight: 700;
    color: var(--co-ink);
    font-size: 1.25rem;
}

.co-summary-error {
    background: #fdecea;
    border: 1px solid #f5c6c2;
    color: #b03a2e;
    border-radius: var(--co-radius);
    padding: 0.7rem 0.9rem;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

/* Comments */
.co-summary-comments-details {
    margin: 0.25rem 0 1rem;
}
.co-summary-comments label {
    display: block;
    font-size: 0.82rem;
    color: var(--co-muted);
    margin-bottom: 0.3rem;
}
.co-summary-comments textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    border: 1px solid var(--co-field-border);
    border-radius: var(--co-radius);
    background: #fff;
    box-shadow: none;
    resize: vertical;
}
.co-summary-comments textarea:focus {
    outline: none;
    border-color: var(--co-accent);
    box-shadow: 0 0 0 2px var(--co-accent);
}
.co-summary-comments .remaining {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.72rem;
    color: var(--co-muted);
}

/* Consent */
.co-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: var(--co-text);
    margin: 0.5rem 0 1rem;
}

/* Confirm button */
.co-confirm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    background: var(--co-pay);
    border: none;
    border-radius: var(--co-radius);
    cursor: pointer;
    transition:
        opacity 0.12s ease,
        transform 0.05s ease;
}
.co-confirm-btn:hover:not([disabled]) {
    opacity: 0.9;
}
.co-confirm-btn:active:not([disabled]) {
    transform: translateY(1px);
}
.co-confirm-btn[disabled],
.co-confirm-btn.disabled {
    opacity: 0.5;
    cursor: default;
}
.co-confirm-btn .fa {
    font-size: 0.9em;
}

/* Security note + assurance badges */
.co-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--co-muted);
    margin-top: 0.85rem;
    text-align: center;
}
.co-security-note .fa {
    color: #2e9e5b;
}
.co-assurance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--co-line-soft);
}
.co-assurance-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--co-muted);
    line-height: 1.25;
}
.co-assurance-grid .fa {
    font-size: 1.1rem;
}
.co-assurance-grid > div:nth-child(1) .fa {
    color: #2e9e5b;
}
.co-assurance-grid > div:nth-child(2) .fa {
    color: var(--co-accent);
}
.co-assurance-grid > div:nth-child(3) .fa {
    color: #e08a1e;
}
.co-assurance-grid > div:nth-child(4) .fa {
    color: #7b54d4;
}

/* ------------------------------------------------------------
   Loader
   ------------------------------------------------------------ */
.loader-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    z-index: 1000;
}

#content > .notices {
    grid-column: 1 / -1;
    margin: 0;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
    :root {
        --co-col: 480px;
    }
    #checkout-main > .wrapper {
        padding-left: 32px;
        padding-right: 32px;
    }
    .co-summary-sticky {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 900px) {
    #header {
        position: static;
        width: 100%;
        padding: 18px 0;
        border-bottom: 1px solid var(--co-line-soft);
        background: #fff;
    }
    #header .logotype {
        max-width: none;
        padding: 0 20px;
        margin: 0;
    }

    #checkout-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    #checkout-order-summary {
        order: -1;
        border-left: none;
        border-bottom: 1px solid var(--co-line);
    }
    .co-summary-sticky {
        position: static;
        max-width: 640px;
        margin: 0 auto;
        padding: 28px 20px;
    }
    #checkout-main {
        align-items: stretch;
        padding: 28px 0 56px;
    }
    #checkout-main > .wrapper {
        max-width: 640px;
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 560px) {
    .checkout-row,
    .checkout-address-row,
    .checkout-row-3 {
        grid-template-columns: 1fr;
    }
    .checkout-section-title,
    .checkout-fieldset-title {
        font-size: 1.2rem;
    }
    .co-assurance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}
