/* SWS Secure Checkout - the seats page (assets/checkout.css draws the frame: the bar, the 720 px column, the card, the colours). See sws-checkout.php
 * A big number with - and + and a few common sizes, the price for that many seats (list price, the discount as the green box with its round % sign,
 * the total), and the blue pill button with the logo in a white disc - the look of the renewal page and of the payment page.
 * Every rule starts with body.sws-co, and where the theme (Divi) or the site's own custom CSS insist (buttons and inputs get borders, paddings and
 * colours with !important) this file answers in kind. */

body.sws-co .sws-seats {
	margin: 0;
	--sws-chip-x: 16px;
}

body.sws-co.sws-co--seats #main-content > .container {
	padding-bottom: 96px !important; /* this page is short: room to scroll the button clear of the site's floating feedback button on a small phone */
}

body.sws-co .sws-seats [hidden] {
	display: none !important; /* the rows below set display:flex, which would otherwise win over the hidden attribute */
}

body.sws-co .sws-seats__lead {
	margin: 0 0 20px;
	padding: 0;
	color: var(--sws-brown);
	font-size: 17px;
	font-weight: 700; /* a field title is bold (owner's title rule, 0.6.0) */
	line-height: 1.4;
	text-align: center;
}

/* the number and its two buttons */
body.sws-co .sws-seats__pick {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0 0 16px;
}

body.sws-co .sws-seats .sws-seats__step {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	min-height: 0;
	margin: 0;
	padding: 0 !important;
	border: 2px solid var(--sws-blue) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--sws-blue) !important;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

body.sws-co .sws-seats .sws-seats__step:hover,
body.sws-co .sws-seats .sws-seats__step:focus {
	background: #fff !important;
	color: var(--sws-blue) !important;
	padding: 0 !important; /* Divi widens buttons on hover to make room for an arrow */
}

@media (hover: hover) {
	body.sws-co .sws-seats .sws-seats__step:hover {
		background: #EAF2FA !important; /* only where there is a mouse: a touch screen keeps a tapped button looking "hovered" */
	}
}

body.sws-co .sws-seats .sws-seats__step:active {
	background: var(--sws-blue) !important;
	color: #fff !important; /* filled only while pressed, so a button is never left looking switched on */
}

body.sws-co .sws-seats .sws-seats__step:focus-visible,
body.sws-co .sws-seats .sws-seats__chip:focus-visible {
	outline: 3px solid rgba(31, 111, 184, 0.35);
	outline-offset: 2px; /* keyboard focus is a ring, never a fill */
}

body.sws-co .sws-seats .sws-seats__step:after,
body.sws-co .sws-seats .sws-seats__chip:after {
	display: none !important; /* Divi's hover arrow */
}

body.sws-co .sws-seats .sws-seats__input {
	flex: 0 1 190px;
	width: 190px;
	min-width: 0;
	height: 64px;
	margin: 0;
	padding: 0 12px !important;
	border: 1px solid var(--sws-field) !important;
	border-radius: 14px !important;
	background: #fff !important;
	color: var(--sws-ink) !important;
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	box-shadow: none !important;
}

body.sws-co .sws-seats .sws-seats__input:focus {
	border-color: var(--sws-blue) !important;
	outline: 2px solid rgba(31, 111, 184, 0.25);
	outline-offset: 0;
}

body.sws-co .sws-seats__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 24px;
}

body.sws-co .sws-seats .sws-seats__chip {
	min-width: 56px;
	min-height: 0;
	margin: 0;
	padding: 8px var(--sws-chip-x) !important;
	border: 1px solid var(--sws-opt) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--sws-brown) !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none !important;
}

body.sws-co .sws-seats .sws-seats__chip:hover,
body.sws-co .sws-seats .sws-seats__chip:focus {
	background: #fff !important;
	border-color: var(--sws-opt) !important;
	color: var(--sws-brown) !important;
	padding: 8px var(--sws-chip-x) !important; /* Divi widens buttons on hover to make room for an arrow */
}

@media (hover: hover) {
	body.sws-co .sws-seats .sws-seats__chip:hover {
		border-color: var(--sws-blue) !important;
	}
}

body.sws-co .sws-seats .sws-seats__chip.is-on,
body.sws-co .sws-seats .sws-seats__chip.is-on:hover,
body.sws-co .sws-seats .sws-seats__chip.is-on:focus {
	background: var(--sws-blue) !important;
	border-color: var(--sws-blue) !important;
	color: #fff !important; /* the blue chip is the chosen size and nothing else */
}

/* the price */
body.sws-co .sws-seats__sum {
	margin: 0 0 22px;
}

body.sws-co .sws-seats__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 2px 8px;
	color: var(--sws-brown);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

body.sws-co .sws-seats__deal {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 10px 0 4px;
	padding: 14px 18px;
	background: var(--sws-green-bg);
	border: 1px solid var(--sws-green-line);
	border-radius: 12px;
	color: var(--sws-green-dark);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}

body.sws-co .sws-seats__deal:before {
	content: "%";
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--sws-green);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	line-height: 38px;
	text-align: center;
}

body.sws-co .sws-seats__deal-label {
	flex: 1 1 auto;
	min-width: 0;
}

body.sws-co .sws-seats__deal-amt {
	flex: 0 0 auto;
	white-space: nowrap; /* "-$187.25" must never break after the minus */
}

body.sws-co .sws-seats__row--total {
	margin: 16px 2px 0;
	padding-top: 16px;
	border-top: 2px solid var(--sws-line);
	color: var(--sws-ink);
	font-size: 20px;
	font-weight: 800;
}

body.sws-co .sws-seats__total-amt {
	font-size: 24px;
	white-space: nowrap;
}

body.sws-co .sws-seats__later {
	margin: 0;
	padding: 14px 18px;
	background: var(--sws-tint);
	border-radius: 10px;
	color: var(--sws-brown);
	font-size: 15px;
	line-height: 1.45;
	text-align: center;
}

/* what the owner may add (a photo, a few small words) */
body.sws-co .sws-seats__extra {
	margin: 0 0 22px;
	color: var(--sws-brown);
	font-size: 14px;
	line-height: 1.5;
}

body.sws-co .sws-seats__extra img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 10px;
	border-radius: 10px;
}

body.sws-co .sws-seats__extra p {
	margin: 0 0 10px;
	padding: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* the button: a blue pill with the logo in a white disc (the same as the payment page's) */
body.sws-co .sws-seats .sws-seats__cta {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	float: none;
	width: 100%;
	min-height: 62px;
	margin: 0;
	padding: 8px 56px 8px 66px !important;
	border: 2px solid var(--sws-blue) !important;
	border-radius: 999px !important;
	background: var(--sws-blue) !important;
	color: #fff !important;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none !important;
}

body.sws-co .sws-seats .sws-seats__cta:before,
body.sws-co .sws-seats .sws-seats__cta:hover:before,
body.sws-co .sws-seats .sws-seats__cta:focus:before {
	content: "";
	display: block !important; /* Divi hides :before on its buttons (display:none, opacity:0) */
	position: absolute;
	left: 8px;
	top: 50%;
	width: 42px;
	height: 42px;
	margin: -21px 0 0;
	border-radius: 50%;
	background: #fff var(--sws-logo, none) center / 28px 30px no-repeat;
	opacity: 1 !important;
	transition: none !important;
}

body.sws-co .sws-seats .sws-seats__cta:after {
	display: none !important; /* Divi's hover arrow */
}

body.sws-co .sws-seats .sws-seats__cta:hover,
body.sws-co .sws-seats .sws-seats__cta:focus {
	background: var(--sws-blue-dark) !important;
	border-color: var(--sws-blue-dark) !important;
	color: #fff !important;
	padding: 8px 56px 8px 66px !important; /* Divi widens buttons on hover to make room for an arrow */
}

body.sws-co .sws-seats .sws-seats__cta:focus-visible {
	outline: 3px solid var(--sws-ink);
	outline-offset: 2px;
}

body.sws-co .sws-seats .sws-seats__cta[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
}

body.sws-co .sws-seats .sws-seats__cta.is-busy {
	opacity: 0.8;
	cursor: progress;
}

/* the purchase order button (0.6.0): a quiet outlined pill under the blue one - a link, not a form button; hover / focus never fill it */
body.sws-co .sws-seats .sws-seats__po {
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 54px;
	margin: 12px 0 0;
	padding: 8px 20px !important;
	border: 2px solid var(--sws-blue) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--sws-blue) !important;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: 0;
	text-wrap: balance; /* on a narrow phone the words break in the middle, not with one word left over */
	cursor: pointer;
	box-shadow: none !important;
}

body.sws-co .sws-seats .sws-seats__po:hover,
body.sws-co .sws-seats .sws-seats__po:focus {
	background: #fff !important;
	border-color: var(--sws-blue) !important;
	color: var(--sws-blue) !important;
	padding: 8px 20px !important; /* Divi widens buttons on hover to make room for an arrow */
}

@media (hover: hover) {
	body.sws-co .sws-seats .sws-seats__po:hover {
		background: #EAF2FA !important; /* only where there is a mouse: a touch screen keeps a tapped button looking "hovered" */
	}
}

body.sws-co .sws-seats .sws-seats__po:active {
	background: var(--sws-blue) !important;
	color: #fff !important; /* filled only while pressed, so a button is never left looking switched on */
}

body.sws-co .sws-seats .sws-seats__po:focus-visible {
	outline: 3px solid var(--sws-ink);
	outline-offset: 2px; /* keyboard focus is a ring, never a fill */
}

body.sws-co .sws-seats .sws-seats__po:before,
body.sws-co .sws-seats .sws-seats__po:after {
	display: none !important; /* Divi's hover arrow */
}

/* ---- phones ---- */
@media (max-width: 640px) {
	body.sws-co .sws-seats {
		--sws-chip-x: 10px; /* five sizes, the widest "1000", must stay on one row on a 360 px phone */
	}

	body.sws-co .sws-seats__chips {
		gap: 6px;
	}

	body.sws-co .sws-seats .sws-seats__chip {
		min-width: 44px;
	}

	body.sws-co .sws-seats__pick {
		gap: 10px;
	}

	body.sws-co .sws-seats .sws-seats__step {
		width: 50px;
		height: 50px;
	}

	body.sws-co .sws-seats .sws-seats__input {
		flex-basis: 150px;
		width: 150px;
		height: 58px;
		font-size: 30px;
	}

	body.sws-co .sws-seats__deal {
		gap: 12px;
		padding: 12px 14px;
		font-size: 16px;
	}

	body.sws-co .sws-seats .sws-seats__cta {
		padding: 8px 14px 8px 62px !important;
		font-size: 17px;
	}

	body.sws-co .sws-seats .sws-seats__cta:hover,
	body.sws-co .sws-seats .sws-seats__cta:focus {
		padding: 8px 14px 8px 62px !important;
	}

	body.sws-co .sws-seats .sws-seats__po,
	body.sws-co .sws-seats .sws-seats__po:hover,
	body.sws-co .sws-seats .sws-seats__po:focus {
		padding: 8px 14px !important;
		font-size: 16px;
	}
}
