/* Community OS Store – uses the style variables of the active WoltLab style only. */

.cosStore {
	--cosStoreGap: 20px;
}

.cosStore__intro {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSection);
	margin: 0 auto 30px;
	max-width: 760px;
	text-align: center;
}

.cosStore__intervalSwitch {
	display: flex;
	justify-content: center;
	margin-bottom: 30px;
}

.cosStore__intervalSwitch .buttonGroup {
	align-items: center;
	display: inline-flex;
	gap: 0;
}

.cosStore__intervalButton.active {
	background-color: var(--wcfButtonPrimaryBackground);
	color: var(--wcfButtonPrimaryText);
}

.cosStore__saving {
	margin-left: 8px;
}

.cosStore__grid {
	display: grid;
	gap: var(--cosStoreGap);
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	margin-bottom: 40px;
}

.cosStore__card {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--wcfBorderRadius);
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	position: relative;
}

.cosStore__card--highlight {
	border-color: var(--wcfButtonPrimaryBackground);
	box-shadow: 0 0 0 1px var(--wcfButtonPrimaryBackground);
}

.cosStore__cardTitle {
	color: var(--wcfContentHeadlineText);
	font-size: var(--wcfFontSizeTitle);
	font-weight: 600;
	margin: 0;
}

.cosStore__cardDescription {
	color: var(--wcfContentDimmedText);
	margin: 0;
	white-space: pre-line;
}

.cosStore__price {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cosStore__priceAmount {
	color: var(--wcfContentHeadlineText);
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
}

.cosStore__priceUnit,
.cosStore__priceNote {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.cosStore__priceNote {
	flex-basis: 100%;
}

.cosStore__features {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cosStore__features li {
	align-items: center;
	display: flex;
	gap: 8px;
}

.cosStore__cardAction {
	margin-top: auto;
}

.cosStore__cardAction .button {
	text-align: center;
	width: 100%;
}

[data-cos-interval-panel][hidden] {
	display: none !important;
}

.cosStore__legal {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	text-align: center;
}

/* Customer area */

.cosStore__siteHeader {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
}

.cosStore__siteDomain {
	color: var(--wcfContentDimmedText);
}

.cosStore__facts {
	display: grid;
	gap: 10px 20px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin: 0;
}

.cosStore__facts dt {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.cosStore__facts dd {
	margin: 2px 0 0;
}

.cosStore__licenseKey {
	display: flex;
	gap: 8px;
}

.cosStore__licenseKey textarea {
	font-family: monospace;
	font-size: var(--wcfFontSizeSmall);
	min-height: 64px;
	resize: vertical;
	width: 100%;
	word-break: break-all;
}

.cosStore__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cosStore__actions form {
	display: inline;
}

/* Checkout */

.cosStore__choiceList {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cosStore__choice {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--wcfBorderRadius);
	cursor: pointer;
	display: flex;
	gap: 10px;
	padding: 14px;
}

.cosStore__choice:has(input:checked) {
	border-color: var(--wcfButtonPrimaryBackground);
	box-shadow: 0 0 0 1px var(--wcfButtonPrimaryBackground);
}

.cosStore__choice input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.cosStore__choiceBody {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cosStore__choiceTitle {
	font-weight: 600;
}

.cosStore__choiceMeta {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.cosStore__summary {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--wcfBorderRadius);
	padding: 16px 20px;
}

.cosStore__summaryTotal {
	color: var(--wcfContentHeadlineText);
	font-size: var(--wcfFontSizeTitle);
	font-weight: 600;
}

.cosStore__consent {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cosStore__consent label {
	align-items: flex-start;
	display: flex;
	gap: 10px;
}

.cosStore__consent input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.cosStore__legalLinks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: var(--wcfFontSizeSmall);
}

@media (max-width: 544px) {
	.cosStore__card {
		padding: 18px;
	}

	.cosStore__licenseKey {
		flex-direction: column;
	}
}
