/* WPPS: Product Plans Selector styles */
.wpps-plans-box { margin: 24px 0; }
.wpps-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.wpps-card { border: 2px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; outline: none; position: relative; transition: box-shadow .15s, border-color .15s; }
.wpps-card:hover { border-color: #93c5fd; box-shadow: 0 2px 12px rgba(15, 23, 42, .08); }
.wpps-card.is-selected { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.wpps-card__inner { padding: 18px 18px 20px 44px; }
.wpps-card__radio { width: 18px; height: 18px; border: 2px solid #94a3b8; border-radius: 50%; position: absolute; left: 16px; top: 18px; background: #fff; }
.wpps-card.is-selected .wpps-card__radio { border-color: #2563eb; box-shadow: inset 0 0 0 4px #2563eb; }
.wpps-card__ribbon { position: absolute; top: -10px; left: 16px; background: #10b981; color: #fff; font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 4px; }
.wpps-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wpps-card__group { font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 4px; }
.wpps-card__title { font-size: 18px; margin: 0; color: #0f172a; }
.wpps-card__price { display: flex; align-items: center; gap: 8px; }
.wpps-card__amount { font-weight: 800; color: #0f172a; font-size: 18px; }
.wpps-card__per { color: #475569; font-weight: 600; }
.wpps-card__months-badge { background: #16a34a; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.wpps-card__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 24px; margin-top: 12px; }
.wpps-card__grid { display: none; }
.wpps-card.is-expanded .wpps-card__grid { display: block; }
.wpps-card__list { margin: 0; padding: 0; list-style: none; }
.wpps-card__list li { position: relative; padding-left: 20px; margin: 6px 0; color: #0f172a; }
.wpps-card__list li:before { content: '\2713'; position: absolute; left: 0; top: 0; color: #16a34a; font-weight: 700; }

/* Responsive */
@media (max-width: 640px){
  .wpps-card__grid { grid-template-columns: 1fr; }
}

/* Attribute cards (variation selects as cards) */
.wpps-attr-cards { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
.wpps-attr-card { border: 2px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; padding: 12px 16px; font-weight: 600; color: #0f172a; transition: none; }
.wpps-attr-card:hover { border-color: #e2e8f0; box-shadow: none; }
.wpps-attr-card.is-active { border-color: #e2e8f0; box-shadow: none; font-weight: 800; }

/* Defeat global button hover/focus rules within our components */
.wpps-attr-card,
.wpps-attr-card:hover,
.wpps-attr-card:focus {
  outline: none !important;
  box-shadow: none !important;
  background: #fff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Hide attribute labels (e.g., "Bundle") for minimal form */
form.variations_form[data-wpps-enhance="1"] table.variations td.label { display: none; }
form.variations_form[data-wpps-enhance="1"] table.variations td.value { display: block; width: 100%; }

/* When rendering via the combined shortcode, hide native Woo variation rows entirely */
.wpps-combined form.variations_form .variations { display: none !important; }
.wpps-combined form.variations_form .reset_variations { display: none !important; }
