.license-key-display {
  font-family: monospace;
  background-color: #f8f8f8;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 14px;
}

.cg-lm-license-search {
  margin: 20px 0;
  display: flex;
  justify-content: flex-end;
}

.cg-lm-license-search input {
  width: 260px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.cg-lm-license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.cg-lm-license-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.cg-lm-license-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.license-product-name {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 600;
}

.license-key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.license-card-copy {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}

.license-card-copy:hover {
  background: #e5e5e5;
}

.cg-lm-license-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

.cg-lm-license-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.cg-lm-active-sites {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cg-lm-active-site-domain {
  font-family: monospace;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 3px;
}

.cg-lm-active-site-status {
  font-size: 11px;
  color: #6b7280;
  margin-left: 8px;
  text-transform: capitalize;
}

.cg-lm-license-card-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cg-lm-license-ok {
  color: #6b7280;
}

.renewal-button {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  text-decoration: none;
}

.copy-license-key {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 8px;
  font-size: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.copy-license-key:hover {
  opacity: 1;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
}

.status-active {
  background-color: #46b450;
  color: white;
}

.status-inactive {
  background-color: #dc3232;
  color: white;
}

.status-expired {
  background-color: #ffb900;
  color: #333;
}

.expiry-date.expired {
  color: #dc3232;
  font-weight: bold;
}

.expiry-date.expiring-soon {
  color: #ffb900;
  font-weight: bold;
}

.license-legend {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 4px;
}

.license-legend ul {
  list-style: none;
  padding: 0;
}

.license-legend li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .woocommerce-orders-table {
    font-size: 14px;
  }

  .license-key-display {
    font-size: 12px;
    word-break: break-all;
  }
}
