/* --- Buy page --- */

.buy-page {
	box-sizing: border-box;
	max-width: 900px;
}

/* --- Section headers --- */

.buy-section {
	position: relative;
	margin-bottom: 40px;
}

.buy-section--subscriptions {
	margin-bottom: 55px;
}

.buy-section__header {
	display: grid;
	grid-template-columns: 100px 1fr;
	grid-template-rows: 1fr auto auto 1fr;
	column-gap: 10px;
	min-height: 100px;
	margin-bottom: 23px;
	margin-left: 10px;
}

.buy-section__icon {
	grid-row: 1 / -1;
	align-self: center;
	position: relative;
	width: 100px;
	height: 100px;
	background: no-repeat center;
}

.buy-section__icon--subscriptions {
	background-image: url('../images/buy/dual-faction-logo.png');
}

/* The level-up badge over the dual faction logo. */
.buy-section__icon--subscriptions::before {
	content: '';
	position: absolute;
	top: -35px;
	left: -28px;
	width: 84px;
	height: 91px;
	background: url('../images/buy/level-up-icon.png') no-repeat;
}

.buy-section__icon--coins {
	background-image: url('../images/buy/cartelcoin.png');
}

.buy-section__title {
	grid-column: 2;
	grid-row: 2;
	margin: 0 0 5px;
	padding: 0;
	font: 400 28px/30px var(--wp--preset--font-family--news-gothic);
	color: var(--wp--preset--color--heading);
}

.buy-section__intro {
	grid-column: 2;
	grid-row: 3;
	margin: 0 0 5px;
	font: italic 20px/20px var(--wp--preset--font-family--news-gothic);
	color: var(--wp--preset--color--gold);
}

.buy-section__inline-icon {
	position: relative;
	top: 5px;
}

/* --- Offer boxes --- */

.buy-plans {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.buy-plans__group {
	display: flex;
	padding-bottom: 20px;
}

.buy-plans__group--one-time {
	padding-right: 14px;
}

.buy-offer {
	position: relative;
	box-sizing: border-box;
	width: 168px;
	margin-top: 20px;
	padding-top: 20px;
	text-align: center;
}

.buy-offer + .buy-offer:not(.buy-offer--featured),
.buy-plans__group--recurring > .buy-offer:first-child {
	border-left: 1px solid var(--wp--preset--color--divider);
}

.buy-plans--coins > .buy-offer {
	width: 180px;
	margin-bottom: 20px;
}

.buy-offer > * {
	position: relative;
	z-index: 1;
}

/* The framed panel behind the "Best Deal" offer. */
.buy-offer--featured::before {
	content: '';
	position: absolute;
	top: -40px;
	left: -30px;
	width: 232px;
	height: 165px;
	background: url('../images/buy/best-product-container-full.png') no-repeat;
}

.buy-offer__banner {
	position: absolute;
	top: -15px;
	left: 0;
	right: 0;
	margin: 0;
	font: 700 18px/28px var(--wp--preset--font-family--news-gothic);
	color: var(--wp--preset--color--heading);
	text-transform: uppercase;
}

.buy-offer__banner::before {
	content: '';
	position: absolute;
	top: -60px;
	left: -32px;
	width: 84px;
	height: 91px;
	background: url('../images/buy/level-up-icon.png') no-repeat;
}

.buy-offer__title {
	margin: 0;
	font: 700 40px/40px var(--wp--preset--font-family--news-gothic);
	color: var(--wp--preset--color--heading);
}

.buy-offer--featured .buy-offer__title {
	color: var(--wp--preset--color--gold);
}

.buy-offer__price {
	margin: 10px 0 15px;
	font: 700 30px/30px var(--wp--preset--font-family--news-gothic);
	color: var(--wp--preset--color--gold);
}

.buy-offer__period {
	margin: -15px 0 0;
	font: 22px/26px var(--wp--preset--font-family--news-gothic);
	color: var(--wp--preset--color--muted-light);
}

.buy-offer__detail {
	width: 128px;
	min-height: 45px;
	margin: 10px auto 2px;
	line-height: 16px;
}

.buy-offer .swtor-btn {
	min-width: 130px;
	padding-left: 15px;
	padding-right: 15px;
	margin-top: 5px;
	white-space: nowrap;
}

.buy-offer .swtor-btn--small {
	min-width: 0;
	padding-left: 15px;
	padding-right: 15px;
	margin-top: 12px;
}

.buy-offer--featured .swtor-btn:lang(fr) {
	font-size: 14px;
}

.buy-promo .wp-block-button.is-style-swtor .wp-block-button__link {
	min-width: 130px;
	padding: 8px 15px;
	margin: 0;
	white-space: nowrap;
}

/* Cartel Coin amounts: the number with a stacked "Cartel / Coins" label. */
.buy-offer__coins {
	font: 700 50px/40px var(--wp--preset--font-family--news-gothic);
}

.buy-offer__coins-label {
	display: inline-block;
	margin-left: 4px;
}

.buy-offer__coins-label sup,
.buy-offer__coins-label sub {
	display: block;
	font: 400 22px/20px var(--wp--preset--font-family--news-gothic);
	vertical-align: baseline;
}

.buy-offer__coins-label sub {
	font-weight: 700;
}

/* --- Licence and VAT notes --- */

.buy-terms {
	text-align: right;
}

.buy-terms p {
	margin: 0;
	font-style: italic;
	font-size: 12px;
}

.buy-terms a {
	text-decoration: underline;
}

/* --- Help links --- */

.buy-links {
	max-width: 680px;
	margin: 40px auto;
	padding: 20px;
	border-radius: 4px;
	background: var(--wp--preset--color--panel-overlay);
}

.buy-links__item {
	margin: 0;
	font: 400 24px/30px var(--wp--preset--font-family--news-gothic);
	color: var(--wp--preset--color--heading);
}

.buy-links__item::before {
	content: '';
	display: block;
	float: left;
	width: 30px;
	height: 30px;
	margin-right: 4px;
	background: url('../images/buy/bottom-icons.png') no-repeat;
}

.buy-links__item--code::before {
	background-position: 0 0;
}

.buy-links__item--faq::before {
	background-position: 0 -30px;
}

.buy-links__item--email::before {
	background-position: 0 -60px;
}

.buy-links__item a {
	color: var(--wp--preset--color--gold);
}

.buy-links__item a:hover,
.buy-links__item a:focus {
	color: var(--wp--preset--color--heading);
}

/* --- Legal notice --- */

.buy-legal {
	max-width: 760px;
	margin: 0 auto 40px;
}

.buy-legal p,
.buy-legal a {
	font: 700 10px/20px var(--wp--preset--font-family--system-sans);
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
}

.buy-legal a {
	text-decoration: underline;
}

.buy-legal a:hover,
.buy-legal a:focus {
	color: var(--wp--preset--color--heading);
}

/* --- Promos (Buy Promo blocks) --- */

.buy-promo {
	max-width: 900px;
}

.buy-promo::after {
	content: '';
	display: block;
	height: 1px;
	margin: 70px 0;
	background: var(--wp--preset--color--dark-muted);
}

/* Promos set their own spacing; drop the block gap WordPress adds between blocks in flow-layout groups. */
.buy-promo .is-layout-flow > * {
	margin-block-start: 0;
}

/* Gold gradient lettering, for promo titles and the text over the artwork. */
.buy-promo__title,
.buy-promo .buy-promo__art-text p {
	font-family: var(--wp--preset--font-family--cinzel);
	font-weight: 700;
	background-color: var(--wp--preset--color--gold);
	background-image: var(--wp--preset--gradient--gold-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.buy-promo .buy-promo__title {
	margin: 20px 0 30px;
	font-size: 30px;
	line-height: 30px;
	text-align: center;
}

.buy-promo .buy-promo__columns {
	gap: 50px;
	margin: 0;
}

/* --- Artwork with text over it --- */

/* Prefixed with .buy-promo to outrank the flow layout's `margin-block-end: 0`, which the editor loads after this file. */
.buy-promo .buy-promo__art {
	position: relative;
	height: 158px;
	margin-bottom: 36px;
}

.buy-promo .buy-promo__art .wp-block-image {
	margin: 0;
}

.buy-promo__art img {
	width: 425px;
	max-width: 100%;
}

/* Mount artwork is wider than the column and sits slightly outside it. */
.buy-promo__art--wide {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	margin-right: -13px;
}

.buy-promo__art--wide img {
	width: 438px;
}

.buy-promo__art-text {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.buy-promo .buy-promo__art-text {
	position: absolute;
}

.buy-promo .buy-promo__art-text > * {
	margin: 3px;
	letter-spacing: -0.7px;
}

.buy-promo .buy-promo__large {
	font-size: 43px;
	line-height: 43px;
}

.buy-promo .buy-promo__small {
	font-size: 21px;
}

.buy-promo .buy-promo__art-text .buy-promo__smaller {
	font-size: 17px;
	line-height: 18px;
}

.buy-promo .buy-promo__tiny {
	font-size: 14px;
}

/* Gradient-filled text renders blurry at small sizes, so the smallest overlay lines use the gradient's mid-tone. */
.buy-promo .buy-promo__art-text .buy-promo__smaller,
.buy-promo .buy-promo__art-text .buy-promo__tiny {
	background-image: none;
	-webkit-text-fill-color: var(--wp--preset--color--gold-text-solid);
	color: var(--wp--preset--color--gold-text-solid);
	font-weight: 600;
	letter-spacing: normal;
}

/* Overlay positions for the shared box artwork (Group block styles). */
.is-style-buy-overlay-subscription {
	top: 50%;
	left: 180px;
	transform: translateY(-50%);
}

.is-style-buy-overlay-coins {
	top: 50%;
	left: 190px;
	transform: translateY(-50%);
}

.is-style-buy-overlay-commander {
	top: 50%;
	left: 183px;
	transform: translateY(-50%);
	align-items: flex-start;
	gap: 20px;
}

.is-style-buy-overlay-top-left {
	top: 8px;
	left: 10px;
}

.is-style-buy-overlay-bottom-left {
	bottom: 7px;
	left: 10px;
}

.is-style-buy-overlay-bottom-right {
	bottom: 7px;
	right: 25px;
}

/* Counter rows on the Commander box: a number beside a two-line label. */
.buy-promo .buy-promo__count {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.buy-promo .buy-promo__count-number {
	position: relative;
	top: 2px;
	flex: 0 0 32px;
	margin: 0;
	font-size: 46px;
	line-height: 42px;
	text-align: center;
}

.buy-promo .buy-promo__count-label > * {
	margin: 0;
	text-align: left;
}

.buy-promo .buy-promo__count-label .buy-promo__small {
	line-height: 22px;
}

.buy-promo .buy-promo__count-label .buy-promo__smaller {
	margin: 2px 0 0;
	line-height: 18px;
}

/* --- Description, includes list, price, disclaimers --- */

.buy-promo .buy-promo__description {
	margin: 10px;
}

.buy-promo .buy-promo__description p {
	margin: 0;
	font: 400 14px/1.5 var(--wp--preset--font-family--system-sans);
	color: var(--wp--preset--color--heading);
}

.buy-promo .buy-promo__description p + p {
	margin-top: 15px;
}

.buy-promo .buy-promo__description .buy-promo__includes-title {
	font-size: 15px;
}

.buy-promo .buy-promo__description ul {
	margin: 0 10px 0 25px;
	padding: 0;
	list-style: none;
}

.buy-promo .buy-promo__description li {
	font: 700 14px/23px var(--wp--preset--font-family--system-sans);
	color: var(--wp--preset--color--text);
}

.buy-promo .buy-promo__description li::before {
	content: '\2022';
	display: inline-block;
	text-indent: -1em;
	font-size: 16px;
	font-weight: 700;
	color: var(--wp--preset--color--gold);
}

.buy-promo .buy-promo__description li > .block-editor-rich-text__editable {
	display: inline;
}

.buy-promo .buy-promo__buy {
	display: flex;
	align-items: center;
	gap: 15px;
	margin: 30px 10px 20px;
}

.buy-promo .buy-promo__price {
	margin: 0;
	font: 700 20px/1.2 var(--wp--preset--font-family--system-sans);
	color: var(--wp--preset--color--gold);
}

.buy-promo .buy-promo__buy > * {
	margin: 0;
}

.buy-promo .buy-promo__disclaimers {
	margin: 10px;
}

.buy-promo .buy-promo__disclaimers p {
	margin: 0 0 10px;
	font: 400 11px/15px var(--wp--preset--font-family--system-sans);
	color: var(--wp--preset--color--fine-print);
}

.buy-promo .buy-promo__disclaimers a {
	text-decoration: underline;
}

/* --- Per-promo offsets for one-off artwork (the promo's Additional CSS class) --- */

.buy-promo--etf .buy-promo__art--wide {
	margin-right: -11px;
}

.buy-promo--etf .buy-promo__art--wide img {
	width: 436px;
}

.buy-promo--etf .buy-promo__art-text--mount {
	top: 12px;
	left: 27px;
	align-items: flex-start;
}

.buy-promo--etf .buy-promo__art-text--mount-bottom {
	bottom: 11px;
	align-items: flex-end;
}

.buy-promo--mtf .buy-promo__art--wide {
	justify-content: flex-start;
	margin-right: -14px;
}

.buy-promo--mtf .buy-promo__art--wide img {
	width: 439px;
}

.buy-promo--mtf .buy-promo__art-text--mount {
	top: 12px;
	left: 9px;
	align-items: center;
}

.buy-promo--mtf .buy-promo__art-text--mount-bottom {
	bottom: 6px;
	left: 12px;
}

.buy-promo--mtf .buy-promo__art-text--dye-bottom {
	bottom: 7px;
	right: 10px;
}

.buy-promo .buy-promo__art-text .buy-promo__tiny:lang(fr),
.buy-promo .buy-promo__art-text .buy-promo__tiny:lang(de) {
	font-size: 13px;
	line-height: 14px;
}

.buy-promo .is-style-buy-overlay-coins:lang(fr) {
	left: 175px;
}

.buy-promo .is-style-buy-overlay-coins:lang(de) {
	left: 173px;
}

.buy-promo--mtf .is-style-buy-overlay-coins:lang(de) {
	left: 175px;
}

.buy-promo--etf .is-style-buy-overlay-coins:lang(de) {
	left: 195px;
}

.buy-promo--mtf .is-style-buy-overlay-subscription:lang(fr) {
	left: 173px;
}

.buy-promo .is-style-buy-overlay-subscription:lang(de) {
	left: 195px;
}

.buy-promo--mtf .is-style-buy-overlay-subscription:lang(de) {
	left: 190px;
}

.buy-promo .is-style-buy-overlay-commander:lang(de) {
	left: 170px;
}

.buy-promo--jtf .buy-promo__art-text--mount:lang(de) {
	left: 25px;
}

.buy-promo--mtf .buy-promo__art-text--mount:lang(de) {
	left: 10px;
	text-align: center;
}

.buy-promo--mtf .buy-promo__art-text--mount-bottom:lang(de) {
	bottom: 9px;
}
