/* Group license renewal page - see includes/class-sws-gle-renewal.php */

.sws-renew-wrap {
	max-width: 720px;
	margin: 0 auto;
}

.sws-renew,
.sws-renew * {
	box-sizing: border-box;
}

.sws-renew {
	margin: 0 0 24px;
	padding: 28px 32px;
	background: #fff;
	border: 1px solid #E4DDD8;
	border-radius: 14px;
	color: #2B1A14;
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
}

.sws-renew .sws-renew__title {
	margin: 0 0 4px;
	padding: 0;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	color: #8B3423;
	text-transform: none;
	letter-spacing: 0;
}

.sws-renew .sws-renew__license {
	margin: 0 0 12px;
	padding: 0;
	font-weight: 700;
}

.sws-renew .sws-renew__status {
	margin: 0 0 22px;
	padding: 0;
	color: #5B3A30;
}

.sws-renew .sws-renew__group {
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.sws-renew .sws-renew__group legend {
	margin: 0 0 8px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	color: #2B1A14;
}

.sws-renew .sws-renew__group legend span {
	font-weight: 400;
	color: #5B3A30;
}

.sws-renew .sws-renew__opt,
.sws-renew .sws-renew__add {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 10px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #DDD3CD;
	border-radius: 12px;
	cursor: pointer;
}

.sws-renew .sws-renew__add {
	align-items: center;
	cursor: default;
}

.sws-renew .sws-renew__opt.is-on {
	border-color: #5DAA78;
	background: #E6F4EA;
}

.sws-renew .sws-renew__opt input[type="radio"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	accent-color: #2E7D4F;
}

.sws-renew .sws-renew__opt-text {
	flex: 1 1 auto;
	min-width: 0;
}

.sws-renew .sws-renew__opt-title {
	font-weight: 700;
	color: #2B1A14;
}

.sws-renew .sws-renew__date {
	font-weight: 700;
}

.sws-renew .sws-renew__opt-text small {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	color: #5B3A30;
}

.sws-renew .sws-renew__opt-price {
	flex: 0 0 auto;
	font-weight: 700;
	white-space: nowrap;
}

.sws-renew .sws-renew__step {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #A6402B;
	border-radius: 50%;
	background: #fff;
	color: #A6402B;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.sws-renew .sws-renew__step:hover {
	background: #FBEAE4;
}

.sws-renew .sws-renew__add input[type="number"] {
	flex: 0 0 auto;
	width: 72px;
	height: 40px;
	padding: 0 8px;
	border: 1px solid #DDD3CD;
	border-radius: 8px;
	text-align: center;
	font-size: 16px;
}

.sws-renew .sws-renew__outcome {
	margin: 0 0 18px;
	padding: 12px 16px;
	background: #F6F3F1;
	border-radius: 10px;
	color: #2B1A14;
}

.sws-renew .sws-renew__fine {
	margin: -8px 0 18px;
	padding: 0 16px;
	font-size: 14px;
	line-height: 1.45;
	color: #5B3A30;
}

.sws-renew .sws-renew__fine[hidden] {
	display: none;
}

/* Prices with a discount: the regular price struck through, then the price to pay. */
.sws-renew .sws-renew__was {
	margin-right: 2px;
	font-weight: 400;
	color: #5B3A30;
}

.sws-renew .sws-renew__was s {
	text-decoration: line-through;
	text-decoration-thickness: 2px;
}

.sws-renew .sws-renew__now {
	font-weight: 800;
	color: #1E6B3E;
}

.sws-renew .sws-renew__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* The discount message: green, like the option you have chosen, and hard to miss. */
.sws-renew .sws-renew__deal {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 14px;
	padding: 14px 18px;
	background: #E6F4EA;
	border: 1px solid #5DAA78;
	border-radius: 12px;
	color: #1E4D31;
}

.sws-renew .sws-renew__deal[hidden] {
	display: none;
}

.sws-renew .sws-renew__deal-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #2E7D4F;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
}

.sws-renew .sws-renew__deal-body {
	min-width: 0;
}

.sws-renew .sws-renew__deal-title {
	display: block;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
	color: #1E4D31;
}

.sws-renew .sws-renew__deal-detail {
	display: block;
	margin-top: 2px;
	font-size: 15px;
	line-height: 1.4;
}

/* While the prices for a new number of seats are on their way, the old ones stay, dimmed. */
.sws-renew[data-quote-state="updating"] .sws-renew__opt-price,
.sws-renew[data-quote-state="updating"] .sws-renew__add-price,
.sws-renew[data-quote-state="updating"] .sws-renew__deal {
	opacity: 0.45;
	transition: opacity 0.15s;
}

.sws-renew .sws-renew__cta[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.sws-renew .sws-renew__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.sws-renew .sws-renew__cta {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 58px;
	padding: 8px 18px 8px 8px;
	border: 2px solid #1F6FB8;
	border-radius: 999px;
	background: #1F6FB8 !important;
	color: #fff !important;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
}

.sws-renew .sws-renew__cta:hover,
.sws-renew .sws-renew__cta:focus {
	background: #175A98 !important;
	border-color: #175A98;
	color: #fff !important;
}

/* The site logo sits in a white disc at the button's left edge, so it reads on any blue. */
.sws-renew .sws-renew__cta-logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
}

.sws-renew .sws-renew__cta-logo img {
	display: block;
	width: 28px;
	height: 30px;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.sws-renew .sws-renew__cta-text {
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
}

/* Room on the right as wide as the logo and its gap keeps the words centred in the button. */
.sws-renew .sws-renew__cta-logo + .sws-renew__cta-text {
	padding-right: 56px;
}

.sws-renew .sws-renew__new {
	font-size: 14px;
	color: #5B3A30;
}

/* The two "other options" lines under the Renew button: a plain sentence, each on its own line, with only the
   linked words underlined (the theme removes link underlines, hence !important on the underline). */
.sws-renew .sws-renew__actions .sws-renew__alt {
	flex: 1 1 100%;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #5B3A30;
}

.sws-renew .sws-renew__actions .sws-renew__alt .sws-renew__new {
	font-size: inherit;
	color: #5B3A30;
	text-decoration-line: underline !important;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.sws-renew .sws-renew__actions .sws-renew__alt .sws-renew__new:hover,
.sws-renew .sws-renew__actions .sws-renew__alt .sws-renew__new:focus {
	text-decoration-thickness: 2px;
}

.sws-renew .sws-renew__list {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.sws-renew .sws-renew__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 10px;
	padding: 14px 16px;
	border: 1px solid #DDD3CD;
	border-radius: 12px;
}

.sws-renew .sws-renew__list small {
	display: block;
	color: #5B3A30;
}

.sws-renew__error {
	margin: 0 0 16px;
	padding: 12px 16px;
	background: #FBEAE4;
	border: 1px solid #EEC4B8;
	border-radius: 10px;
	color: #8B3423;
	font-weight: 600;
}

.sws-renew .sws-renew__cta:focus-visible,
.sws-renew .sws-renew__step:focus-visible,
.sws-renew .sws-renew__new:focus-visible,
.sws-renew input:focus-visible {
	outline: 3px solid #1D4ED8;
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.sws-renew {
		padding: 20px;
	}

	.sws-renew .sws-renew__title {
		font-size: 24px;
	}

	.sws-renew .sws-renew__opt {
		flex-wrap: wrap;
	}

	/* The round button and the name share a line; the price drops below, in line with the name. */
	.sws-renew .sws-renew__opt-text {
		flex-basis: calc(100% - 30px);
	}

	.sws-renew .sws-renew__opt-price {
		margin-left: 30px;
	}

	.sws-renew .sws-renew__add {
		flex-wrap: wrap;
	}

	.sws-renew .sws-renew__add .sws-renew__opt-text {
		flex-basis: 100%;
	}

	.sws-renew .sws-renew__deal {
		padding: 12px 14px;
	}

	.sws-renew .sws-renew__deal-title {
		font-size: 17px;
	}

	.sws-renew .sws-renew__cta {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.sws-renew .sws-renew__cta {
		gap: 10px;
		padding-right: 14px;
		font-size: 16px;
	}

	.sws-renew .sws-renew__cta-logo + .sws-renew__cta-text {
		padding-right: 0;
	}
}
