/* Blog quick order form — see quick-order.php */

.gr-qo {
	--gr-qo-accent: #ff5a2c;
	--gr-qo-ink: #1a1a1a;
	--gr-qo-muted: #8a8580;
	--gr-qo-line: #e7e3df;
	--gr-qo-field: #faf9f7;

	position: relative;
	font-family: "Inter", sans-serif;
	color: var(--gr-qo-ink);
	padding: 22px 22px 18px;
	/* White card with a 3px orange gradient border. */
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, #ff8a4c 0%, #ff4b24 100%) border-box;
	border: 3px solid transparent;
	border-radius: 22px;
	box-shadow: 0 14px 34px rgba(255, 90, 44, 0.16);
}

.gr-qo *,
.gr-qo *::before,
.gr-qo *::after {
	box-sizing: border-box;
}

.gr-qo__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.gr-qo__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.gr-qo__badge {
	flex-shrink: 0;
	padding: 3px 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gr-qo-accent);
	background: #ffede5;
	border-radius: 6px;
}

.gr-qo__field {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.gr-qo__field[hidden] {
	display: none;
}

.gr-qo__label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gr-qo-muted);
}

/* Visually hidden radios, still keyboard reachable. */
.gr-qo input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.gr-qo__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.gr-qo__pills--platforms {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
}

.gr-qo__pill {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.gr-qo__pill span {
	display: block;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	color: var(--gr-qo-ink);
	background: #fff;
	border: 1px solid var(--gr-qo-line);
	border-radius: 10px;
	transition: border-color .2s, background-color .2s, color .2s;
}

.gr-qo__pills--platforms .gr-qo__pill span {
	padding-left: 4px;
	padding-right: 4px;
}

.gr-qo__pill:hover span {
	border-color: #bdb6b0;
}

.gr-qo__pill input:checked + span {
	font-weight: 600;
	color: #fff;
	background: var(--gr-qo-ink);
	border-color: var(--gr-qo-ink);
}

.gr-qo__pill input:focus-visible + span {
	outline: 2px solid var(--gr-qo-accent);
	outline-offset: 2px;
}

/* Package: styled display over a hidden native select. */
.gr-qo__package,
.gr-qo__control {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--gr-qo-field);
	border: 1px solid var(--gr-qo-line);
	border-radius: 12px;
	transition: border-color .2s, box-shadow .2s;
}

.gr-qo__package {
	min-height: 50px;
	padding: 0 34px 0 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%238a8580'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}

.gr-qo__package:focus-within,
.gr-qo__control:focus-within {
	border-color: var(--gr-qo-accent);
	box-shadow: 0 0 0 3px rgba(255, 90, 44, 0.14);
}

.gr-qo__package-display {
	display: flex;
	align-items: baseline;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.gr-qo__package-display strong {
	font-size: 17px;
	font-weight: 700;
}

.gr-qo__package-unit {
	font-size: 13px;
	color: #6b6560;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gr-qo__package-price {
	margin-left: auto;
	font-size: 15px;
	font-weight: 700;
	color: var(--gr-qo-accent);
}

.gr-qo .gr-qo__package-select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0 14px;
	font-size: 16px;
	opacity: 0;
	pointer-events: none;
}

/* Styled package list (see quick-order.js), opening over the fields below. */
.gr-qo__field--package {
	position: relative;
	z-index: 5;
}

.gr-qo__package.is-open {
	border-color: var(--gr-qo-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 6h10L5 0z' fill='%238a8580'/%3E%3C/svg%3E");
}

.gr-qo__package-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 20;
	max-height: 250px;
	margin: 6px 0 0;
	padding: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	background: #fff;
	border: 1px solid var(--gr-qo-line);
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(25, 27, 54, 0.16);
}

/* Not enough room below: open upwards. */
.gr-qo__package-list.is-up {
	top: auto;
	bottom: 100%;
	margin: 0 0 6px;
}

.gr-qo__package-list[hidden] {
	display: none;
}

.gr-qo__package-list li {
	margin: 0;
	padding: 10px 12px;
	font-size: 15px;
	text-align: center;
	border-radius: 9px;
	cursor: pointer;
}

.gr-qo__package-list li:hover,
.gr-qo__package-list li:focus-visible {
	background: var(--gr-qo-field);
	outline: none;
}

.gr-qo__package-list li[aria-selected="true"] {
	font-weight: 700;
	color: var(--gr-qo-accent);
	background: rgba(255, 90, 44, 0.1);
}

.gr-qo .gr-qo__select {
	display: block;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 14px;
	font: inherit;
	font-size: 15px;
	color: var(--gr-qo-ink);
	background: transparent;
	border: 0;
	border-radius: 12px;
	box-shadow: none;
	outline: none;
	padding-right: 34px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%238a8580'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}

.gr-qo__submit {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	font-family: "Inter", sans-serif;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(100deg, #ff9f6e 0%, #ff5a2c 100%);
	border: 0;
	border-radius: 14px;
	box-shadow: 0 8px 20px rgba(255, 90, 44, 0.25);
	cursor: pointer;
	transition: filter .2s, transform .2s;
}

.gr-qo__submit:hover {
	filter: brightness(1.04);
	transform: translateY(-1px);
}

.gr-qo__submit:focus-visible {
	outline: 2px solid var(--gr-qo-ink);
	outline-offset: 2px;
}

.gr-qo__next {
	margin: 10px 0 0;
	font-size: 12px;
	text-align: center;
	color: var(--gr-qo-muted);
}

.gr-qo__next strong {
	font-weight: 600;
	color: var(--gr-qo-ink);
}

/* Wider sidebar on articles so the form fits (~380px). */
[data-sidebar]:has(> .gr-qo-aside) {
	--sidebar-width: 30%;
}

/* Small laptops: keep the four platforms on one row. */
@media (min-width: 1000px) and (max-width: 1199.98px) {
	[data-sidebar]:has(> .gr-qo-aside) {
		--sidebar-width: 34%;
	}

	.gr-qo-aside .gr-qo {
		padding: 18px 16px 16px;
	}

	.gr-qo-aside .gr-qo__title {
		font-size: 16px;
	}

	.gr-qo-aside .gr-qo__pills--platforms {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.gr-qo-aside .gr-qo__pills--platforms .gr-qo__pill span {
		font-size: 12px;
	}
}

/* Desktop: sticky below the sticky header. */
.gr-qo-aside .gr-qo-sticky {
	position: sticky;
	top: calc(var(--admin-bar, 0px) + var(--theme-frame-size, 0px) + var(--header-sticky-height, 0px) * var(--sticky-shrink, 100) / 100 + 24px);
	max-height: calc(100vh - var(--admin-bar, 0px) - var(--header-sticky-height, 0px) * var(--sticky-shrink, 100) / 100 - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
}

/* Mobile / tablet: fixed button and bottom sheet. */

.gr-qo-bar {
	display: none;
}

@media (max-width: 999.98px) {
	.gr-qo-has-bar .gr-qo-bar {
		display: block;
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		z-index: 9990;
	}

	/* --gr-qo-bar-h is the bar's measured height, set by quick-order.js. */
	.gr-qo-has-bar body {
		padding-bottom: calc(var(--gr-qo-bar-h, 64px) + 24px + env(safe-area-inset-bottom, 0px));
	}

	.gr-qo-bar__button {
		display: flex;
		align-items: stretch;
		width: 100%;
		max-width: 520px;
		min-height: 60px;
		margin: 0 auto;
		padding: 0;
		font-family: "Inter", sans-serif;
		color: #fff;
		text-align: left;
		background: linear-gradient(100deg, #ff9f6e 0%, #ff5a2c 100%);
		border: 0;
		border-radius: 10px;
		box-shadow: 0 10px 28px rgba(255, 90, 44, 0.35);
		overflow: hidden;
		cursor: pointer;
	}

	.gr-qo-bar__button:focus-visible {
		outline: 2px solid #1a1a1a;
		outline-offset: 2px;
	}

	.gr-qo-bar__icon {
		flex: none;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 56px;
		background: rgba(255, 255, 255, 0.2);
	}

	.gr-qo-bar__text {
		flex: 1;
		align-self: center;
		padding: 10px 12px 10px 14px;
		font-size: 13px;
		font-weight: 500;
		line-height: 1.35;
	}

	.gr-qo-bar__cta {
		flex: none;
		display: flex;
		align-items: center;
		gap: 6px;
		padding: 0 14px 0 4px;
		font-size: 13px;
		font-weight: 700;
		text-decoration: underline;
		text-underline-offset: 3px;
		white-space: nowrap;
	}

	.gr-qo-bar__arrow {
		flex: none;
		transition: transform .2s;
	}

	.gr-qo-bar__button:hover .gr-qo-bar__arrow {
		transform: translate(2px, -2px);
	}

	/* Very narrow phones: drop the icon so the text keeps room. */
	@media (max-width: 359.98px) {
		.gr-qo-bar__icon {
			display: none;
		}
	}

	.gr-qo-sheet-open,
	.gr-qo-sheet-open body {
		overflow: hidden;
	}
}

.gr-qo-sheet[hidden] {
	display: none;
}

.gr-qo-sheet {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.gr-qo-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(25, 27, 54, 0.45);
}

.gr-qo-sheet__panel {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(25, 27, 54, 0.3);
	animation: gr-qo-sheet-in .25s ease-out;
}

.gr-qo-sheet__panel .gr-qo {
	border-radius: 20px;
	box-shadow: none;
	padding: 22px 16px 18px;
}

.gr-qo-sheet__panel .gr-qo__head {
	padding-right: 44px;
}

.gr-qo-sheet__close {
	position: absolute;
	top: 14px;
	right: 12px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: #484f5e;
	background: #fff;
	border: 1px solid #e4e4e7;
	border-radius: 50%;
	cursor: pointer;
}

@keyframes gr-qo-sheet-in {
	from { transform: scale(.96); opacity: 0; }
	to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.gr-qo-sheet__panel { animation: none; }
	.gr-qo__submit:hover { transform: none; }
}

/* Internal linking blocks, below the article content. */

.gr-article-links {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid #ececec;
}

/* 60px + the platform list's 20px bottom margin = 80px, same as above Related Posts. */
.gr-article-links .ct-widget:has(+ .ct-widget .wp-block-categories) {
	margin-top: 60px !important;
}

.gr-article-links .ct-widget:has(+ .ct-widget .wp-block-latest-posts) {
	margin-top: 80px !important;
}

.gr-article-links .wp-block-heading {
	margin: 0 0 16px;
}

.gr-article-links h2 {
	font-size: 22px;
	line-height: 1.4;
}

.gr-article-links .wp-block-heading strong {
	font-size: 22px;
	font-weight: 600;
	color: #222;
}

/* Services: platforms in a 2 × 2 grid. */
.gr-article-links .ct-widget:has(.platform-group) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 28px;
}

.gr-article-links .ct-widget:has(.platform-group) > :not(.platform-group) {
	grid-column: 1 / -1;
}

.gr-article-links .boost-heading {
	font-size: 22px;
	font-weight: 600;
	color: #222;
	margin: 0 0 8px;
}

.gr-article-links .quick-para {
	margin: 0 0 20px;
	color: #5a5b6f;
}

.gr-article-links .platform-group {
	margin: 0 0 20px;
}

.gr-article-links .platform-group h3.wp-block-heading {
	font-size: 18px;
}

.gr-article-links .custom-sidebar-blog {
	margin-bottom: 0;
}

.gr-article-links .custom-sidebar-blog li a {
	padding: 7px 22px 7px 0;
	font-size: 15px;
}

/* Categories: compact multi-column list. */
.gr-article-links .wp-block-categories {
	columns: 3 200px;
	column-gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gr-article-links .wp-block-categories li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	break-inside: avoid;
	padding: 7px 0;
	border-bottom: 1px solid #ececec;
}

/* Related posts: card grid. */
.gr-article-links .wp-block-latest-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
}

.gr-article-links .wp-block-latest-posts li {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gr-article-links .wp-block-latest-posts__featured-image {
	margin: 0 0 6px;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 12px;
}

.gr-article-links .wp-block-latest-posts__featured-image a,
.gr-article-links .wp-block-latest-posts__featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gr-article-links .wp-block-latest-posts__post-title {
	font-weight: 600;
	line-height: 1.4;
	color: #222;
}

.gr-article-links .wp-block-latest-posts__post-author,
.gr-article-links .wp-block-latest-posts__post-date {
	display: inline;
	margin: 0 6px 0 0;
	font-size: 12px;
	color: #6b7280;
}

@media (max-width: 999.98px) {
	.gr-article-links .wp-block-latest-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 689.98px) {
	.gr-article-links {
		margin-top: 36px;
		padding-top: 24px;
	}

	.gr-article-links .ct-widget:has(.platform-group) {
		gap: 0 16px;
	}

	.gr-article-links .wp-block-latest-posts {
		grid-template-columns: minmax(0, 1fr);
	}
}
