.attipasb2b-consent-error {
  margin-top: 0.75rem;
}

html.attipasb2b-customer [aria-busy="true"] {
  cursor: wait !important;
}

/*
 * B2B checkout presentation.
 * These rules are active only when the server confirmed a B2B customer and
 * the dedicated checkout presentation option is enabled. They never alter
 * cart values; they only expose the net/gross values already supplied by
 * PrestaShop and The Checkout.
 */
html.attipasb2b-customer.attipasb2b-checkout-display .attipasb2b-tax-marker {
  font-size: 0.72em;
  font-weight: 600;
  margin-left: 0.2em;
  opacity: 0.78;
  white-space: nowrap;
}

html.attipasb2b-customer.attipasb2b-checkout-display .cart-total-tax-excluded,
html.attipasb2b-customer.attipasb2b-checkout-display .cart-total-tax,
html.attipasb2b-customer.attipasb2b-checkout-display .cart-total-tax-included {
  align-items: baseline;
}

html.attipasb2b-customer.attipasb2b-checkout-display .cart-total-tax-excluded > .label,
html.attipasb2b-customer.attipasb2b-checkout-display .cart-total-tax-included > .label {
  font-weight: 700;
}

html.attipasb2b-customer.attipasb2b-checkout-display .cart-total-tax-included {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin-top: 0.45rem;
  padding-top: 0.55rem;
}

html.attipasb2b-customer.attipasb2b-checkout-display .delivery-option-price > .carrier-price,
html.attipasb2b-customer.attipasb2b-checkout-display .delivery-option-price > .carrier-price-with-tax-formatted,
html.attipasb2b-customer.attipasb2b-checkout-display .delivery-option-price > .carrier-price-without-tax-formatted {
  display: none !important;
}

html.attipasb2b-customer.attipasb2b-checkout-display .attipasb2b-carrier-price {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  white-space: nowrap;
}

html.attipasb2b-customer.attipasb2b-checkout-display .attipasb2b-carrier-price-net {
  font-weight: 600;
}

html.attipasb2b-customer.attipasb2b-checkout-display .attipasb2b-carrier-price-gross {
  display: block;
  font-size: 0.72em;
  font-weight: 400;
  margin-top: 0.18rem;
  opacity: 0.72;
}

@media (max-width: 767px) {
  html.attipasb2b-customer.attipasb2b-checkout-display .attipasb2b-carrier-price {
    white-space: normal;
  }
}


/*
 * Optional B2B visibility controls introduced in 0.2.4.
 * The classes are added only after the server confirms the configured B2B
 * group and, in test mode, the configured test account.
 */
html.attipasb2b-customer.attipasb2b-hide-checkout-html-box-1 .tc-block-placeholder.thecheckout-html-box-1,
html.attipasb2b-customer.attipasb2b-hide-checkout-html-box-1 #thecheckout-html-box-1 {
  display: none !important;
}

html.attipasb2b-customer.attipasb2b-hide-promo-code #thecheckout-cart-summary .cart-voucher > p,
html.attipasb2b-customer.attipasb2b-hide-promo-code #thecheckout-cart-summary .cart-voucher > .promo-code {
  display: none !important;
}

html.attipasb2b-customer.attipasb2b-hide-promo-code #thecheckout-cart-summary .card-block.block-promo.attipasb2b-empty-promo-block {
  display: none !important;
}

html.attipasb2b-customer.attipasb2b-hide-product-delivery-info body#product .delivery-info,
html.attipasb2b-customer.attipasb2b-hide-product-delivery-info body.page-product .delivery-info {
  display: none !important;
}

/*
 * Promotion master switch and PrestaPros Top Banner control introduced in 0.2.5.
 * An equivalent server-rendered inline rule is emitted in displayHeader to
 * prevent a flash of retail-only content before the bottom JavaScript loads.
 */
html.attipasb2b-customer.attipasb2b-hide-top-banner #header .header-banner,
html.attipasb2b-customer.attipasb2b-hide-top-banner #header .header-banner-container,
html.attipasb2b-customer.attipasb2b-hide-top-banner .header-banner-container,
html.attipasb2b-customer.attipasb2b-hide-top-banner .header-banner-bottom,
.attipasb2b-hidden-top-banner-wrapper,
.attipasb2b-hidden-top-banner {
  display: none !important;
}

/*
 * CMS audience controls introduced in 0.2.6.
 * Direct URL access is enforced server-side. These classes only remove menu
 * and footer links after the audience-specific configuration is confirmed.
 */
.attipasb2b-cms-link-hidden,
li.attipasb2b-cms-link-hidden {
  display: none !important;
}

.attipasb2b-b2b-terms-item {
  list-style: none;
}
