.pvd-user-dashboard-modern-wrapper {
	background: #222;
	border: 1px solid #000;
	border-radius: 10px;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	opacity: 1;
	transition: opacity 0.18s ease-in-out;
}

.pvd-user-dashboard-modern-wrapper.pvd-dashboard-is-loading {
	opacity: 0;
}

.pvd-user-dashboard-modern-header {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e2e4e7;
}

.pvd-user-dashboard-modern-header h1,
.pvd-user-dashboard-modern-header h2 {
	margin: 0 0 8px;
}

.pvd-user-dashboard-modern-header p {
	margin: 0;
	color: #646970;
}

.pvd-user-dashboard-modern-nav {
	margin-bottom: 24px;
}

.pvd-user-dashboard-modern-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pvd-user-dashboard-modern-nav button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 6px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	text-decoration: none;
	color: #1d2327;
	cursor: pointer;
	font: inherit;
}

.pvd-user-dashboard-modern-nav button.is-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.pvd-user-dashboard-modern-body {
	display: grid;
	gap: 20px;
}

.pvd-user-dashboard-modern-section {
	padding: 16px 18px;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	background: #111;
}

.pvd-user-dashboard-modern-section[hidden] {
	display: none;
}

.pvd-user-dashboard-modern-section.is-active {
	display: block;
}

.pvd-user-dashboard-modern-section h2 {
	margin: 0;
}

.pvd-user-dashboard-modern-section .pvd-dashboard-section__content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 0;
}

.pvd-user-dashboard-modern-section .pvd-messages-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: nowrap;
	width: 100%;
}

.pvd-user-dashboard-modern-section .pvd-messages-header h2 {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.pvd-user-dashboard-modern-section .pvd-messages-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex: 0 0 auto;
	margin: 0;
	white-space: nowrap;
	margin-left: auto;
}

.pvd-user-dashboard-modern-section .pvd-message,
.pvd-user-dashboard-modern-section form,
.pvd-user-dashboard-modern-section .wp-block-buttons,
.pvd-user-dashboard-modern-section .edd_downloads_list {
	margin-bottom: 12px;
}
button.pvd-mark-messages-seen {
	justify-self: end;
	background:rgba(255,255,255,0.1)	;
	color:inherit;
	padding:4px 8px;
}
.pvd-message {
	padding: 14px 16px;
	border: 1px solid #2f3337;
	border-radius: 10px;
	background: #1b1b1b;
	transition: transform 0.18s ease, opacity 0.18s ease, max-height 0.18s ease, margin 0.18s ease, padding 0.18s ease;
	overflow: hidden;
}

.pvd-message-toggle {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	text-align: left;
}

.pvd-message__title {
	margin: 0;
  font-size:1.8em
}

.message-date{
	margin: 0;
  font-size:.8em
}

.pvd-message__toggle-label {
	flex: 0 0 auto;
	margin-top: 2px;
	font-size: 0.85rem;
	color: #9aa0a6;
}

.pvd-message.is-collapsed .message-content {
	display: none;
}

.pvd-message:not(.is-collapsed) .message-content {
	animation: pvd-message-expand 0.18s ease-out;
}

.pvd-message .message-content {
	margin-top: 10px;
	color: #d5d7da;
}

.pvd-message .message-content > :first-child {
	margin-top: 0;
}

.pvd-message .message-content > :last-child {
	margin-bottom: 0;
}

.pvd-message__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pvd-message-remove {
	padding: 0;
	border: 0;
	background: transparent;
	color: #8ab4f8;
	cursor: pointer;
	font: inherit;
}

.pvd-message-remove:hover {
	text-decoration: underline;
}

.pvd-msg-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5em;
	height: 1.5em;
	padding: 0 0.4em;
	border-radius: 999px;
	background: #d63638;
	color: #fff;
	font-size: 12px;
	line-height: 1;
}

.pvd-user-dashboard-modern-layout-preview {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}

.pvd-user-dashboard-modern-preview-nav,
.pvd-user-dashboard-modern-preview-panel {
	padding: 12px 14px;
	border: 1px solid #c3c4c7;
	background: #f6f7f7;
	border-radius: 4px;
}

.pvd-user-dashboard-modern-preview-nav ul {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pvd-user-dashboard-modern-preview-nav li span {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #dcdcde;
}





/* 
 * everything below is my tweaks for my site targeting 
 * likes&saves, licenses, orders, profile, messages, contributions, and whatever else 
 */

/* saved tables styling */
.steves-edited-tables-card__header {display:flex}
/* targets refresh buttons inside the dashbaord for consistency */

button[class$="-refresh"],
button[class*="-refresh "] {
  padding:8px;background:darkorange;color:#fff;border-radius:6px;border: none;
}


/* specifically targeting MY EDD order details. Remove as needed. */
.edd_purchase_history_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
}

/* Header */
.edd_purchase_history_table thead {
  background: #f7f7f9;
}

.edd_purchase_history_table th {
  text-align: left;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 2px solid #e5e7eb;
  color: #333;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Rows */
.edd_purchase_history_table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  color: #444;
}

.edd_purchase_history_table tr td:first-child {
	background:cadetblue
  /* styles */
}

/* Zebra striping */
.edd_purchase_history_table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* Hover state */
.edd_purchase_history_table tbody tr:hover {
  background: #f1f5f9;
  transition: background 0.15s ease;
}

/* Links inside table */
.edd_purchase_history_table a {
background:#666;
color:#dcdcdc;
  text-decoration: none;
  font-weight: 500;
  border-radius:6px;
  padding:4px 6px

}

.edd_purchase_history_table a:hover {
background:#888;
color:#fff;
}


 
/* Buttons (like "View Details" or "Download") */
.edd_purchase_history_table .edd_download_file a,
.edd_purchase_history_table .edd_purchase_details a {
  display: inline-block;
  padding: 6px 10px;
  font-size: 0.8rem;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1;
}

.edd_purchase_history_table .edd_download_file a:hover,
.edd_purchase_history_table .edd_purchase_details a:hover {
  background: #1e4fd6;
}

.pvd-pagination {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.pvd-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pvd-pagination li {
  margin: 0;
}

.pvd-pagination button,
.pvd-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid #8c8f94;
  color: #1d2327;
  border-radius: 6px;
  background: #fff;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font: inherit;
}

.pvd-pagination button {
  cursor: pointer;
}

.pvd-pagination button.page-numbers {
  background: #ffffff50;
}

.pvd-pagination button.page-numbers.current {
  background: darkgoldenrod;
  border-color: darkgoldenrod;
  color: #fff;
}

.pvd-pagination button.page-numbers:hover {
  background: #f0f0f1;
}

.pvd-pagination button.page-numbers.current:hover {
  background: darkgoldenrod;
}

.pvd-pagination .pvd-pagination-dots {
  border-color: transparent;
  background: transparent;
  min-width: auto;
  padding: 8px 4px;
}

.pvd-user-dashboard-modern-section.is-loading {
  opacity: 0.7;
}

.pvd-user-dashboard-modern-section.is-loading .pvd-dashboard-section__content {
  pointer-events: none;
}


/* === RESPONSIVE CARD GRID === */
@media (max-width: 900px) {
	.pvd-user-dashboard-modern-section {
		padding: 14px;
	}
	.pvd-user-dashboard-modern-section .pvd-messages-header {
		flex-wrap: wrap;
	}

	.pvd-user-dashboard-modern-section .pvd-messages-actions {
		justify-content: flex-start;
	}

  /* Turn table into grid */
  .edd_purchase_history_table {
    display: grid;
    gap: 16px;

    /* 👇 THIS is the key */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    border: 0;
  }

  /* Remove table structure constraints */
  .edd_purchase_history_table thead {
    display: none;
  }

  .edd_purchase_history_table tbody {
    display: contents;
  }

  /* Each row = card */
  .edd_purchase_history_table tr {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin: 0; /* important: remove your old margin */
  }

  /* Stack cells */
  .edd_purchase_history_table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.9rem;
  }

  .edd_purchase_history_table td:last-child {
    border-bottom: none;
  }

  /* Labels */
  .edd_purchase_history_table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
    margin-right: 10px;
    flex-shrink: 0;
  }

  /* First row styling */
  .edd_purchase_history_table tr td:first-child {
    background: #f7f7f9;
    font-weight: 600;
  }

  /* Buttons tighter */
  .edd_purchase_history_table a {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}

@keyframes pvd-message-expand {
	from {
		opacity: 0.75;
		transform: translateY(-2px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}
