#cv-dashboard{
  font-family: var(--wp--preset--font-family--body, inherit);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#cv-dashboard *,
#cv-dashboard *::before,
#cv-dashboard *::after{
  font-family: inherit;
}

#cv-dashboard input,
#cv-dashboard select,
#cv-dashboard textarea,
#cv-dashboard button{
  font: inherit;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  font-size: 16px;
  font-weight: 300;
  height: auto;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.psp-dashboard-page .has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.psp-dashboard-page .is-layout-constrained > *:not(.alignleft):not(.alignright):not(.alignfull) {
  max-width: 100% !important;
}

body.psp-dashboard-page {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

/* Dashboard font size*/
body.psp-dashboard-page {
  font-size: 16px;
  line-height: 1.6;
}

.psp-dashboard-content {
  font-family: 'Inter', sans-serif;
}

/* Also standardize in the dropdown menu */
.psp-dropdown-menu a,
.psp-dropdown-section,
.psp-dropdown-email {
  font-size: 16px;
}

.psp-dashboard-layout {
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  align-items: stretch; /* 👈 ensures that sidebar and content have the same height */
}

/* Sidebar */
.psp-sidebar.layout-sidebar {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  position: sticky;
  top: 0;
  background-image: linear-gradient(0deg, #010747, #0018b8);
  box-shadow: 2px 0 10px #33334f1a;
  width: 256px;
  min-width: 256px;
  max-width: 256px;
  transition: width 0.3s ease;
  z-index: 6;
}

/* Sidebar */
.psp-sidebar {
  width: 256px;
  min-width: 256px;
  max-width: 256px;
  background-image: linear-gradient(0deg, #010747, #0018b8);
  box-shadow: 2px 0 10px rgba(51, 51, 79, 0.1);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  transition: width 0.3s ease, min-width 0.3s ease;
  z-index: 10;
}

@media (max-width: 768px) {
  .psp-sidebar {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
  }

  .psp-sidebar ul li a span {
    display: none !important;
  }

  .psp-sidebar ul li a {
    justify-content: center !important;
  }

  .psp-sidebar .psp-logo-wrapper .logo-full {
    display: none !important;
  }

  .psp-sidebar .psp-logo-wrapper .logo-mini {
    display: block !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    position: relative !important;
  }

  .psp-nav-separator {
    display: none !important;
  }

  .psp-sidebar-footer .sidebar-toggle {
    display: none;
  }

  .psp-content-area {
    margin-left: 64px !important;
  }
}

.psp-sidebar.collapsed {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
}

/* Hide the text when the sidebar is collapsed */
.psp-sidebar.collapsed ul li a span {
  display: none;
}

/* Center the icon alone */
.psp-sidebar.collapsed ul li a {
  justify-content: center;
}

.psp-dashboard-wrapper.sidebar-collapsed {
  overflow-y: auto; /* ← prevent global vertical scrolling */
}

/* Footer toggle button */
.psp-sidebar-footer {
  margin-top: auto;
  padding: 10px;
  text-align: center;
}

.sidebar-toggle {
  background: transparent !important;
  color: white !important;
  opacity: 0.25;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.sidebar-toggle:hover {
  opacity: 0.5;
}

.psp-sidebar nav {
  padding-top: 1rem;
  flex-grow: 1;
}

.psp-sidebar .logo {
  margin: 0.75rem 0 2.5rem;
  display: flex;
  justify-content: center;
}

.psp-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 1rem;
  color: #fff;
}

.psp-sidebar ul:not(:first-of-type) {
  margin-top: 1rem;
  border-top: 1px solid rgba(179, 185, 228, 0.32);
  padding-top: 1rem;
}

.psp-sidebar ul li a {
  display: flex;
  align-items: center;
  font-size: 1rem;
  padding: 0.3rem 0.75rem;
  margin: 0.5rem 0;
  color: #fff;
  opacity: 0.7;
  text-decoration: none;
  border-radius: 12px;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

/* Normal state */
.psp-sidebar ul li a:hover,
.psp-sidebar ul li a.active {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.psp-sidebar.collapsed ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 0;
}

.psp-logo-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}
/* Remove the underline forced by WP (Gutenberg) styles */
.psp-logo-link,
.psp-logo-wrapper a,
.psp-dashboard-page .psp-logo-wrapper a,
.psp-logo-wrapper a:visited,
.psp-logo-wrapper a:hover,
.psp-logo-wrapper a:focus,
.psp-logo-wrapper a:where(:not(.wp-element-button)) {
  text-decoration: none !important;
}
/* Optional: keep the text color as defined by you */
.psp-logo-link { color: white !important; }
/* Normal logo (text + image) */
.psp-sidebar .logo .logo-full {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Mini logo (image only), hidden by default */
.psp-sidebar .logo .logo-mini {
  display: block;
  opacity: 0;
  transform: translateX(-10px);
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* When sidebar is collapsed */
.psp-sidebar.collapsed .logo .logo-full {
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
}

.psp-sidebar.collapsed .logo .logo-mini {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.psp-sidebar.collapsed .logo-full {
  display: none !important;
}

.psp-sidebar.collapsed .logo-mini {
  display: block !important;
}

.psp-logo-wrapper .logo-full {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.psp-logo-wrapper .logo-mini {
  display: none !important;
}

.psp-nav-separator {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
}
.psp-sidebar.collapsed .psp-nav-separator {
  display: none;
}

.psp-sidebar footer {
  padding: 1rem;
  text-align: center;
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: #fff;
  opacity: 0.25;
  font-size: 1.25rem;
  cursor: pointer;
}

.psp-logo-wrapper {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.psp-logo-wrapper img {
  border-radius: 8px;
}

.nav-item-icon {
  padding: .25rem;
  border-radius: 8px;
  width: 3rem;
  height: 3rem;
  margin-right: 1rem;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 24px;
  min-width: 2rem;
}

/* Main content area */
.psp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

/* 🔷 Main header inline even on mobile */
.psp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #f9f9f9;
  border-bottom: 1px solid #e5e5e5;
  flex-wrap: nowrap; /* ✅ prevent switching to column layout */
  gap: 15px;
}

/* 🔷 Icons container */
.right-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* 🔷 User icon */
.psp-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

/* Dropdown */
.psp-account-dropdown {
  position: relative;
}

.psp-dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 10px;
  display: none;
  width: 220px;
}

.psp-account-dropdown:hover .psp-dropdown-menu {
  display: block;
}
/* Specific responsive */
@media (max-width: 768px) {
  .psp-header {
    padding: 14px 16px;
    gap: 10px;
  }

  .psp-search {
    font-size: 14px;
    padding: 8px 12px;
  }

  .psp-icon {
    width: 32px;
    height: 32px;
  }

  .psp-dropdown-menu {
    top: 110%;
  }
}

.psp-header .right-icons {
  display: flex;
  align-items: center;
}

.psp-dashboard-header-title {
  margin-bottom: 1rem;
  margin-top: 10px;
}

.psp-dashboard-header-title h1 {
  color: #1e293b;
  line-height: 1.6;
  font-size: 2rem;
  font-weight: 900;
  margin: 0;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.psp-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.psp-woo-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.woo-info {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #111;
}

.psp-woo-section-header .woo-info {
  margin: 0;
  padding: 0;
  flex: 1; /* <-- takes all available space on the left */
  font-size: 18px;
  font-weight: 600;
  color: #111;
}

.psp-support-banner {
  margin: 0;
  transition: opacity 0.5s ease;
  padding: 1em 1.5em;
  font-size: 15px;
  font-weight: 500;
  border-radius: 0 0 8px 8px;
  text-align: center;
}

.psp-banner-success {
  background-color: #d4f5df;
  color: #237145;
  border-top: 1px solid #b2e2c6;
}

.psp-banner-error {
  background-color: #fce3e3;
  color: #8b1f1f;
  border-top: 1px solid #f4baba;
}

.psp-banner-loading {
  background-color: #f0f0f0;
  color: #555;
  border-top: 1px solid #ccc;
}

.psp-section-icon {
  font-size: 1.6rem;
  margin-right: 10px;
}

.psp-section-header h2 {
  color: #334155;
  line-height: 1.5;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.psp-subtext {
  margin-top: 0;
  margin-bottom: 1rem;
  max-width: 600px;
}

.psp-blog-section .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.psp-blog-section .col {
  display: flex;
}

.layout-footer {
  margin: 2rem 0;
  font-size: 14px;
  color: #64748b;
}

.layout-footer--separator {
  width: 100%;
  height: 1px;
  background: #cbd5e1;
  margin-bottom: 1.5rem;
}

.layout-footer--content {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  gap: 1rem;
}

.layout-footer--content a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.layout-footer--content a:hover {
  color: #1e40af;
}

.layout-footer--content-copyright {
  font-weight: 400;
}

.layout-footer--content-link {
  font-weight: 400;
}

.layout-footer--content-help {
  margin-left: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  min-width: 80px;
  white-space: nowrap;
  overflow: visible;
  flex-shrink: 0;
}

.footer-help-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
}


.row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.col {
  flex: 1 1 calc(33.333% - 30px);
  box-sizing: border-box;
}

/* 🧩 Grid layout for blog cards */
.psp-blog-section .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.psp-blog-section .col {
  display: flex;
}

/* 🧩 Card */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
  transition: transform 0.2s ease;
}

.card-body {
	padding: 20px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blogpost-title {
  font-size: 18px;
  font-weight: 600;
}

.blogpost-author,
.blogpost-date {
  font-size: 13px;
  color: #666;
}

/* 🔘 "Read more" button */
.text-center {
  margin-top: 30px;
}

.text-center .btn {
  padding: 10px 20px;
  font-weight: 500;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #ccc;
}

/* 📱 Responsive: tablet */
@media (max-width: 1024px) {
  .psp-blog-section .row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 📱 Responsive : mobile */
@media (max-width: 768px) {
  .psp-dashboard-header-title h1 {
    font-size: 20px;
  }

  .psp-section-header h2 {
    font-size: 18px;
  }

  .psp-subtext {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .psp-blog-section .row {
    grid-template-columns: 1fr;
  }

  .layout-footer {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .layout-footer--content {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .layout-footer--content a {
    font-size: 14px;
  }

  .footer-help-icon {
    width: 18px;
    margin-right: 6px;
  }
}

.blogpost-date {
  margin-bottom: 0.75rem;
  color: #6c757d !important;
  font-size: 0.85rem;
}

.blogpost-title {
  color: inherit;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.333;
  margin: 0 0 1rem 0;
}

.blogpost-author {
  /*margin-top: auto;*/
  color: #6c757d !important;
  font-size: 0.9rem;
}

.text-muted {
  color: #6c757d !important;
}

.text-center {
  text-align: center !important;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  color: #212529;
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

.right-icons img.psp-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.right-icons img.psp-icon:hover {
  transform: scale(1.1);
}

.psp-header .right-icons span {
  cursor: pointer;
  font-size: 20px;
  color: #374151;
}

.psp-search {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  width: 300px;
  font-size: 14px;
}

/* Content wrapper */
.psp-content {
  width: 100%;
  height: 100%;
  padding-top:2rem;
  padding-right: 15px;
  padding-left: 5px;
  margin-right: auto;
  margin-left: auto;
  background-color: #f8fafc;
  overflow-y: auto;
  flex: 1;
  /*box-sizing: border-box;*/
}

/* Adaptive width like bootstrap-style containers */
@media (min-width: 576px) {
  .psp-content {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .psp-content {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .psp-content {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .psp-content {
    max-width: 1140px;
  }
}

/* Card blocks */
.psp-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 24px;
  margin-bottom: 24px;
}

/* CTA Button */
.psp-button {
  background-color: #0067f0;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.psp-button:hover {
  background-color: #0053c7;
}

.psp-account-dropdown {
  position: relative;
  display: inline-block;
}

.psp-account-dropdown .psp-user-toggle {
  cursor: pointer;
}

.psp-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  display: none;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  min-width: 180px;
  padding: 0.5rem 0;
}

.psp-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #374151;
  font-size: 16px;
}

.psp-dropdown-menu a:hover {
  background-color: #f3f4f6;
}

.psp-dropdown-section {
  padding: 10px 16px;
}

.psp-dropdown-email {
  font-size: 16px;
  color: #6b7280;
  margin-top: 4px;
  word-break: break-word;
}

.psp-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 6px 0;
}

.psp-dashboard-content.active {
  padding-right: 20px;
    padding-left: 20px;

}

/* Header spacing */
.psp-dashboard-content > header + .dashboard-tab {
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

/* Billing tabs */
.dashboard-tab {
  margin: 1rem 0;
  border-bottom: 1px solid #c3cfdd;
}

.dashboard-tab > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  display: flex;
  overflow: auto hidden;
}

.dashboard-tab li {
 margin-right: 1rem;
}

.dashboard-tab li a {
  text-decoration: none;
  text-transform: none;
  display: inline-block;
  letter-spacing: 0.25px;
  padding: 8px;
  color: #486182;
  position: relative;
  font-weight: 500;
}

.dashboard-tab li.dashboard-tab--active a {
  color: #1d6df9;
  font-weight: 700;
}

/* Optional: animation or transition */
.dashboard-tab li a {
  transition: color 0.2s ease;
}

.dashboard-tab li.dashboard-tab--active a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background-color: #1d6df9;
  border-radius: 2px;
}

.billing-plans-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

.billing-plans-cards > * {
  flex: 1 1 100%;
}

@media screen and (min-width: 992px) {
  .billing-plans-cards > * {
    flex: 1 1 0px;
  }
}

/* Reserve the space for cards during loading */
#billing-history.psp-loading .psp-invoices-grid {
  position: relative;
  min-height: 260px; /* prevent visual "jump" */
}

/* Skeleton grid */
.psp-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.psp-skel-card {
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  background: #fff;
}

.psp-skel-line {
  height: 12px;
  margin: 8px 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f2f5 25%, #e6e9ef 50%, #f0f2f5 75%);
  background-size: 400% 100%;
  animation: pspShimmer 1.2s ease-in-out infinite;
}

.psp-skel-line.w40 { width: 40%; }
.psp-skel-line.w60 { width: 60%; }
.psp-skel-line.w80 { width: 80%; }

@keyframes pspShimmer {
  0% { background-position: 0% 0; }
  100% { background-position: -135% 0; }
}

/* Fade-in for real cards when ready */
/* Cards visible by default */
.psp-invoice-card {}

/* Animate only when .psp-show is added (pagination) */
.psp-invoice-card.psp-show {
  transition: opacity .22s ease, transform .22s ease;
  opacity: 1;
  transform: translateY(0);
}
/* Pagination disabled during fetch */
.psp-dashboard-pagination button[disabled] {
  opacity: .55;
  pointer-events: none;
}

.psp-dashboard-pagination { text-align:center; margin-top:20px; }
.psp-dashboard-btn { width:36px; height:36px; margin:0 5px; border:1px solid black; background:transparent; color:black; border-radius:50%; font-size:14px; cursor:pointer; transition:all .2s; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.psp-dashboard-btn:hover { background:#b4dba4; color:#fff; border-color:black; }
.psp-dashboard-btn.active { background:#b4dba4; color:black; font-weight:bold; border-color:black; }
.psp-dashboard-btn:focus { outline:none; box-shadow:0 0 0 2px rgba(0,0,0,.3); }

.plan-card.card,
.payment-method-card.card {
	padding: 10px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 180px; /* adjust as you prefer */
}

.top-part {
  display: flex;
  flex-direction: row;
  margin-bottom: 2.5rem;
}

.plan-name {
  display: flex;
  flex-direction: column;
  margin-right: 1rem;
}

.plan-name h2 {
  color: #334155;
  line-height: 1.5;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.plan-price {
  margin-left: auto;
  text-align: right;
}

.plan-price .amount {
  color: #1e293b;
  line-height: 1.6;
  font-size: 2rem;
  font-weight: 900;
  margin: 0;
}

.plan-price .info {
  color: rgb(108, 117, 125);
}

.bottom-part {
  margin-top: auto; /* ✅ push the footer to the bottom of the card */
  display: flex;
  align-items: center;
  min-height: 30px;
}

.btn.btn-marketing {
	
  color: #fff;
  background-color: #ff486a;
  border-color: #ff486a;
  border-radius: 8px;
  font-weight: 900;
  padding: .375rem .75rem;
  font-size: 1rem;
}

.billing-info-section {
  margin-top: 3rem;
}

.billing-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.billing-info-header h2 {
  color: #334155;
  line-height: 1.5;
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0;
}

.billing-info-header a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.dashboard-table.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.billing-information-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.billing-information-table td {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  vertical-align: top;
}

.billing-information-table td:first-child {
  font-size: 1.2rem;
}

.billing-information-table tr:first-child td {
  border-top: none;
}

.billing-plans-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

#psp-history {
  margin-top: 40px;
}

#psp-history .psp-section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#psp-history .psp-table {
  width: 100%;
  border-collapse: collapse;
}

#psp-history .psp-table th, 
#psp-history .psp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

#psp-history .psp-table td a {
  color: #0073aa;
  text-decoration: underline;
}

.psp-button.small {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 10px;
  background: #f3f3f3;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #333;
}

.psp-button.small:hover {
  background: #eaeaea;
}

.psp-status-label {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: #eee;
  font-weight: 600;
}

.psp-status-label.psp-paid {
  background: #c8e6c9;
  color: #256029;
}

.psp-status-label.psp-unpaid {
  background: #ffcdd2;
  color: #b71c1c;
}

.psp-mode-user-table th,
.psp-mode-user-table td {
  vertical-align: middle;
  padding: 12px 10px;
}

.psp-mode-user-table th {
  font-weight: 600;
  text-align: left;
  background-color: #f9f9f9;
}

.psp-mode-user-table .psp-col-key {
  width: 20%;
  white-space: nowrap;
}

.psp-mode-user-table {
  width: 100%;
  border: 1px solid #e2e4e7;

}

.psp-mode-user-table th,
.psp-mode-user-table td {
}

.psp-payment-info p {
  margin: 4px 0;
  font-size: 15px;
}

.psp-card-style {
  max-width: 380px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

.psp-card-style-subscription {
  margin: 0 auto;
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

.psp-card-style h2,
.psp-card-style p {
  margin: 0 0 10px 0;
}

.psp-payment-info {
  font-size: 16px;
}

.psp-card-style .btn {
  margin-top: 15px;
  background-color: #fff;
  color: #0072ff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.psp-card-style .btn:hover {
  background-color: #f2f2f2;
}

.psp-payment-info {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.psp-input-style {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccd0d4;
  border-radius: 10px;
  font-size: 14px;
}

.psp-alert-warning {
  background: #fff8e1;
  color: #8a6d3b;
  border-left: 4px solid #f0ad4e;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 15px;
}

#psp-account-form input[type="text"],
#psp-account-form input[type="email"] {
  line-height: 2;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

.psp-valid {
  border: 2px solid #3ecf8e !important; /* green */
  background-color: #f1fff7;
}

.psp-invalid {
  border: 2px solid #e74c3c !important; /* red */
  background-color: #fff5f5;
}

@keyframes pspHighlightSuccess {
  0%   { background-color: #e0ffec; }
  100% { background-color: white; }
}

.psp-flash-valid {
  animation: pspHighlightSuccess 2s ease-out;
  border: 2px solid #3ecf8e !important;
}

.psp-renewal-date {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #64748b;
  font-style: italic;
}

.psp-renewal-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  color: #0f5132;
  background: #d1e7dd;
  border: 1px solid #badbcc;
  border-radius: 20px;
  padding: 6px 12px;
  margin-top: 8px;
  font-weight: 500;
}

.psp-renewal-badge {
  width: 10px;
  height: 10px;
  background-color: #198754;
  border-radius: 50%;
  margin-right: 8px;
}

.psp-renewal-missing {
  background: #f8d7da;
  color: #842029;
  border-color: #f5c2c7;
}
.psp-price-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
}

.psp-price-wrapper .amount {
  margin: 0;
}

.psp-floating-login-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

/* Dashboard Woocommerce */

.psp-my-subscription-card {
    /*background: linear-gradient(145deg, #b1d2ff, #567195);*/
    /*border-radius: 20px;*/
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.psp-subscription-grid {
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

@media screen and (max-width: 768px) {
  .psp-subscription-grid {
    grid-template-columns: 1fr;
  }
}

.psp-subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.psp-subscription-features ul {
  margin: 8px 0 20px 20px;
  padding: 0;
  list-style: none;
  font-weight: 700;
  color: currentColor;
}

.psp-subscription-features li::before {
  content: "✅ ";
  margin-right: 5px;
}

.psp-subscription-status-text {
  font-size: 16px;
  margin-top: 10px;
}

.psp-status-active {
  color: #caffd8; /* Green success WooCommerce */
  font-size: large;
  font-weight: bold;
}

.psp-subscription-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.psp-subscription-switch .psp-switch-button {
  background-color: var(--primary-color, #0073aa);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.psp-card-header-row {
  display: contents;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.psp-card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin: 0;
  color: #222;
}

.psp-card-logo img {
  height: 32px;
  width: auto;
  display: block;
  margin-left: 12px;
}

.psp-card-body {
  padding: 10px 0;
  font-size: 0.95em;
  color: #333;
}

.psp-card-info {
  display: block;
  margin-top: 4px;
}

.psp-card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  flex-wrap: wrap;
}

.psp-card-actions .psp-update-button {
  background-color: var(--primary-color, #0073aa);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.psp-card-expiration span {
  font-size: 0.85em;
  font-style: italic;
  color: #666;
  margin-left: 10px;
}

/* Billing Info Card */
.psp-billing-info-section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.psp-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.psp-section-header h2 {
  font-size: 1.4em;
  font-weight: 600;
  margin: 0;
}

.psp-edit-link {
  font-size: 0.95em;
  color: var(--primary-color, #0073aa);
  text-decoration: none;
}

.psp-billing-information-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.psp-billing-information-table td {
  padding: 10px 5px;
  font-size: 0.95em;
  color: #333;
  border-bottom: 1px solid #eee;
}

.psp-billing-information-table td:first-child {
  text-align: center;
  font-size: 1.2em;
  width: 40px;
}

.psp-section-footer {
  text-align: center;
}

.psp-help-button {
  background-color: #f3f3f3;
  color: #333;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.psp-help-button:hover {
  background-color: #e1e1e1;
}

/* Support section */
.psp-tab-content[data-tab="support"] {
  font-family: 'Inter', sans-serif;
}

.psp-support-form.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  max-width: 600px;
  margin: 2rem auto;
  overflow: hidden; /* useful for border-radius */
  position: relative;
}

.psp-support-form .psp-support-inner {
  padding: 2rem; /* move the padding here */
}

.psp-support-title {
	font-weight: 900;

  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.psp-support-intro {
  color: #666;
  	padding: 20px;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.psp-form-group {
  margin-bottom: 1.5rem;
}

.psp-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.psp-select-wrapper select,
.psp-form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  background-color: #f9f9f9;
}

.psp-form-group select:focus,
.psp-form-group textarea:focus {
  border-color: #4a90e2;
  outline: none;
  background-color: #fff;
}

#psp_support_message {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

#psp_support_message:focus {
  outline: none;
  border-color: #007cba; /* blue WP */
  box-shadow: 0 0 0 2px rgba(0, 123, 186, 0.2);
}

.psp-support-form select,
.psp-support-form textarea,
.psp-support-form input,
.psp-support-form button,
.psp-support-form label {
  font-family: 'Inter', sans-serif;
}

.psp-form-submit {
  margin-top: 1.5rem;
}

.psp-submit-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background-color: #64b0ff; /* Indigo */
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.psp-submit-btn:active {
  transform: translateY(1px);
  background-color: #3730A3;
}

.psp-btn-primary.is-ghost:active{ transform:translateY(0); }
.psp-btn-primary.is-ghost:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px #fff, 0 0 0 5px color-mix(in srgb, var(--psp-accent) 45%, transparent);
}

.psp-btn-primary.is-ghost::after{ content:"→"; font-weight:800; transform:translateX(-2px); transition:transform .18s ease, opacity .18s ease; opacity:.85; }
.psp-btn-primary,
.psp-btn-primary.is-ghost,
.psp-btn-ghost,
.psp-btn-primary-downloads,
.psp-address-edit-toggle,
.psp-address-save {
  cursor: pointer;
}

@media (prefers-color-scheme: dark){
  .psp-btn-primary.is-ghost{
    --psp-shadow: rgba(0,0,0,.35);
    color:#ffffff;
    border-color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(2px);
  }
  .psp-btn-primary.is-ghost:focus-visible{
    box-shadow: 0 0 0 3px rgba(255,255,255,.55);
  }
}

.psp-toast-success{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(10px);
  background: #0ea765;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(14,167,101,.25);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  z-index: 9999;
  font-weight: 700;
}
.psp-toast-success.show{
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.psp-support-response {
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.psp-support-response.psp-success {
  color: green;
}

.psp-support-response.psp-error {
  color: red;
}

.psp-loading {
  font-style: italic;
  color: #555;
}
#psp-support-response {

margin-top:30px;
text-align: center;
font-weight: 600;	
}

.psp-error {
  border: 2px solid #dc3545 !important;
  background: #fff5f5 !important; 
}

.psp-skeleton-loader {
  padding: 20px;
  animation: pulse 1.5s infinite;
}

.skeleton-title,
.skeleton-block {
  background: #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
}

.skeleton-title {
  height: 24px;
  width: 40%;
}

.skeleton-block {
  height: 16px;
  width: 100%;
}

.skeleton-block.short {
  width: 60%;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* SUBSCRIPTION SECTION */

/* === Themes Variables (optional) ============================== */
:root {
  --psp-grad-1: #91eae4;
  --psp-grad-2: #86a8e7;
  --psp-grad-3: #7f7fd5;
  --psp-text-on-grad: #ffffff;
  --psp-highlight: #ffee95;
  --psp-shadow: rgba(0, 0, 0, 0.18);
}

/* === Congratz Banner ================================== */
.psp-congrats-banner {
  position: relative;
  overflow: hidden;
  color: var(--psp-text-on-grad);
  padding: 28px 32px;
  border-radius: 18px;
  box-shadow: 0 10px 24px var(--psp-shadow);
  margin-bottom: 30px;
  text-align: center;
  isolation: isolate;
  background: linear-gradient(135deg, var(--psp-grad-1), var(--psp-grad-2), var(--psp-grad-3));
  background-size: 200% 200%;
  animation: pspGradientShift 8s ease-in-out infinite alternate;
}

.psp-congrats-banner::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(255,255,255,.35), transparent 60%),
              radial-gradient(40% 40% at 90% 20%, rgba(255,255,255,.25), transparent 60%);
  filter: blur(12px);
  opacity: .6;
  z-index: -1;
  animation: pspGlow 6s ease-in-out infinite alternate;
}

.psp-congrats-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 35%,
    rgba(255,255,255,.35) 45%,
    rgba(255,255,255,.6) 50%,
    rgba(255,255,255,.35) 55%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: pspSheen 3.8s cubic-bezier(.22,.61,.36,1) infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.psp-congrats-content {
  position: relative;
}

.psp-congrats-content::before,
.psp-congrats-content::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 6px 6px, 8px 8px, 10px 10px, 12px 12px;
  opacity: .25;
  animation: pspConfetti 10s linear infinite;
}

.psp-congrats-content::before {
  background-image:
    radial-gradient(#fff 55%, transparent 56%),
    radial-gradient(#ffe08a 55%, transparent 56%),
    radial-gradient(#ffd1dc 55%, transparent 56%),
    radial-gradient(#c7f0ff 55%, transparent 56%);
  background-position:
    10% -10%, 30% -20%, 70% -25%, 90% -15%;
  animation-delay: 0s;
}

.psp-congrats-content::after {
  background-image:
    radial-gradient(#ffffff 55%, transparent 56%),
    radial-gradient(#ffe08a 55%, transparent 56%),
    radial-gradient(#ffd1dc 55%, transparent 56%),
    radial-gradient(#c7f0ff 55%, transparent 56%);
  background-position:
    20% -20%, 50% -30%, 80% -35%, 95% -25%;
  animation-delay: 1.2s;
}

.psp-congrats-content h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,.15);
  animation: pspPopIn .6s cubic-bezier(.16,1,.3,1) both;
}

.psp-congrats-content p {
  font-weight: 700;
  margin-bottom: 8px;
}

.psp-congrats-highlight {
  font-weight: 700;
  font-size: 25px;
  color: var(--psp-highlight);
  margin-top: 10px;
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
  animation: pspPulse 2.8s ease-in-out infinite;
}

.psp-subscription-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.psp-plan-name { font-weight: 700; font-size: 30px; }
.psp-plan-price { font-weight: 800; font-size: 18px; opacity: .95; }

.psp-subscription-features h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 14px 0 8px;
}

/* Banner "No active subscription" */
.psp-no-sub-banner {
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(120,130,200,.35);
  color: #1f2645;
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: 0 6px 16px rgba(18, 22, 40, .06);
}
.psp-no-sub-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(120,130,200,.07) 0 12px,
    transparent 12px 24px
  );
  pointer-events: none;
}

.psp-error-banner {
  background: #fff3cd;
  border: 1px solid #ffe08a;
  color: #6b4e00;
  border-radius: 10px;
  padding: 12px 14px;
}

/* === Animations ================================================== */

@keyframes pspGradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes pspGlow {
  0%   { opacity: .35; transform: scale(1); }
  100% { opacity: .65; transform: scale(1.03); }
}

@keyframes pspSheen {
  0%   { transform: translateX(-120%) skewX(-12deg); }
  100% { transform: translateX(120%)  skewX(-12deg); }
}

@keyframes pspPopIn {
  0% { transform: translateY(8px) scale(.96); opacity: 0; }
  100%{ transform: translateY(0)   scale(1);   opacity: 1; }
}

@keyframes pspPulse {
  0%,100% { opacity: .9; transform: scale(1); }
  50%     { opacity: 1;  transform: scale(1.02); }
}

@keyframes pspConfetti {
  0%   { background-position: 10% -10%, 30% -20%, 70% -25%, 90% -15%; }
  100% { background-position: 10% 120%, 30% 130%, 70% 135%, 90% 125%; }
}

@media (prefers-reduced-motion: reduce) {
  .psp-congrats-banner,
  .psp-congrats-banner::before,
  .psp-congrats-banner::after,
  .psp-congrats-content::before,
  .psp-congrats-content::after,
  .psp-congrats-highlight {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .psp-congrats-banner {
    padding: 20px 16px;
  }

  .psp-congrats-content h2 {
    font-size: 22px;
  }

  .psp-congrats-content p {
    font-size: 15px;
  }
}

.psp-congrats-cancel {
  font-size: 14px;
  color: #fefefe;
  opacity: 0.7;
  margin-top: 12px;
  font-style: italic;
}

:root{
  --psp-surface: #ffffff;
  --psp-border:  #e7ecf3;
  --psp-shadow:  rgba(18, 22, 40, .08);
  --psp-text:    #1f2645;
  --psp-muted:   #6b7280;
  --psp-accent:  #2f6fec;
}

.psp-subscription-card.psp-my-subscription-card{
  position: relative;
  /*background: var(--psp-surface);*/
  color: var(--psp-text);
  border: 1px solid var(--psp-border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 18px var(--psp-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  isolation: isolate;
}

.psp-subscription-card.psp-my-subscription-card::after{
  content:"";
  position:absolute; inset:0; border-radius: inherit; pointer-events:none;
  transform: translateX(-120%);
  opacity: .0;
  transition: opacity .25s ease;
}
@keyframes pspSheenLite{
  0%   { transform: translateX(-120%) skewX(-12deg); }
  100% { transform: translateX(120%)  skewX(-12deg); }
}

/* Header name + price */
.psp-subscription-header{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:12px; margin-bottom:12px;
}
.psp-plan-name{ font-weight:800; font-size:30px; letter-spacing:.2px; }

/* Price visible (without gradient) */
.psp-plan-price{
  display:inline-block;
  font-weight:800; font-size:16px;
  padding:8px 12px; border-radius:12px;
  background:#f4f7ff;
  color:#22305d;
  border:1px solid #e1e7f5;
  transition: transform .2s ease;
}

/* Features */
.psp-subscription-features h3{
  font-size:14px; font-weight:700; margin:14px 0 8px; color:#232b55;
}
/* Bullet size */
:root { --psp-bullet-size: 20px; }

.psp-feature-list-dashboard { list-style: none; margin: 0; padding: 0; }
.psp-feature-list-dashboard li{
  display: grid;
  grid-template-columns: var(--psp-bullet-size) 1fr;
  align-items: center;
  column-gap: 10px;
  margin: 8px 0;
}

.psp-feature-list-dashboard li::before{
  content: "✓";
  width: var(--psp-bullet-size);
  height: var(--psp-bullet-size);
  border-radius: 50%;
  background: #e8efff;
  border: 1px solid #d7e2ff;
  box-shadow: 0 2px 4px rgba(0,0,0,.06);
  display: grid;
  place-items: center;
  font-size: calc(var(--psp-bullet-size) * 0.6);
  font-weight: 800;
  color: var(--psp-accent, #2f6fec);
  line-height: 1;
  transition: transform .18s ease, background-color .2s ease, border-color .2s ease;
  will-change: transform;
}

.psp-feature-list-dashboard li:hover::before{
  transform: scale(1.06);
  background-color: #e1e9ff;
  border-color: #cdd9ff;
}

.psp-feature-list-dashboard.is-arrow li::before{
  content: "➜";
  font-weight: 700;
}

/* Dark mode smooth */
@media (prefers-color-scheme: dark){
  .psp-feature-list-dashboard li::before{
    background: #1b2236;
    border-color: #27304c;
    color: #98b4ff;
    box-shadow: 0 2px 4px rgba(0,0,0,.35);
  }
}

/* No Feature Defined */
.psp-no-features{ color:var(--psp-muted); font-style:italic; }

.psp-subscription-renewal{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--psp-border);
  margin-left: auto;
  width: max-content;
  transition: transform .2s ease, opacity .2s ease;
}
.psp-subscription-renewal > strong{ color:#232b55; }

.psp-renew-date{
  font-weight:800;
  padding:6px 10px; border-radius:10px;
  background:#f5f7fb; border:1px solid #e3e8f3; color:#1f2645;
}
.psp-renew-missing{ color:#9aa3b2; }

.psp-subscription-card.is-compact{ padding:16px 18px; }
.psp-subscription-card.is-compact .psp-plan-name{ font-size:18px; }
.psp-subscription-card.is-compact .psp-plan-price{ font-size:14px; padding:6px 10px; }

@media (prefers-color-scheme: dark){
  :root{
    --psp-surface:#121726; --psp-border:#1e2539; --psp-text:#e7ecff;
    --psp-shadow: rgba(0,0,0,.35);
  }
  .psp-subscription-features h3, .psp-subscription-renewal > strong{ color:#e7ecff; }
  .psp-plan-price{ background:#1a2033; border-color:#27304c; color:#e7ecff; }
  .psp-feature-list-dashboard li::before{ background:#1b2236; border-color:#27304c; }
  .psp-feature-list-dashboard li::after{ color:#98b4ff; }
  .psp-subscription-renewal{ border-color:#1e2539; }
  .psp-renew-date{ background:#1a2033; border-color:#27304c; color:#e7ecff; }
  .psp-no-features{ color:#9aa3b2; }
}

@media (prefers-reduced-motion: reduce){
  .psp-subscription-card.psp-my-subscription-card,
  .psp-subscription-card.psp-my-subscription-card::after,
  .psp-plan-price{
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 768px) {
  .psp-subscription-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .psp-subscription-price {
    font-size: 24px;
  }

  .psp-subscription-card {
    padding: 20px;
  }
}

.psp-btn-primary{
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  background: var(--psp-accent, #2f6fec);
  color: #fff;
  border: 1px solid rgba(47,111,236,.15);
  box-shadow: 0 8px 18px rgba(47,111,236,.25);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.psp-btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(47,111,236,.28);
}
.psp-btn-primary:active{
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(47,111,236,.22);
}
.psp-btn-primary:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px rgba(47,111,236,.45);
}

.psp-congrats-content .psp-btn-primary,
.psp-no-sub-banner   .psp-btn-primary{
  margin-inline: auto;
}

.psp-btn-primary.is-ghost{
  background: transparent;
  color: var(--psp-accent, #2f6fec);
  border-color: currentColor;
  box-shadow: none;
}
.psp-btn-primary.is-ghost:hover{
  background: rgba(47,111,236,.06);
}

.psp-congrats-cancel{
  text-align: center;
  margin-top: 10px;
  color: #5f6b85;
  font-size: 13.5px;
}

.psp-congrats-content{ text-align: center; }

@media (prefers-color-scheme: dark){
  .psp-btn-primary{
    background: #3a76ff;
    border-color: rgba(58,118,255,.25);
    box-shadow: 0 8px 18px rgba(0,0,0,.45);
  }
  .psp-btn-primary.is-ghost{
    color: #9db6ff;
  }
  .psp-congrats-cancel{ color: #a7b1c6; }
}

@media (prefers-reduced-motion: reduce){
  .psp-btn-primary{ transition: none !important; }
}

/* ACCOUNT SECTION */

.psp-card-form {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 0 auto;
}

.psp-card-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.psp-card-form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.psp-card-form-group input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  background-color: #f9f9f9;
  transition: border-color 0.2s;
}

.psp-card-form-group input:focus {
  border-color: #4a90e2;
  outline: none;
  background-color: #fff;
}

.psp-card-form-actions {
  text-align: center;
  margin-top: 30px;
}

.psp-invoices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.psp-invoice-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.psp-invoice-card:hover {
  transform: translateY(-4px);
}

.psp-invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 15px;
}

.psp-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  text-transform: capitalize;
}

.psp-paid {
  background-color: #e3fcef;
  color: #027a48;
}

.psp-open {
  background-color: #fef0c7;
  color: #b54708;
}

.psp-unpaid {
  background-color: #fee4e2;
  color: #b42318;
}

.psp-invoice-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0056b3;
  font-weight: 500;
  text-decoration: none;
}

.psp-invoice-pdf-link:hover {
  text-decoration: underline;
}

.psp-pdf-icon {
  height: 20px;
}

.psp-portal-link-container {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #f4f6f9, #e8edf3);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
  text-align: center;
}

.psp-portal-link-container h3 {
  margin-bottom: 12px;
  font-size: 18px;
  color: #333;
}

.psp-portal-link-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.psp-portal-link-container p {
  font-size: 13px;
  color: #666;
  margin-top: 10px;
}

/* =========================================================
   Premium Table (psp-table-wrap + psp-table)
   ========================================================= */
:root{
  --psp-surface: #ffffff;
  --psp-border:  #e7ecf3;
  --psp-shadow:  rgba(18,22,40,.08);
  --psp-text:    #1f2645;
  --psp-muted:   #6b7280;
}

.psp-table-wrap{
  width: 100%;
  margin: 16px 0;
  background: var(--psp-surface);
  border: 1px solid var(--psp-border);
  border-radius: 16px;
  box-shadow: 0 10px 24px var(--psp-shadow);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table premium */
.psp-table{
  width: 100%;
  min-width: 640px;               
  border-collapse: separate;
}

/* Header sticky + fond doux */
.psp-table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9fd;
  color: #1f2645;
  font-weight: 800;
  text-align: left;
  border-bottom: 1px solid var(--psp-border);
  padding: 12px 14px;
}

/* Cells */
.psp-table td{
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f8;
  vertical-align: middle;
  color: var(--psp-text);
}

.psp-table th:first-child,
.psp-table td:first-child{ padding-left: 18px; }
.psp-table th:last-child,
.psp-table td:last-child { padding-right: 18px; }

.psp-table tbody tr:nth-child(odd) td{
  background: #fbfcff;
}

.psp-table tbody tr{
  transition: background-color .18s ease, transform .18s ease;
}

.psp-table tbody tr:last-child td{
  border-bottom-color: transparent;
}

.psp-table .psp-table-actions{
  text-align: right;
  white-space: nowrap;
}

.psp-badge-status{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #dbe8ff;
  font-weight: 700;
  font-size: 12px;
  color: #22305d;
}

.psp-muted{ color: var(--psp-muted); }

.psp-table-wrap.is-compact{ padding: 8px; border-radius: 14px; }
.psp-table-wrap.is-compact .psp-table td,
.psp-table-wrap.is-compact .psp-table th{ padding: 10px 12px; }

@media (prefers-color-scheme: dark){
  :root{
    --psp-surface:#121726; --psp-border:#1e2539; --psp-text:#e7ecff;
    --psp-shadow: rgba(0,0,0,.35);
  }
  .psp-table-wrap{
    background: var(--psp-surface);
    border-color: var(--psp-border);
    box-shadow: 0 10px 24px var(--psp-shadow);
  }
  .psp-table thead th{
    background:#1a2033;
    color:#e7ecff;
    border-bottom-color:#1e2539;
  }
  .psp-table td{ color:#e7ecff; border-bottom-color:#1e2539; }
  .psp-table tbody tr:nth-child(odd) td{ background:#12192b; }
  .psp-badge-status{
    background:#1a2033; border-color:#27304c; color:#cfe0ff;
  }
  .psp-muted{ color:#9aa3b2; }
}

@media (prefers-reduced-motion: reduce){
  .psp-table tbody tr{ transition: none !important; }
}

/* =============== Orders — Empty state =============== */
:root{
  --psp-accent: #2f6fec;
  --psp-surface: #fff;
  --psp-text: #1f2645;
  --psp-muted: #6b7280;
  --psp-border: #e7ecf3;
  --psp-shadow: rgba(18,22,40,.08);
}

.psp-orders-card .psp-muted{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin: 8px 0 14px;
  padding: 26px 18px;
  background:
    radial-gradient(1200px 300px at -20% -50%, rgba(47,111,236,.06), transparent 60%),
    radial-gradient(800px 200px at 120% 150%, rgba(47,111,236,.06), transparent 60%),
    var(--psp-surface);
  border: 1px dashed #dfe6f2;
  border-radius: 16px;
  color: var(--psp-text);
  text-align:center;
  box-shadow: 0 10px 24px var(--psp-shadow);
  animation: psp-pop .28s ease-out both;
}
.psp-orders-card .psp-muted::before{
  content:"🛒";
  font-size: 34px;
  line-height:1;
  transform: translateY(2px);
  filter: saturate(1.1);
}
.psp-orders-card .psp-muted em,
.psp-orders-card .psp-muted strong{
  color: var(--psp-accent);
  font-weight: 800;
}

.psp-card-actions-orders{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 10px;
  margin-top: 6px;
}

.psp-btn-primary-orders{
  display:inline-flex;
  align-items:center; justify-content:center;
  gap:8px;
  padding:12px 18px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration:none;
  background: var(--psp-accent);
  color:#fff;
  border: 1px solid rgba(47,111,236,.15);
  box-shadow: 0 10px 22px rgba(47,111,236,.28);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
  cursor: pointer;
}
.psp-btn-primary-orders:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(47,111,236,.32);
}
.psp-btn-primary-orders:active{
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(47,111,236,.25);
}
.psp-btn-primary-orders:focus-visible{
  outline: 3px solid rgba(47,111,236,.25);
  outline-offset: 2px;
  border-color: rgba(47,111,236,.35);
}

.psp-btn-primary-orders.is-ghost{
  background: transparent;
  color: var(--psp-accent);
  border: 1.5px solid rgba(47,111,236,.35);
  box-shadow: 0 6px 16px rgba(18,22,40,.08);
}
.psp-btn-primary-orders.is-ghost:hover{
  background: rgba(47,111,236,.06);
  border-color: rgba(47,111,236,.55);
  transform: translateY(-1px);
}

@keyframes psp-pop{
  from{ opacity:0; transform: translateY(6px) scale(.98); }
  to  { opacity:1; transform: translateY(0)   scale(1); }
}

/* Dark mode */
@media (prefers-color-scheme: dark){
  .psp-orders-card .psp-muted{
    background:
      radial-gradient(1200px 300px at -20% -50%, rgba(47,111,236,.08), transparent 60%),
      radial-gradient(800px 200px at 120% 150%, rgba(47,111,236,.08), transparent 60%),
      #0f1424;
    border-color: #2a3552;
    color: #e6ebff;
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
  }
  .psp-btn-primary-orders.is-ghost{
    color:#aecdff;
    border-color:#3a4e82;
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
  }
  .psp-btn-primary-orders.is-ghost:hover{
    background: rgba(58,78,130,.25);
  }
}

.psp-card-actions,
.psp-downloads-card .psp-card-actions{
  display:flex; justify-content:center; gap:10px; margin-top:12px;
}

.psp-muted,
.psp-downloads-card .psp-muted{ color: var(--psp-muted, #6b7280); }

.psp-downloads-card .psp-wc-downloads-reset{
  display:block; width:100%; margin:8px 0 0; padding:0; overflow:auto;
  -webkit-overflow-scrolling: touch;
}

.psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table{
  width:100%;
  max-width:100%;
  min-width:640px;
  border-collapse: separate;
  border-spacing: 0;
  border:1px solid var(--psp-border, #e7ecf3);
  border-radius:16px;
  overflow:hidden;
}

.psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table thead th{
  position: sticky; top: 0; z-index:1;
  background:#f7f9fd;
  color:#1f2645;
  font-weight:800; text-align:left;
  border-bottom:1px solid var(--psp-border, #e7ecf3);
  padding:12px 14px;
}

.psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table td{
  padding:12px 14px;
  border-bottom:1px solid #eef2f8;
  color: var(--psp-text, #1f2645);
  vertical-align: middle;
}
.psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table tbody tr:nth-child(odd) td{
  background:#fbfcff;
}
.psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table tbody tr{
  transition: background-color .18s ease, transform .18s ease;
}
.psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table tbody tr:hover{
  background:#f4f7ff;
  transform: translateY(-1px);
}

/*  Woo Buttons → ghost */
.psp-downloads-card .psp-wc-downloads-reset .woocommerce .button{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 12px; border-radius:10px; font-weight:700; text-decoration:none;
  background:#f5f7fb; border:1px solid #e3e8f3; color:#1f2645;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.psp-downloads-card .psp-wc-downloads-reset .woocommerce .button:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  background:#eef2ff;
}

.psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table th:first-child,
.psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table td:first-child{ padding-left:18px; }
.psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table th:last-child,
.psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table td:last-child{ padding-right:18px; }

.psp-btn-download-inline{
  padding:6px 10px;
  border-radius:10px;
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}

.psp-tab-count { display: none !important; }

/* === Dark mode smooth ============================================ */
@media (prefers-color-scheme: dark){
  .psp-orders-card,
  .psp-downloads-card{
    background:#121726; border-color:#1e2539;
    box-shadow:0 10px 24px rgba(0,0,0,.35);
  }

  .psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table{
    border-color:#1e2539;
  }
  .psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table thead th{
    background:#1a2033; color:#e7ecff; border-bottom-color:#1e2539;
  }
  .psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table td{
    color:#e7ecff; border-bottom-color:#1e2539;
  }
  .psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table tbody tr:nth-child(odd) td{
    background:#12192b;
  }
  .psp-downloads-card .psp-wc-downloads-reset .woocommerce .button{
    background:#1a2033; border-color:#27304c; color:#e7ecff;
  }
}

/* Access */
@media (prefers-reduced-motion: reduce){
  .psp-orders-card, .psp-downloads-card{ transition:none !important; }
  .psp-downloads-card .psp-wc-downloads-reset .woocommerce table.shop_table tbody tr{ transition:none !important; }
}

.psp-table .psp-table-actions{ text-align:right; white-space:nowrap; }

.psp-file-name{ font-weight:700; color: var(--psp-text, #1f2645); }
@media (prefers-color-scheme: dark){ .psp-file-name{ color:#e7ecff; } }

.psp-file-name {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.psp-btn-download-inline{
  padding:6px 10px;
  border-radius:10px;
  font-size:12px;
  line-height:1;
  white-space:nowrap;
  position:relative;
  padding-left:28px;
}
.psp-btn-download-inline::before{
  content:"";
  position:absolute; left:10px; top:50%; transform:translateY(-50%);
  width:14px; height:14px; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3a1 1 0 0 1 1 1v8.586l2.293-2.293a1 1 0 1 1 1.414 1.414l-4.007 4.007a1 1 0 0 1-1.414 0L7.279 11.707a1 1 0 1 1 1.414-1.414L11 12.586V4a1 1 0 0 1 1-1Zm-7 14a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2H5Z'/%3E%3C/svg%3E") no-repeat center / 14px 14px;
          mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3a1 1 0 0 1 1 1v8.586l2.293-2.293a1 1 0 1 1 1.414 1.414l-4.007 4.007a1 1 0 0 1-1.414 0L7.279 11.707a1 1 0 1 1 1.414-1.414L11 12.586V4a1 1 0 0 1 1-1Zm-7 14a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2H5Z'/%3E%3C/svg%3E") no-repeat center / 14px 14px;
  opacity:.9;
}
.psp-btn-download-inline.is-disabled{ opacity:.55; pointer-events:none; }

/* Loading spinner */
.psp-btn-download-inline.is-loading{ pointer-events:none; opacity:.95; }
.psp-btn-download-inline.is-loading::after{
  content:"";
  display:inline-block; width:14px; height:14px; margin-left:8px;
  border:2px solid currentColor; border-right-color: transparent; border-radius:50%;
  vertical-align: middle; animation: psp-spin .7s linear infinite;
}
@keyframes psp-spin { to { transform: rotate(360deg); } }

.psp-downloads-card .psp-table .psp-table-actions{
  text-align: left;
}

/* ============== Downloads — Card & Empty state ============== */
:root{
  --psp-accent: #2f6fec;
  --psp-surface:#fff;
  --psp-text:#1f2645;
  --psp-muted:#6b7280;
  --psp-border:#e7ecf3;
  --psp-shadow:rgba(18,22,40,.08);
}

.psp-downloads-card .psp-muted{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin: 8px 0 14px;
  padding: 26px 18px;
  background:
    radial-gradient(1200px 300px at -20% -50%, rgba(47,111,236,.06), transparent 60%),
    radial-gradient(800px 200px at 120% 150%, rgba(47,111,236,.06), transparent 60%),
    var(--psp-surface);
  border: 1px dashed #dfe6f2;
  border-radius: 16px;
  color: var(--psp-text);
  text-align:center;
  box-shadow: 0 10px 24px var(--psp-shadow);
  animation: psp-pop .28s ease-out both;
}

.psp-downloads-card .psp-muted::before{
  content:"⬇️";
  font-size: 34px;
  line-height:1;
  transform: translateY(2px);
}

.psp-card-actions-downloads{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 10px;
  margin-top: 6px;
}

@keyframes psp-pop{
  from{ opacity:0; transform: translateY(6px) scale(.98); }
  to  { opacity:1; transform: translateY(0)   scale(1); }
}

.psp-btn-primary-downloads{
  --dl-accent-1:#2f6fec;
  --dl-accent-2:#6a8dff;
  --dl-shadow: rgba(18,22,40,.14);
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 14px;
  border-radius:12px;
  font-weight:800; font-size:14px; line-height:1;
  color:#fff; text-decoration:none;
  background: linear-gradient(135deg, var(--dl-accent-1), var(--dl-accent-2));
  background-size: 160% 160%;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 22px var(--dl-shadow), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s ease, box-shadow .18s ease, background-position .25s ease, filter .18s ease;
}

.psp-btn-primary-downloads:active{ transform: translateY(0); }
.psp-btn-primary-downloads:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px color-mix(in srgb, var(--dl-accent-1) 50%, transparent);
}

.psp-btn-primary-downloads.psp-btn-download-inline{
  position: relative;
  padding-left: 34px;
}

.psp-btn-primary-downloads.psp-btn-download-inline::before{
  content:"";
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:16px; height:16px; background:#fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3a1 1 0 0 1 1 1v8.586l2.293-2.293a1 1 0 1 1 1.414 1.414l-4.007 4.007a1 1 0 0 1-1.414 0L7.279 11.707a1 1 0 1 1 1.414-1.414L11 12.586V4a1 1 0 0 1 1-1Zm-7 14a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2H5Z'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
          mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3a1 1 0 0 1 1 1v8.586l2.293-2.293a1 1 0 1 1 1.414 1.414l-4.007 4.007a1 1 0 0 1-1.414 0L7.279 11.707a1 1 0 1 1 1.414-1.414L11 12.586V4a1 1 0 0 1 1-1Zm-7 14a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2H5Z'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
  opacity:.95;
}

.psp-table-actions .psp-btn-download-inline.is-disabled{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:12px; font-weight:800; font-size:14px; line-height:1;
  color:#8fa3d8;
  background:#ecf1ff;
  border:1px dashed #d6def7;
}

/* 4) Dark mode */
@media (prefers-color-scheme: dark){
  .psp-btn-primary-downloads{
    --dl-shadow: rgba(0,0,0,.35);
    border-color: rgba(255,255,255,.12);
  }
  .psp-table-actions .psp-btn-download-inline.is-disabled{
    color:#aebcf0; background:#1a2033; border-color:#283458;
  }
}

/* =============
   Form wrapper 
   ============= */
.psp-address-edit-form{
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--psp-border, #e7ecf3);
  border-radius: 14px;
  background: var(--psp-surface, #fff);
  box-shadow: 0 8px 20px var(--psp-shadow, rgba(18,22,40,.08));
}

.psp-address-edit-form.is-hidden{ display:none; }

/* =====================================
   Grid + Fields
   ===================================== */
.psp-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 720px){
  .psp-form-grid{ grid-template-columns: 1fr; }
}

.psp-form-field.full{ grid-column: 1 / -1; }
.psp-form-grid.cols-3{ grid-template-columns: 1fr 1fr 1fr; }

/* Field */
.psp-form-field{
  position: relative;
  min-width: 0;
}

/* Label */
.psp-form-field label{
  display:block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2px;
  margin: 0 0 6px;
  color: var(--psp-text, #1f2645);
}

/* Inputs + selects + textareas */
.psp-form-field input,
.psp-form-field select,
.psp-form-field textarea{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--psp-border, #e7ecf3);
  border-radius: 12px;
  background: #fff;
  color: var(--psp-text, #1f2645);
  font-size: 14px;
  line-height: 1.3;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

/* Smooth Placeholder */
.psp-form-field input::placeholder,
.psp-form-field textarea::placeholder{ color:#9aa3b2; }

/* Focus ring */
.psp-form-field input:focus,
.psp-form-field select:focus,
.psp-form-field textarea:focus{
  outline: none;
  border-color: color-mix(in srgb, #2f6fec 45%, #ffffff 55%);
  box-shadow:
    0 0 0 3px color-mix(in srgb, #2f6fec 15%, transparent),
    0 8px 16px rgba(18,22,40,.08);
  transform: translateY(-1px);
}

/* Disabled / readonly */
.psp-form-field input[disabled],
.psp-form-field select[disabled],
.psp-form-field textarea[disabled]{
  background: #f5f7fb;
  color: #8b93a7;
  cursor: not-allowed;
}

/* Textarea */
.psp-form-field textarea{
  min-height: 120px;
  resize: vertical;
}

/* =====================================
   Select with chevron custom (pur CSS)
   ===================================== */
.psp-form-field select{
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(to bottom, transparent 0%, transparent 100%),
    url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 9l5.5 5 5.5-5' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: right 12px center, right 12px center;
  background-size: 16px 16px, 16px 16px;
}

@media (prefers-color-scheme: dark){
  .psp-form-field select{
    background-image:
      linear-gradient(to bottom, transparent 0%, transparent 100%),
      url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 9l5.5 5 5.5-5' stroke='%23e7ecff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* =====================================
   Helps / errors / success (optionals)
   ===================================== */
.psp-field-hint{
  margin-top: 6px;
  font-size: 12px;
  color: var(--psp-muted, #6b7280);
}
.psp-field-error{
  margin-top: 6px;
  font-size: 12px;
  color: #b4231f;
  font-weight: 700;
}
.psp-field-success{
  margin-top: 6px;
  font-size: 12px;
  color: #067647;
  font-weight: 700;
}

.psp-form-field.is-invalid input,
.psp-form-field.is-invalid select,
.psp-form-field.is-invalid textarea,
.psp-form-field [aria-invalid="true"]{
  border-color: #ffb4b4;
  background: #fff7f7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.psp-form-field.is-valid input,
.psp-form-field.is-valid select,
.psp-form-field.is-valid textarea{
  border-color: #b7f0d1;
  background: #f6fff9;
}

/* =====================================
   Form Action
   ===================================== */
.psp-address-edit-form .psp-card-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

@media (prefers-color-scheme: dark){
  .psp-address-edit-form{
    background: #121726;
    border-color: #1e2539;
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
  }
  .psp-form-field label{ color:#e7ecff; }
  .psp-form-field input,
  .psp-form-field select,
  .psp-form-field textarea{
    background:#0e1423;
    color:#e7ecff;
    border-color:#27304c;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  }
  .psp-form-field input:focus,
  .psp-form-field select:focus,
  .psp-form-field textarea:focus{
    border-color: #4a76ff;
    box-shadow:
      0 0 0 3px rgba(74,118,255,.15),
      0 8px 16px rgba(0,0,0,.35);
  }
  .psp-field-hint{ color:#9aa3b2; }
  .psp-form-field.is-invalid input,
  .psp-form-field.is-invalid select,
  .psp-form-field.is-invalid textarea{
    background:#1a1220; border-color:#4c2730;
  }
  .psp-form-field.is-valid input,
  .psp-form-field.is-valid select,
  .psp-form-field.is-valid textarea{
    background:#0f1b14; border-color:#224a36;
  }
}

@media (prefers-reduced-motion: reduce){
  .psp-form-field input,
  .psp-form-field select,
  .psp-form-field textarea{ transition: none !important; }
}

.psp-edit-address { display: none; }

.psp-edit-address:not(.is-hidden),
.psp-edit-address.is-open { display: block; }

.is-hidden { display: none !important; }

.psp-address-card .psp-card-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:12px;
  flex-wrap: wrap;
}

.psp-addresses-footer .psp-card-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
}

































