.pb-custom-publishing-checkout h2 {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.2;
}

.pb-custom-publishing-invoice-wrap {
    margin-bottom: 24px;
}

.pb-cps-invoice {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    background: #ffffff;
}

.pb-cps-invoice__header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.pb-cps-invoice__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pb-cps-invoice__subtitle {
    margin: 6px 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.pb-cps-invoice__meta {
    margin: 2px 0;
    font-size: 13px;
    color: #6b7280;
}

.pb-cps-invoice__amount {
    text-align: right;
    min-width: 180px;
}

.pb-cps-invoice__label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.pb-cps-invoice__value {
    font-size: 22px;
    font-weight: 700;
}

.pb-cps-invoice__section {
    margin-top: 16px;
}

.pb-cps-invoice__section h3 {
    margin: 0 0 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.pb-cps-invoice__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 14px;
}

.pb-cps-invoice__row span:last-child {
    text-align: right;
    font-weight: 600;
}

.pb-cps-invoice__table {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.pb-cps-invoice__table-row {
    display: grid;
    grid-template-columns: 1fr 80px 140px;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.pb-cps-invoice__table-row span:last-child {
    text-align: right;
    font-weight: 600;
}

.pb-cps-invoice__table-head {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.pb-cps-invoice__table-total {
    border-bottom: none;
    font-size: 15px;
    font-weight: 700;
}

.pb-cps-invoice__table-total span:last-child {
    font-size: 16px;
}

.pb-custom-publishing-generator {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}

.pb-custom-publishing-generator h3 {
    margin: 0 0 16px;
}

.pb-custom-publishing-generator label {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
}

.pb-custom-publishing-generator input {
    width: 100%;
    max-width: 520px;
}

.pb-cps-field {
    margin-bottom: 14px;
}

.pb-custom-publishing-link {
    margin: 12px 0 20px;
}

.pb-custom-publishing-link input {
    width: 100%;
}

.pb-cps-message {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: #ecfdf3;
    color: #0f5132;
    border: 1px solid #a7f3d0;
}

.pb-cps-message.pb-cps-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.pb-cps-readonly-input {
    background: #f3f4f6;
}

body.pb-cps-active.single-product .product form.cart,
body.pb-cps-active.single-product .product .summary,
body.pb-cps-active.single-product .product .woocommerce-tabs,
body.pb-cps-active.single-product .product {
    display: none;
}

body.pb-cps-active .woocommerce-breadcrumb {
    display: none;
}

body.pb-cps-active .wc-block-components-order-summary,
body.pb-cps-active .wc-block-components-order-summary__button,
body.pb-cps-active .wc-block-checkout__order-summary,
body.pb-cps-active .wc-block-components-order-summary__title,
body.pb-cps-active .wc-block-components-order-summary__content {
    display: none !important;
}

body.pb-cps-active .wc-block-checkout__title,
body.pb-cps-active .wc-block-checkout__heading,
body.pb-cps-active .wc-block-components-checkout-step__title,
body.pb-cps-active .wc-block-components-checkout-step__heading,
body.pb-cps-active .wc-block-components-checkout-section__title,
body.pb-cps-active .wc-block-components-checkout-section__title-text {
    display: none !important;
}

body.pb-cps-active .wc-block-checkout__contact-fields,
body.pb-cps-active .wc-block-checkout__billing-fields,
body.pb-cps-active .wc-block-checkout__shipping-fields,
body.pb-cps-active .wc-block-checkout__additional-fields,
body.pb-cps-active .wc-block-checkout__login-prompt,
body.pb-cps-active .wc-block-checkout__contact-information,
body.pb-cps-active .wc-block-checkout__customer,
body.pb-cps-active .wc-block-checkout__customer-fields,
body.pb-cps-active .wc-block-checkout__terms {
    display: none !important;
}

body.pb-cps-active .wc-block-components-payment-methods,
body.pb-cps-active .wc-block-components-radio-control,
body.pb-cps-active .wc-block-checkout__payment-method-options,
body.pb-cps-active .wc-block-components-checkout-payment-methods__title {
    display: none !important;
}

body.pb-cps-active .wc-block-components-checkout-payment-methods,
body.pb-cps-active .wc-block-components-checkout-payment-methods__content,
body.pb-cps-active .wc-block-checkout__actions {
    display: block !important;
}

body.pb-cps-active .wc-block-components-privacy-policy-text,
body.pb-cps-active .woocommerce-privacy-policy-text {
    display: none !important;
}


body.pb-cps-active .woocommerce-billing-fields,
body.pb-cps-active .woocommerce-account-fields,
body.pb-cps-active .woocommerce-shipping-fields,
body.pb-cps-active .woocommerce-additional-fields,
body.pb-cps-active .woocommerce-form-login,
body.pb-cps-active .woocommerce-form-coupon-toggle,
body.pb-cps-active .woocommerce-form-coupon {
    display: none !important;
}

body.pb-cps-active #customer_details {
    display: none !important;
}

body.pb-cps-active .woocommerce-checkout-payment .payment_box,
body.pb-cps-active .woocommerce-checkout-payment .payment_methods,
body.pb-cps-active .woocommerce-checkout-payment .wc_payment_methods {
    display: none !important;
}

body.pb-cps-active .woocommerce-checkout-payment {
    margin-top: 16px;
}

body.pb-cps-active .wc-block-components-checkout-place-order-button,
body.pb-cps-active #place_order,
body.pb-cps-active .place-order {
    width: 100%;
    max-width: 320px;
}

body.pb-cps-active.single-product .site-main > *:not(.pb-custom-publishing-checkout--product):not(.woocommerce-notices-wrapper) {
    display: none !important;
}

body.pb-cps-active #order_review_heading,
body.pb-cps-active #order_review .woocommerce-checkout-review-order-table,
body.pb-cps-active #order_review .shop_table,
body.pb-cps-active .woocommerce-checkout-review-order-table {
    display: none !important;
}

body.pb-cps-active .wc-block-checkout__order-summary-heading,
body.pb-cps-active .wc-block-checkout__order-summary-toggle,
body.pb-cps-active .wc-block-checkout__order-summary-toggle-button,
body.pb-cps-active .wc-block-checkout__order-summary-block,
body.pb-cps-active .wc-block-checkout__order-summary-cart-items,
body.pb-cps-active [data-block-name="woocommerce/checkout-order-summary-block"],
body.pb-cps-active [data-block-name="woocommerce/checkout-order-summary-cart-items-block"],
body.pb-cps-active [data-block-name="woocommerce/checkout-order-summary-totals-block"],
body.pb-cps-active [data-block-name="woocommerce/checkout-order-summary-subtotal-block"],
body.pb-cps-active [data-block-name="woocommerce/checkout-order-summary-shipping-block"],
body.pb-cps-active [data-block-name="woocommerce/checkout-order-summary-taxes-block"] {
    display: none !important;
}

body.pb-cps-active .wc-block-checkout__sidebar,
body.pb-cps-active .wc-block-checkout__order-summary,
body.pb-cps-active [class*="order-summary"] {
    display: none !important;
}

body.pb-cps-active .ast-mobile-order-review-wrap,
body.pb-cps-active #ast-order-review-toggle,
body.pb-cps-active #ast-order-review-content {
    display: none !important;
}

body.pb-cps-active .wc-block-components-checkout-order-summary__title,
body.pb-cps-active .wc-block-components-checkout-order-summary__content,
body.pb-cps-active .checkout-order-summary-block-fill-wrapper,
body.pb-cps-active .checkout-order-summary-block-fill,
body.pb-cps-active .wp-block-woocommerce-checkout-totals-block,
body.pb-cps-active .wp-block-woocommerce-checkout-order-summary-block,
body.pb-cps-active .wp-block-woocommerce-checkout-order-summary-cart-items-block,
body.pb-cps-active .wp-block-woocommerce-checkout-order-summary-subtotal-block,
body.pb-cps-active .wp-block-woocommerce-checkout-order-summary-fee-block,
body.pb-cps-active .wp-block-woocommerce-checkout-order-summary-discount-block,
body.pb-cps-active .wp-block-woocommerce-checkout-order-summary-shipping-block,
body.pb-cps-active .wp-block-woocommerce-checkout-order-summary-taxes-block,
body.pb-cps-active .wp-block-woocommerce-checkout-order-summary-coupon-form-block,
body.pb-cps-active .wp-block-woocommerce-checkout-order-summary-totals-block {
    display: none !important;
}

body.pb-cps-active .wp-block-woocommerce-checkout-actions-block,
body.pb-cps-active .wc-block-checkout__actions {
    display: block !important;
}

@media (max-width: 768px) {
    .pb-custom-publishing-checkout h2 {
        font-size: 22px;
    }

    .pb-cps-invoice__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pb-cps-invoice__amount {
        text-align: left;
    }

    .pb-cps-invoice__table-row {
        grid-template-columns: 1fr 50px 100px;
    }
}
