body.ptx-template-payment-shipping {
    background: var(--cf-background-section);
}

body.ptx-template-payment-shipping .site-main {
    padding-top: 0;
    background: var(--cf-background-section);
}

body.ptx-template-payment-shipping .cf-footer {
    margin-top: 0;
}

.ptx-payment-shipping-page {
    overflow: hidden;
    background: var(--cf-background-section);
    color: var(--cf-text-primary);
}

.ps-page-shell {
    width: 100%;
    max-width: var(--cf-container-max);
    margin-inline: auto;
    padding: var(--cf-space-xl) var(--cf-layout-page-inline) 0;
}

.ps-page-shell-inner {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.ps-page-header {
    margin-bottom: var(--cf-space-l);
}

.ps-page-header--payment {
    margin-bottom: var(--cf-space-l);
}

.ps-eyebrow {
    display: flex;
    align-items: center;
    gap: var(--cf-space-2xs);
    margin-bottom: var(--cf-space-2xs);
}

.ps-eyebrow-line {
    width: var(--cf-space-s);
    height: var(--cf-footer-rule-thickness);
    background: var(--cf-brand-primary);
}

.ps-eyebrow-text {
    color: var(--cf-brand-primary);
    font-size: var(--cf-text-xs);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: uppercase;
}

.ps-page-title {
    margin: 0 0 var(--cf-space-xs);
    color: var(--cf-text-primary);
    font-family: var(--cf-font-heading, "Playfair Display", serif);
    font-size: var(--cf-page-title-size);
    line-height: 1.2;
}

.ps-page-title--payment {
    margin-bottom: var(--cf-space-xs);
}

.ps-page-intro {
    max-width: 36rem;
    margin: 0;
    color: var(--cf-text-secondary);
    font-size: var(--cf-text-s);
    line-height: 1.7;
}

.ps-section {
    margin-bottom: var(--cf-space-l);
}

.ps-section:last-child {
    margin-bottom: 0;
}

.ps-section-header {
    display: flex;
    align-items: center;
    gap: var(--cf-space-xs);
    margin-bottom: var(--cf-space-m);
}

.ps-section-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: var(--cf-space-l);
    height: var(--cf-space-l);
    color: var(--cf-brand-primary);
}

.ps-section-icon svg {
    display: block;
    width: var(--cf-space-m);
    height: var(--cf-space-m);
}

.ps-section-heading {
    margin: 0;
    color: var(--cf-text-primary);
    font-family: var(--cf-font-heading, "Playfair Display", serif);
    font-size: var(--cf-page-item-title-size);
    line-height: 1.2;
}

.ps-country-block,
.ps-empty-state {
    margin: 0;
    padding: var(--cf-space-m);
    border: var(--cf-footer-border-width) solid var(--cf-neutral-border);
    border-radius: var(--cf-radius-s);
    background: var(--cf-background-page);
}

.ps-country-subheading,
.ps-empty-title {
    margin: 0 0 var(--cf-space-s);
    color: var(--cf-text-primary);
    font-family: var(--cf-font-heading, "Playfair Display", serif);
    font-size: var(--cf-text-l);
    font-weight: 700;
    line-height: 1.2;
}

.ps-empty-text {
    margin: 0;
    color: var(--cf-text-secondary);
    font-size: var(--cf-text-s);
    line-height: 1.6;
}

.ps-shipping-table-wrap {
    overflow-x: auto;
}

.ps-shipping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--cf-text-s);
}

.ps-shipping-table thead {
    background: var(--cf-background-section);
}

.ps-shipping-table th {
    padding: var(--cf-space-xs) var(--cf-space-s);
    border-bottom: var(--cf-footer-border-width) solid var(--cf-neutral-border);
    color: var(--cf-text-secondary);
    font-size: var(--cf-text-xs);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.ps-shipping-table th:first-child {
    border-radius: var(--cf-radius-xs) 0 0 0;
}

.ps-shipping-table th:last-child {
    border-radius: 0 var(--cf-radius-xs) 0 0;
}

.ps-shipping-table td {
    padding: var(--cf-space-s);
    border-bottom: var(--cf-footer-border-width) solid var(--cf-neutral-border);
    color: var(--cf-text-primary);
    line-height: 1.5;
    vertical-align: top;
}

.ps-shipping-table tbody tr:last-child td {
    border-bottom: 0;
}

.ps-shipping-method {
    display: inline-flex;
    align-items: center;
    gap: var(--cf-space-2xs);
    min-width: max-content;
}

.ps-shipping-method-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: var(--cf-space-m);
    min-width: var(--cf-space-m);
    height: var(--cf-space-m);
}

.ps-shipping-method-logo {
    display: block;
    max-width: 100%;
    max-height: var(--cf-space-m);
    object-fit: contain;
    transform: translateY(var(--ptx-payment-shipping-logo-offset-y, 0));
}

.ps-shipping-method-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--cf-space-m);
    height: var(--cf-space-m);
    padding: 0 var(--cf-space-2xs);
    border-radius: var(--cf-radius-xs);
    background: var(--cf-brand-subtle);
    color: var(--cf-brand-primary);
    font-size: var(--cf-text-xs);
    font-weight: 800;
    line-height: 1;
    transform: translateY(var(--ptx-payment-shipping-logo-offset-y, 0));
}

.ps-shipping-method-name {
    font-weight: 700;
    white-space: nowrap;
}

.ps-shipping-method-desc {
    color: var(--cf-text-secondary);
    font-size: var(--cf-text-xs);
    line-height: 1.5;
}

.ps-shipping-table-price,
.ps-shipping-table-price-free {
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.ps-shipping-table-price-free {
    color: var(--cf-brand-primary);
}

.ps-shipping-table-time,
.ps-shipping-table-cod {
    white-space: nowrap;
}

.ps-shipping-table-time,
.ps-shipping-table-detail {
    text-align: left;
}

.ps-shipping-table-detail {
    white-space: normal;
}

.ps-shipping-table-cod {
    font-weight: 600;
    text-align: left;
}

.ps-shipping-note {
    margin: var(--cf-footer-border-width) 0 var(--cf-space-l);
    color: var(--cf-text-secondary);
    font-size: var(--cf-text-xs);
    line-height: 1.4;
    text-align: right;
}

.ps-payment-section-wrap {
    width: 100%;
    margin-top: var(--cf-space-l);
    padding: var(--cf-space-l) 0 var(--cf-space-xl);
    border-top: var(--cf-footer-border-width) solid var(--cf-neutral-border);
    background: var(--cf-background-page);
}

.ptx-payment-shipping-page > .ps-payment-section-wrap:first-child {
    margin-top: 0;
    border-top: 0;
}

.ps-payment-section-wrap .ps-page-shell {
    padding-top: 0;
    padding-bottom: 0;
}

.ps-payment-section-wrap .ps-section {
    margin-bottom: 0;
}

.ps-payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--cf-space-s);
}

.ps-payment-method-card {
    padding: var(--cf-space-s);
    border: var(--cf-footer-border-width) solid var(--cf-neutral-border);
    border-radius: var(--cf-radius-xs);
    background: var(--cf-background-page);
}

.ps-payment-method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--cf-space-xs);
    margin-bottom: var(--cf-space-xs);
}

.ps-payment-method-name {
    margin: 0;
    color: var(--cf-text-primary);
    font-family: var(--cf-font-body, "Inter", sans-serif);
    font-size: var(--cf-text-s);
    font-weight: 700;
    line-height: 1.4;
}

.ps-payment-method-body {
    color: var(--cf-text-secondary);
    font-size: var(--cf-text-s);
    line-height: 1.6;
}

.ps-payment-method-body p {
    margin: 0;
}

.ps-payment-method-body p + p {
    margin-top: var(--cf-space-2xs);
}

.ps-payment-method-body ul {
    margin: var(--cf-space-2xs) 0 0;
    padding: 0;
    list-style: none;
}

.ps-payment-method-body li {
    position: relative;
    margin-top: var(--cf-space-2xs);
    padding-left: var(--cf-space-s);
}

.ps-payment-method-body li::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 0;
    width: var(--cf-space-2xs);
    height: var(--cf-space-2xs);
    border-radius: var(--cf-radius-full);
    background: var(--cf-brand-primary);
}

.ps-payment-method-body strong {
    color: var(--cf-text-primary);
    font-weight: 600;
}

.ps-bank-details {
    margin-top: var(--cf-space-xs);
    padding: var(--cf-space-xs) var(--cf-space-s);
    border-radius: var(--cf-radius-xs);
    background: var(--cf-background-section);
    color: var(--cf-text-primary);
    font-size: var(--cf-text-s);
    line-height: 1.6;
}

.ps-bank-details-row {
    display: flex;
    gap: var(--cf-space-xs);
    padding: var(--cf-space-2xs) 0;
}

.ps-bank-details-label {
    flex: 0 0 7rem;
    color: var(--cf-text-primary);
    font-weight: 600;
}

.ps-bank-details-value {
    min-width: 0;
    color: var(--cf-text-primary);
    word-break: break-word;
}

@media (max-width: 640px) {
    .ps-page-shell {
        padding-inline: var(--cf-layout-page-inline);
    }

    .ps-country-block,
    .ps-empty-state {
        padding: var(--cf-space-s);
    }

    .ps-shipping-table thead {
        display: none;
    }

    .ps-shipping-table tbody tr {
        display: block;
        padding: var(--cf-space-s);
        border-bottom: var(--cf-footer-border-width) solid var(--cf-neutral-border);
    }

    .ps-shipping-table tbody tr:last-child {
        border-bottom: 0;
    }

    .ps-shipping-table td {
        display: block;
        padding: var(--cf-space-2xs) 0;
        border-bottom: 0;
    }

    .ps-shipping-table td::before {
        content: attr(data-label);
        display: inline-block;
        min-width: 5rem;
        margin-right: var(--cf-space-xs);
        color: var(--cf-text-secondary);
        font-size: var(--cf-text-xs);
        font-weight: 600;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .ps-shipping-table td:first-child {
        padding-top: 0;
        color: var(--cf-text-primary);
        font-size: var(--cf-text-s);
        font-weight: 700;
    }

    .ps-shipping-table td:first-child::before {
        display: none;
    }

    .ps-shipping-method {
        min-width: 0;
    }

    .ps-shipping-method-desc {
        display: inline;
    }

    .ps-shipping-table-price,
    .ps-shipping-table-price-free,
    .ps-shipping-table-time,
    .ps-shipping-table-detail,
    .ps-shipping-table-cod {
        text-align: left;
    }

    .ps-bank-details-row {
        flex-direction: column;
        gap: 0;
    }

    .ps-bank-details-label {
        flex-basis: auto;
    }
}
