/* ========== KORPA 6: Grid cards (Opcija 6) ========== */

.walmart-design-5 {
  display: block;
}

.walmart-cards {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", Roboto, sans-serif;
}

.walmart-cards-title {
  font-size: 14px;
  color: #2c2c2c;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Selected state — show plan name in title */
.walmart-design-5.has-selection .walmart-cards-title {
  font-size: 13px;
  font-weight: 400;
}

.walmart-design-5.has-selection .walmart-cards-title strong {
  font-weight: 600;
}

.walmart-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.walmart-card {
  position: relative;
  cursor: pointer;
}

.walmart-card input[type="radio"] {
  display: none;
}

.walmart-card-badge {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  color: #000;
  background: #FFCB05;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  z-index: 1;
}

.walmart-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s ease;
  height: 100%;
  box-sizing: border-box;
}

.walmart-card:hover .walmart-card-inner {
  border-color: #FFCB05;
  background: #fffef8;
}

.walmart-card input[type="radio"]:checked + .walmart-card-badge + .walmart-card-inner,
.walmart-card input[type="radio"]:checked + .walmart-card-inner {
  border-color: #FFCB05;
  background: #fffef8;
}

.walmart-card-duration {
  font-size: 12px;
  color: #2c2c2c;
  font-weight: 500;
  text-align: center;
}

.walmart-card-price {
  font-size: 13px;
  color: #000;
  font-weight: 600;
  text-align: center;
}

.walmart-cards-compare {
  width: 100%;
  background: none;
  border: 1.5px solid #e0e0e0;
  border-radius: 5px;
  color: #0066cc;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.walmart-cards-compare {
  width: 100%;
  background: none;
  border: 1.5px solid #e0e0e0;
  border-radius: 5px;
  color: #666;
  font-size: 13px;
  font-weight: 400;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: underline;
  text-decoration-color: transparent;
}

.walmart-cards-compare:hover {
  color: #333;
  border-color: #e0e0e0;
  background: #f9f9f9;
  text-decoration-color: #FFCB05;
}

/* Clear button on selected card */
.walmart-card-clear {
  display: none;
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #FFCB05;
  color: #333;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

.walmart-card input[type="radio"]:checked + .walmart-card-badge + .walmart-card-inner .walmart-card-clear,
.walmart-card input[type="radio"]:checked + .walmart-card-inner .walmart-card-clear {
  display: flex;
}

.walmart-card-clear:hover {
  background: #FFCB05;
  color: #fff;
  transform: scale(1.1);
}
