#purchase-cards {
  margin: 2rem 0;
}

.purchase-box {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fdfdfd;
  padding: 0 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.edition-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
}

.tab {
  background: #f5f5f5;
  border: 1px solid #ccc;
  padding: 0.6rem 1.2rem;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  transition: background 0.2s;
}

.tab.active {
  background: #fff;
  color: #2980b9;
  border-bottom-color: #fff;
  position: relative;
  z-index: 1;
}

.tab:hover:not(.active) {
  background: #e0e0e0;
}

.edition-description {
  font-size: 0.95rem;
  color: #444;
  margin: 0 0 1.5rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid #2980b9;
  background: #f3f7fb;
  border-radius: 4px;
  line-height: 1.5;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.license-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.license-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.license-name {
  margin-top: 0;
  font-size: 1.3rem;
  height: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #2980b9;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  line-height: 1.3;
}

.license-details {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #555;
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  min-height: 8rem;
}

.license-details li {
  padding: 0.2rem 0;
  border-bottom: 1px dotted #eee;
  margin-bottom: 0.3rem;
}

.license-details li:last-child {
  border-bottom: none;
}

.selection-group {
  margin: 0.8rem 0;
}

.selection-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.currency-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}

.price-order {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.price-value {
  font-size: 1.6rem;
  font-weight: bold;
  color: #27ae60;
}

.order-link.button {
  background: #2980b9;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.order-link.button:hover {
  background: #1c5980;
}

.no-js-message {
  display: block;
  color: #e74c3c;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  border: 1px dashed #e74c3c;
  border-radius: 4px;
  margin-top: 1rem;
}

.js-enabled .no-js-message {
  display: none;
}

.price-order,
.selection-group {
  display: none;
}

.js-enabled .price-order {
  display: flex;
}

.js-enabled .selection-group {
  display: block;
}

.compare-link {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: #2980b9;
  text-decoration: none;
  margin: 0.5rem 0 0.8rem;
  font-weight: 500;
  transition: color 0.2s;
}

.compare-link:hover {
  color: #1c5980;
  text-decoration: underline;
}
