/* Base table styling */
.woocommerce-order-downloads table.woocommerce-table {
  width: 100%;
  border: none;
  border-collapse: collapse;
  font-family: inherit;
  font-size: inherit;
}

/* Hide table headers */
.woocommerce-order-downloads thead {
  display: none;
}

/* Hide unneeded columns */
.woocommerce-order-downloads .download-remaining,
.woocommerce-order-downloads .download-expires {
  display: none !important;
}

/* Stack rows vertically like cards */
.woocommerce-order-downloads tbody {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

/* Each row as clean white bubble with subtle shadow */
.woocommerce-order-downloads tbody tr {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); /* Soft Apple-style shadow */
}

/* Clear out all table cell borders */
.woocommerce-order-downloads tbody td {
  border: none !important;
  padding: 0;
  margin-bottom: 12px;
}

/* Prompt label + name */
.woocommerce-order-downloads td.download-product {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.woocommerce-order-downloads td.download-product::before {
  content: "Access Prompt";
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Download PDF label */
.woocommerce-order-downloads td.download-file::before {
  content: "Download PDF";
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Restore default link styling to show filename */
.woocommerce-order-downloads td.download-file a {
  word-break: break-word;
  font-size: 15px;
  color: #3d2776;
  font-weight: 500;
  text-decoration: none;
}

.woocommerce-order-downloads td.download-file a:hover {
  text-decoration: underline;
}

/* Optional: button style if needed */
.woocommerce-order-downloads .button.alt {
  display: inline-block;
  margin-top: 10px;
  background: #3d2776;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
  border: none;
  text-align: center;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-order-downloads .button.alt:hover {
  background: #3d2799;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .woocommerce-order-downloads tbody tr,
  .woocommerce-order-downloads tbody tr td {
    background: #ffffff !important;
    box-shadow: none !important; /* if you want no shadow at all */
    -webkit-box-shadow: none !important; /* mobile Safari */
    background-image: none !important;
  }
}
