
/* PN Plugin shared frontend scaffold */
.pn-plugin-card { box-sizing: border-box; }
.pn-plugin-address, .pn-plugin-addresses, .pn-plugin-form, .pn-plugin-section { box-sizing: border-box; }
.pn-plugin-address-line { overflow-wrap: anywhere; }

/* Facturare PF/PJ România pentru WooCommerce - frontend */

.woocommerce form .form-row label abbr.required,
.woocommerce-page form .form-row label abbr.required,
.woocommerce form .form-row .required,
.woocommerce-page form .form-row .required {
    text-decoration: none !important;
    border-bottom: 0 !important;
    cursor: default !important;
}

.woocommerce form .pn-rbp-hidden-country,
.woocommerce-page form .pn-rbp-hidden-country,
.woocommerce form #billing_country_field.pn-rbp-hidden-country,
.woocommerce-page form #billing_country_field.pn-rbp-hidden-country,
.woocommerce form #shipping_country_field.pn-rbp-hidden-country,
.woocommerce-page form #shipping_country_field.pn-rbp-hidden-country {
    display: none !important;
}

.woocommerce form .pn-plugin-field.pn-rbp-billing-type-field,
.woocommerce-page form .pn-plugin-field.pn-rbp-billing-type-field {
    clear: both !important;
    margin: 0 0 22px !important;
}

.woocommerce form .pn-plugin-field.pn-rbp-billing-type-field .pn-plugin-field-label.pn-rbp-type-label,
.woocommerce-page form .pn-plugin-field.pn-rbp-billing-type-field .pn-plugin-field-label.pn-rbp-type-label {
    display: block !important;
    margin: 0 0 8px !important;
    font-weight: 500 !important;
}

.woocommerce form .pn-plugin-choice-group.pn-rbp-type-toggle,
.woocommerce-page form .pn-plugin-choice-group.pn-rbp-type-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    width: 100% !important;
    padding: 12px 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: #f7f5f0 !important;
    border: 1px dashed #e0dacb !important;
    border-radius: 0 !important;
}

.woocommerce form .pn-plugin-choice-group.pn-rbp-type-toggle label,
.woocommerce-page form .pn-plugin-choice-group.pn-rbp-type-toggle label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

.woocommerce form .pn-plugin-choice-group.pn-rbp-type-toggle input[type="radio"],
.woocommerce-page form .pn-plugin-choice-group.pn-rbp-type-toggle input[type="radio"] {
    margin: 0 !important;
    position: static !important;
}

.woocommerce form .pn-plugin-section.pn-rbp-company-panel,
.woocommerce-page form .pn-plugin-section.pn-rbp-company-panel {
    display: flow-root !important;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #faf9f6 !important;
    border-left: 3px solid #A67C52 !important;
    padding: 15px !important;
    margin: 10px 0 20px !important;
}

.woocommerce form .pn-plugin-section.pn-rbp-company-panel h3,
.woocommerce-page form .pn-plugin-section.pn-rbp-company-panel h3 {
    margin: 0 0 15px !important;
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    color: #555 !important;
}

body.pn-rbp-type-pf .pn-plugin-section.pn-rbp-company-panel,
body.pn-rbp-type-pf .pn-plugin-field.pn-rbp-company-field,
body.pn-rbp-type-pf #shipping_company_field.pn-rbp-shipping-company-field {
    display: none !important;
}


.woocommerce form .pn-plugin-section.pn-rbp-company-panel .form-row,
.woocommerce-page form .pn-plugin-section.pn-rbp-company-panel .form-row {
    margin-bottom: 15px !important;
}

.woocommerce form .form-row.pn-rbp-company-pair-start,
.woocommerce form .form-row.pn-rbp-company-pair-end,
.woocommerce-page form .form-row.pn-rbp-company-pair-start,
.woocommerce-page form .form-row.pn-rbp-company-pair-end {
    width: 48% !important;
    box-sizing: border-box !important;
}

.woocommerce form .form-row.pn-rbp-company-pair-start,
.woocommerce-page form .form-row.pn-rbp-company-pair-start {
    float: left !important;
    clear: both !important;
}

.woocommerce form .form-row.pn-rbp-company-pair-end,
.woocommerce-page form .form-row.pn-rbp-company-pair-end {
    float: right !important;
    clear: none !important;
}

.woocommerce form .form-row.pn-rbp-company-pair-end::after,
.woocommerce-page form .form-row.pn-rbp-company-pair-end::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce form .pn-plugin-field.pn-rbp-company-field input,
.woocommerce-page form .pn-plugin-field.pn-rbp-company-field input {
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce form #ship-to-different-address,
.woocommerce-page form #ship-to-different-address {
    margin: 22px 0 14px !important;
}

.woocommerce form #ship-to-different-address label,
.woocommerce-page form #ship-to-different-address label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    cursor: pointer !important;
}

.woocommerce form .shipping_address,
.woocommerce-page form .shipping_address {
    background: #faf9f6 !important;
    border-left: 3px solid #A67C52 !important;
    padding: 15px !important;
    margin: 10px 0 20px !important;
    box-sizing: border-box !important;
}

.woocommerce form .shipping_address::before,
.woocommerce-page form .shipping_address::before {
    content: attr(data-pn-rbp-title);
    display: block;
    margin: 0 0 15px !important;
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    color: #555 !important;
}

.woocommerce form .form-row .optional,
.woocommerce-page form .form-row .optional {
    font-weight: 400 !important;
}

@media (max-width: 767px) {
    .woocommerce form .pn-plugin-choice-group.pn-rbp-type-toggle,
    .woocommerce-page form .pn-plugin-choice-group.pn-rbp-type-toggle {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .woocommerce form .form-row.pn-rbp-company-pair-start,
    .woocommerce form .form-row.pn-rbp-company-pair-end,
    .woocommerce-page form .form-row.pn-rbp-company-pair-start,
    .woocommerce-page form .form-row.pn-rbp-company-pair-end {
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }
}

/* v1.1.7 - final RO checkout layout adjustments */
.woocommerce form #billing_type_field .optional,
.woocommerce-page form #billing_type_field .optional,
.woocommerce form #billing_type_field > .required + .optional,
.woocommerce-page form #billing_type_field > .required + .optional {
    display: none !important;
}

.woocommerce form .pn-plugin-choice-group.pn-rbp-type-toggle label .required,
.woocommerce-page form .pn-plugin-choice-group.pn-rbp-type-toggle label .required,
.woocommerce form .pn-plugin-choice-group.pn-rbp-type-toggle label .optional,
.woocommerce-page form .pn-plugin-choice-group.pn-rbp-type-toggle label .optional {
    display: none !important;
}

/* Make WooCommerce/Olars ship-to-different checkbox read as: □ text */
.woocommerce form #ship-to-different-address,
.woocommerce-page form #ship-to-different-address {
    display: block !important;
    text-align: left !important;
    margin: 22px 0 14px !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.woocommerce form #ship-to-different-address label,
.woocommerce-page form #ship-to-different-address label,
.woocommerce form #ship-to-different-address label.checkbox,
.woocommerce-page form #ship-to-different-address label.checkbox,
.woocommerce form #ship-to-different-address .woocommerce-form__label,
.woocommerce-page form #ship-to-different-address .woocommerce-form__label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    text-align: left !important;
    cursor: pointer !important;
}

.woocommerce form #ship-to-different-address input[type="checkbox"],
.woocommerce-page form #ship-to-different-address input[type="checkbox"],
.woocommerce form #ship-to-different-address #ship-to-different-address-checkbox,
.woocommerce-page form #ship-to-different-address #ship-to-different-address-checkbox {
    order: 0 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    float: none !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin: 0 !important;
    transform: none !important;
}

.woocommerce form #ship-to-different-address span,
.woocommerce-page form #ship-to-different-address span {
    order: 1 !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

/* Postcode is intentionally removed by PHP; keep hidden if a theme/plugin re-adds it. */
.woocommerce form #billing_postcode_field,
.woocommerce-page form #billing_postcode_field,
.woocommerce form #shipping_postcode_field,
.woocommerce-page form #shipping_postcode_field {
    display: none !important;
}

.woocommerce form #shipping_company_field .description,
.woocommerce-page form #shipping_company_field .description {
    display: none !important;
}


/* v1.1.7 - refinements requested for Olars/WooCommerce checkout */
.woocommerce form .pn-plugin-section.pn-rbp-company-panel,
.woocommerce-page form .pn-plugin-section.pn-rbp-company-panel {
    display: flow-root !important;
    overflow: visible !important;
}

.woocommerce form .pn-plugin-section.pn-rbp-company-panel::after,
.woocommerce-page form .pn-plugin-section.pn-rbp-company-panel::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce form .pn-plugin-section.pn-rbp-company-panel h3,
.woocommerce-page form .pn-plugin-section.pn-rbp-company-panel h3 {
    margin: 0 0 15px !important;
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    color: #555 !important;
}

.woocommerce form .shipping_address::before,
.woocommerce-page form .shipping_address::before {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
}

.woocommerce form #ship-to-different-address,
.woocommerce-page form #ship-to-different-address,
.woocommerce form #ship-to-different-address h3,
.woocommerce-page form #ship-to-different-address h3,
.woocommerce form #ship-to-different-address .gamma,
.woocommerce-page form #ship-to-different-address .gamma,
.woocommerce form #ship-to-different-address label,
.woocommerce-page form #ship-to-different-address label,
.woocommerce form #ship-to-different-address span,
.woocommerce-page form #ship-to-different-address span {
    font-size: 1rem !important;
    line-height: 1.4 !important;
}

.woocommerce form #ship-to-different-address h3,
.woocommerce-page form #ship-to-different-address h3 {
    margin: 0 !important;
}

.woocommerce form .pn-plugin-field.pn-rbp-address-2-field label,
.woocommerce-page form .pn-plugin-field.pn-rbp-address-2-field label,
.woocommerce form .pn-plugin-field.pn-rbp-address-2-field label.screen-reader-text,
.woocommerce-page form .pn-plugin-field.pn-rbp-address-2-field label.screen-reader-text,
.woocommerce form .pn-plugin-visible-label.pn-rbp-visible-label,
.woocommerce-page form .pn-plugin-visible-label.pn-rbp-visible-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    display: block !important;
}


/* v1.1.8 - final checkout typography and PF/PJ visibility fixes */
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout #order_review_heading {
    font-size: 22px !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
}

.woocommerce-checkout form .form-row label,
.woocommerce-checkout form .pn-plugin-field-label.pn-rbp-type-label,
.woocommerce-checkout form .pn-plugin-choice-group.pn-rbp-type-toggle label,
.woocommerce-checkout #payment .payment_methods li > label,
.woocommerce-checkout ul#shipping_method li label {
    font-weight: 500 !important;
}

/* Hide company panel by default and show it only when PJ is selected. */
body.pn-rbp-active:not(.pn-rbp-type-pj) .pn-plugin-section.pn-rbp-company-panel,
body.pn-rbp-type-pf .pn-plugin-section.pn-rbp-company-panel,
body.pn-rbp-type-pf .pn-plugin-field.pn-rbp-company-field,
body.pn-rbp-type-pf #shipping_company_field.pn-rbp-shipping-company-field {
    display: none !important;
}

body.pn-rbp-type-pj .pn-plugin-section.pn-rbp-company-panel {
    display: flow-root !important;
}

.woocommerce form #ship-to-different-address,
.woocommerce-page form #ship-to-different-address,
.woocommerce form #ship-to-different-address h3,
.woocommerce-page form #ship-to-different-address h3,
.woocommerce form #ship-to-different-address .gamma,
.woocommerce-page form #ship-to-different-address .gamma,
.woocommerce form #ship-to-different-address label,
.woocommerce-page form #ship-to-different-address label,
.woocommerce form #ship-to-different-address span,
.woocommerce-page form #ship-to-different-address span {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}


/* v1.1.10 - targeted typography only. No global font-weight override. */

/* v1.2.2 - tablet/phone company fields should not be compressed. */
@media (max-width: 1024px) {
    .woocommerce form .form-row.pn-rbp-company-pair-start,
    .woocommerce form .form-row.pn-rbp-company-pair-end,
    .woocommerce-page form .form-row.pn-rbp-company-pair-start,
    .woocommerce-page form .form-row.pn-rbp-company-pair-end {
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }
}

/* v1.2.17 - delivery-first UI over Woo billing fields, with Woo/SmartBill-safe mapping. */
.woocommerce-checkout .woocommerce-billing-fields > h3 {
    text-transform: uppercase !important;
}

.woocommerce form .pn-rbp-invoice-section-heading,
.woocommerce-page form .pn-rbp-invoice-section-heading {
    clear: both !important;
    padding-top: 22px !important;
    margin-top: 22px !important;
    border-top: 1px solid #e6ddd2 !important;
}

.woocommerce form .pn-rbp-invoice-section-heading h3,
.woocommerce-page form .pn-rbp-invoice-section-heading h3 {
    margin: 0 0 14px !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
}

.woocommerce form #pn_rbp_invoice_same_field,
.woocommerce-page form #pn_rbp_invoice_same_field {
    clear: both !important;
    margin: 0 0 18px !important;
    box-sizing: border-box !important;
}

.woocommerce form #pn_rbp_invoice_same_field label,
.woocommerce-page form #pn_rbp_invoice_same_field label {
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-weight: 500 !important;
}

.woocommerce form #pn_rbp_invoice_same,
.woocommerce-page form #pn_rbp_invoice_same {
    position: static !important;
    float: none !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin: 0 !important;
}

.woocommerce form .pn-rbp-invoice-field,
.woocommerce-page form .pn-rbp-invoice-field {
    clear: none;
}

.woocommerce form .pn-plugin-field.pn-rbp-invoice-address-field,
.woocommerce-page form .pn-plugin-field.pn-rbp-invoice-address-field {
    margin-bottom: 15px !important;
}

.woocommerce form #ship-to-different-address,
.woocommerce-page form #ship-to-different-address,
.woocommerce form .shipping_address,
.woocommerce-page form .shipping_address {
    display: none !important;
}

.woocommerce form #order_comments_field,
.woocommerce-page form #order_comments_field {
    clear: both !important;
    margin-top: 0 !important;
}

.woocommerce form #billing_type_field,
.woocommerce-page form #billing_type_field {
    clear: both !important;
}

/* v1.2.18 - checkout polish requested after v1.2.17. */
.woocommerce-checkout.pn-rbp-active .woocommerce-billing-fields > h3,
.pn-rbp-active.woocommerce-checkout .woocommerce-billing-fields > h3 {
    text-transform: uppercase !important;
}

.woocommerce form .pn-rbp-invoice-section-heading,
.woocommerce-page form .pn-rbp-invoice-section-heading {
    clear: both !important;
    padding-top: 0 !important;
    margin-top: 18px !important;
    border-top: 0 !important;
}

.woocommerce form .pn-rbp-invoice-section-heading h3,
.woocommerce-page form .pn-rbp-invoice-section-heading h3 {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    text-transform: uppercase !important;
}

.woocommerce form .pn-plugin-section.pn-rbp-company-panel,
.woocommerce-page form .pn-plugin-section.pn-rbp-company-panel {
    background: transparent !important;
    border-left: 0 !important;
    padding: 0 !important;
    margin: 20px 0 18px !important;
}

.woocommerce form .pn-plugin-section.pn-rbp-company-panel .form-row,
.woocommerce-page form .pn-plugin-section.pn-rbp-company-panel .form-row {
    margin-bottom: 15px !important;
}

.woocommerce-checkout.pn-rbp-active .woocommerce form .form-row select,
.woocommerce-checkout.pn-rbp-active .woocommerce-page form .form-row select,
.woocommerce-checkout.pn-rbp-active .woocommerce form .form-row input.input-text,
.woocommerce-checkout.pn-rbp-active .woocommerce-page form .form-row input.input-text {
    min-height: 46px !important;
    height: 46px !important;
    line-height: 24px !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout.pn-rbp-active .woocommerce form .form-row textarea,
.woocommerce-checkout.pn-rbp-active .woocommerce-page form .form-row textarea {
    min-height: 86px !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout.pn-rbp-active .select2-container .select2-selection--single,
.woocommerce-checkout.pn-rbp-active .select2-container--default .select2-selection--single {
    min-height: 46px !important;
    height: 46px !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout.pn-rbp-active .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
    padding-left: 12px !important;
    padding-right: 32px !important;
    margin: 0 !important;
}

.woocommerce-checkout.pn-rbp-active .select2-container--default .select2-selection--single .select2-selection__placeholder {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.woocommerce-checkout.pn-rbp-active .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    top: 1px !important;
    right: 6px !important;
}

body.pn-rbp-active:not(.pn-rbp-invoice-different) .pn-rbp-invoice-section-heading,
body.pn-rbp-active:not(.pn-rbp-invoice-different) #billing_type_field,
body.pn-rbp-active:not(.pn-rbp-invoice-different) .pn-rbp-invoice-field,
body.pn-rbp-active:not(.pn-rbp-invoice-different) .pn-plugin-section.pn-rbp-company-panel,
body.pn-rbp-active:not(.pn-rbp-invoice-different) .pn-plugin-field.pn-rbp-company-field {
    display: none !important;
}

body.pn-rbp-active.pn-rbp-invoice-different .pn-rbp-invoice-section-heading,
body.pn-rbp-active.pn-rbp-invoice-different #billing_type_field {
    display: block !important;
}


/* v1.2.33 - inline validation messages only. No custom invalid borders. */
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row .pn-rbp-field-error {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    min-height: 18px !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    color: #e2401c !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
}

body.woocommerce-checkout.pn-rbp-active form.checkout .form-row .pn-rbp-field-error.pn-rbp-field-error-empty {
    visibility: hidden !important;
}

body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.pn-rbp-inline-invalid input.input-text,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.pn-rbp-inline-invalid textarea,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.pn-rbp-inline-invalid select,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.pn-rbp-inline-invalid .select2-container .select2-selection--single,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.woocommerce-invalid input.input-text,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.woocommerce-invalid textarea,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.woocommerce-invalid select,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.woocommerce-invalid .select2-container .select2-selection--single,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.woocommerce-invalid-required-field input.input-text,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.woocommerce-invalid-required-field textarea,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.woocommerce-invalid-required-field select,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.woocommerce-invalid-required-field .select2-container .select2-selection--single {
    border-color: #d8d8d8 !important;
    box-shadow: none !important;
}

body.woocommerce-checkout.pn-rbp-active form.checkout input.input-text:focus,
body.woocommerce-checkout.pn-rbp-active form.checkout textarea:focus,
body.woocommerce-checkout.pn-rbp-active form.checkout select:focus,
body.woocommerce-checkout.pn-rbp-active form.checkout .select2-container--focus .select2-selection--single {
    border-color: #d8d8d8 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

body.woocommerce-checkout.pn-rbp-active form.checkout #pn_rbp_invoice_address_2_field label .optional {
    display: inline !important;
}

/* v1.2.35 - tighter field spacing without breaking floated WooCommerce rows.
   Keep the requested compact margin, but only in this checkout and force
   wide invoice rows to clear the preceding two-column rows. */
body.woocommerce-checkout.pn-rbp-active form.checkout .woocommerce-billing-fields .form-row,
body.woocommerce-checkout.pn-rbp-active form.checkout .woocommerce-shipping-fields .form-row,
body.woocommerce-checkout.pn-rbp-active form.checkout .woocommerce-additional-fields .form-row {
    margin: 0 0 0.2em !important;
}

body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.form-row-wide,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.pn-rbp-invoice-address-field.form-row-wide,
body.woocommerce-checkout.pn-rbp-active form.checkout #pn_rbp_invoice_address_1_field,
body.woocommerce-checkout.pn-rbp-active form.checkout #pn_rbp_invoice_address_2_field {
    clear: both !important;
    float: none !important;
    width: 100% !important;
}

body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.form-row-first,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.pn-rbp-invoice-address-field.form-row-first {
    clear: both !important;
    float: left !important;
    width: 48% !important;
}

body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.form-row-last,
body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.pn-rbp-invoice-address-field.form-row-last {
    clear: none !important;
    float: right !important;
    width: 48% !important;
}

body.woocommerce-checkout.pn-rbp-active form.checkout #pn_rbp_invoice_address_1_field label,
body.woocommerce-checkout.pn-rbp-active form.checkout #pn_rbp_invoice_address_2_field label {
    display: block !important;
    width: auto !important;
    float: none !important;
    clear: both !important;
    white-space: normal !important;
}

@media (max-width: 767px) {
    body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.form-row-first,
    body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.form-row-last,
    body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.pn-rbp-invoice-address-field.form-row-first,
    body.woocommerce-checkout.pn-rbp-active form.checkout .form-row.pn-rbp-invoice-address-field.form-row-last {
        clear: both !important;
        float: none !important;
        width: 100% !important;
    }
}


/* v1.2.42 - account/order display refinements. */
body.woocommerce-account.pn-rbp-active .woocommerce-MyAccount-content .woocommerce-Address-title h2,
body.woocommerce-account.pn-rbp-active .woocommerce-MyAccount-content h2 {
    font-size: 1.65em !important;
    line-height: 1.22 !important;
    text-transform: none !important;
}

body.woocommerce-account.pn-rbp-active .woocommerce-MyAccount-content .woocommerce-Address-title {
    position: relative !important;
    padding-right: 34px !important;
}

body.woocommerce-account.pn-rbp-active .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
    position: absolute !important;
    top: 0.35em !important;
    right: 0 !important;
    float: none !important;
    margin: 0 !important;
}

/* Compact address blocks used in order/customer displays. */
.pn-plugin-address {
    line-height: 1.55;
}

/* v1.2.53 - checkout company panel spacing. */
.woocommerce form .pn-plugin-section.pn-rbp-company-panel,
.woocommerce-page form .pn-plugin-section.pn-rbp-company-panel {
    margin-top: 20px !important;
}

/* v1.2.56 - My Account billing edit form: fiscal profile, not delivery/contact form. */
body.pn-rbp-account-edit-billing #billing_type_field {
    display: block !important;
}

body.pn-rbp-account-edit-billing .pn-rbp-invoice-section-heading {
    display: none !important;
}

body.pn-rbp-account-edit-billing.pn-rbp-type-pj .pn-plugin-section.pn-rbp-company-panel {
    display: flow-root !important;
}

body.pn-rbp-account-edit-billing.pn-rbp-type-pj .pn-plugin-field.pn-rbp-company-field {
    display: block !important;
}

body.pn-rbp-account-edit-billing.pn-rbp-type-pj .pn-rbp-account-pf-field {
    display: none !important;
}

body.pn-rbp-account-edit-billing.pn-rbp-type-pf .pn-plugin-section.pn-rbp-company-panel,
body.pn-rbp-account-edit-billing.pn-rbp-type-pf .pn-plugin-field.pn-rbp-company-field {
    display: none !important;
}


/* v1.2.66 - My Account details page: PHP-rendered labels and short edit/add action. */
body.woocommerce-account.pn-rbp-active .pn-plugin-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

body.woocommerce-account.pn-rbp-active .pn-plugin-card-header h2 {
    margin: 0 !important;
    min-width: 0 !important;
}

body.woocommerce-account.pn-rbp-active .pn-plugin-address-action {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
}

body.woocommerce-account.pn-rbp-active .pn-plugin-address-action:hover,
body.woocommerce-account.pn-rbp-active .pn-plugin-address-action:focus {
    color: #A67C52 !important;
    text-decoration: none !important;
    outline: 0 !important;
}

body.woocommerce-account.pn-rbp-active .pn-plugin-action-icon {
    display: inline-block !important;
    line-height: 1 !important;
    font-size: 16px !important;
}

body.woocommerce-account.pn-rbp-active .pn-plugin-address-body {
    display: block !important;
    min-height: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

body.woocommerce-account.pn-rbp-active .pn-plugin-empty {
    display: block !important;
    text-align: left !important;
    font-style: normal !important;
    color: inherit !important;
}

/* Match checkout field sizing and inline validation on My Account edit-address forms. */
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row input.input-text,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row textarea,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row select {
    min-height: 46px !important;
    height: 46px !important;
    line-height: 24px !important;
    box-sizing: border-box !important;
}

body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row textarea {
    min-height: 86px !important;
    height: auto !important;
}

body.pn-rbp-account-edit-address .select2-container .select2-selection--single,
body.pn-rbp-account-edit-address .select2-container--default .select2-selection--single {
    min-height: 46px !important;
    height: 46px !important;
    box-sizing: border-box !important;
}

body.pn-rbp-account-edit-address .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
    padding-left: 12px !important;
    padding-right: 32px !important;
    margin: 0 !important;
}

body.pn-rbp-account-edit-address .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    top: 1px !important;
    right: 6px !important;
}

body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row .pn-rbp-field-error {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    min-height: 18px !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    color: #e2401c !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
}

body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row .pn-rbp-field-error.pn-rbp-field-error-empty {
    visibility: hidden !important;
}

body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row.pn-rbp-inline-invalid input.input-text,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row.pn-rbp-inline-invalid textarea,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row.pn-rbp-inline-invalid select,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row.pn-rbp-inline-invalid .select2-container .select2-selection--single,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row.woocommerce-invalid input.input-text,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row.woocommerce-invalid textarea,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row.woocommerce-invalid select,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row.woocommerce-invalid .select2-container .select2-selection--single,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row.woocommerce-invalid-required-field input.input-text,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row.woocommerce-invalid-required-field textarea,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row.woocommerce-invalid-required-field select,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form .form-row.woocommerce-invalid-required-field .select2-container .select2-selection--single {
    border-color: #d8d8d8 !important;
    box-shadow: none !important;
}

body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form input.input-text:focus,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form textarea:focus,
body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form select:focus,
body.pn-rbp-account-edit-address .select2-container--focus .select2-selection--single {
    border-color: #d8d8d8 !important;
    box-shadow: none !important;
    outline: 0 !important;
}


/* v1.2.69 - My Account action links rendered by plugin, not by theme pseudo-elements. */
.pn-plugin-address-card .pn-plugin-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.pn-plugin-address-card .pn-plugin-card-header h2 {
    margin: 0 !important;
    min-width: 0 !important;
}

.pn-plugin-address-card .pn-plugin-address-action,
.pn-plugin-address-card .pn-plugin-address-action:visited {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    text-indent: 0 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
}

.pn-plugin-address-card .pn-plugin-address-action::before,
.pn-plugin-address-card .pn-plugin-address-action::after {
    content: none !important;
    display: none !important;
}

.pn-plugin-address-card .pn-plugin-action-icon,
.pn-plugin-address-card .pn-plugin-action-text {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    text-indent: 0 !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
}

.pn-plugin-address-card .pn-plugin-action-icon {
    font-size: 16px !important;
    line-height: 1 !important;
}


/* v1.2.74 - Clean My Account alignment and checkout payment heading. */
body.woocommerce-account.pn-rbp-active .pn-plugin-card-header,
.pn-plugin-address-card .pn-plugin-card-header {
    margin: 0 0 0.5407911001em !important;
}

body.woocommerce-account.pn-rbp-active .pn-plugin-card-header h2,
.pn-plugin-address-card .pn-plugin-card-header h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500 !important;
}

body.pn-rbp-account-edit-address .woocommerce-MyAccount-content form h2 {
    margin: 0 0 0.5407911001em !important;
    font-weight: 500 !important;
}

.pn-rbp-payment-section-title {
    margin: 30px 0 18px !important;
    padding: 0 !important;
    text-transform: uppercase !important;
}

body.woocommerce-account.pn-rbp-active .pn-plugin-address-action,
body.woocommerce-account.pn-rbp-active .pn-plugin-address-action:visited,
.pn-plugin-address-card .pn-plugin-address-action,
.pn-plugin-address-card .pn-plugin-address-action:visited {
    font-size: 16px !important;
}

body.woocommerce-account.pn-rbp-active .pn-plugin-action-text,
.pn-plugin-address-card .pn-plugin-action-text {
    font-size: 16px !important;
}

body.woocommerce-account.pn-rbp-active .pn-plugin-action-icon,
.pn-plugin-address-card .pn-plugin-action-icon {
    font-size: 15px !important;
    line-height: 1 !important;
}

body.woocommerce-account.pn-rbp-active .pn-plugin-action-icon[class*="olars-icon-"]::before,
.pn-plugin-address-card .pn-plugin-action-icon[class*="olars-icon-"]::before {
    display: inline-block !important;
    font-family: "olars-icon" !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
    text-indent: 0 !important;
}


/* v1.2.91 - Checkout terms text cleanup. */
.woocommerce-checkout.pn-rbp-active .woocommerce-terms-and-conditions-wrapper .form-row.validate-required .required {
    display: none !important;
}

