/*
 * Compare cards (theme 1.4.53, inc/compare-cards.php): /skytab, /shift4-pos, /restaurant-pos
 * and the home page. A copy of skytab2.css part 3, scoped to body.s4d-cmpc; /skytab2 keeps its own.
 */
body.s4d-cmpc .s4d-compare.is-st2c .s4d-compare__wrap { display: none; }
body.s4d-cmpc .s4d-st2c[hidden] { display: none; }
body.s4d-cmpc .s4d-st2c {
	margin: 0 0 22px; padding: 28px;
	background: var(--s4d-light-bg, #F4F7FD); border: 1px solid var(--s4d-border, #E4E8F0); border-radius: 16px;
}
body.s4d-cmpc .s4d-st2c__label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--s4d-ink-500, #5A6478); }
body.s4d-cmpc .s4d-st2c__sel {
	width: 100%; max-width: 460px; height: 52px; padding: 0 44px 0 16px;
	border: 1.5px solid var(--s4d-navy, #0B1B3A); border-radius: 10px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230B1B3A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
	-webkit-appearance: none; appearance: none;
	font: inherit; font-size: 17px; font-weight: 800; color: var(--s4d-navy, #0B1B3A);
	cursor: pointer;
}
body.s4d-cmpc .s4d-st2c__sel:focus-visible { outline: 3px solid var(--s4d-blue, #136EF6); outline-offset: 2px; }
body.s4d-cmpc .s4d-st2c__why { margin: 12px 0 20px; max-width: 70ch; font-size: 15px; line-height: 1.5; color: var(--s4d-ink-600, #4A5468); }
body.s4d-cmpc .s4d-st2c__cards { display: grid; grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr)); gap: 12px; }
body.s4d-cmpc .s4d-st2c__card {
	position: relative; display: grid; align-content: start; gap: 10px;
	min-height: 140px; padding: 20px 18px;
	background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--s4d-border, #E4E8F0);
}
body.s4d-cmpc .s4d-st2c__brand { font-size: 15px; font-weight: 800; color: var(--s4d-ink-700, #3F4859); }
body.s4d-cmpc .s4d-st2c__sub { display: block; font-size: 12px; font-weight: 600; color: var(--s4d-on-navy, #B4C3DE); }
body.s4d-cmpc .s4d-st2c__meter { display: flex; gap: 4px; }
body.s4d-cmpc .s4d-st2c__meter i { flex: 1; height: 6px; border-radius: 999px; background: #E4E8F0; }
body.s4d-cmpc .s4d-st2c__card[data-r="good"] .s4d-st2c__meter i:nth-child(-n+3) { background: #0B7A3B; }
body.s4d-cmpc .s4d-st2c__card[data-r="mid"] .s4d-st2c__meter i:nth-child(-n+2) { background: #E0A63A; }
body.s4d-cmpc .s4d-st2c__card[data-r="bad"] .s4d-st2c__meter i:nth-child(-n+1) { background: #D9534F; }
body.s4d-cmpc .s4d-st2c__val { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--s4d-ink-600, #4A5468); }
body.s4d-cmpc .s4d-st2c__ic { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 800; line-height: 1; }
body.s4d-cmpc .s4d-st2c__card[data-r="good"] .s4d-st2c__ic { background: #E3F4EA; color: #0B7A3B; }
body.s4d-cmpc .s4d-st2c__card[data-r="mid"] .s4d-st2c__ic { background: #FFF3DC; color: #9A5B00; }
body.s4d-cmpc .s4d-st2c__card[data-r="bad"] .s4d-st2c__ic { background: #FCE8E6; color: #B42318; }
/* Shift4: navy, blue ring, larger value, green check, "Leads here". */
body.s4d-cmpc .s4d-st2c__card.is-us {
	padding: 22px 20px;
	background: var(--s4d-navy, #0B1B3A);
	box-shadow: inset 0 0 0 2px var(--s4d-blue, #136EF6), 0 18px 40px -18px rgba(19, 110, 246, .55);
}
body.s4d-cmpc .s4d-st2c__card.is-us .s4d-st2c__brand { color: #fff; }
body.s4d-cmpc .s4d-st2c__card.is-us .s4d-st2c__val { font-size: 22px; font-weight: 800; color: #fff; }
body.s4d-cmpc .s4d-st2c__card.is-us .s4d-st2c__ic { width: 26px; height: 26px; background: #3DDC84; color: var(--s4d-navy, #0B1B3A); }
body.s4d-cmpc .s4d-st2c__card.is-us .s4d-st2c__meter i { background: #3DDC84 !important; }
body.s4d-cmpc .s4d-st2c__flag {
	position: absolute; top: 12px; right: 12px; padding: 3px 8px; border-radius: 999px;
	background: var(--s4d-blue, #136EF6); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
body.s4d-cmpc .s4d-st2c__uswhy { display: none; }
body.s4d-cmpc .s4d-st2c__lead { margin: 16px 0 0; font-size: 15px; font-weight: 800; color: var(--s4d-navy, #0B1B3A); }
@media (prefers-reduced-motion: no-preference) {
	body.s4d-cmpc .s4d-st2c__cards.is-swap .s4d-st2c__card { animation: s4d-cmpc-in .28s cubic-bezier(.2, .7, .2, 1) both; }
	body.s4d-cmpc .s4d-st2c__cards.is-swap .s4d-st2c__card:nth-child(2) { animation-delay: .03s; }
	body.s4d-cmpc .s4d-st2c__cards.is-swap .s4d-st2c__card:nth-child(3) { animation-delay: .06s; }
	body.s4d-cmpc .s4d-st2c__cards.is-swap .s4d-st2c__card:nth-child(4) { animation-delay: .09s; }
	body.s4d-cmpc .s4d-st2c__cards.is-swap .s4d-st2c__card:nth-child(5) { animation-delay: .12s; }
}
@keyframes s4d-cmpc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Tablet: Shift4 across the top, the four others two by two. */
@media (max-width: 1023px) {
	body.s4d-cmpc .s4d-st2c__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.s4d-cmpc .s4d-st2c__card.is-us { grid-column: 1 / -1; }
}

/* Phones = Option B with the dropdown: Shift4 as a full-width navy banner with the
   criterion and why line, the four others 2 x 2. */
@media (max-width: 599px) {
	body.s4d-cmpc .s4d-st2c { padding: 16px; border-radius: 14px; }
	body.s4d-cmpc .s4d-st2c__sel { max-width: none; }
	body.s4d-cmpc .s4d-st2c__why { display: none; }
	body.s4d-cmpc .s4d-st2c__cards { gap: 8px; margin-top: 14px; }
	body.s4d-cmpc .s4d-st2c__card { min-height: 0; padding: 14px 12px; gap: 8px; }
	body.s4d-cmpc .s4d-st2c__card.is-us { padding: 18px 16px; }
	body.s4d-cmpc .s4d-st2c__card.is-us .s4d-st2c__val { font-size: 26px; }
	body.s4d-cmpc .s4d-st2c__card.is-us .s4d-st2c__meter { display: none; }
	body.s4d-cmpc .s4d-st2c__uswhy { display: block; margin: 0; font-size: 14px; line-height: 1.45; color: var(--s4d-on-navy, #B4C3DE); }
	body.s4d-cmpc .s4d-st2c__uswhy strong { display: block; margin-bottom: 2px; color: #fff; }
	body.s4d-cmpc .s4d-st2c__val { font-size: 14px; }
}
