.dsc-buy {
	max-width: 420px;
	margin: 1.5em auto;
	text-align: center;
}
.dsc-buy__title {
	font-weight: 600;
	margin-bottom: .25em;
}
.dsc-buy__price {
	font-size: 2em;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: .6em;
}
.dsc-buy.is-busy .dsc-buy__buttons {
	opacity: .4;
	pointer-events: none;
}
.dsc-buy__msg {
	margin-top: .75em;
	font-size: .95em;
	min-height: 1.2em;
}
.dsc-buy__msg.is-success { color: #1a7f37; font-weight: 600; }
.dsc-buy__msg.is-error { color: #b32d2e; }
.dsc-buy__msg.is-busy { color: #555; }

.dsc-account__table {
	width: 100%;
	border-collapse: collapse;
}
.dsc-account__table th,
.dsc-account__table td {
	text-align: left;
	padding: .6em .5em;
	border-bottom: 1px solid rgba(0, 0, 0, .1);
	vertical-align: top;
}
.dsc-key {
	user-select: all;
	word-break: break-all;
}
.dsc-status {
	display: inline-block;
	padding: .1em .55em;
	border-radius: 999px;
	font-size: .85em;
	background: #eee;
}
.dsc-status--completed { background: #dcfce7; color: #14532d; }
.dsc-status--refunded,
.dsc-status--reversed { background: #fee2e2; color: #7f1d1d; }

@media (max-width: 600px) {
	.dsc-account__table thead { display: none; }
	.dsc-account__table tr { display: block; border-bottom: 1px solid rgba(0, 0, 0, .15); padding: .5em 0; }
	.dsc-account__table td { display: block; border: 0; padding: .25em 0; }
	.dsc-account__table td::before { content: attr(data-label) ": "; font-weight: 600; }
}

.dsc-buy__admin {
	margin-top: 1em;
	padding: .75em 1em;
	text-align: left;
	font-size: .9em;
	background: #fff8e5;
	border-left: 4px solid #dba617;
}
.dsc-buy__admin p { margin: .3em 0; }

.dsc-buy paypal-button {
	display: block;
	width: 100%;
}
.dsc-buy paypal-button[hidden] {
	display: none;
}

.dsc-buy__delivery,
.dsc-thanks {
	text-align: left;
	margin-top: 1em;
}
.dsc-buy__delivery .dsc-key,
.dsc-thanks .dsc-key {
	display: inline-block;
	margin-top: .3em;
	padding: .35em .6em;
	font-size: 1.05em;
	background: rgba(0, 0, 0, .05);
	border-radius: 4px;
}
.dsc-dl-button {
	display: inline-block;
	padding: .55em 1.2em;
	border-radius: 6px;
	background: #2271b1;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}
.dsc-dl-button:hover { background: #135e96; }
.dsc-account .dsc-dl-button { padding: .3em .8em; font-size: .9em; }
.dsc-account__instructions td { padding-top: 0; }
.dsc-account__instructions summary { cursor: pointer; font-size: .9em; }
.dsc-locked {
	padding: 1.25em 1.5em;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 8px;
	background: rgba(0, 0, 0, .025);
}
.dsc-locked .dsc-buy { margin-bottom: 0; }

/* Checkout popup */
html.dsc-modal-open { overflow: hidden; }
.dsc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, .6);
	overflow-y: auto;
}
.dsc-modal[hidden] { display: none; }
.dsc-modal__box {
	position: relative;
	width: 100%;
	max-width: 440px;
	margin: auto;
	padding: 32px 28px 20px;
	border-radius: 14px;
	background: #fff;
	color: #1d2327;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	font-family: inherit;
}
.dsc-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: #50575e;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.dsc-modal__close:hover { color: #1d2327; }
.dsc-modal .dsc-buy { margin: 0 auto; }
.dsc-modal .dsc-buy__title { font-size: 1.15em; }
.dsc-modal__note {
	margin: 1em 0 0;
	font-size: .8em;
	color: #646970;
	text-align: center;
}

/* Stand-alone checkout page */
body.dsc-checkout-page { background: #f6f7f7; }
.dsc-checkout {
	max-width: 480px;
	margin: 6vh auto;
	padding: 32px 28px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 30px rgba(0, 0, 0, .08);
	text-align: center;
}
.dsc-checkout__back { text-align: left; font-size: .9em; margin: 0 0 1em; }
.dsc-checkout__title { font-size: 1.5em; margin: 0 0 .25em; }
.dsc-checkout__note { font-size: .8em; color: #646970; margin: 1em 0 0; }

/* Yearly subscriptions */
.dsc-buy__period { font-size: .5em; font-weight: 600; opacity: .7; }
.dsc-buy__renews { font-size: .85em; opacity: .75; margin: -.3em 0 .7em; }
.dsc-link-button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: .85em;
	text-decoration: underline;
	cursor: pointer;
	opacity: .75;
}
.dsc-cancel-form { margin: .2em 0 0; }
.dsc-notice { padding: .7em 1em; border-left: 4px solid #2271b1; background: rgba(34, 113, 177, .07); }
.dsc-status--ended { background: #fef3c7; color: #78350f; }
.dsc-status--cancelled { background: #e5e7eb; color: #374151; }

/* Price tables [dsc_pricing] — override any --dsc-* variable in your theme CSS */
.dsc-pt {
	--dsc-accent: #2446f5;
	--dsc-accent-text: #fff;
	--dsc-card-bg: #fff;
	--dsc-text: #11141b;
	--dsc-muted: #5b6270;
	--dsc-border: #dce0e7;
	--dsc-radius: 14px;
	--dsc-yes: #16a34a;
	--dsc-no: #b4b9c3;
	--dsc-cols: 3;
	--dsc-max: 1080px;
	color: var(--dsc-text);
	margin: 2em 0;
}
/* Break out of narrow content columns (themes often limit text to ~650px). */
.dsc-pt.is-wide {
	position: relative;
	left: 50%;
	width: min(var(--dsc-max), calc(100vw - 32px));
	max-width: none !important; /* block themes cap content width */
	margin-left: 0 !important;
	margin-right: 0 !important;
	transform: translateX(-50%);
}
.dsc-pt .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.dsc-pt__heading { text-align: center; margin: 0 0 .3em; }
.dsc-pt__intro { text-align: center; color: var(--dsc-muted); max-width: 640px; margin: 0 auto 1.6em; }
.dsc-pt__grid {
	display: grid;
	grid-template-columns: repeat(var(--dsc-cols), minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 0;
	align-items: stretch;
}
/* Each card spans 5 shared rows (name, subtitle, price, features, button) so they line up across cards. */
.dsc-pt__card {
	display: grid;
	grid-row: span 5;
	grid-template-rows: subgrid;
	row-gap: 0;
	margin-bottom: 20px;
	padding: 28px 24px 24px;
	border: 1px solid var(--dsc-border);
	border-radius: var(--dsc-radius);
	background: var(--dsc-card-bg);
	text-align: left;
}
.dsc-pt__card.is-highlight {
	border: 2px solid var(--dsc-accent);
	box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--dsc-accent) 55%, transparent);
}
.dsc-pt__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dsc-pt__name { margin: 0; font-size: 1.25em; line-height: 1.2; }
.dsc-pt__badge {
	padding: .25em .7em;
	border-radius: 999px;
	background: var(--dsc-accent);
	color: var(--dsc-accent-text);
	font-size: .7em;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.dsc-pt__sub { margin: .5em 0 0; color: var(--dsc-muted); font-size: .95em; }
.dsc-pt__price { margin: 1em 0 1.1em; line-height: 1.1; align-self: end; }
.dsc-pt__amount, .dsc-pt__note, .dsc-pt__was { white-space: nowrap; }
.dsc-pt__amount { font-size: 2.6em; font-weight: 800; letter-spacing: -.02em; }
.dsc-pt__was { color: var(--dsc-muted); font-size: 1.2em; margin-right: .15em; }
.dsc-pt__note { color: var(--dsc-muted); font-size: .95em; }
.dsc-pt__features { list-style: none; margin: 0 0 1.4em; padding: 0; }
.dsc-pt__features li { position: relative; padding: .38em 0 .38em 1.7em; line-height: 1.4; }
.dsc-pt__features li.is-no { color: var(--dsc-muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--dsc-muted) 50%, transparent); }
.dsc-pt__icon { position: absolute; left: 0; top: .38em; width: 1.2em; text-align: center; font-weight: 700; }
.dsc-pt__features li.is-yes .dsc-pt__icon::before { content: "\2713"; color: var(--dsc-yes); }
.dsc-pt__features li.is-no .dsc-pt__icon::before { content: "\2715"; color: var(--dsc-no); }
.dsc-pt__btn {
	display: block;
	align-self: end;
	padding: .8em 1em;
	border: 1.5px solid var(--dsc-text);
	border-radius: 8px;
	color: var(--dsc-text) !important;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	transition: background .15s, color .15s, border-color .15s;
}
.dsc-pt__btn:hover,
.dsc-pt__btn:focus-visible { background: var(--dsc-text); color: var(--dsc-card-bg) !important; }
.dsc-pt__card.is-highlight .dsc-pt__btn { background: var(--dsc-accent); border-color: var(--dsc-accent); color: var(--dsc-accent-text) !important; }
.dsc-pt__card.is-highlight .dsc-pt__btn:hover,
.dsc-pt__card.is-highlight .dsc-pt__btn:focus-visible { filter: brightness(.92); }
.dsc-pt__footnote { text-align: center; color: var(--dsc-muted); font-size: .9em; margin: 1.4em 0 0; }
@media (max-width: 900px) {
	.dsc-pt__grid { grid-template-columns: repeat(min(var(--dsc-cols), 2), minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.dsc-pt__grid { grid-template-columns: 1fr; }
	.dsc-pt__card.is-highlight { order: -1; }
}

/* Package (bundle / club) contents */
.dsc-items { list-style: none; margin: .5em 0 1em; padding: 0; max-height: 50vh; overflow-y: auto; }
.dsc-items li { padding: .6em 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.dsc-items li:first-child { border-top: 0; }
.dsc-items .dsc-key { font-size: .95em; }
.dsc-items .dsc-dl-button { padding: .25em .8em; font-size: .85em; margin-top: .3em; }
.dsc-account__items td { padding-top: 0; }
.dsc-account__items .dsc-items { max-height: none; margin: 0; }
.dsc-account__items .dsc-items li { display: flex; flex-wrap: wrap; align-items: center; gap: .3em 1em; }
.dsc-account__items .dsc-items li > strong { min-width: 12em; }
.dsc-account__items details { font-size: .9em; flex-basis: 100%; }
.dsc-pkg-tag { font-size: .8em; opacity: .7; }
