/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
 */

/* ===================================================
   PREMIUM ORDER DETAILS — Compact Dark Design
   =================================================== */

/* ---- Container ---- */
.premium-order-details {
  background: linear-gradient(145deg, #111827 0%, #1A2236 100%);
  border: 1px solid rgba(58, 71, 96, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(58, 71, 96, 0.1) inset,
    0 1px 0 rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---- Title ---- */
.premium-order-details__title {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
}

/* ---- Table Wrapper ---- */
.premium-order-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(58, 71, 96, 0.25);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
}

/* ---- Base Table ---- */
.premium-order-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.premium-order-table thead,
.premium-order-table tbody,
.premium-order-table tfoot {
  background: transparent !important;
  border: none !important;
}

/* ---- Header Row ---- */
.premium-order-table thead tr {
  background: rgba(30, 41, 59, 0.85) !important;
  height: 54px;
  border-bottom: 1px solid #2E3748;
}

.premium-order-table thead th {
  background: transparent !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  padding: 0 22px !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0.01em;
  line-height: 1.3 !important;
  border: none !important;
}

.premium-order-table thead th.product-total {
  text-align: right !important;
  width: 170px;
}

/* ---- Body Rows ---- */
.premium-order-table tbody tr {
  height: 54px;
  border-bottom: 1px solid #2E3748;
  transition: background-color 0.25s ease;
  background: transparent !important;
}

.premium-order-table tbody tr:last-child {
  border-bottom: none;
}

.premium-order-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.4) !important;
}

.premium-order-table tbody td {
  padding: 12px 22px !important;
  vertical-align: middle !important;
  border: none !important;
  background: transparent !important;
}

/* ---- Product Name ---- */
.premium-product-name {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

.premium-product-name a {
  color: #ffffff !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.premium-product-name a:hover {
  color: #f97316 !important;
}

.premium-product-name .product-quantity {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  margin-left: 4px;
}

.premium-product-name .product-quantity del {
  color: rgba(255, 255, 255, 0.25);
}

.premium-product-name .product-quantity ins {
  text-decoration: none;
  color: #f97316;
}

/* Item meta */
.premium-product-name .wc-item-meta {
  margin: 2px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.premium-product-name .wc-item-meta li {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.premium-product-name .wc-item-meta li p {
  margin: 0 !important;
}

/* ---- Product Total Cell ---- */
.premium-product-total {
  text-align: right !important;
  white-space: nowrap;
}

.premium-product-total .woocommerce-Price-amount {
  color: #f97316 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
}

.premium-product-total .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
  font-size: 14px !important;
  margin-right: 1px;
}

/* ---- Purchase Note Row ---- */
.premium-purchase-note td {
  padding: 10px 22px 12px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  background: rgba(30, 41, 59, 0.25) !important;
}

/* ---- Totals Area (tfoot) ---- */
.premium-order-table tfoot {
  border-top: 1px solid #2E3748;
}

.premium-total-row {
  height: 52px;
  border-bottom: 1px solid #2E3748;
  background: transparent !important;
}

.premium-total-row:last-child {
  border-bottom: none;
}

.premium-total-row th {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 0 22px !important;
  text-align: left !important;
  border: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  width: auto !important;
  max-width: none !important;
}

.premium-total-row td {
  background: transparent !important;
  padding: 0 22px !important;
  text-align: right !important;
  border: none !important;
  vertical-align: middle !important;
  white-space: nowrap;
  width: auto !important;
  max-width: none !important;
}

/* ---- Subtotal ---- */
.premium-row-subtotal td .woocommerce-Price-amount {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}

/* ---- Refund Row ---- */
.premium-row-refund td .woocommerce-Price-amount {
  color: #ef4444 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
}

/* ---- Total Row ---- */
.premium-row-total th {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.premium-row-total td {
  vertical-align: middle !important;
}

.premium-row-total td .woocommerce-Price-amount {
  color: #f97316 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.premium-row-total td .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
  font-size: 15px !important;
  margin-right: 1px;
}

/* Original amount strikethrough (when del/ins present) */
.premium-row-total td del {
  opacity: 0.5;
  margin-right: 8px;
}

.premium-row-total td del .woocommerce-Price-amount {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  text-decoration: line-through;
}

.premium-row-total td ins {
  text-decoration: none;
}

.premium-row-total td ins .woocommerce-Price-amount {
  color: #f97316 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

/* ---- Refunded Badge ---- */
.premium-row-total td .premium-refunded-text {
  display: none;
}

.premium-row-total:has(.premium-refunded-text) {
  position: relative;
}

.premium-row-total:has(.premium-refunded-text) td::after {
  content: "✓ Fully Refunded";
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  letter-spacing: 0.01em;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1.3;
  white-space: nowrap;
}

/* When fully refunded, the total amount shows $0.00 — keep it visible but dim */
.premium-row-total:has(.premium-refunded-text) td .woocommerce-Price-amount {
  font-size: 17px !important;
  opacity: 0.7;
}

/* ---- Payment Method Row ---- */
.premium-row-payment th {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.premium-row-payment td {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

/* ---- Actions Buttons ---- */
.premium-order-table .order-actions--heading {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.premium-order-table .order-actions-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: all 0.25s ease !important;
  border: 1px solid rgba(58, 71, 96, 0.35) !important;
  background: rgba(30, 41, 59, 0.5) !important;
  color: #ffffff !important;
}

.premium-order-table .order-actions-button:hover {
  background: rgba(249, 115, 22, 0.15) !important;
  border-color: #f97316 !important;
  color: #f97316 !important;
}

/* ---- Order Again Button (outside table) ---- */
.premium-order-details .order-again {
  margin-top: 20px !important;
}

.premium-order-details .order-again .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 28px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: all 0.25s ease !important;
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.25) !important;
}

.premium-order-details .order-again .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.35) !important;
}

/* ---- WooCommerce native table override reset ---- */
.premium-order-table,
.premium-order-table *,
.premium-order-table *::before,
.premium-order-table *::after {
  box-sizing: border-box;
}

/* Force remove any Woodmart theme table styles */
.premium-order-table.shop_table {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.premium-order-table.shop_table td,
.premium-order-table.shop_table th {
  border: none !important;
}

/* ===================================================
   PREMIUM MY ACCOUNT ORDERS — Dark Theme
   =================================================== */

.premium-orders-section {
  background: linear-gradient(145deg, #111827 0%, #1A2236 100%);
  border: 1px solid rgba(58, 71, 96, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(58, 71, 96, 0.1) inset,
    0 1px 0 rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.premium-orders-section__title {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
}

.premium-orders-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(58, 71, 96, 0.25);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
}

.premium-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.premium-orders-table thead,
.premium-orders-table tbody,
.premium-orders-table tfoot {
  background: transparent !important;
  border: none !important;
}

.premium-orders-table thead tr {
  background: rgba(30, 41, 59, 0.85) !important;
  height: 54px;
  border-bottom: 1px solid #2E3748;
}

.premium-orders-table thead th {
  background: transparent !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  padding: 0 22px !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0.01em;
  line-height: 1.3 !important;
  border: none !important;
}

.premium-orders-table thead th.woocommerce-orders-table__header-order-total {
  text-align: right !important;
}

.premium-orders-table thead th.woocommerce-orders-table__header-order-actions {
  text-align: center !important;
}

.premium-orders-table tbody tr {
  height: 54px;
  border-bottom: 1px solid #2E3748;
  transition: background-color 0.25s ease;
  background: transparent !important;
}

.premium-orders-table tbody tr:last-child {
  border-bottom: none;
}

.premium-orders-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.4) !important;
}

.premium-orders-table tbody td,
.premium-orders-table tbody th {
  padding: 12px 22px !important;
  vertical-align: middle !important;
  border: none !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 15px !important;
}

.premium-orders-table tbody th a {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.premium-orders-table tbody th a:hover {
  color: #f97316 !important;
}

.premium-orders-table tbody td[data-title="Total"] {
  text-align: right !important;
}

.premium-orders-table tbody td[data-title="Total"] .woocommerce-Price-amount {
  color: #f97316 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
}

.premium-orders-table tbody td[data-title="Total"] .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
  font-size: 14px !important;
  margin-right: 1px;
}

.premium-orders-table tbody td[data-title="Actions"] {
  text-align: center !important;
}

/* ---- Status Badges ---- */
.premium-order-status {
  display: inline-block !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0.01em;
  border: none !important;
}

.premium-order-status--completed,
.premium-order-status--processing {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
}

.premium-order-status--on-hold {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
}

.premium-order-status--pending {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
}

.premium-order-status--cancelled {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
}

.premium-order-status--refunded {
  background: rgba(107, 114, 128, 0.15) !important;
  color: #9ca3af !important;
}

.premium-order-status--failed {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
}

/* ---- Action Buttons ---- */
.premium-order-action-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: all 0.25s ease !important;
  border: 1px solid rgba(58, 71, 96, 0.35) !important;
  background: rgba(30, 41, 59, 0.5) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  min-height: 0 !important;
}

.premium-order-action-btn:hover {
  background: rgba(249, 115, 22, 0.15) !important;
  border-color: #f97316 !important;
  color: #f97316 !important;
}

/* ---- Numbered Pagination (Pager) ---- */
.premium-orders-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #2E3748;
}

.premium-orders-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(58, 71, 96, 0.25);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.premium-orders-pagination__page:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fb923c;
}

.premium-orders-pagination__page--active {
  background: rgba(249, 115, 22, 0.2);
  border-color: #f97316;
  color: #f97316;
  font-weight: 600;
  cursor: default;
  pointer-events: none;
}

.premium-orders-pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(58, 71, 96, 0.25);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.premium-orders-pagination__arrow:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fb923c;
}

/* ---- "No orders" notice ---- */
.premium-orders-section .woocommerce-info {
  background: rgba(30, 41, 59, 0.5) !important;
  border: 1px solid rgba(58, 71, 96, 0.25) !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 16px 20px !important;
}

.premium-orders-section .woocommerce-info a {
  color: #f97316 !important;
}

/* ===================================================
   PREMIUM MY ACCOUNT DOWNLOADS — Dark Theme
   =================================================== */

.premium-downloads-section {
  background: linear-gradient(145deg, #111827 0%, #1A2236 100%);
  border: 1px solid rgba(58, 71, 96, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(58, 71, 96, 0.1) inset,
    0 1px 0 rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.premium-downloads-section__title {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
}

.premium-downloads-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(58, 71, 96, 0.25);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
}

.premium-downloads-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.premium-downloads-table thead,
.premium-downloads-table tbody,
.premium-downloads-table tfoot {
  background: transparent !important;
  border: none !important;
}

.premium-downloads-table thead tr {
  background: rgba(30, 41, 59, 0.85) !important;
  height: 54px;
  border-bottom: 1px solid #2E3748;
}

.premium-downloads-table thead th {
  background: transparent !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  padding: 0 22px !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0.01em;
  line-height: 1.3 !important;
  border: none !important;
}

.premium-downloads-table thead th.download-file {
  text-align: center !important;
}

.premium-downloads-table tbody tr {
  height: 54px;
  border-bottom: 1px solid #2E3748;
  transition: background-color 0.25s ease;
  background: transparent !important;
}

.premium-downloads-table tbody tr:last-child {
  border-bottom: none;
}

.premium-downloads-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.4) !important;
}

.premium-downloads-table tbody td {
  padding: 12px 22px !important;
  vertical-align: middle !important;
  border: none !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 15px !important;
}

.premium-downloads-table tbody td.download-file {
  text-align: center !important;
}

.premium-downloads-table tbody td.download-remaining {
  font-family: Consolas, monospace;
  color: #fb923c !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.premium-downloads-table tbody td.download-expires time {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 14px !important;
}

.premium-download-product-link,
.premium-download-product-name {
  color: #ffffff !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.premium-download-product-link:hover {
  color: #f97316 !important;
}

.premium-download-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: all 0.25s ease !important;
  border: 1px solid rgba(58, 71, 96, 0.35) !important;
  background: rgba(30, 41, 59, 0.5) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  min-height: 0 !important;
}

.premium-download-btn:hover {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #34d399 !important;
  color: #34d399 !important;
}

/* ---- "No downloads" notice ---- */
.premium-downloads-section .woocommerce-info {
  background: rgba(30, 41, 59, 0.5) !important;
  border: 1px solid rgba(58, 71, 96, 0.25) !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 16px 20px !important;
}

.premium-downloads-section .woocommerce-info a {
  color: #f97316 !important;
}

/* ===================================================
   WISHLIST — Match Shop Page Sizing
   =================================================== */

.woocommerce-MyAccount-content .wd-wishlist-content .product-element-top img,
.wd-wishlist-content .product-element-top img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
}

.woocommerce-MyAccount-content .wd-wishlist-content .products:not(.wd-carousel) {
  --wd-col-lg: 4 !important;
}

/* ===================================================
   RESPONSIVE — TABLET
   =================================================== */
@media (max-width: 1024px) {
  .premium-orders-section,
  .premium-downloads-section {
    padding: 20px;
    border-radius: 13px;
  }

  .premium-orders-section__title,
  .premium-downloads-section__title {
    font-size: 24px !important;
    margin-bottom: 14px !important;
  }

  .premium-orders-table thead tr,
  .premium-downloads-table thead tr {
    height: 50px;
  }

  .premium-orders-table thead th,
  .premium-downloads-table thead th {
    font-size: 16px !important;
    padding: 0 18px !important;
  }

  .premium-orders-table tbody tr,
  .premium-downloads-table tbody tr {
    height: 50px;
  }

  .premium-orders-table tbody td,
  .premium-orders-table tbody th,
  .premium-downloads-table tbody td {
    padding: 10px 18px !important;
    font-size: 14px !important;
  }

  .premium-orders-table tbody td[data-title="Total"] .woocommerce-Price-amount {
    font-size: 16px !important;
  }

  .premium-downloads-table tbody td.download-remaining {
    font-size: 14px !important;
  }

  .premium-downloads-table tbody td.download-expires time {
    font-size: 13px !important;
  }

  .premium-order-details {
    padding: 20px;
    border-radius: 13px;
  }

  .premium-order-details__title {
    font-size: 24px !important;
    margin-bottom: 14px !important;
  }

  .premium-order-table thead tr {
    height: 50px;
  }

  .premium-order-table thead th {
    font-size: 16px !important;
    padding: 0 18px !important;
  }

  .premium-order-table tbody tr {
    height: 50px;
  }

  .premium-order-table tbody td {
    padding: 10px 18px !important;
  }

  .premium-product-name {
    font-size: 15px !important;
  }

  .premium-product-total .woocommerce-Price-amount {
    font-size: 16px !important;
  }

  .premium-total-row {
    height: 48px;
  }

  .premium-total-row th {
    font-size: 15px !important;
    padding: 0 18px !important;
  }

  .premium-total-row td {
    padding: 0 18px !important;
  }

  .premium-row-total td .woocommerce-Price-amount {
    font-size: 17px !important;
  }

  .premium-row-total td del .woocommerce-Price-amount {
    font-size: 14px !important;
  }

  .premium-row-total td ins .woocommerce-Price-amount {
    font-size: 17px !important;
  }

  .premium-order-table thead th.product-total {
    width: 140px;
  }

  .premium-row-payment td {
    font-size: 15px !important;
  }
}

/* ===================================================
   RESPONSIVE — MOBILE
   =================================================== */
@media (max-width: 768px) {
  .premium-orders-section,
  .premium-downloads-section {
    padding: 18px;
    border-radius: 12px;
  }

  .premium-orders-section__title,
  .premium-downloads-section__title {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }

  .premium-orders-table-wrap,
  .premium-downloads-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .premium-orders-table thead tr,
  .premium-downloads-table thead tr {
    height: 42px;
  }

  .premium-orders-table thead th,
  .premium-downloads-table thead th {
    font-size: 13px !important;
    padding: 0 12px !important;
  }

  .premium-orders-table tbody tr,
  .premium-downloads-table tbody tr {
    height: 44px;
  }

  .premium-orders-table tbody td,
  .premium-orders-table tbody th,
  .premium-downloads-table tbody td {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  .premium-orders-table tbody td[data-title="Total"] .woocommerce-Price-amount {
    font-size: 14px !important;
  }

  .premium-order-action-btn,
  .premium-download-btn {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }

  .premium-downloads-table tbody td.download-remaining {
    font-size: 12px !important;
  }

  .premium-downloads-table tbody td.download-expires time {
    font-size: 11px !important;
  }

  .premium-orders-pagination {
    gap: 4px;
    margin-top: 14px;
    padding-top: 12px;
  }

  .premium-orders-pagination__page {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .premium-orders-pagination__arrow {
    width: 32px;
    height: 32px;
  }

  .premium-order-details {
    padding: 16px;
    border-radius: 10px;
  }

  .premium-order-details__title {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }

  .premium-order-table-wrap {
    border-radius: 8px;
    overflow: visible;
  }

  .premium-order-table thead {
    display: none;
  }

  .premium-order-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 10px 12px;
    height: auto !important;
    border-bottom: 1px solid #2E3748;
    background: rgba(30, 41, 59, 0.25) !important;
    border-radius: 6px;
    margin-bottom: 6px;
  }

  .premium-order-table tbody tr:last-child {
    border-bottom: 1px solid #2E3748;
  }

  .premium-order-table tbody td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .premium-order-table tbody td.product-name {
    font-size: 14px !important;
    padding-bottom: 2px !important;
  }

  .premium-order-table tbody td.product-total {
    text-align: left !important;
    padding-top: 0 !important;
  }

  .premium-order-table tbody tr.premium-purchase-note td {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .premium-product-name {
    font-size: 14px !important;
  }

  .premium-product-name .product-quantity {
    font-size: 12px !important;
    display: inline;
  }

  .premium-product-total .woocommerce-Price-amount {
    font-size: 15px !important;
  }

  /* Totals tfoot — keep side by side */
  .premium-order-table tfoot tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto !important;
    padding: 0 12px;
  }

  .premium-order-table tfoot th,
  .premium-order-table tfoot td {
    display: block;
    width: auto !important;
    padding: 6px 0 !important;
  }

  .premium-total-row {
    height: auto !important;
  }

  .premium-total-row th {
    font-size: 13px !important;
    padding: 0 !important;
  }

  .premium-total-row td {
    padding: 0 !important;
    font-size: 13px !important;
    text-align: right !important;
  }

  .premium-row-total td .woocommerce-Price-amount {
    font-size: 15px !important;
  }

  .premium-row-total td del .woocommerce-Price-amount {
    font-size: 13px !important;
  }

  .premium-row-total td ins .woocommerce-Price-amount {
    font-size: 15px !important;
  }

  .premium-row-total:has(.premium-refunded-text) td::after {
    font-size: 11px;
    padding: 4px 8px;
    margin-left: 6px;
  }

  .premium-row-payment td {
    font-size: 13px !important;
  }

  /* Actions row */
  .premium-order-table .order-actions--heading {
    display: none;
  }

  .premium-order-table tfoot tr:has(.order-actions-button) {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .premium-order-table .order-actions-button {
    padding: 5px 12px !important;
    font-size: 11px !important;
  }
}

/* ===================================================
   RESPONSIVE — SMALL MOBILE
   =================================================== */
@media (max-width: 480px) {
  .premium-orders-section,
  .premium-downloads-section {
    padding: 14px;
    border-radius: 10px;
  }

  .premium-orders-section__title,
  .premium-downloads-section__title {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }

  .premium-orders-table thead tr,
  .premium-downloads-table thead tr {
    height: 38px;
  }

  .premium-orders-table thead th,
  .premium-downloads-table thead th {
    font-size: 12px !important;
    padding: 0 10px !important;
  }

  .premium-orders-table tbody tr,
  .premium-downloads-table tbody tr {
    height: 40px;
  }

  .premium-orders-table tbody td,
  .premium-orders-table tbody th,
  .premium-downloads-table tbody td {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }

  .premium-orders-table tbody td[data-title="Total"] .woocommerce-Price-amount {
    font-size: 13px !important;
  }

  .premium-order-action-btn,
  .premium-download-btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }

  .premium-downloads-table tbody td.download-remaining {
    font-size: 11px !important;
  }

  .premium-downloads-table tbody td.download-expires time {
    font-size: 10px !important;
  }

  .premium-orders-pagination {
    gap: 3px;
    margin-top: 12px;
    padding-top: 10px;
  }

  .premium-orders-pagination__page {
    min-width: 28px;
    height: 28px;
    font-size: 11px;
    padding: 0 6px;
  }

  .premium-orders-pagination__arrow {
    width: 28px;
    height: 28px;
  }

  .premium-orders-pagination__arrow svg {
    width: 12px;
    height: 12px;
  }

  .premium-order-details {
    padding: 12px;
    border-radius: 8px;
  }

  .premium-order-details__title {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }

  .premium-order-table-wrap {
    border-radius: 6px;
    overflow: visible;
  }

  .premium-order-table tbody tr {
    padding: 8px 10px;
    gap: 2px 10px;
    margin-bottom: 5px;
  }

  .premium-order-table tbody td.product-name {
    font-size: 12px !important;
  }

  .premium-order-table tbody td.product-total {
    font-size: 13px !important;
  }

  .premium-product-name {
    font-size: 12px !important;
  }

  .premium-product-name .product-quantity {
    font-size: 10px !important;
  }

  .premium-product-total .woocommerce-Price-amount {
    font-size: 13px !important;
  }

  .premium-total-row th {
    font-size: 11px !important;
    padding: 0 !important;
  }

  .premium-total-row td {
    padding: 0 !important;
    font-size: 11px !important;
  }

  .premium-row-total td .woocommerce-Price-amount {
    font-size: 13px !important;
  }

  .premium-row-total td del .woocommerce-Price-amount {
    font-size: 11px !important;
  }

  .premium-row-total td ins .woocommerce-Price-amount {
    font-size: 13px !important;
  }

  .premium-row-total:has(.premium-refunded-text) td::after {
    font-size: 10px;
    padding: 3px 6px;
    margin-left: 4px;
    content: "Refunded";
  }

  .premium-row-payment td {
    font-size: 11px !important;
  }

  .premium-order-table .order-actions-button {
    padding: 4px 10px !important;
    font-size: 10px !important;
  }

  .premium-purchase-note td {
    padding: 8px 10px !important;
    font-size: 11px !important;
  }
}

/* ===================================================
   DIGITAL LICENSE MANAGER — Dark Theme
   =================================================== */

/* ---- Container ---- */
.dlm-myaccount-product-licenses,
.dlm-myaccount-license-section,
.dlm-myaccount-element--order-licenses {
  background: linear-gradient(145deg, #111827 0%, #1A2236 100%);
  border: 1px solid rgba(58, 71, 96, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(58, 71, 96, 0.1) inset,
    0 1px 0 rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---- Page Titles ---- */
.dlm-myaccount-page-title,
.dlm-myaccount-page-subtitle {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
  border: none !important;
}

.dlm-myaccount-page-subtitle.product-name a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.dlm-myaccount-page-subtitle.product-name a:hover {
  color: #f97316 !important;
}

/* ---- Table Wrapper ---- */
.dlm-myaccount-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(58, 71, 96, 0.25);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
}

.dlm-myaccount-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 !important;
  background: transparent !important;
  border: 1px solid rgba(58, 71, 96, 0.25) !important;
  border-radius: 14px;
  overflow: hidden;
}

.dlm-myaccount-table thead,
.dlm-myaccount-table tbody,
.dlm-myaccount-table tfoot {
  background: transparent !important;
  border: none !important;
}

.dlm-myaccount-table thead tr {
  background: rgba(30, 41, 59, 0.85) !important;
  height: 50px;
  border-bottom: 1px solid #2E3748;
}

.dlm-myaccount-table thead th {
  background: transparent !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 0 18px !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0.01em;
  line-height: 1.3 !important;
  border: none !important;
}

.dlm-myaccount-table tbody tr {
  border-bottom: 1px solid #2E3748;
  background: transparent !important;
}

.dlm-myaccount-table tbody tr:last-child {
  border-bottom: none;
}

.dlm-myaccount-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.4) !important;
}

.dlm-myaccount-table tbody td {
  padding: 14px 18px !important;
  vertical-align: middle !important;
  border: none !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px !important;
}

/* ---- License Key Cell ---- */
.dlm-myaccount-table .table-col-license-key {
  font-family: Consolas, monospace;
  color: #fb923c !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.dlm-myaccount-license-key > .dlm-myaccount-license-key-action {
  font-family: Consolas, monospace;
  font-size: 13px !important;
  background: rgba(30, 41, 59, 0.8) !important;
  color: #fb923c !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(58, 71, 96, 0.3) !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
  display: inline-block;
}

.dlm-myaccount-license-key > .dlm-myaccount-license-key-action:hover {
  background: rgba(249, 115, 22, 0.15) !important;
  border-color: rgba(249, 115, 22, 0.4) !important;
}

.dlm-clipboard {
  font-family: Consolas, monospace;
  background: rgba(30, 41, 59, 0.8) !important;
  color: #fb923c !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(58, 71, 96, 0.3) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* ---- Timestamps ---- */
.dlm-myaccount-table .table-col-status .dlm-inline-child,
.dlm-myaccount-table tbody td .valid_until,
.dlm-myaccount-table tbody td small {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 13px !important;
}

/* ---- Single License Table ---- */
.dlm-myaccount-table--license-details tbody tr {
  border-bottom: 1px solid #2E3748;
}

.dlm-myaccount-table--license-details tbody tr:last-child {
  border-bottom: none;
}

.dlm-myaccount-table--license-details th {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 14px 18px !important;
  text-align: left !important;
  border: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  width: 140px !important;
}

.dlm-myaccount-table--license-details td {
  padding: 14px 18px !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px !important;
}

/* ---- Status Badges ---- */
.dlm-license-status,
.dlm-status {
  display: inline-block !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0.01em;
  border: none !important;
}

.dlm-license-status--status-sold,
.dlm-license-status--status-active {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
}

.dlm-license-status--status-inactive {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
}

.dlm-license-status--status-expired {
  background: rgba(107, 114, 128, 0.15) !important;
  color: #9ca3af !important;
}

.dlm-license-status--status-disabled {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
}

.dlm-license-status--status-pending {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
}

.dlm-license-status--status-ordered {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
}

/* ---- Actions ---- */
.dlm-myaccount-table-row-actions .dlm-button,
.dlm-myaccount-table .table-col-actions .button {
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  background: rgba(30, 41, 59, 0.8) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(58, 71, 96, 0.3) !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  line-height: 1.4 !important;
  display: inline-block;
}

.dlm-myaccount-table-row-actions .dlm-button:hover,
.dlm-myaccount-table .table-col-actions .button:hover {
  background: rgba(249, 115, 22, 0.15) !important;
  border-color: rgba(249, 115, 22, 0.4) !important;
  color: #fb923c !important;
}

/* ---- Section Footer ---- */
.dlm-myaccount-license-section-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #2E3748;
}

.dlm-myaccount-license-section-footer .dlm-button {
  padding: 10px 20px !important;
  font-size: 14px !important;
  border-radius: 8px !important;
  background: rgba(30, 41, 59, 0.8) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(58, 71, 96, 0.3) !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

  .dlm-myaccount-license-section-footer .dlm-button:hover {
    background: rgba(249, 115, 22, 0.15) !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
    color: #fb923c !important;
  }
}

/* ---- Certificate Button ---- */
#dlm-license-certificate-download .dlm-button {
  padding: 8px 16px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  background: rgba(30, 41, 59, 0.8) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(58, 71, 96, 0.3) !important;
}

#dlm-license-certificate-download .dlm-button:hover {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .dlm-myaccount-product-licenses,
  .dlm-myaccount-license-section,
  .dlm-myaccount-element--order-licenses {
    padding: 18px;
    border-radius: 12px;
  }

  .dlm-myaccount-page-title,
  .dlm-myaccount-page-subtitle {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }

  .dlm-myaccount-table thead th {
    font-size: 13px !important;
    padding: 0 12px !important;
  }

  .dlm-myaccount-table tbody td {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }

  .dlm-myaccount-table--license-details th {
    padding: 10px 12px !important;
    font-size: 12px !important;
    width: 100px !important;
  }

  .dlm-myaccount-table--license-details td {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .dlm-myaccount-product-licenses,
  .dlm-myaccount-license-section,
  .dlm-myaccount-element--order-licenses {
    padding: 14px;
    border-radius: 10px;
  }

  .dlm-myaccount-page-title,
  .dlm-myaccount-page-subtitle {
    font-size: 16px !important;
  }

  .dlm-myaccount-table thead tr {
    height: 42px;
  }

  .dlm-myaccount-table thead th {
    font-size: 12px !important;
    padding: 0 10px !important;
  }

  .dlm-myaccount-table tbody td {
    padding: 8px 10px !important;
    font-size: 11px !important;
  }

  .dlm-myaccount-table--license-details th {
    padding: 8px 10px !important;
    font-size: 11px !important;
    width: 80px !important;
  }

  .dlm-myaccount-table--license-details td {
    padding: 8px 10px !important;
    font-size: 11px !important;
  }

  .dlm-myaccount-table .table-col-license-key {
    font-size: 11px !important;
  }
}

/*
 * PRODUCT CARD — Informational Tags
 */

.dadur-product-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 8px 0 12px;
  align-items: center;
  width: 100%;
}

/* Alt & Buttons-on-hover use .wd-product-header (flex row) for the title area.
   Force wrap so tags occupy their own line above the title. */
.wd-hover-alt .wd-product-header,
.wd-hover-buttons-on-hover .wd-product-header {
  flex-wrap: wrap !important;
}

.wd-hover-alt .dadur-product-tags,
.wd-hover-buttons-on-hover .dadur-product-tags {
  flex: 1 1 100%;
  width: 100%;
  order: -1;
  margin-bottom: 4px;
}

.dadur-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  line-height: 1.3;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}

/*
 * PRODUCT CARD — Sales Counter (inside .price)
 */

.dadur-sales-count {
  display: inline;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  margin-left: 5px;
}

/*
 * PRODUCT CARD — Responsive
 */

@media (max-width: 768px) {
  .dadur-product-tags {
    gap: 3px;
    margin: 6px 0 10px;
  }

  .dadur-tag {
    padding: 2px 5px;
    font-size: 8px;
  }

  .dadur-sales-count {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .dadur-product-tags {
    gap: 3px;
    margin: 4px 0 8px;
  }

  .dadur-tag {
    padding: 1px 4px;
    font-size: 7px;
  }

  .dadur-sales-count {
    font-size: 8px;
    margin-left: 3px;
  }
}

/* ===================================================
   ORDER PROGRESS BAR — View Order Page
   =================================================== */

.premium-order-progress {
  background: linear-gradient(145deg, #111827 0%, #1A2236 100%);
  border: 1px solid rgba(58, 71, 96, 0.3);
  border-radius: 16px;
  padding: 28px 24px 20px;
  margin-bottom: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(58, 71, 96, 0.1) inset,
    0 1px 0 rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.premium-order-progress__title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.premium-order-progress__bar {
  width: 100%;
}

/* --- Steps Row --- */
.premium-order-progress__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 12px;
}

.premium-order-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  position: relative;
}

/* --- Step Indicator (Circle / Check) --- */
.premium-order-progress__step-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.6);
  border: 2px solid rgba(58, 71, 96, 0.4);
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.premium-order-progress__step--completed .premium-order-progress__step-indicator {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.premium-order-progress__step--active .premium-order-progress__step-indicator {
  background: rgba(249, 115, 22, 0.12);
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.premium-order-progress__step-icon {
  color: #ffffff;
}

.premium-order-progress__step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f97316;
  animation: premium-progress-pulse 2s ease-in-out infinite;
}

@keyframes premium-progress-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

.premium-order-progress__step-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

/* --- Step Label --- */
.premium-order-progress__step-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  transition: color 0.3s ease;
  text-align: center;
}

.premium-order-progress__step--completed .premium-order-progress__step-label {
  color: #f97316;
}

.premium-order-progress__step--active .premium-order-progress__step-label {
  color: #ffffff;
  font-weight: 600;
}

/* --- Connector Line --- */
.premium-order-progress__connector {
  flex: 1 1 auto;
  height: 2px;
  background: rgba(58, 71, 96, 0.35);
  align-self: center;
  margin: 0 -1px;
  min-width: 40px;
  max-width: 120px;
  position: relative;
  z-index: 1;
  transition: background 0.4s ease;
}

.premium-order-progress__connector--filled {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

/* --- Info Row (Status Badge + Date) --- */
.premium-order-progress__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(58, 71, 96, 0.2);
}

.premium-order-progress__status-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.premium-order-progress__status-label--completed,
.premium-order-progress__status-label--processing {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.premium-order-progress__status-label--on-hold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.premium-order-progress__status-label--pending {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.premium-order-progress__status-label--cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.premium-order-progress__status-label--refunded {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}

.premium-order-progress__status-label--failed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.premium-order-progress__date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.premium-order-progress__date mark {
  background: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* --- Terminal Statuses (Cancelled / Failed / Refunded) --- */
.premium-order-progress__terminal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 0;
}

.premium-order-progress__terminal-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.premium-order-progress__terminal-steps {
  display: flex;
  align-items: center;
  gap: 8px;
}

.premium-order-progress__tstep {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(58, 71, 96, 0.2);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.premium-order-progress__tstep--active {
  opacity: 1;
}

.premium-order-progress__tstep--cancelled.premium-order-progress__tstep--active {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.premium-order-progress__tstep--failed.premium-order-progress__tstep--active {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.premium-order-progress__tstep--refunded.premium-order-progress__tstep--active {
  background: rgba(107, 114, 128, 0.12);
  border-color: rgba(107, 114, 128, 0.3);
}

.premium-order-progress__tstep-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.premium-order-progress__tstep--cancelled.premium-order-progress__tstep--active .premium-order-progress__tstep-indicator {
  color: #f87171;
}

.premium-order-progress__tstep--failed.premium-order-progress__tstep--active .premium-order-progress__tstep-indicator {
  color: #f87171;
}

.premium-order-progress__tstep--refunded.premium-order-progress__tstep--active .premium-order-progress__tstep-indicator {
  color: #9ca3af;
}

.premium-order-progress__tstep-circle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.premium-order-progress__tstep-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.premium-order-progress__tstep--active .premium-order-progress__tstep-label {
  font-weight: 600;
}

.premium-order-progress__tstep--cancelled.premium-order-progress__tstep--active .premium-order-progress__tstep-label {
  color: #f87171;
}

.premium-order-progress__tstep--failed.premium-order-progress__tstep--active .premium-order-progress__tstep-label {
  color: #f87171;
}

.premium-order-progress__tstep--refunded.premium-order-progress__tstep--active .premium-order-progress__tstep-label {
  color: #9ca3af;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .premium-order-progress {
    padding: 24px 20px 18px;
    border-radius: 13px;
  }

  .premium-order-progress__step-indicator {
    width: 36px;
    height: 36px;
  }

  .premium-order-progress__connector {
    min-width: 30px;
    max-width: 80px;
  }
}

@media (max-width: 768px) {
  .premium-order-progress {
    padding: 20px 16px 16px;
    border-radius: 12px;
  }

  .premium-order-progress__step-indicator {
    width: 32px;
    height: 32px;
  }

  .premium-order-progress__step-icon {
    width: 12px;
    height: 12px;
  }

  .premium-order-progress__step-dot {
    width: 8px;
    height: 8px;
  }

  .premium-order-progress__connector {
    min-width: 20px;
    max-width: 60px;
  }

  .premium-order-progress__step-label {
    font-size: 11px;
  }

  .premium-order-progress__info {
    flex-direction: column;
    gap: 6px;
  }

  .premium-order-progress__date {
    font-size: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .premium-order-progress {
    padding: 16px 12px 14px;
    border-radius: 10px;
  }

  .premium-order-progress__step-indicator {
    width: 28px;
    height: 28px;
    border-width: 1.5px;
  }

  .premium-order-progress__step-icon {
    width: 10px;
    height: 10px;
  }

  .premium-order-progress__step-dot {
    width: 6px;
    height: 6px;
  }

  .premium-order-progress__step-circle {
    width: 6px;
    height: 6px;
  }

  .premium-order-progress__connector {
    min-width: 14px;
    max-width: 40px;
    height: 1.5px;
  }

  .premium-order-progress__step-label {
    font-size: 10px;
  }

  .premium-order-progress__terminal {
    flex-direction: column;
    gap: 6px;
  }

  .premium-order-progress__terminal-steps {
    gap: 4px;
  }

  .premium-order-progress__tstep {
    padding: 3px 8px;
  }

  .premium-order-progress__tstep-label {
    font-size: 10px;
  }
}

/* ===================================================
   PRODUCT TITLES — Multi-line Support
   =================================================== */

.wd-product .product-title,
.wd-product .wd-entities-title,
.wd-product .product-title a {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    line-height: 1.4 !important;
    min-height: 40px;
    word-break: break-word;
}

@media (max-width: 768px) {
    .wd-product .product-title,
    .wd-product .wd-entities-title,
    .wd-product .product-title a {
        font-size: 14px !important;
        line-height: 1.35 !important;
        min-height: 44px;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .wd-product .product-title,
    .wd-product .wd-entities-title,
    .wd-product .product-title a {
        font-size: 13px !important;
        min-height: 42px;
    }
}

/* ===================================================
   BKASH PAYMENT BUTTON
   =================================================== */

.bkash-payment-button {
    display: inline-block;
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
    background-color: #e2126e;
    color: #ffffff;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ===================================================
   ORDER RECEIVED — Remove Maroon Backgrounds
   =================================================== */

.woocommerce-order-details table tfoot th,
.woocommerce-order-details table tfoot td,
.woocommerce-table--order-details tfoot th,
.woocommerce-table--order-details tfoot td {
    background: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.08) !important;
}

.woocommerce-order-details table thead th,
.woocommerce-table--order-details thead th {
    background: #131b36 !important;
    color: #ffffff !important;
}

.woocommerce-order-details table tbody td,
.woocommerce-order-details table tbody th {
    background: transparent !important;
}

.woocommerce-order-details tfoot th {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 600;
}

.woocommerce-order-details tfoot td {
    background: transparent !important;
}

.woocommerce-order-details tfoot tr {
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===================================================
   LICENSE PAGE — Dadur Game Store
   =================================================== */

.woocommerce-account table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
    background: transparent !important;
}

.woocommerce-account table th,
.woocommerce-account table td {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    vertical-align: middle !important;
}

.woocommerce-account tbody td:first-child code,
.woocommerce-account tbody td:first-child span,
.woocommerce-account tbody td:first-child input {
    background: #78192C !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .5px !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce-account tbody td:nth-child(3),
.woocommerce-account tbody td.status,
.woocommerce-account .lmfwc-status,
.woocommerce-account .license-status,
.woocommerce-account [class*="status"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce-account tbody td:nth-child(3) *,
.woocommerce-account .lmfwc-status *,
.woocommerce-account .license-status * {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.woocommerce-account tbody td:nth-child(3) span,
.woocommerce-account .lmfwc-status span,
.woocommerce-account .license-status span {
    background: #78192C !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 120px !important;
    border: none !important;
}

.woocommerce-account .button,
.woocommerce-account a.button,
.woocommerce-account .woocommerce-button,
.woocommerce-account a[href*="view"] {
    background: #78192C !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 10px 22px !important;
    font-weight: 700 !important;
    transition: all .3s ease !important;
    box-shadow: none !important;
}

.woocommerce-account .button:hover,
.woocommerce-account a.button:hover,
.woocommerce-account .woocommerce-button:hover,
.woocommerce-account a[href*="view"]:hover {
    background: #5f1323 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.woocommerce-account .woocommerce-MyAccount-content table,
.woocommerce-account .woocommerce-MyAccount-content table th,
.woocommerce-account .woocommerce-MyAccount-content table td {
    border-color: rgba(255,255,255,.08) !important;
}

@media (max-width:768px) {
    .woocommerce-account table td {
        padding: 12px !important;
    }

    .woocommerce-account .button,
    .woocommerce-account a.button,
    .woocommerce-account .woocommerce-button {
        width: 100% !important;
        margin-bottom: 8px !important;
    }

    .woocommerce-account tbody td:first-child code,
    .woocommerce-account tbody td:first-child span,
    .woocommerce-account tbody td:first-child input {
        display: block !important;
        word-break: break-all !important;
    }

}

/* ===================================================
   MY ACCOUNT SIDEBAR
   =================================================== */

.woocommerce-MyAccount-navigation {
    background: #121212;
    padding: 15px;
    border-radius: 18px;
}

.woocommerce-MyAccount-navigation ul {
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    list-style: none;
    margin-bottom: 10px;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 14px 18px;
    background: #1c1c1f;
    color: #ffffff !important;
    border-radius: 14px;
    font-weight: 600;
    transition: all .3s ease;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: #78192C !important;
    color: #ffffff !important;
}

.woocommerce-MyAccount-navigation li a:hover {
    background: #78192C !important;
    transform: translateX(4px);
}

/* ===================================================
   DASHBOARD PAGE — My Account Landing
   =================================================== */

.woocommerce-MyAccount-content > h2:first-child,
.woocommerce-MyAccount-content header > h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
}

.woocommerce-MyAccount-content > p {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.6 !important;
}

.woocommerce-MyAccount-content > p a {
    color: #f97316 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.woocommerce-MyAccount-content > p a:hover {
    color: #fb923c !important;
    text-decoration: underline !important;
}

/* ===================================================
   ORDER STATUS BADGES
   =================================================== */

.woocommerce-orders-table .order-status,
.woocommerce-orders-table .status-processing,
.woocommerce-orders-table .status-completed,
.woocommerce-orders-table .status-on-hold {
    background: #78192C !important;
    color: #ffffff !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
}

/* ===================================================
   ORDER DETAILS PAGE
   =================================================== */

.woocommerce-order-details:not(.premium-order-details) {
    background: #161a24;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
}

.woocommerce-order-details__title {
    color: #fff;
    margin-bottom: 20px;
}

.woocommerce-table tbody tr {
    background: #1b1f2c;
}

.woocommerce-table td,
.woocommerce-table th {
    border: none !important;
    color: #fff;
}

.woocommerce-table th {
    background: #78192C;
}

.woocommerce-table tfoot th {
    color: #fff;
}

.woocommerce-table tfoot td {
    color: #00e676;
    font-weight: 700;
}

.order-status,
.woocommerce-order-overview__status strong {
    background: #00c853 !important;
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
}

.woocommerce-customer-details {
    display: none !important;
}

.woocommerce-order-overview {
    background: #10261d;
    border: 1px solid rgba(0,230,118,.3);
    border-radius: 16px;
    padding: 20px;
}

.woocommerce .button,
.woocommerce .woocommerce-button {
    background: #78192C !important;
    border-radius: 50px !important;
    color: #fff !important;
    padding: 12px 24px !important;
}

/* ===================================================
   SUCCESS CARD
   =================================================== */

.dadur-success-card {
    background: #10261d;
    border: 1px solid rgba(0,230,118,.25);
    border-radius: 18px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.dadur-success-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dadur-success-card .icon {
    width: 60px;
    height: 60px;
    border: 2px solid #00e676;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00e676;
    font-size: 30px;
    flex-shrink: 0;
}

.dadur-success-card-body {
    flex: 1;
    min-width: 0;
}

.dadur-success-card-body h2 {
    color: #00e676;
    margin: 0 0 5px;
}

.dadur-success-card-body p {
    margin: 0;
    color: #d4d4d4;
}

.dadur-success-card-body small {
    color: #8e98a7;
}

.dadur-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 10px 0 8px;
    font-size: 13px;
    color: rgba(255,255,255,.55);
}

.dadur-card-meta strong {
    color: rgba(255,255,255,.8);
    font-weight: 600;
}

.dadur-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.3;
}

.dadur-status-badge--completed { background: rgba(0,230,118,.15); color: #00e676; }
.dadur-status-badge--processing { background: rgba(41,151,255,.15); color: #2997ff; }
.dadur-status-badge--pending,
.dadur-status-badge--on-hold { background: rgba(255,193,7,.15); color: #ffc107; }
.dadur-status-badge--cancelled,
.dadur-status-badge--failed { background: rgba(255,77,77,.15); color: #ff4d4d; }
.dadur-status-badge--refunded { background: rgba(160,160,160,.15); color: #a0a0a0; }

.dadur-success-card--completed { background: #10261d; border-color: rgba(0,230,118,.25); }
.dadur-success-card--completed .icon { border-color: #00e676; color: #00e676; }
.dadur-success-card--completed h2 { color: #00e676; }

.dadur-success-card--processing { background: #0d1b2a; border-color: rgba(41,151,255,.25); }
.dadur-success-card--processing .icon { border-color: #2997ff; color: #2997ff; }
.dadur-success-card--processing h2 { color: #2997ff; }

.dadur-success-card--pending,
.dadur-success-card--on-hold { background: #1e1a0d; border-color: rgba(255,193,7,.25); }
.dadur-success-card--pending .icon,
.dadur-success-card--on-hold .icon { border-color: #ffc107; color: #ffc107; }
.dadur-success-card--pending h2,
.dadur-success-card--on-hold h2 { color: #ffc107; }

.dadur-success-card--cancelled,
.dadur-success-card--failed { background: #1f0d0d; border-color: rgba(255,77,77,.25); }
.dadur-success-card--cancelled .icon,
.dadur-success-card--failed .icon { border-color: #ff4d4d; color: #ff4d4d; }
.dadur-success-card--cancelled h2,
.dadur-success-card--failed h2 { color: #ff4d4d; }

.dadur-success-card--refunded { background: #131418; border-color: rgba(160,160,160,.25); }
.dadur-success-card--refunded .icon { border-color: #a0a0a0; color: #a0a0a0; }
.dadur-success-card--refunded h2 { color: #a0a0a0; }

/* ===================================================
   PROGRESS TRACKER
   =================================================== */

.dadur-progress {
    background: #111522;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
}

.dadur-progress-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 40px;
}

.dadur-progress-track {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.dadur-progress-track:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #293041;
    z-index: 1;
}

.dadur-step {
    flex: 1;
    position: relative;
    text-align: center;
    z-index: 2;
}

.dadur-step .circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #293041;
    color: #8a93a7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 16px;
}

.dadur-step.active .circle {
    background: #00e676;
    color: #fff;
}

.dadur-step.active:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: #00e676;
    z-index: -1;
}

.dadur-step h4 {
    margin: 0 0 5px;
    font-size: 14px;
    color: #8a93a7;
}

.dadur-step p {
    margin: 0;
    font-size: 12px;
    color: #6f7788;
}

.dadur-step.active h4 {
    color: #00e676;
}

.dadur-step.active p {
    color: #a5b0c2;
}

@media (max-width: 768px) {
    .dadur-progress-track {
        flex-direction: column;
        gap: 20px;
    }

    .dadur-progress-track:before {
        display: none;
    }

    .dadur-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
    }

    .dadur-step .circle {
        margin: 0;
    }

    .dadur-step::before {
        display: none !important;
    }
}

/* ===================================================
   NO CROP — Product Images Natural Aspect Ratio
   =================================================== */

.product-element-top {
    overflow: visible !important;
}

.wd-product .product-image-link img,
.wd-product .product-element-top img {
    aspect-ratio: auto !important;
    object-fit: contain !important;
    max-height: none !important;
}

/* ===================================================
   ORDERS PAGE — Specificity Shield
   Prevents license page generic rules from
   affecting orders table (status badges, buttons, borders)
   =================================================== */

body.woocommerce-orders .premium-orders-table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

body.woocommerce-orders .premium-orders-table th,
body.woocommerce-orders .premium-orders-table td {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

body.woocommerce-orders .premium-orders-table .premium-order-status {
    display: inline-block !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.01em;
    border: none !important;
}

body.woocommerce-orders .premium-orders-table .premium-order-status--completed,
body.woocommerce-orders .premium-orders-table .premium-order-status--processing {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
}

body.woocommerce-orders .premium-orders-table .premium-order-status--on-hold {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
}

body.woocommerce-orders .premium-orders-table .premium-order-status--pending {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

body.woocommerce-orders .premium-orders-table .premium-order-status--cancelled {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

body.woocommerce-orders .premium-orders-table .premium-order-status--refunded {
    background: rgba(107, 114, 128, 0.15) !important;
    color: #9ca3af !important;
}

body.woocommerce-orders .premium-orders-table .premium-order-status--failed {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

body.woocommerce-orders .premium-orders-table .premium-order-action-btn {
    background: rgba(30, 41, 59, 0.5) !important;
    color: #ffffff !important;
    border: 1px solid rgba(58, 71, 96, 0.35) !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    min-height: 0 !important;
}

body.woocommerce-orders .premium-orders-table .premium-order-action-btn:hover {
    background: rgba(249, 115, 22, 0.15) !important;
    border-color: #f97316 !important;
    color: #f97316 !important;
    transform: none !important;
}

/* ===================================================
   RESPONSIVE — My Account Orders Page Only
   =================================================== */

/* Tablet: keep table layout, override parent theme card conversion */
@media (max-width: 1024px) {

    body.woocommerce-orders .premium-orders-table {
        display: table !important;
        width: 100% !important;
    }

    body.woocommerce-orders .premium-orders-table thead {
        display: table-header-group !important;
    }

    body.woocommerce-orders .premium-orders-table tbody,
    body.woocommerce-orders .premium-orders-table tfoot {
        display: table-row-group !important;
    }

    body.woocommerce-orders .premium-orders-table tr {
        display: table-row !important;
        position: static !important;
        gap: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: 1px solid #2E3748 !important;
    }

    body.woocommerce-orders .premium-orders-table th,
    body.woocommerce-orders .premium-orders-table td {
        display: table-cell !important;
        flex: none !important;
        flex-wrap: nowrap !important;
        padding: 12px 22px !important;
        border-bottom: none !important;
        font-size: 15px !important;
    }

    body.woocommerce-orders .premium-orders-table th::before,
    body.woocommerce-orders .premium-orders-table td::before {
        display: none !important;
    }
}

/* Mobile: card layout */
@media (max-width: 768px) {

    /* Override generic padding from license page */
    body.woocommerce-orders .premium-orders-table td,
    body.woocommerce-orders .premium-orders-table th {
        padding: 0 !important;
    }

    /* Override generic button width from license page */
    body.woocommerce-orders .premium-orders-table .premium-order-action-btn {
        width: auto !important;
        margin-bottom: 0 !important;
    }

    body.woocommerce-orders .premium-orders-section {
        padding: 18px;
        border-radius: 12px;
    }

    body.woocommerce-orders .premium-orders-section__title {
        font-size: 20px !important;
        margin-bottom: 14px !important;
    }

    /* Remove table wrapper chrome */
    body.woocommerce-orders .premium-orders-table-wrap {
        overflow: visible;
        border: none !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    /* Hide thead */
    body.woocommerce-orders .premium-orders-table thead {
        display: none !important;
    }

    /* Table → flex column */
    body.woocommerce-orders .premium-orders-table {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        background: transparent !important;
        border: none !important;
    }

    /* Tbody → flex column */
    body.woocommerce-orders .premium-orders-table tbody {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        background: transparent !important;
    }

    /* Each row → card */
    body.woocommerce-orders .premium-orders-table tbody tr {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        background: rgba(30, 41, 59, 0.5) !important;
        border: 1px solid rgba(58, 71, 96, 0.3) !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        margin-bottom: 0 !important;
        height: auto !important;
    }

    body.woocommerce-orders .premium-orders-table tbody tr:hover {
        background: rgba(30, 41, 59, 0.65) !important;
    }

    /* Each cell → row inside card */
    body.woocommerce-orders .premium-orders-table tbody td,
    body.woocommerce-orders .premium-orders-table tbody th {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0 !important;
        border-bottom: 1px solid rgba(58, 71, 96, 0.2) !important;
        font-size: 13px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        background: transparent !important;
        vertical-align: middle !important;
    }

    /* Remove border from last row */
    body.woocommerce-orders .premium-orders-table tbody tr > :last-child {
        border-bottom: none !important;
    }

    /* data-title label */
    body.woocommerce-orders .premium-orders-table tbody td::before,
    body.woocommerce-orders .premium-orders-table tbody th::before {
        content: attr(data-title) !important;
        display: inline-block !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: rgba(255, 255, 255, 0.45) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        margin-right: 12px !important;
        flex-shrink: 0;
    }

    /* Order number: header card row */
    body.woocommerce-orders .premium-orders-table tbody th.woocommerce-orders-table__cell-order-number {
        border-bottom: 1px solid rgba(58, 71, 96, 0.2) !important;
        padding-bottom: 10px !important;
        margin-bottom: 2px;
    }

    body.woocommerce-orders .premium-orders-table tbody th.woocommerce-orders-table__cell-order-number::before {
        display: none !important;
    }

    body.woocommerce-orders .premium-orders-table tbody th.woocommerce-orders-table__cell-order-number a {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
    }

    /* Status: label on left, badge on right */
    body.woocommerce-orders .premium-orders-table tbody td.woocommerce-orders-table__cell-order-status {
        justify-content: space-between;
    }

    /* Total: price right-aligned */
    body.woocommerce-orders .premium-orders-table tbody td.woocommerce-orders-table__cell-order-total {
        justify-content: space-between;
    }

    body.woocommerce-orders .premium-orders-table tbody td.woocommerce-orders-table__cell-order-total .woocommerce-Price-amount {
        font-size: 15px !important;
        font-weight: 600 !important;
    }

    /* Actions: button right-aligned, no bottom border */
    body.woocommerce-orders .premium-orders-table tbody td.woocommerce-orders-table__cell-order-actions {
        justify-content: flex-end;
        padding-top: 10px !important;
        border-bottom: none !important;
    }

    body.woocommerce-orders .premium-orders-table .premium-order-action-btn {
        font-size: 12px !important;
        padding: 6px 14px !important;
    }

    /* Pagination */
    body.woocommerce-orders .premium-orders-pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
}

/* Small mobile */
@media (max-width: 480px) {

    body.woocommerce-orders .premium-orders-section {
        padding: 14px;
        border-radius: 10px;
    }

    body.woocommerce-orders .premium-orders-section__title {
        font-size: 18px !important;
    }

    body.woocommerce-orders .premium-orders-table tbody tr {
        padding: 12px 14px !important;
        border-radius: 10px !important;
    }

    body.woocommerce-orders .premium-orders-table tbody td,
    body.woocommerce-orders .premium-orders-table tbody th {
        padding: 6px 0 !important;
        font-size: 12px !important;
    }

    body.woocommerce-orders .premium-orders-table tbody td::before,
    body.woocommerce-orders .premium-orders-table tbody th::before {
        font-size: 11px !important;
    }

    body.woocommerce-orders .premium-orders-table tbody th.woocommerce-orders-table__cell-order-number a {
        font-size: 14px !important;
    }

    body.woocommerce-orders .premium-orders-table .premium-order-action-btn {
        font-size: 11px !important;
        padding: 5px 12px !important;
    }

    body.woocommerce-orders .premium-orders-pagination__page {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    body.woocommerce-orders .premium-orders-pagination__arrow {
        width: 32px;
        height: 32px;
    }
}

/* ===================================================
   RESPONSIVE — Dashboard Page
   =================================================== */

@media (max-width: 1024px) {

    .woocommerce-MyAccount-content > h2:first-child,
    .woocommerce-MyAccount-content header > h2 {
        font-size: 20px !important;
    }

    .woocommerce-MyAccount-content > p {
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {

    .woocommerce-MyAccount-content > h2:first-child,
    .woocommerce-MyAccount-content header > h2 {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }

    .woocommerce-MyAccount-content > p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
    }

    .woocommerce-MyAccount-content > p a {
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {

    .woocommerce-MyAccount-content > h2:first-child,
    .woocommerce-MyAccount-content header > h2 {
        font-size: 16px !important;
    }

    .woocommerce-MyAccount-content > p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
}

