.pp-b2b-portal,
.pp-b2b-dashboard {
  color: var(--pp-b2b-text, #1f2937);
}

.pp-b2b-card {
  background: var(--pp-b2b-surface, #fff);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 28px;
  padding: 30px;
  margin-bottom: 24px;
  box-sizing: border-box;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.pp-b2b-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.pp-b2b-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pp-b2b-primary, #405600);
}

.pp-b2b-card-title {
  margin: 0 0 14px;
  color: var(--pp-b2b-text, #1f2937);
  font-size: clamp(1.9rem, 2.3vw, 2.6rem);
  line-height: 1.1;
}

.pp-b2b-form p,
.pp-b2b-filter-form p {
  margin: 0 0 18px;
}

.pp-b2b-form label,
.pp-b2b-filter-form label {
  display: block;
  font-weight: 700;
  color: var(--pp-b2b-text, #1f2937);
}

.pp-b2b-form input[type="text"],
.pp-b2b-form input[type="password"],
.pp-b2b-form input[type="email"],
.pp-b2b-form input[type="date"],
.pp-b2b-form select,
.pp-b2b-form textarea,
.pp-b2b-filter-form input[type="text"],
.pp-b2b-filter-form input[type="date"],
.pp-b2b-filter-form select {
  width: 100%;
  margin-top: 10px;
  padding: 16px 18px;
  border: 1px solid var(--pp-b2b-border, #d8ded1);
  border-radius: 18px;
  background: #fff;
  color: var(--pp-b2b-text, #1f2937);
  box-sizing: border-box;
  transition: border-color .22s ease, box-shadow .22s ease, transform .18s ease;
}

.pp-b2b-form input:focus,
.pp-b2b-form textarea:focus,
.pp-b2b-form select:focus,
.pp-b2b-filter-form input:focus,
.pp-b2b-filter-form select:focus {
  outline: none;
  border-color: rgba(64, 86, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(143, 190, 0, 0.12);
}

.pp-b2b-btn,
.pp-b2b-portal .button,
.pp-b2b-dashboard .button,
.pp-b2b-portal button,
.pp-b2b-dashboard button,
.pp-b2b-portal a.pp-b2b-btn,
.pp-b2b-dashboard a.pp-b2b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 170px;
  padding: 12px 22px;
  border-radius: 18px;
  border: 1px solid var(--pp-b2b-primary, #405600);
  background: transparent !important;
  color: var(--pp-b2b-primary, #405600) !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: none !important;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .18s ease, box-shadow .25s ease;
  cursor: pointer;
}

.pp-b2b-btn:hover,
.pp-b2b-btn:focus,
.pp-b2b-portal .button:hover,
.pp-b2b-dashboard .button:hover,
.pp-b2b-portal button:hover,
.pp-b2b-dashboard button:hover,
.pp-b2b-portal a.pp-b2b-btn:hover,
.pp-b2b-dashboard a.pp-b2b-btn:hover {
  background: var(--pp-b2b-primary, #405600) !important;
  color: #fff !important;
  border-color: var(--pp-b2b-primary, #405600) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(64, 86, 0, 0.18) !important;
}

.pp-b2b-btn-secondary {
  border-color: rgba(31, 41, 55, 0.12) !important;
  color: var(--pp-b2b-text, #1f2937) !important;
}

.pp-b2b-btn-secondary:hover,
.pp-b2b-btn-secondary:focus {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}

.pp-b2b-btn-danger,
.pp-b2b-btn-danger.button {
  border-color: var(--pp-b2b-danger, #7a1f1f) !important;
  color: var(--pp-b2b-danger, #7a1f1f) !important;
}

.pp-b2b-btn-danger:hover,
.pp-b2b-btn-danger:focus {
  background: var(--pp-b2b-danger, #7a1f1f) !important;
  color: #fff !important;
  border-color: var(--pp-b2b-danger, #7a1f1f) !important;
}

.pp-b2b-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pp-b2b-grid {
  display: grid;
  gap: 18px;
}

.pp-b2b-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pp-b2b-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pp-b2b-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pp-b2b-summary-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp-b2b-summary-card strong {
  font-size: 1.8rem;
}

.pp-b2b-muted {
  color: var(--pp-b2b-muted, #6b7280);
}

.pp-b2b-registration-intro,
.pp-b2b-account-message {
  margin: -2px 0 18px;
  max-width: 760px;
  line-height: 1.75;
  font-size: 1rem;
}

.pp-b2b-notice {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(64, 86, 0, 0.08);
  border: 1px solid rgba(64, 86, 0, 0.16);
}

.pp-b2b-notice strong {
  display: block;
  margin-bottom: 6px;
}

.pp-b2b-notice-error {
  background: rgba(122, 31, 31, 0.08);
  border-color: rgba(122, 31, 31, 0.18);
}

.pp-b2b-notice-success {
  background: linear-gradient(135deg, rgba(143, 190, 0, 0.16), rgba(64, 86, 0, 0.08));
  border-color: rgba(143, 190, 0, 0.28);
}

.pp-b2b-table-wrap {
  overflow-x: auto;
}

.pp-b2b-table {
  width: 100%;
  border-collapse: collapse;
}

.pp-b2b-table th,
.pp-b2b-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--pp-b2b-border, #d8ded1);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.pp-b2b-table tr.is-read {
  opacity: 0.82;
}

.pp-b2b-pill {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
}

.pp-b2b-pill-unread {
  background: rgba(143, 190, 0, .16);
  color: var(--pp-b2b-primary, #405600);
}

.pp-b2b-pill-read {
  background: rgba(107, 114, 128, .12);
  color: var(--pp-b2b-muted, #6b7280);
}

.pp-b2b-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #9a6700;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.pp-b2b-status-chip.is-active {
  background: rgba(143, 190, 0, 0.16);
  color: var(--pp-b2b-primary, #405600);
}

.pp-b2b-account-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.pp-b2b-account-summary-item {
  padding: 18px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.pp-b2b-account-summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--pp-b2b-muted, #6b7280);
  font-size: 0.92rem;
}

.pp-b2b-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pp-b2b-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--pp-b2b-border, #d8ded1);
  color: var(--pp-b2b-text, #1f2937);
  text-decoration: none;
}

.pp-b2b-page-link.is-current,
.pp-b2b-page-link:hover {
  background: var(--pp-b2b-primary, #405600);
  color: #fff;
  border-color: var(--pp-b2b-primary, #405600);
}

.pp-b2b-inline-links {
  margin-top: 12px;
}

.pp-b2b-inline-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pp-b2b-text, #1f2937);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.pp-b2b-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

.pp-b2b-empty {
  margin: 0;
}

body.pp-b2b-modal-open {
  overflow: hidden;
}

.pp-b2b-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  opacity: 0;
  transition: opacity .22s ease;
}

.pp-b2b-modal.is-open {
  display: block;
  opacity: 1;
}

.pp-b2b-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(6px);
}

.pp-b2b-modal-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  margin: 9vh auto 0;
  padding: 34px 30px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.26);
  transform: translateY(16px) scale(0.98);
  transition: transform .24s ease;
}

.pp-b2b-modal.is-open .pp-b2b-modal-dialog {
  transform: translateY(0) scale(1);
}

.pp-b2b-modal-dialog h3 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.15;
  color: var(--pp-b2b-text, #1f2937);
}

.pp-b2b-modal-dialog p {
  margin: 0;
  color: var(--pp-b2b-muted, #6b7280);
  line-height: 1.8;
}

.pp-b2b-modal-actions {
  margin-top: 24px;
}

.pp-b2b-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px !important;
  border: 1px solid rgba(31, 41, 55, 0.1) !important;
  background: #fff !important;
  color: var(--pp-b2b-text, #1f2937) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10) !important;
}

.pp-b2b-modal-close:hover,
.pp-b2b-modal-close:focus {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}

.pp-b2b-modal-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
}

.pp-b2b-modal-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(143, 190, 0, 0.22), rgba(64, 86, 0, 0.08));
  border: 1px solid rgba(143, 190, 0, 0.28);
}

.pp-b2b-modal-icon-dot {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pp-b2b-primary, #405600), #8fbe00);
  box-shadow: 0 12px 30px rgba(64, 86, 0, 0.24);
}


@media (max-width: 1100px) {
  .pp-b2b-order-details-grid {
    grid-template-columns: 1fr;
  }

  .pp-b2b-order-items-table th,
  .pp-b2b-order-items-table td,
  .pp-b2b-order-sheet-row,
  .pp-b2b-order-detail-row {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .pp-b2b-card {
    padding: 22px;
    border-radius: 22px;
  }

  .pp-b2b-grid-2,
  .pp-b2b-grid-3,
  .pp-b2b-grid-4,
  .pp-b2b-account-summary {
    grid-template-columns: 1fr;
  }

  .pp-b2b-actions-row {
    flex-direction: column;
  }

  .pp-b2b-btn,
  .pp-b2b-portal .button,
  .pp-b2b-dashboard .button,
  .pp-b2b-portal button,
  .pp-b2b-dashboard button,
  .pp-b2b-portal a.pp-b2b-btn,
  .pp-b2b-dashboard a.pp-b2b-btn {
    width: 100%;
  }

  .pp-b2b-card-head {
    flex-direction: column;
  }

  .pp-b2b-modal-dialog {
    margin-top: 6vh;
    padding: 28px 20px 22px;
    border-radius: 22px;
  }
}

.pp-b2b-notice-info {
    background: rgba(64, 86, 0, 0.08);
    border-color: rgba(64, 86, 0, 0.2);
    color: var(--pp-b2b-text);
}


.pp-b2b-actions-stack,
.pp-b2b-done-form {
  display: flex;
  align-items: center;
}

.pp-b2b-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.pp-b2b-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pp-b2b-primary, #405600);
}

.pp-b2b-order-link {
  font-weight: 800;
}

.pp-b2b-order-done {
  background: rgba(143, 190, 0, 0.06);
}

.pp-b2b-order-sheet-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: min(1180px, calc(100vw - 32px));
  height: min(94vh, 920px);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
}

.pp-b2b-order-sheet-header,
.pp-b2b-order-sheet-footer {
  flex: 0 0 auto;
}

.pp-b2b-order-sheet-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 4px;
}

.pp-b2b-order-sheet {
  margin-top: 16px;
}

.pp-b2b-order-sheet-meta,
.pp-b2b-order-sheet-totals {
  border: 1px solid var(--pp-b2b-border, #d8ded1);
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
}

.pp-b2b-order-sheet-meta {
  margin-bottom: 16px;
}

.pp-b2b-order-sheet-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.pp-b2b-order-sheet-row:last-child {
  border-bottom: 0;
}

.pp-b2b-order-sheet-row span {
  font-weight: 700;
}

.pp-b2b-order-sheet-table {
  margin-bottom: 16px;
}

.pp-b2b-order-sheet-table td,
.pp-b2b-order-sheet-table th {
  white-space: normal;
}

.pp-b2b-order-sheet-grand strong {
  font-size: 1.08rem;
}

@media (max-width: 782px) {
  .pp-b2b-order-sheet-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


.pp-b2b-order-sheet-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.pp-b2b-order-sheet-footer .pp-b2b-btn {
  min-width: 180px;
  text-align: center;
}

@media (max-width: 782px) {
  .pp-b2b-order-sheet-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    height: 96vh;
    max-height: 96vh;
  }

  .pp-b2b-order-sheet-footer {
    justify-content: stretch;
  }

  .pp-b2b-order-sheet-footer .pp-b2b-btn {
    width: 100%;
  }
}

/* Accountant order popup: fullscreen responsive layout */
.pp-b2b-order-sheet-overlay {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

.pp-b2b-order-sheet-dialog {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.pp-b2b-order-sheet-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
}

.pp-b2b-order-sheet-header {
    flex: 0 0 auto !important;
    gap: 16px !important;
    align-items: flex-start !important;
}

.pp-b2b-order-sheet-close {
    flex: 0 0 auto !important;
}

.pp-b2b-order-sheet-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto !important;
}

.pp-b2b-order-details-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.pp-b2b-order-items-table,
.pp-b2b-order-totals-table {
    table-layout: fixed;
}

.pp-b2b-order-items-table th,
.pp-b2b-order-items-table td,
.pp-b2b-order-totals-table th,
.pp-b2b-order-totals-table td {
    word-break: break-word;
}

@media (max-width: 1024px) {
    .pp-b2b-order-sheet-body {
        padding: 16px !important;
    }

    .pp-b2b-order-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .pp-b2b-order-sheet-body {
        padding: 12px !important;
    }

    .pp-b2b-order-sheet-header {
        gap: 12px !important;
    }

    .pp-b2b-order-sheet-title {
        font-size: 32px !important;
        line-height: 1.15 !important;
    }

    .pp-b2b-order-details-grid {
        grid-template-columns: 1fr !important;
    }

    .pp-b2b-order-items-table,
    .pp-b2b-order-items-table thead,
    .pp-b2b-order-items-table tbody,
    .pp-b2b-order-items-table tr,
    .pp-b2b-order-items-table th,
    .pp-b2b-order-items-table td {
        display: block;
        width: 100%;
    }

    .pp-b2b-order-items-table thead {
        display: none;
    }

    .pp-b2b-order-items-table tr {
        border: 1px solid #d9deca;
        border-radius: 16px;
        margin-bottom: 12px;
        overflow: hidden;
    }

    .pp-b2b-order-items-table td {
        padding: 10px 12px !important;
        border-bottom: 1px solid #eef1e3;
    }

    .pp-b2b-order-items-table td:last-child {
        border-bottom: 0;
    }
}

/* v1.6.5 accountant popup sizing override */
.pp-b2b-order-sheet-overlay {
    padding: 16px !important;
    align-items: center !important;
    justify-content: center !important;
}

.pp-b2b-order-sheet-dialog {
    width: min(1440px, calc(100vw - 32px)) !important;
    max-width: min(1440px, calc(100vw - 32px)) !important;
    height: calc(100vh - 32px) !important;
    max-height: calc(100vh - 32px) !important;
    margin: 0 !important;
    border-radius: 26px !important;
    overflow: hidden !important;
}

.pp-b2b-order-sheet-body {
    padding: 24px !important;
}

.pp-b2b-order-sheet-scroll {
    padding-right: 6px;
}

.pp-b2b-order-items-table th,
.pp-b2b-order-items-table td {
    white-space: normal;
}

@media (max-width: 1024px) {
    .pp-b2b-order-details-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    .pp-b2b-order-sheet-overlay {
        padding: 6px !important;
    }

    .pp-b2b-order-sheet-dialog {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        height: calc(100vh - 12px) !important;
        max-height: calc(100vh - 12px) !important;
        border-radius: 18px !important;
    }

    .pp-b2b-order-sheet-body {
        padding: 14px !important;
    }

    .pp-b2b-order-sheet-scroll {
        padding-right: 2px;
    }
}


.pp-b2b-modal.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(14px, 2.5vw, 28px);
}

.pp-b2b-modal .pp-b2b-modal-dialog.pp-b2b-order-sheet-dialog {
	width: min(1280px, calc(100vw - 32px));
	max-width: min(1280px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	margin: 0 auto;
	align-self: center;
}

.pp-b2b-order-sheet {
	width: 100%;
	margin: 0 auto;
}

.pp-b2b-order-sheet__table th,
.pp-b2b-order-sheet__table td {
	vertical-align: middle;
}

.pp-b2b-order-sheet__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}

.pp-b2b-button--ghost {
	background: #fff !important;
	color: #405600 !important;
	border: 1px solid #405600 !important;
}

.pp-b2b-button--ghost:hover,
.pp-b2b-button--ghost:focus {
	background: #405600 !important;
	color: #fff !important;
}

@media (max-width: 1024px) {
	.pp-b2b-modal.is-open {
		padding: 16px;
		align-items: center;
	}

	.pp-b2b-modal .pp-b2b-modal-dialog.pp-b2b-order-sheet-dialog {
		width: min(100vw - 20px, 980px);
		max-width: min(100vw - 20px, 980px);
		max-height: calc(100vh - 20px);
	}
}

@media (max-width: 767px) {
	.pp-b2b-modal.is-open {
		padding: 10px;
		align-items: center;
	}

	.pp-b2b-modal .pp-b2b-modal-dialog.pp-b2b-order-sheet-dialog {
		width: calc(100vw - 12px);
		max-width: calc(100vw - 12px);
		max-height: calc(100vh - 12px);
		border-radius: 20px;
	}

	.pp-b2b-order-sheet__actions {
		justify-content: stretch;
	}

	.pp-b2b-order-sheet__actions .pp-b2b-button,
	.pp-b2b-order-sheet__actions a.pp-b2b-button {
		width: 100%;
		text-align: center;
	}
}


.pp-b2b-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pp-b2b-order-sheet-modal {
    padding: 24px;
}

.pp-b2b-order-sheet-dialog {
    margin: 0;
    width: min(1180px, calc(100vw - 48px));
    max-width: min(1180px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
}

.pp-b2b-order-sheet-body {
    overflow: auto;
    padding-right: 8px;
}

.pp-b2b-order-sheet-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.pp-b2b-button--ghost {
    background: #ffffff;
    color: #4d6500;
    border: 1px solid rgba(77, 101, 0, 0.24);
}

.pp-b2b-button--ghost:hover,
.pp-b2b-button--ghost:focus {
    background: #f7f9ef;
    color: #4d6500;
    border-color: rgba(77, 101, 0, 0.4);
}

.pp-b2b-export-png.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

@media (max-width: 767px) {
    .pp-b2b-modal.is-open,
    .pp-b2b-order-sheet-modal {
        padding: 12px;
    }

    .pp-b2b-order-sheet-dialog {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    .pp-b2b-order-sheet-footer {
        justify-content: stretch;
    }

    .pp-b2b-order-sheet-footer .pp-b2b-button,
    .pp-b2b-order-sheet-footer a.pp-b2b-button {
        width: 100%;
        text-align: center;
    }
}


.pp-b2b-modal.pp-b2b-order-details-modal {
	align-items: center;
	justify-content: center;
}

.pp-b2b-modal.pp-b2b-order-details-modal .pp-b2b-modal-content {
	margin: auto;
}

.pp-b2b-order-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}

@media (max-width: 767px) {
	.pp-b2b-order-modal-footer {
		justify-content: stretch;
	}

	.pp-b2b-order-modal-footer .pp-b2b-btn {
		width: 100%;
	}
}

/* v1.6.22 accountant orders box: no horizontal scroll + compact order cards */
.pp-b2b-accountant-dashboard,
.pp-b2b-accountant-dashboard * {
  box-sizing: border-box;
}

.pp-b2b-accountant-dashboard {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.pp-b2b-accountant-dashboard .pp-b2b-dashboard-results-region {
  overflow: hidden;
}

.pp-b2b-accountant-dashboard .pp-b2b-table-wrap {
  max-width: 100%;
}

.pp-b2b-orders-list {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
}

.pp-b2b-order-card {
  display: grid;
  grid-template-columns: minmax(82px, 96px) minmax(108px, 130px) minmax(0, 1fr) minmax(160px, 220px);
  gap: 14px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  padding: 14px;
  border: 1px solid rgba(31, 41, 55, 0.10);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.pp-b2b-order-card.pp-b2b-order-done {
  border-color: rgba(64, 86, 0, 0.22);
  background: linear-gradient(135deg, rgba(143, 190, 0, 0.10), rgba(255, 255, 255, 0.86));
}

.pp-b2b-order-card__done,
.pp-b2b-order-card__open,
.pp-b2b-order-card__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.pp-b2b-order-card__done {
  border-right: 1px solid rgba(31, 41, 55, 0.08);
  padding-right: 12px;
}

.pp-b2b-order-card__done .pp-b2b-done-form,
.pp-b2b-order-card__done .pp-b2b-checkbox-wrap {
  width: 100%;
  justify-content: center;
}

.pp-b2b-order-card__done .pp-b2b-checkbox-wrap {
  flex-direction: column;
  gap: 6px;
  white-space: normal;
  text-align: center;
  font-size: 0.82rem;
}

.pp-b2b-order-card__done input[type="checkbox"] {
  width: 24px;
  height: 24px;
}

.pp-b2b-order-open-btn {
  width: 100%;
  min-width: 0 !important;
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 10px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(64, 86, 0, 0.22) !important;
  background: rgba(64, 86, 0, 0.055) !important;
  color: var(--pp-b2b-primary, #405600) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.pp-b2b-order-open-btn:hover,
.pp-b2b-order-open-btn:focus {
  background: var(--pp-b2b-primary, #405600) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.pp-b2b-order-open-btn span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pp-b2b-order-open-btn strong {
  font-size: 1rem;
  line-height: 1.1;
}

.pp-b2b-order-card__main {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.pp-b2b-order-card__identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  min-width: 0;
}

.pp-b2b-order-card__customer {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--pp-b2b-text, #1f2937);
  font-size: 1.02rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-b2b-order-card__meta {
  color: var(--pp-b2b-muted, #6b7280);
  font-size: 0.86rem;
  line-height: 1.4;
  min-width: 0;
}

.pp-b2b-order-card__identity .pp-b2b-status-chip {
  grid-row: span 2;
  max-width: 100%;
}

.pp-b2b-order-card__details {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.pp-b2b-order-card__detail {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(31, 41, 55, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.pp-b2b-order-card__detail--wide {
  grid-column: span 2;
}

.pp-b2b-order-card__detail--total {
  background: rgba(64, 86, 0, 0.06);
  border-color: rgba(64, 86, 0, 0.14);
}

.pp-b2b-order-card__detail span,
.pp-b2b-order-card__progress span {
  display: block;
  margin-bottom: 4px;
  color: var(--pp-b2b-muted, #6b7280);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.pp-b2b-order-card__detail strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--pp-b2b-text, #1f2937);
  font-size: 0.9rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-b2b-order-card__progress {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 12px 14px;
  border-left: 1px solid rgba(31, 41, 55, 0.08);
}

.pp-b2b-order-card__progress strong,
.pp-b2b-order-card__progress small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-b2b-order-card__progress strong {
  color: var(--pp-b2b-text, #1f2937);
  font-size: 0.92rem;
  line-height: 1.35;
}

.pp-b2b-order-card__progress small {
  color: var(--pp-b2b-muted, #6b7280);
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .pp-b2b-order-card {
    grid-template-columns: 78px 118px minmax(0, 1fr);
  }

  .pp-b2b-order-card__progress {
    grid-column: 3;
    border-left: 0;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
    padding: 10px 0 0;
  }

  .pp-b2b-order-card__details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pp-b2b-accountant-dashboard {
    overflow-x: hidden;
  }

  .pp-b2b-order-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .pp-b2b-order-card__done {
    grid-row: span 2;
    border-right: 1px solid rgba(31, 41, 55, 0.08);
    padding-right: 10px;
  }

  .pp-b2b-order-card__open {
    justify-content: stretch;
  }

  .pp-b2b-order-open-btn {
    min-height: 62px !important;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 14px !important;
  }

  .pp-b2b-order-card__main,
  .pp-b2b-order-card__progress {
    grid-column: 2;
  }

  .pp-b2b-order-card__identity {
    grid-template-columns: 1fr;
  }

  .pp-b2b-order-card__identity .pp-b2b-status-chip {
    grid-row: auto;
    justify-self: start;
  }

  .pp-b2b-order-card__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-b2b-order-card__detail--wide,
  .pp-b2b-order-card__detail--total {
    grid-column: span 2;
  }

  .pp-b2b-order-card__progress {
    border-left: 0;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
    padding: 10px 0 0;
  }
}

/* v1.6.23 accountant order cards: readable values + no horizontal clipping */
.pp-b2b-accountant-live-notice {
  display: none;
  margin: 0 0 12px;
  padding: 11px 14px;
  border: 1px solid rgba(64, 86, 0, 0.18);
  border-radius: 14px;
  background: rgba(64, 86, 0, 0.08);
  color: var(--pp-b2b-text, #1f2937);
  font-size: 0.92rem;
  font-weight: 700;
}

.pp-b2b-accountant-live-notice.is-visible {
  display: block;
}

.pp-b2b-accountant-live-notice.is-error {
  border-color: rgba(185, 28, 28, 0.20);
  background: rgba(185, 28, 28, 0.08);
  color: #7f1d1d;
}

.pp-b2b-accountant-dashboard .pp-b2b-card,
.pp-b2b-accountant-dashboard .pp-b2b-dashboard-results-region,
.pp-b2b-accountant-dashboard .pp-b2b-orders-list,
.pp-b2b-accountant-dashboard .pp-b2b-order-card,
.pp-b2b-accountant-dashboard .pp-b2b-order-card * {
  max-width: 100%;
}

.pp-b2b-accountant-dashboard .pp-b2b-dashboard-results-region {
  width: 100%;
  overflow-x: hidden !important;
}

.pp-b2b-order-card {
  grid-template-columns: 72px 112px minmax(0, 1fr) minmax(138px, 190px);
  gap: 12px;
}

.pp-b2b-order-card__details {
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 9px;
}

.pp-b2b-order-card__detail,
.pp-b2b-order-card__detail--wide,
.pp-b2b-order-card__detail--total {
  grid-column: auto;
}

.pp-b2b-order-card__detail strong,
.pp-b2b-order-card__progress strong,
.pp-b2b-order-card__progress small,
.pp-b2b-order-card__meta,
.pp-b2b-order-card__customer {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pp-b2b-order-card__detail strong {
  font-size: 0.88rem;
  line-height: 1.45;
}

.pp-b2b-order-card__detail:nth-child(2),
.pp-b2b-order-card__detail:nth-child(3) {
  min-width: min(100%, 180px);
}

.pp-b2b-order-card__progress {
  overflow-wrap: anywhere;
}

.pp-b2b-toggle-processed:disabled {
  cursor: wait;
  opacity: 0.62;
}

@media (min-width: 1181px) {
  .pp-b2b-order-card__detail--wide {
    grid-column: span 2;
  }
}

@media (max-width: 1180px) {
  .pp-b2b-order-card {
    grid-template-columns: 68px 108px minmax(0, 1fr);
  }

  .pp-b2b-order-card__details {
    grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  }
}

@media (max-width: 767px) {
  .pp-b2b-order-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .pp-b2b-order-card__details {
    grid-template-columns: 1fr;
  }

  .pp-b2b-order-card__detail--wide,
  .pp-b2b-order-card__detail--total {
    grid-column: auto;
  }
}

/* v1.6.24 accountant order details: stronger responsive sheet + readable customer fields */
.pp-b2b-order-sheet-dialog,
.pp-b2b-order-sheet-dialog * {
  box-sizing: border-box;
}

.pp-b2b-order-sheet-scroll {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.pp-b2b-order-sheet,
.pp-b2b-order-sheet-meta,
.pp-b2b-order-sheet-totals {
  width: 100%;
  max-width: 100%;
}

.pp-b2b-order-sheet-row {
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.pp-b2b-order-sheet-row strong,
.pp-b2b-order-sheet-row span,
.pp-b2b-order-sheet-table td,
.pp-b2b-order-sheet-table th {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.pp-b2b-order-sheet-row--notes strong {
  line-height: 1.65;
}

.pp-b2b-order-modal .pp-b2b-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.pp-b2b-order-sheet-table {
  width: 100%;
  table-layout: fixed;
}

.pp-b2b-order-sheet-table th:nth-child(1),
.pp-b2b-order-sheet-table td:nth-child(1) { width: 44%; }
.pp-b2b-order-sheet-table th:nth-child(2),
.pp-b2b-order-sheet-table td:nth-child(2) { width: 18%; }
.pp-b2b-order-sheet-table th:nth-child(3),
.pp-b2b-order-sheet-table td:nth-child(3) { width: 38%; }

@media (max-width: 1024px) {
  .pp-b2b-order-sheet-dialog {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .pp-b2b-order-sheet-row {
    grid-template-columns: minmax(145px, 210px) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .pp-b2b-order-sheet-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 18px;
  }

  .pp-b2b-order-sheet-header h3 {
    font-size: 1.35rem;
  }

  .pp-b2b-order-sheet-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 11px 0;
  }

  .pp-b2b-order-sheet-row span {
    font-size: 0.82rem;
    opacity: 0.82;
  }

  .pp-b2b-order-sheet-table th,
  .pp-b2b-order-sheet-table td {
    padding: 10px 8px;
    font-size: 0.86rem;
  }

  .pp-b2b-order-sheet-footer .pp-b2b-btn,
  .pp-b2b-order-sheet-footer a.pp-b2b-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* v1.6.26 admin order deletion: admin-only action row */
.pp-b2b-order-card__admin {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.pp-b2b-order-delete-btn {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(185, 28, 28, 0.35);
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.06);
  color: #7f1d1d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pp-b2b-order-delete-btn:hover,
.pp-b2b-order-delete-btn:focus {
  transform: translateY(-1px);
  border-color: #991b1b;
  background: #991b1b;
  color: #fff;
}

.pp-b2b-order-delete-btn:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

@media (max-width: 767px) {
  .pp-b2b-order-card__admin {
    justify-content: stretch;
  }

  .pp-b2b-order-delete-btn {
    width: 100%;
  }
}

.pp-b2b-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pp-b2b-dashboard-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.pp-b2b-dashboard-logout {
  min-width: 120px !important;
  min-height: 46px !important;
  border-radius: 999px !important;
}

.pp-b2b-field-error {
  display: none;
  margin-top: 8px;
  color: var(--pp-b2b-danger, #7a1f1f);
  font-size: 0.9rem;
  font-weight: 700;
}

.pp-b2b-field-error.is-visible {
  display: block;
}

@media (max-width: 720px) {
  .pp-b2b-dashboard-head {
    flex-direction: column;
  }

  .pp-b2b-dashboard-head-actions,
  .pp-b2b-dashboard-logout {
    width: 100%;
  }
}


/* PP B2B checkout: keep billing country value submitted, but remove its visible WooCommerce label/row. */
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout .pp-b2b-hidden-country-field {
  display: none !important;
}

/* v1.7.5 single product polish: translated full description + cleaner gallery/summary layout */
.pp-b2b-polished-product-page.single-product .woocommerce div.product,
.pp-b2b-polished-product-page.single-product div.product {
  max-width: min(1220px, calc(100vw - 32px));
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery {
  overflow: visible !important;
}

.pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery,
.pp-b2b-polished-product-page.single-product div.product .summary {
  box-sizing: border-box;
}

.pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery__trigger,
.pp-b2b-polished-product-page.single-product div.product a.woocommerce-product-gallery__trigger,
.pp-b2b-polished-product-page.single-product .pswp__button,
.pp-b2b-polished-product-page.single-product .zoomImg {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery__wrapper,
.pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery__image {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
}

.pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 28px;
}

.pp-b2b-polished-product-page.single-product div.product .summary {
  padding: clamp(18px, 2.2vw, 32px);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.06);
}

.pp-b2b-polished-product-page.single-product div.product .summary .product_title,
.pp-b2b-polished-product-page.single-product div.product .summary h1.product_title {
  margin-top: 8px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.pp-b2b-polished-product-page.single-product div.product .summary .price {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  margin: 8px 0 20px;
  font-weight: 800;
  line-height: 1.2;
}

.pp-b2b-polished-product-page.single-product div.product .summary .woocommerce-product-details__short-description,
.pp-b2b-polished-product-page.single-product div.product .summary .woocommerce-product-details__short-description p {
  line-height: 1.8;
  font-size: 1rem;
}

.pp-b2b-product-full-description {
  clear: both;
  width: 100%;
  max-width: min(1220px, calc(100vw - 32px));
  margin: 38px auto 24px;
}

.pp-b2b-product-full-description__inner {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.055);
}

.pp-b2b-product-full-description h2 {
  margin: 0 0 18px;
  color: var(--pp-b2b-text, #1f2937);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.25;
  font-weight: 800;
}

.pp-b2b-product-full-description__content {
  color: var(--pp-b2b-muted, #4b5563);
  font-size: clamp(0.98rem, 1vw, 1.06rem);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.pp-b2b-product-full-description__content > *:first-child {
  margin-top: 0;
}

.pp-b2b-product-full-description__content > *:last-child {
  margin-bottom: 0;
}

.pp-b2b-product-page-rtl.single-product div.product .summary,
.pp-b2b-product-page-rtl .pp-b2b-product-full-description,
.pp-b2b-product-page-rtl .pp-b2b-product-full-description__content {
  direction: rtl;
  text-align: right;
}

.pp-b2b-product-page-rtl.single-product div.product .summary .price {
  justify-content: flex-end;
}

@media (min-width: 769px) {
  .pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery {
    width: 48% !important;
    margin-bottom: 34px;
  }

  .pp-b2b-polished-product-page.single-product div.product .summary {
    width: 48% !important;
    margin-bottom: 34px;
  }
}

@media (max-width: 768px) {
  .pp-b2b-polished-product-page.single-product .woocommerce div.product,
  .pp-b2b-polished-product-page.single-product div.product,
  .pp-b2b-product-full-description {
    max-width: calc(100vw - 24px);
  }

  .pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery,
  .pp-b2b-polished-product-page.single-product div.product .summary {
    width: 100% !important;
    float: none !important;
  }

  .pp-b2b-polished-product-page.single-product div.product .summary {
    margin-top: 18px;
    border-radius: 24px;
  }

  .pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery__wrapper,
  .pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery__image,
  .pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery__image img,
  .pp-b2b-product-full-description__inner {
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .pp-b2b-polished-product-page.single-product div.product .summary {
    padding: 18px;
  }

  .pp-b2b-polished-product-page.single-product div.product .summary .product_title,
  .pp-b2b-polished-product-page.single-product div.product .summary h1.product_title {
    font-size: clamp(1.75rem, 11vw, 2.65rem);
  }

  .pp-b2b-product-full-description__inner {
    padding: 18px;
  }
}


/* v1.7.7 single product layout: 90% desktop workspace + simple WhatsApp CTA */
.pp-b2b-polished-product-page.single-product .woocommerce div.product,
.pp-b2b-polished-product-page.single-product div.product,
.pp-b2b-product-full-description {
  width: 90% !important;
  max-width: 1480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.pp-b2b-polished-product-page.single-product .woocommerce div.product,
.pp-b2b-polished-product-page.single-product div.product {
  margin-top: clamp(18px, 3vw, 42px) !important;
}

@media (min-width: 1025px) {
  .pp-b2b-polished-product-page.single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(360px, 0.98fr) minmax(420px, 1.02fr);
    gap: clamp(34px, 4vw, 76px);
    align-items: center;
  }

  .pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery,
  .pp-b2b-polished-product-page.single-product div.product .summary {
    width: auto !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
  }
}

.pp-b2b-polished-product-page.single-product div.product .summary {
  max-width: none !important;
  width: 100%;
  padding: clamp(20px, 2.2vw, 34px);
}

.pp-b2b-polished-product-page.single-product div.product .summary .product_title,
.pp-b2b-polished-product-page.single-product div.product .summary h1.product_title {
  font-size: clamp(1.8rem, 2.15vw, 2.65rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.012em !important;
  margin-bottom: 14px !important;
}

.pp-b2b-polished-product-page.single-product div.product .summary .woocommerce-product-details__short-description,
.pp-b2b-polished-product-page.single-product div.product .summary .woocommerce-product-details__short-description p {
  font-size: clamp(0.97rem, 1vw, 1.06rem) !important;
  line-height: 1.85 !important;
}

.pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery__image img {
  max-height: min(580px, 68vh);
  object-fit: contain;
}

.pp-b2b-product-full-description {
  clear: both;
  margin-top: clamp(28px, 4vw, 54px) !important;
  margin-bottom: 28px !important;
}

.pp-b2b-product-full-description__inner {
  width: 100%;
  max-width: none !important;
  box-sizing: border-box;
}

.pp-b2b-single-product-whatsapp-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

.pp-b2b-product-page-rtl .pp-b2b-single-product-whatsapp-wrap {
  justify-content: flex-end;
}

.pp-b2b-single-product-whatsapp,
.pp-b2b-single-product-whatsapp:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 18px;
  border: 1px solid #405600;
  background: transparent;
  color: #405600 !important;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.pp-b2b-single-product-whatsapp:hover,
.pp-b2b-single-product-whatsapp:focus {
  transform: translateY(-1px);
  background: #405600;
  border-color: #405600;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(64, 86, 0, 0.16);
}

.pp-b2b-single-product-whatsapp__icon {
  display: none !important;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .pp-b2b-polished-product-page.single-product .woocommerce div.product,
  .pp-b2b-polished-product-page.single-product div.product,
  .pp-b2b-product-full-description {
    width: 92% !important;
    max-width: 980px !important;
  }

  .pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery,
  .pp-b2b-polished-product-page.single-product div.product .summary {
    width: 100% !important;
    float: none !important;
  }
}

@media (max-width: 768px) {
  .pp-b2b-polished-product-page.single-product .woocommerce div.product,
  .pp-b2b-polished-product-page.single-product div.product,
  .pp-b2b-product-full-description {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  .pp-b2b-polished-product-page.single-product div.product .summary {
    max-width: none !important;
    padding: 18px;
  }

  .pp-b2b-polished-product-page.single-product div.product .summary .product_title,
  .pp-b2b-polished-product-page.single-product div.product .summary h1.product_title {
    font-size: clamp(1.55rem, 7vw, 2.25rem) !important;
  }

  .pp-b2b-single-product-whatsapp-wrap,
  .pp-b2b-product-page-rtl .pp-b2b-single-product-whatsapp-wrap {
    justify-content: stretch;
  }

  .pp-b2b-single-product-whatsapp {
    width: 100%;
  }
}

/* v1.7.8 single product hard fix: keep workspace wide, prevent long description from being trapped in grid column, remove theme sticky cart overlap */
.pp-b2b-polished-product-page.single-product .site-main,
.pp-b2b-polished-product-page.single-product .content-area,
.pp-b2b-polished-product-page.single-product .ast-container,
.pp-b2b-polished-product-page.single-product .woocommerce {
  max-width: none !important;
}

.pp-b2b-polished-product-page.single-product .woocommerce div.product,
.pp-b2b-polished-product-page.single-product div.product {
  width: 90% !important;
  max-width: 1500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

@media (min-width: 1025px) {
  .pp-b2b-polished-product-page.single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: clamp(42px, 5vw, 92px) !important;
    row-gap: 34px !important;
    align-items: start !important;
  }

  .pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery,
  .pp-b2b-polished-product-page.single-product div.product .summary {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

.pp-b2b-polished-product-page.single-product div.product .summary {
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

.pp-b2b-polished-product-page.single-product div.product .summary .product_title,
.pp-b2b-polished-product-page.single-product div.product .summary h1.product_title {
  font-size: clamp(1.65rem, 2vw, 2.35rem) !important;
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery__image img {
  max-height: 560px !important;
  width: auto !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

.pp-b2b-polished-product-page.single-product div.product .pp-b2b-product-full-description,
.pp-b2b-product-full-description {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 1500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.pp-b2b-polished-product-page.single-product div.product .pp-b2b-product-full-description__inner,
.pp-b2b-product-full-description__inner {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.pp-b2b-polished-product-page.single-product div.product .related,
.pp-b2b-polished-product-page.single-product div.product .upsells,
.pp-b2b-polished-product-page.single-product div.product .woocommerce-tabs {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* The Astra/theme sticky product bar was covering the polished layout and duplicating the purchase row. */
.pp-b2b-polished-product-page.single-product .ast-sticky-add-to-cart,
.pp-b2b-polished-product-page.single-product .ast-sticky-add-to-cart-content,
.pp-b2b-polished-product-page.single-product .ast-sticky-add-to-cart-action-wrap,
.pp-b2b-polished-product-page.single-product .storefront-sticky-add-to-cart,
.pp-b2b-polished-product-page.single-product .woocommerce-sticky-add-to-cart,
.pp-b2b-polished-product-page.single-product .sticky-add-to-cart,
.pp-b2b-polished-product-page.single-product .wc-sticky-add-to-cart {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .pp-b2b-polished-product-page.single-product .woocommerce div.product,
  .pp-b2b-polished-product-page.single-product div.product,
  .pp-b2b-product-full-description {
    width: 92% !important;
    max-width: 980px !important;
  }
}

@media (max-width: 768px) {
  .pp-b2b-polished-product-page.single-product .woocommerce div.product,
  .pp-b2b-polished-product-page.single-product div.product,
  .pp-b2b-product-full-description {
    width: calc(100vw - 22px) !important;
    max-width: calc(100vw - 22px) !important;
  }

  .pp-b2b-polished-product-page.single-product div.product .woocommerce-product-gallery__image img {
    width: 100% !important;
    max-height: 460px !important;
  }
}

/* v1.7.18 product archive/card button centering: keep Add to Cart centered on mobile, tablet, and desktop in both languages. */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button,
ul.products li.product .button,
ul.products li.product a.button,
.products .product .add_to_cart_button,
.products .product a.product_type_simple,
.products .product a.product_type_variable,
.products .product a.product_type_grouped,
.products .product a.product_type_external,
.products .product .ajax_add_to_cart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  float: none !important;
  clear: both !important;
  width: fit-content !important;
  max-width: calc(100% - 24px) !important;
  min-width: min(220px, calc(100% - 24px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline-start: auto !important;
  margin-inline-end: auto !important;
  white-space: normal !important;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap,
.woocommerce-page ul.products li.product .astra-shop-summary-wrap,
ul.products li.product .astra-shop-summary-wrap,
.woocommerce ul.products li.product .woocommerce-loop-product__link + .button,
.woocommerce-page ul.products li.product .woocommerce-loop-product__link + .button {
  text-align: center !important;
}

.woocommerce ul.products li.product form.cart,
.woocommerce-page ul.products li.product form.cart,
ul.products li.product form.cart,
.products .product form.cart {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  .woocommerce ul.products li.product .button,
  .woocommerce-page ul.products li.product .button,
  ul.products li.product .button,
  .products .product .add_to_cart_button {
    margin-top: 14px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-inline-start: auto !important;
    margin-inline-end: auto !important;
  }
}

/* v1.7.19 hard product archive/card button centering for Astra/Woo/blocks across mobile, tablet, and desktop. */
body .woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product,
body ul.products li.product,
body .products .product,
body .wc-block-grid__product {
  text-align: center !important;
}

body .woocommerce ul.products li.product .astra-shop-summary-wrap,
body.woocommerce-page ul.products li.product .astra-shop-summary-wrap,
body ul.products li.product .astra-shop-summary-wrap,
body .products .product .astra-shop-summary-wrap,
body .woocommerce ul.products li.product .ast-woo-shop-product-description,
body .woocommerce ul.products li.product .woocommerce-loop-product__title,
body .woocommerce ul.products li.product .price,
body .wc-block-grid__product .wc-block-grid__product-add-to-cart,
body .wc-block-grid__product .wp-block-button,
body .wc-block-grid__product .wp-block-button__link {
  text-align: center !important;
}

body .woocommerce ul.products li.product .astra-shop-summary-wrap,
body.woocommerce-page ul.products li.product .astra-shop-summary-wrap,
body ul.products li.product .astra-shop-summary-wrap,
body .products .product .astra-shop-summary-wrap,
body .wc-block-grid__product .wc-block-grid__product-add-to-cart {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

body .woocommerce ul.products li.product .button,
body.woocommerce-page ul.products li.product .button,
body .woocommerce ul.products li.product a.button,
body.woocommerce-page ul.products li.product a.button,
body ul.products li.product .button,
body ul.products li.product a.button,
body .products .product .button,
body .products .product a.button,
body .products .product .add_to_cart_button,
body .products .product a.add_to_cart_button,
body .products .product a.product_type_simple,
body .products .product a.product_type_variable,
body .products .product a.product_type_grouped,
body .products .product a.product_type_external,
body .wc-block-grid__product .wp-block-button__link,
body .wc-block-grid__product a.add_to_cart_button {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  float: none !important;
  clear: both !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  text-align: center !important;
  width: auto !important;
  min-width: min(220px, calc(100% - 32px)) !important;
  max-width: calc(100% - 32px) !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline-start: auto !important;
  margin-inline-end: auto !important;
}

body .woocommerce ul.products li.product .button::before,
body .woocommerce ul.products li.product .button::after,
body ul.products li.product .button::before,
body ul.products li.product .button::after {
  position: static !important;
}

@media (max-width: 1024px) {
  body .woocommerce ul.products li.product .astra-shop-summary-wrap,
  body.woocommerce-page ul.products li.product .astra-shop-summary-wrap,
  body ul.products li.product .astra-shop-summary-wrap,
  body .products .product .astra-shop-summary-wrap {
    align-items: center !important;
  }

  body .woocommerce ul.products li.product .button,
  body.woocommerce-page ul.products li.product .button,
  body ul.products li.product .button,
  body .products .product .button,
  body .products .product .add_to_cart_button {
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-inline-start: auto !important;
    margin-inline-end: auto !important;
  }
}
