.pbsp-cp,
.pbsp-cp * {
  box-sizing: border-box;
}

.pbsp-cp {
  max-width: 1180px;
  margin: 0 auto;
  direction: rtl;
  color: #111827;
  --pbsp-cp-bg: #f8fafc;
  --pbsp-cp-card: #ffffff;
  --pbsp-cp-border: #e5e7eb;
  --pbsp-cp-soft: #f3f4f6;
  --pbsp-cp-muted: #6b7280;
  --pbsp-cp-text: #111827;
  --pbsp-cp-primary: #1f4f8f;
  --pbsp-cp-primary-2: #0f766e;
  --pbsp-cp-print: #7c3aed;
  --pbsp-cp-warning: #b45309;
  --pbsp-cp-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.pbsp-cp[dir="ltr"] {
  direction: ltr;
}

.pbsp-cp .pbsp-card,
.woocommerce-account .woocommerce-MyAccount-content .pbsp-cp .pbsp-card {
  border: 1px solid var(--pbsp-cp-border);
  border-radius: 22px;
  background: var(--pbsp-cp-card);
  box-shadow: var(--pbsp-cp-shadow);
  overflow: hidden;
  min-width: 0;
}

.pbsp-cp-dashboard-portal {
  margin: 18px 0 28px;
}

.pbsp-cp-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  margin-bottom: 16px;
  border-radius: 28px;
  background: radial-gradient(circle at top right, rgba(31, 79, 143, .22), transparent 34%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0f766e 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .18);
}

.pbsp-cp-hero:after {
  content: "";
  position: absolute;
  inset: auto -80px -130px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.pbsp-cp-hero-copy {
  position: relative;
  z-index: 1;
}

.pbsp-cp-eyebrow,
.pbsp-cp-section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  opacity: .85;
  margin-bottom: 7px;
}

.pbsp-cp-hero h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.45;
  color: #fff;
}

.pbsp-cp-hero p {
  margin: 7px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 14px;
}

.pbsp-cp-hero-badge {
  position: relative;
  z-index: 1;
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.pbsp-cp-hero-badge span {
  font-size: 12px;
  color: rgba(255,255,255,.82);
}

.pbsp-cp-hero-badge strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
  line-height: 1;
}

.pbsp-cp-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.pbsp-cp-stat-card {
  position: relative;
  padding: 18px;
  min-height: 102px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--pbsp-cp-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.pbsp-cp-stat-card:before {
  content: "";
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--pbsp-cp-primary);
  box-shadow: 0 0 0 6px rgba(31, 79, 143, .08);
}

.pbsp-cp-stat-card.is-digital:before {
  background: var(--pbsp-cp-primary-2);
  box-shadow: 0 0 0 6px rgba(15, 118, 110, .1);
}

.pbsp-cp-stat-card.is-print:before {
  background: var(--pbsp-cp-print);
  box-shadow: 0 0 0 6px rgba(124, 58, 237, .1);
}

.pbsp-cp-stat-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--pbsp-cp-muted);
  font-size: 13px;
  font-weight: 700;
}

.pbsp-cp-stat-card strong {
  display: block;
  font-size: 22px;
  color: var(--pbsp-cp-text);
  line-height: 1.5;
}

.pbsp-cp-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  gap: 9px;
  padding: 9px;
  margin: 4px 0 14px;
  border: 1px solid var(--pbsp-cp-border);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pbsp-cp-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #374151;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pbsp-cp-tab:hover {
  background: #f3f4f6;
}

.pbsp-cp-tab.is-active {
  background: linear-gradient(135deg, var(--pbsp-cp-primary), #0f766e);
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 79, 143, .2);
}

.pbsp-cp-tab em {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .08);
  color: inherit;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.pbsp-cp-tab.is-active em {
  background: rgba(255,255,255,.18);
}

.pbsp-cp-tab-panel {
  display: none;
  animation: pbspCpFade .18s ease;
}

.pbsp-cp-tab-panel.is-active {
  display: block;
}

@keyframes pbspCpFade {
  from { opacity: .55; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pbsp-cp-section-card {
  margin-top: 0;
  margin-bottom: 14px;
}

.pbsp-cp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.pbsp-cp-section-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--pbsp-cp-text);
}

.pbsp-cp-section-head p {
  margin: 6px 0 0;
  color: var(--pbsp-cp-muted);
  font-size: 13px;
}

.pbsp-cp-section-kicker {
  color: var(--pbsp-cp-primary);
  opacity: 1;
}

.pbsp-cp-empty {
  margin: 18px 22px 22px;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #f8fafc;
  color: var(--pbsp-cp-muted);
  text-align: center;
  font-weight: 700;
}

.pbsp-cp-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 22px 22px;
}

.pbsp-cp-download-card {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 18px;
  border: 1px solid var(--pbsp-cp-border);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
}

.pbsp-cp-download-card.is-ready {
  border-color: rgba(15, 118, 110, .24);
}

.pbsp-cp-download-card.is-pending {
  border-color: rgba(180, 83, 9, .22);
  background: linear-gradient(180deg, #fff, #fffaf0);
}

.pbsp-cp-download-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--pbsp-cp-muted);
  font-size: 12px;
}

.pbsp-cp-download-card h4 {
  margin: 0 0 12px;
  color: var(--pbsp-cp-text);
  font-size: 16px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 54px;
}

.pbsp-cp-download-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 0;
  color: #374151;
}

.pbsp-cp-download-card dl > div {
  min-width: 0;
}

.pbsp-cp-download-card dt {
  margin: 0 0 3px;
  color: var(--pbsp-cp-muted);
  font-size: 11px;
  font-weight: 800;
}

.pbsp-cp-download-card dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.pbsp-cp-download-actions {
  margin-top: auto;
  padding-top: 16px;
}

.pbsp-cp-download-btn,
.pbsp-cp .button.pbsp-cp-action-btn,
.pbsp-cp button.button.pbsp-cp-action-btn,
.pbsp-cp-orders-card .pbsp-cp-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .22);
  white-space: nowrap;
}

.pbsp-cp .button.pbsp-cp-action-btn,
.pbsp-cp button.button.pbsp-cp-action-btn {
  background: linear-gradient(135deg, var(--pbsp-cp-primary), #2563eb) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

.pbsp-cp-download-btn:hover,
.pbsp-cp .button.pbsp-cp-action-btn:hover,
.pbsp-cp button.button.pbsp-cp-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.pbsp-cp-preparing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--pbsp-cp-warning);
  border: 1px solid rgba(180,83,9,.22);
  font-weight: 900;
  white-space: nowrap;
}

.pbsp-cp-type-badge,
.pbsp-cp-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pbsp-cp-type-badge.is-digital {
  background: rgba(15, 118, 110, .1);
  color: #0f766e;
}

.pbsp-cp-type-badge.is-print {
  background: rgba(124, 58, 237, .1);
  color: #6d28d9;
}

.pbsp-cp-status-pill {
  background: #eef2ff;
  color: #3730a3;
}

.pbsp-cp-order-detail-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pbsp-cp-detail-block {
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #fff;
}

.pbsp-cp-detail-title {
  margin-bottom: 10px;
  font-weight: 900;
  color: var(--pbsp-cp-text);
}

.pbsp-cp-table-wrap,
.pbsp-cp .pbsp-card > div[style*="overflow:auto"],
.pbsp-cp .pbsp-cp-details div[style*="overflow:auto"],
.pbsp-cp .pbsp-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.pbsp-cp-table-wrap {
  padding: 0 18px 18px;
}

.pbsp-cp .pbsp-items-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  background: transparent;
}

.pbsp-cp .pbsp-items-table thead th {
  padding: 11px 14px;
  border: 0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-align: inherit;
  white-space: nowrap;
}

.pbsp-cp .pbsp-items-table thead th:first-child {
  border-start-start-radius: 14px;
  border-end-start-radius: 14px;
}

.pbsp-cp .pbsp-items-table thead th:last-child {
  border-start-end-radius: 14px;
  border-end-end-radius: 14px;
}

.pbsp-cp .pbsp-items-table tbody tr:not(.pbsp-cp-detail-row) td {
  padding: 13px 14px;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  vertical-align: middle;
  color: #1f2937;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pbsp-cp .pbsp-items-table tbody tr:not(.pbsp-cp-detail-row) td:first-child {
  border-inline-start: 1px solid #eef2f7;
  border-start-start-radius: 14px;
  border-end-start-radius: 14px;
}

.pbsp-cp .pbsp-items-table tbody tr:not(.pbsp-cp-detail-row) td:last-child {
  border-inline-end: 1px solid #eef2f7;
  border-start-end-radius: 14px;
  border-end-end-radius: 14px;
}

.pbsp-cp .pbsp-items-table tbody tr.pbsp-cp-detail-row td {
  padding: 0 10px 12px;
  border: 0;
  background: transparent;
}

.pbsp-cp .pbsp-cp-details {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.pbsp-cp-hidden {
  display: none !important;
}

.pbsp-cp-link {
  color: var(--pbsp-cp-primary);
  text-decoration: none;
  font-weight: 800;
}

.pbsp-cp-link:hover {
  text-decoration: underline;
}

.pbsp-cp .pbsp-muted,
.pbsp-cp-orders-card .pbsp-muted {
  color: var(--pbsp-cp-muted);
}

.pbsp-cp .button,
.pbsp-cp button.button {
  max-width: 100%;
  white-space: nowrap;
}

/* v1.0.90.141: professional WooCommerce My Account polish */
.woocommerce-account .woocommerce-MyAccount-content {
  min-width: 0;
  max-width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content > p {
  padding: 12px 16px;
  margin: 0 0 10px;
  border-radius: 16px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #eef2f7;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .05);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  padding: 12px 14px;
  font-weight: 800;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: #eef2ff;
  color: #1e3a8a;
}

.woocommerce-account .woocommerce-MyAccount-content table,
.woocommerce-account table.shop_table,
.woocommerce-account .woocommerce-orders-table {
  width: 100%;
  table-layout: auto;
  border-radius: 18px;
  overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-content table th,
.woocommerce-account .woocommerce-MyAccount-content table td,
.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td {
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: middle;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__header-order-actions {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .pbsp-cp-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .pbsp-cp-download-grid {
    grid-template-columns: 1fr;
  }

  .pbsp-cp-hero {
    flex-direction: column;
  }

  .pbsp-cp-hero-badge {
    align-items: flex-start;
    text-align: start;
  }
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-content {
    overflow-x: visible;
  }

  .woocommerce-account table.shop_table,
  .woocommerce-account .woocommerce-orders-table {
    min-width: 720px;
  }
}

@media (max-width: 640px) {
  .pbsp-cp {
    max-width: 100%;
    padding: 0 6px;
  }

  .pbsp-cp-hero {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .pbsp-cp-stat-grid {
    grid-template-columns: 1fr;
  }

  .pbsp-cp-tabs {
    border-radius: 18px;
  }

  .pbsp-cp-tab {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .pbsp-cp-section-head,
  .pbsp-cp-download-grid,
  .pbsp-cp-table-wrap {
    padding-inline: 14px;
  }

  .pbsp-cp .pbsp-items-table th,
  .pbsp-cp .pbsp-items-table td {
    padding: 9px 10px;
    font-size: 12px;
  }

  .pbsp-cp-download-card dl {
    grid-template-columns: 1fr;
  }

  .pbsp-cp-preparing,
  .pbsp-cp-download-btn {
    width: 100%;
  }
}

/* v1.0.90.142: compact full-width digital download rows in My Account */
.pbsp-cp-download-grid {
  grid-template-columns: 1fr !important;
  gap: 10px;
  padding: 14px 18px 18px;
}

.pbsp-cp-download-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 118px minmax(180px, 1fr) minmax(280px, 1.25fr) auto;
  align-items: center;
  gap: 12px 16px;
  padding: 13px 15px;
  border-radius: 18px;
}

.pbsp-cp-download-top {
  margin-bottom: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
}

.pbsp-cp-download-card h4 {
  margin: 0;
  min-height: 0;
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
}

.pbsp-cp-download-card dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px 10px;
}

.pbsp-cp-download-card dt {
  font-size: 10px;
}

.pbsp-cp-download-card dd {
  font-size: 12px;
}

.pbsp-cp-download-actions {
  margin-top: 0;
  padding-top: 0;
  align-self: center;
}

.pbsp-cp-download-btn,
.pbsp-cp-preparing {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 12px !important;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .pbsp-cp-download-card {
    grid-template-columns: 104px minmax(160px, 1fr) minmax(240px, 1.1fr) auto;
  }

  .pbsp-cp-download-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .pbsp-cp-download-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .pbsp-cp-download-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .pbsp-cp-download-actions {
    width: 100%;
  }

  .pbsp-cp-download-btn,
  .pbsp-cp-preparing {
    width: 100%;
  }
}

.pbsp-cp-debt-card .pbsp-cp-pay-debt-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--pbsp-cp-primary, #1f4f8f);
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.pbsp-cp-debt-card .pbsp-cp-pay-debt-btn:hover,
.pbsp-cp-debt-card .pbsp-cp-pay-debt-btn:focus {
  filter: brightness(.96);
  color: #fff !important;
  text-decoration: none;
}

.pbsp-cp-pay-debt-hint {
  display: block;
  margin-top: 6px;
  color: var(--pbsp-cp-muted, #6b7280);
  font-size: 11px;
  line-height: 1.7;
}
