/* Switch Care on the phone product page, under "Pick Your Plan" (and on the
   plan page: the note under the price, the line's chip on its phone card, the
   BYOP section).
   Figma "SM_Product Page Device Protection Switch Care". Loaded after cart.css,
   which has the tokens, the cards (.sm-care-option) and the popup. Cards behave
   like the theme's plan cards right above them. */

.sm-care-pp[hidden],
.sm-care-pp .sm-care-option[hidden],
.sm-care-pp-note[hidden] { display: none; }

.sm-care-pp {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin: 20px 0 40px;
	font-family: var(--sm-care-font);
	color: var(--sm-care-ink);
	line-height: 1.3;
}
.sm-care-pp__head { display: flex; flex-direction: column; gap: 10px; }
.sm-care-pp .sm-care-pp__title {
	margin: 0;
	font-family: var(--sm-care-font);
	font-size: 28px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	color: var(--sm-care-ink);
}
.sm-care-pp .sm-care-pp__title span { color: var(--sm-care-accent); }
.sm-care-pp .sm-care-pp__sub { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }

.sm-care-pp__choices { display: flex; flex-direction: column; gap: 10px; }

/* Cards: hover like the plan cards; selected = white, 2px maroon. */
.sm-care-pp .sm-care-option { cursor: pointer; transition: border-color .25s ease; }
.sm-care-pp .sm-care-option:hover { background: transparent; border-color: var(--sm-care-maroon); }
.sm-care-pp .sm-care-option.is-selected,
.sm-care-pp .sm-care-option.is-selected:hover { background: #fff; }
.sm-care-pp .sm-care-option:focus { outline: 0; }
.sm-care-pp .sm-care-option:focus-visible,
.sm-care-pp .sm-care-pp__none:focus-visible { outline: 2px solid var(--sm-care-ink); outline-offset: 2px; }

.sm-care-pp button.sm-care-info {
	appearance: none;
	display: inline-flex;
	flex: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	box-shadow: none;
	cursor: pointer;
}
.sm-care-pp button.sm-care-info:hover,
.sm-care-pp button.sm-care-info:focus { background: none; opacity: .6; }
.sm-care-pp button.sm-care-info:focus-visible { outline: 2px solid var(--sm-care-ink); outline-offset: 2px; opacity: 1; }
.sm-care-pp .sm-care-info .sm-care-icon { width: 24px; height: 24px; }
.sm-care-pp img.sm-care-icon { max-width: none; margin: 0; }

/* No Thanks (the default). */
.sm-care-pp__none {
	padding: 20px 30px;
	border: 1px solid var(--sm-care-line);
	border-radius: 10px;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .25s ease;
}
.sm-care-pp__none:hover { border-color: var(--sm-care-maroon); }
.sm-care-pp__none.is-selected {
	background: #fff;
	border: 2px solid var(--sm-care-maroon);
	padding: 19px 29px; /* same size as with the 1px border */
}

/* "+ Switch Care $19.99/month" under the price. */
.sm-care-pp-note {
	margin: 0 0 20px;
	text-align: center;
	font-family: var(--sm-care-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sm-care-ink);
}

/* Plan page: the line's Switch Care on its phone card (plan.js). */
/* Text flow, not flex: the card's info column is narrow on phones and the
   check must stay with the title. */
.sm-care-line {
	display: block;
	margin: 10px 0;
	padding: 10px 14px;
	background: var(--sm-care-cream);
	border: 1px solid var(--sm-care-line);
	border-radius: 10px;
	font-family: var(--sm-care-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sm-care-ink);
}
.sm-care-line img.sm-care-line__check { display: inline-block; width: 14px !important; height: 14px !important; max-width: none; margin: 0 6px 0 0; vertical-align: -2px; }
.sm-care-line__price { font-weight: 700; white-space: nowrap; }

/* Plan page: BYOP steps (plan.js) - "Pick your phone" and "Protection".
   "Pick your phone" itself, fields, selects and buttons come from cart.css. */
.sm-care-byop[hidden] { display: none; }
.sm-care-byop .sm-care-pp { margin: 30px 0 10px; }
.sm-care-byop.is-busy { opacity: .6; pointer-events: none; }
#line-config-modal .sm-care-byop .sm-care-pp__title { font-size: 22px; }
.sm-care-byop--phone { margin-top: 30px; }
.sm-care-byop button.sm-care-option__goto { align-self: flex-start; margin-top: auto; text-align: left; }
.sm-care-compat { margin-top: 15px; }
.sm-care-compat[hidden],
.sm-care-compat [hidden] { display: none; }

@media (max-width: 768px) {
	.sm-care-pp .sm-care-options { grid-template-columns: 1fr; }
	.sm-care-pp .sm-care-pp__title { font-size: 24px; }
}

/* "Powered by AKKO" logo and the line under the title, side by side. */
.sm-care-pp .sm-care-pp__by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.sm-care-pp .sm-care-pp__by img.sm-care-powered { margin: 0; align-self: center; }
