/* Baltic Commerce — plan grids. Relies on theme tokens. */
.bc-plans__head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.bc-plans__head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.bc-plans__head p { color: var(--bc-muted); }
.bc-plans__head .bc-auth__notice { margin-top: 1.25rem; text-align: left; }

.bc-plans__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; align-items: stretch; }
.bc-plan { position: relative; background: #fff; border: 1px solid var(--bc-line); border-radius: var(--bc-radius-lg); padding: 1.75rem 1.5rem; box-shadow: var(--bc-shadow); display: flex; flex-direction: column; text-align: center; }
.bc-plan.is-featured { border-color: var(--bc-primary); box-shadow: 0 8px 30px rgba(5,54,178,.15); }
.bc-plan__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--bc-primary); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .3rem .8rem; border-radius: 999px; }
.bc-plan__name { font-size: 1.15rem; margin-bottom: .5rem; }
.bc-plan__price { font-size: 1.9rem; font-weight: 800; color: var(--bc-primary); font-family: var(--bc-font); margin-bottom: .25rem; }
.bc-plan__price .woocommerce-Price-amount { font-size: inherit; }
.bc-plan__meta { color: var(--bc-muted); font-size: .9rem; margin-bottom: 1.25rem; }
.bc-plan__list { list-style: none; padding: 0; margin: 0 0 1.5rem; text-align: left; }
.bc-plan__list li { padding: .4rem 0 .4rem 1.5rem; position: relative; font-size: .92rem; color: var(--bc-body); }
.bc-plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--bc-primary); font-weight: 700; }
.bc-plan .bc-btn { margin-top: auto; width: 100%; justify-content: center; }
.bc-plans__foot { text-align: center; color: var(--bc-muted); font-size: .88rem; margin-top: 2rem; }

/* Plans page: reassure an existing subscriber that buying again adds days rather than
   replacing them. Deliberately not styled as an error — it is good news, not a warning. */
.bc-plans__extend { margin-top: .6rem; background: #eef3ff; border: 1px solid #c9d8ff; color: #16307a; }
.bc-plans__extend strong { color: #0536B2; }

/* Portal billing: invoices and saved cards, styled with the dashboard rather than
   WooCommerce's stock account UI. */
.bc-billing__back { margin-bottom: .75rem; font-size: .9rem; }
.bc-invoice__head { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--bc-line); }
.bc-invoice__head strong { display: block; color: var(--bc-ink); overflow-wrap: anywhere; }
.bc-invoice__head span { display: block; color: var(--bc-muted); font-size: .85rem; overflow-wrap: anywhere; }
.bc-invoice__label { text-transform: uppercase; letter-spacing: .03em; font-size: .72rem; color: var(--bc-muted); }
.bc-invoice__items tfoot th { text-align: left; color: var(--bc-muted); font-weight: 500; }
.bc-invoice__items tfoot tr:last-child th, .bc-invoice__items tfoot tr:last-child td { color: var(--bc-ink); font-weight: 700; }
.bc-invoice__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.ta-r { text-align: right; }
.bc-empty { color: var(--bc-muted); }
.bc-badge { display: inline-block; padding: .18rem .5rem; border-radius: 999px; background: var(--bc-bg-soft); color: var(--bc-body); font-size: .74rem; font-weight: 600; }
.bc-badge--completed { background: #e6f6ec; color: #1a7f43; }
.bc-badge--processing { background: #e7efff; color: #0536B2; }
.bc-badge--pending, .bc-badge--on-hold { background: #fff4e0; color: #9a6300; }
.bc-badge--cancelled, .bc-badge--failed, .bc-badge--refunded { background: #fdeceb; color: #c0392b; }
@media print {
	.bc-header, .bc-portal__side, .bc-invoice__actions, footer, .bc-billing__back { display: none !important; }
	.bc-portal { grid-template-columns: 1fr !important; }
	.bc-panel { border: 0 !important; box-shadow: none !important; }
}
