/* CheckoutIntentPay — review & pay layout (aligned with client order detail line UX) */

.ci-pay-page {
    width: 100%;
    min-height: 100%;
    background: linear-gradient(180deg, hsl(263, 28%, 97%) 0%, hsl(0, 0%, 98%) 42%, hsl(0, 0%, 98%) 100%);
    padding: 2rem 1rem 3rem;
    box-sizing: border-box;
}

.shop-page.ci-pay {
    --ci-pay-accent: #6a5d8b;
    --ci-pay-ink: #372a58;
    --ci-pay-muted: #64748b;
    --ci-pay-border: #e8e4f0;
    --ci-pay-surface: #faf9fc;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    font-family: "IBM Plex Sans Arabic", "Cairo", "Helvetica", sans-serif;
    box-sizing: border-box;
}

.shop-page.ci-pay *,
.shop-page.ci-pay *::before,
.shop-page.ci-pay *::after {
    box-sizing: border-box;
}

.shop-page.ci-pay .ci-pay__fieldset {
    margin: 0;
}

.shop-page.ci-pay .ci-pay__fieldset > .finance-platform-settings-card__body {
    margin-top: 0.75rem;
}

.shop-page.ci-pay .ci-pay__legend {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.shop-page.ci-pay fieldset.ci-pay__fieldset > legend.ci-pay__legend--page.eshop-checkout-fieldset__legend {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.shop-page.ci-pay .ci-pay__legend--page {
    font-size: 1.5rem;
    letter-spacing: -0.015em;
}

.shop-page.ci-pay .ci-pay__section-fieldset {
    margin: 0;
    padding: 0.85rem 1rem 1rem;
    background: var(--ci-pay-surface);
    box-shadow: none;
}

.shop-page.ci-pay .ci-pay__section-fieldset > legend.ci-pay__section-legend {
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.3;
}

.shop-page.ci-pay .ci-pay__section-fieldset > .finance-platform-settings-card__body {
    margin-top: 0.65rem;
    padding: 0;
}

.shop-page.ci-pay .ci-pay__section-body {
    padding: 0;
}

/* Two columns: products (wider) + summary sidebar */
.shop-page.ci-pay .ci-pay__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 21rem);
    gap: 1.5rem;
    align-items: start;
}

.shop-page.ci-pay .ci-pay__summary-col {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    position: sticky;
    top: 1rem;
}

.shop-page.ci-pay .ci-pay__panel {
    background: var(--ci-pay-surface);
    border: 1px solid #ebe8f2;
    border-radius: 0.75rem;
    box-shadow: none;
    overflow: hidden;
}

.shop-page.ci-pay .ci-pay__lines-section {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 1rem 0.35rem;
}

.shop-page.ci-pay .ci-pay__section-title {
    margin: 0;
    padding: 0.85rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ci-pay-ink);
    line-height: 1.3;
    border-bottom: 1px solid #f0edf5;
    background: linear-gradient(180deg, #fff 0%, #fcfbfe 100%);
}

.shop-page.ci-pay .ci-pay__lines-section .ci-pay__section-title {
    padding: 0;
    border: none;
    background: transparent;
}

.shop-page.ci-pay .ci-pay__lines {
    display: flex;
    flex-direction: column;
}

.shop-page.ci-pay .eshop-checkout-return-disclosure {
    padding: 0.7rem 0.85rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.78125rem;
    line-height: 1.55;
    color: #475569;
}

/* Buyer safety: pay only inside the platform */
.eshop-safe-pay-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    border: none;
    background: #eef4ff;
    color: #1e3a5f;
}

.eshop-safe-pay-notice__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.55rem;
    background: #dbe7ff;
    color: #3b82f6;
}

.eshop-safe-pay-notice__icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.eshop-safe-pay-notice__body {
    min-width: 0;
}

.eshop-safe-pay-notice__title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2563eb;
}

.eshop-safe-pay-notice__text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #475569;
    white-space: pre-line;
    text-wrap: balance;
}

.eshop-safe-pay-notice--compact {
    margin-top: 0.65rem;
    margin-bottom: 0.65rem;
    padding: 0.75rem 0.85rem;
}

.eshop-safe-pay-notice--compact .eshop-safe-pay-notice__title {
    font-size: 0.875rem;
}

.eshop-safe-pay-notice--compact .eshop-safe-pay-notice__text {
    font-size: 0.75rem;
}

.shop-page.ci-pay .ci-pay__aside .eshop-safe-pay-notice,
.shop-page.ci-pay .eshop-pdp-buy-panel .eshop-safe-pay-notice {
    margin-inline: 0;
}

.shop-page.ci-pay .eshop-checkout-return-disclosure.eshop-checkout-return-disclosure--inline {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: #6b7280;
}

/* Pay page — shop groups + product rows */
.shop-page.ci-pay .ci-pay__shop-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.shop-page.ci-pay .ci-pay__shop-group + .ci-pay__shop-group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ebe8f2;
}

.shop-page.ci-pay .ci-pay__shop-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.55rem;
    font-size: 0.75rem;
    line-height: 1.35;
}

.shop-page.ci-pay .ci-pay__shop-header-label {
    color: #6b7280;
    font-weight: 600;
}

.shop-page.ci-pay .ci-pay__shop-header-name {
    color: var(--ci-pay-accent);
    font-weight: 700;
    text-decoration: none;
}

.shop-page.ci-pay .ci-pay__shop-header-name:hover {
    text-decoration: underline;
}

.shop-page.ci-pay .ci-pay__shop-carrier {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.55rem 0 0;
    padding-top: 0.55rem;
    border-top: 1px solid #f3f1f7;
    font-size: 0.75rem;
    line-height: 1.35;
    min-width: 0;
}

.shop-page.ci-pay .ci-pay__shop-carrier--split {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
}

.shop-page.ci-pay .ci-pay__shop-carrier-label {
    flex: 0 0 auto;
    font-weight: 600;
    color: #6b7280;
}

.shop-page.ci-pay .ci-pay__shop-carrier-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
}

.shop-page.ci-pay .ci-pay__shop-carrier-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-width: 0;
}

.shop-page.ci-pay .ci-pay__shop-carrier-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    flex: 0 0 auto;
}

.shop-page.ci-pay .ci-pay__shop-carrier-price {
    font-weight: 700;
    color: var(--ci-pay-ink, #372a58);
    white-space: nowrap;
}

.shop-page.ci-pay .ci-pay__shop-carrier-eta {
    font-size: 0.68rem;
    font-weight: 500;
    color: #64748b;
}

.shop-page.ci-pay .ci-pay__shop-carrier-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
    color: var(--ci-pay-ink, #372a58);
}

.shop-page.ci-pay .ci-pay__shop-carrier-name .eshop-carrier-inline,
.shop-page.ci-pay .ci-pay__shop-carrier-item .eshop-carrier-inline {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    min-width: 0;
}

.shop-page.ci-pay .ci-pay__shop-carrier-name .eshop-carrier-inline__name,
.shop-page.ci-pay .ci-pay__shop-carrier-item .eshop-carrier-inline__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-page.ci-pay .ci-pay__shop-carrier-name .eshop-shipping-carrier-card__logo,
.shop-page.ci-pay .ci-pay__shop-carrier-item .eshop-shipping-carrier-card__logo {
    flex-shrink: 0;
}

.shop-page.ci-pay .ci-pay__shop-footer {
    margin-top: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e8edf3;
}

.shop-page.ci-pay .ci-pay__shop-footer .eshop-checkout-return-disclosure {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.75rem;
    line-height: 1.5;
}

.shop-page.ci-pay .fin-eshop-lines__row--pay {
    display: block;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f0edf5;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__row--record.fin-eshop-lines__row--pay {
    display: block;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.55rem 0;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__row--record.fin-eshop-lines__row--pay:hover {
    background: transparent;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__row--record.fin-eshop-lines__row--pay.is-shop-start:not(:first-child) {
    margin-top: 0;
    padding-top: 0.55rem;
    border-top: none;
}

.shop-page.ci-pay .fin-eshop-lines__row--pay:last-child {
    border-bottom: none;
}

.shop-page.ci-pay .fin-eshop-lines__row--pay.is-shop-start {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.shop-page.ci-pay .fin-eshop-lines__main--pay {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__row--record.fin-eshop-lines__row--pay .fin-eshop-lines__main--pay {
    align-items: flex-start;
}

.shop-page.ci-pay .fin-eshop-lines__core--pay {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.shop-page.ci-pay .fin-eshop-lines__carriers {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.28rem;
}

.shop-page.ci-pay .fin-eshop-lines__carrier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    min-width: 0;
}

.shop-page.ci-pay .fin-eshop-lines__carrier .eshop-carrier-inline {
    min-width: 0;
    flex: 1 1 auto;
}

.shop-page.ci-pay .fin-eshop-lines__carrier .eshop-carrier-inline__name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
}

.shop-page.ci-pay .fin-eshop-lines__carrier .eshop-shipping-carrier-card__logo {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.4rem;
}

.shop-page.ci-pay .fin-eshop-lines__carrier-price {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ci-pay-ink, #372a58);
    white-space: nowrap;
}

.shop-page.ci-pay .fin-eshop-lines__meta--pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    width: 100%;
}

.shop-page.ci-pay .fin-eshop-lines__qty-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.shop-page.ci-pay .fin-eshop-lines__qty-value {
    color: var(--ci-pay-ink);
    font-weight: 700;
}

.shop-page.ci-pay .fin-eshop-lines__price--pay {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 800;
    white-space: nowrap;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__actions {
    display: none;
}

.shop-page.ci-pay .eshop-checkout-return-disclosure__platform {
    font-weight: 700;
    color: var(--ci-pay-ink);
    margin: 0 0 0.35rem;
}

.shop-page.ci-pay .eshop-checkout-return-disclosure__hint {
    margin: 0 0 0.45rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #4b5563;
}

.shop-page.ci-pay .eshop-checkout-return-disclosure--inline .eshop-checkout-return-disclosure__platform {
    margin: 0 0 0.15rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.shop-page.ci-pay .eshop-checkout-return-disclosure__link-wrap {
    margin: 0;
}

.shop-page.ci-pay .eshop-checkout-return-disclosure__link {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--ci-pay-accent);
    font-weight: 600;
    text-decoration: underline;
    font-size: inherit;
    font-family: inherit;
}

.shop-page.ci-pay .eshop-checkout-return-disclosure__link:hover {
    color: var(--ci-pay-accent-hover, #574a7a);
}

.shop-page.ci-pay .ci-pay__platform-policy {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid #ebe8f2;
    width: 100%;
}

.shop-page.ci-pay .ci-pay__platform-policy .eshop-checkout-return-disclosure {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.shop-page.ci-pay .ci-pay__platform-policy .eshop-checkout-return-disclosure__link {
    display: inline-block;
    text-align: start;
    line-height: 1.55;
}

/* Product rows — mirror client order detail fin-eshop-lines */
.shop-page.ci-pay .fin-eshop-lines--checkout {
    width: 100%;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__list-card,
.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__items {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__row--record {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem 0.85rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0edf5;
    min-width: 0;
    width: 100%;
    transition: background-color 0.15s ease;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__row--record.is-shop-start:not(:first-child) {
    margin-top: 0.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid #ebe8f2;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__row--record:last-child {
    border-bottom: none;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__row--record:hover {
    background: #fcfbfe;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.25rem 0.35rem;
    max-width: 10.5rem;
    min-width: 6.5rem;
    text-align: end;
}

[dir="ltr"] .shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__actions {
    align-items: flex-start;
    text-align: start;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__seller {
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10rem;
    color: #6b7280;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__seller-link,
.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__seller-name {
    color: var(--ci-pay-accent);
    font-weight: 600;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__thumb {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #faf9fc;
    border: 1px solid #ebe8f2;
    text-decoration: none;
}

.shop-page.ci-pay a.fin-eshop-lines__thumb:hover {
    border-color: #d8d2e6;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__thumb--photo {
    padding: 0;
    background: #fff;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__thumb-letter {
    font-size: 1rem;
    font-weight: 700;
    color: #6b7280;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__core {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
    flex: 1 1 auto;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ci-pay-ink);
    line-height: 1.35;
    width: 100%;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__title-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.35rem 0.5rem;
    min-width: 0;
    width: 100%;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__title-text {
    flex: 1 1 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__title-link {
    color: var(--ci-pay-ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__title-link:hover {
    color: var(--ci-pay-accent);
    text-decoration: underline;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__qty-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: flex-start;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    background: #f3f1f7;
    color: var(--ci-pay-accent);
    border: 1px solid #ebe8f2;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__price {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ci-pay-ink);
    white-space: nowrap;
}

.shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__price .fin-currency-amount {
    font-weight: inherit;
    color: inherit;
}

/* Payment summary */
.shop-page.ci-pay .ci-pay__summary-body {
    padding: 0.85rem 1.1rem 1rem;
}

.shop-page.ci-pay .ci-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.84375rem;
    padding: 0.45rem 0;
}

.shop-page.ci-pay .ci-row__label {
    color: var(--ci-pay-muted);
}

.shop-page.ci-pay .ci-row__value {
    color: #334155;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: end;
    flex-shrink: 0;
}

.shop-page.ci-pay .ci-row__value--free {
    color: #15803d;
    font-weight: 700;
}

.shop-page.ci-pay .ci-row__value--stacked {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.shop-page.ci-pay .ci-row__meta {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    font-variant-numeric: normal;
}

.shop-page.ci-pay .ci-row--shipping {
    align-items: flex-start;
    gap: 1rem;
    padding: 0.55rem 0;
}

.shop-page.ci-pay .ci-row__lead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
    flex: 1 1 auto;
}

.shop-page.ci-pay .ci-row__detail {
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
}

.shop-page.ci-pay .ci-row__detail--muted {
    color: #94a3b8;
    font-weight: 500;
}

.shop-page.ci-pay .ci-row__detail--eta {
    margin-top: 0.05rem;
    color: var(--ci-pay-accent);
    font-weight: 600;
    font-size: 0.71875rem;
}

.shop-page.ci-pay .ci-row--sub {
    padding-top: 0;
    margin-top: -0.15rem;
    padding-bottom: 0.25rem;
    font-size: 0.75rem;
}

.shop-page.ci-pay .ci-row--sub .ci-row__label,
.shop-page.ci-pay .ci-row--sub .ci-row__value--muted {
    color: #94a3b8;
    font-weight: 500;
}

.shop-page.ci-pay .ci-row--total {
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #dce3ec;
}

.shop-page.ci-pay .ci-row--total .ci-row__label {
    color: var(--ci-pay-ink);
    font-weight: 700;
    font-size: 0.875rem;
}

.shop-page.ci-pay .ci-row--total .ci-row__value {
    color: var(--ci-pay-ink);
    font-weight: 800;
    font-size: 1.0625rem;
}

.shop-page.ci-pay .ci-breakdown__note {
    margin: 0.75rem 0 0;
    padding-top: 0.65rem;
    border-top: 1px solid #f0edf5;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.5;
}

.shop-page.ci-pay .ci-pay__btn {
    width: 100%;
    background: var(--ci-pay-accent);
    color: #fff;
    border: none;
    border-radius: 0.875rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
    box-shadow: 0 6px 18px rgba(106, 93, 139, 0.26);
    font-family: inherit;
}

.shop-page.ci-pay .ci-pay__btn:hover {
    background: #5b4f79;
}

.shop-page.ci-pay .ci-pay__btn:active {
    transform: translateY(1px);
}

.shop-page.ci-pay .ci-pay__btn:disabled {
    opacity: 0.65;
    cursor: default;
    box-shadow: none;
}

@media (max-width: 900px) {
    .shop-page.ci-pay .ci-pay__grid {
        grid-template-columns: 1fr;
    }

    .shop-page.ci-pay .ci-pay__summary-col {
        position: static;
        order: 2;
    }

    .shop-page.ci-pay .ci-pay__products-col {
        order: 1;
    }
}

@media (max-width: 640px) {
    .ci-pay-page {
        padding: 1.25rem 0.75rem 2.5rem;
    }

    .shop-page.ci-pay fieldset.ci-pay__fieldset > legend.ci-pay__legend--page.eshop-checkout-fieldset__legend,
    .shop-page.ci-pay .ci-pay__legend--page {
        font-size: 1.3125rem;
    }

    .shop-page.ci-pay {
        padding: 0;
    }

    .shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__row--record {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 0.65rem 0;
    }

    .shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__actions {
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        padding-top: 0.35rem;
        text-align: start;
    }

    .shop-page.ci-pay .fin-eshop-lines--checkout .fin-eshop-lines__thumb {
        width: 3rem;
        height: 3rem;
    }
}

/* Shop/Checkout — review step (delivery + recipient), aligned with cart ci-pay shell */
.shop-page.ci-checkout .eshop-checkout-page-intro {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ci-pay-muted);
}

.shop-page.ci-checkout .eshop-checkout-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid #ebe8f2;
    background: #fff;
}

.shop-page.ci-checkout .eshop-checkout-steps__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.shop-page.ci-checkout .eshop-checkout-steps__item.is-active .eshop-checkout-steps__label {
    color: var(--ci-pay-ink);
    font-weight: 700;
}

.shop-page.ci-checkout .eshop-checkout-steps__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 800;
    background: #ece8f2;
    color: #6b6580;
}

.shop-page.ci-checkout .eshop-checkout-steps__item.is-active .eshop-checkout-steps__dot {
    background: var(--ci-pay-accent);
    color: #fff;
}

.shop-page.ci-checkout .eshop-checkout-steps__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #8a849c;
}

.shop-page.ci-checkout .eshop-checkout-steps__line {
    flex: 1 1 auto;
    height: 2px;
    border-radius: 999px;
    background: #ece8f2;
    min-width: 1.5rem;
}

.shop-page.ci-checkout .eshop-checkout-validation-summary {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.8125rem;
}

.shop-page.ci-checkout .ci-pay__grid--checkout {
    align-items: start;
}

.shop-page.ci-checkout .eshop-checkout-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-page.ci-checkout .checkout-delivery-card--checkout {
    margin-bottom: 0;
}

.shop-page.ci-checkout .checkout-delivery-card--checkout .checkout-delivery-review__hint {
    margin-top: 0;
}


.shop-page.ci-checkout .checkout-delivery-review__actions {
    margin-top: 0.75rem;
}

.shop-page.ci-checkout .checkout-back-cart-link,
.shop-page.ci-checkout .eshop-checkout-secondary-link {
    display: block;
    margin-top: 0.65rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ci-pay-accent);
    text-decoration: none;
}

.shop-page.ci-checkout .checkout-back-cart-link:hover,
.shop-page.ci-checkout .eshop-checkout-secondary-link:hover {
    text-decoration: underline;
}

.shop-page.ci-checkout .ci-row--compact {
    padding-bottom: 0.35rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px dashed #ebe8f2;
}

.shop-page.ci-checkout .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Saved address quick-switch on checkout */
.shop-page.ci-checkout .checkout-saved-addresses {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--ci-pay-border);
}

.shop-page.ci-checkout .checkout-saved-addresses__title {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ci-pay-muted);
}

.shop-page.ci-checkout .checkout-saved-addresses__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shop-page.ci-checkout .checkout-saved-addresses__form {
    width: 100%;
}

.shop-page.ci-checkout .checkout-saved-addresses__btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--ci-pay-border);
    border-radius: 0.65rem;
    background: #fff;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.shop-page.ci-checkout .checkout-saved-addresses__btn:hover {
    border-color: color-mix(in srgb, var(--ci-pay-accent) 45%, var(--ci-pay-border));
    background: color-mix(in srgb, var(--ci-pay-accent) 4%, #fff);
}

.shop-page.ci-checkout .checkout-saved-addresses__btn-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ci-pay-ink);
}

.shop-page.ci-checkout .checkout-saved-addresses__btn-city {
    font-size: 0.75rem;
    color: var(--ci-pay-muted);
}

.shop-page.ci-checkout .checkout-saved-addresses__btn-action {
    margin-inline-start: auto;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--ci-pay-accent);
}

@media (max-width: 900px) {
    .shop-page.ci-checkout .ci-pay__grid--checkout {
        grid-template-columns: 1fr;
    }

    .shop-page.ci-checkout .ci-pay__summary-col {
        position: static;
    }
}

