/* Local Overrides */

.card-big-mac-and-iphone .card-big-headline {
	max-width: 18ch;
}

@media only screen and (min-width: 1069px) {
	#mac-with-iphone .hero-card-front {
		padding-right: 30px;
	}
	.card-small-headline.typography-eyebrow-elevated.customized-1 {
		margin-top: 34px;
	}
	.card-small-headline.typography-eyebrow-elevated.customized-2 {
		margin-top: 32px;
	}
}

@media only screen and (max-width: 1068px) and (min-width: 735px) {
	.card-big-reliable .icon {
		top: 11px;
	}
	.card-small-headline.typography-eyebrow-elevated.customized-1 {
		margin-top: 34px;
	}
	.card-small-headline.typography-eyebrow-elevated.customized-2 {
		margin-top: 32px;
	}
}

@media only screen and (max-width: 734px) {
	.card-small-headline.typography-eyebrow-elevated.customized-1 {
		margin-top: 25px;
	}
	.card-small-headline.typography-eyebrow-elevated.customized-2 {
		margin-top: 24px;
	}
}

.large-show-inline-customized {
	display: inline;
}

.small-show-inline-customized {
	display: none;
}

@media (max-width: 1068px) {
	.card-big-mac-and-iphone .card-big-headline {
		max-width: 15ch;
	}

	.card-big-mac-and-iphone .highlight-ml:before {
		left: 0;
		width: 100%;
	}
}

@media only screen and (max-width: 734px) {
	html.no-static
		.section-welcome
		.hero-container
		.headline-container.engaged
		.suffix-container {
		margin-left: 5px;
	}
}

/* modal */

.hero-card .hero-card-front {
	display: flex;
}

.hero-card .hero-card-back {
	display: flex;
	align-items: flex-start;
	text-align: left;
}

@media (pointer: fine) {
	.section-welcome .hero-card:has(.hero-card-back):hover *,
	.section-welcome
		.hero-card:has(.hero-card-back)[data-focus-method="key"]
		* {
		pointer-events: all;
	}

	.section-welcome .hero-card:has(.hero-card-back):hover .hero-card-front,
	.section-welcome
		.hero-card:has(.hero-card-back)[data-focus-method="key"]
		.hero-card-front {
		opacity: 1;
	}

	.section-welcome .hero-card:has(.hero-card-back):hover .hero-card-back,
	.section-welcome
		.hero-card:has(.hero-card-back)[data-focus-method="key"]
		.hero-card-back {
		opacity: 0;
	}

	.section-welcome .hero-card:has(.hero-card-back):hover .hero-card-back *,
	.section-welcome
		.hero-card:has(.hero-card-back)[data-focus-method="key"]
		.hero-card-back
		* {
		pointer-events: all;
	}
}

.hero-card-switch {
	display: none;
}

.hero-card-switch-label {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: block;
	width: 100%;
	height: 100%;
	z-index: 10;
	cursor: pointer;
	opacity: 0;
	border-radius: 30px;
	appearance: none;
	border: none;
	outline: none;
}

.hero-card
	.hero-card-switch:checked
	+ .hero-card-switch-label
	+ .hero-card-front {
	opacity: 0;
}

.hero-card
	.hero-card-switch:checked
	+ .hero-card-switch-label
	+ .hero-card-front
	+ .hero-card-back {
	opacity: 1;
}

.hero-card-front .hero-card-icon .boc-plus {
	fill: grey;
	--bg: grey;
}

.hero-card-front .hero-card-icon,
.hero-card-back .hero-card-icon,
.hero-card-front .hero-card-icon svg,
.hero-card-back .hero-card-icon svg {
	width: 41px;
	height: 42px;
	color: grey;
}

.hero-card-back .hero-card-icon {
	transform: rotate(45deg);
	right: 21px;
	bottom: 21px;
}

@media only screen and (max-width: 1068px) {
	.hero-card-back .hero-card-icon {
		transform: rotate(45deg);
		right: 21px;
		bottom: 21px;
	}
}

@media only screen and (max-width: 734px) {
	.hero-card-back .hero-card-icon {
		transform: rotate(45deg);
		right: 17px;
		bottom: 15px;
	}
}

/* Card - Performance */
@media (max-width: 734px) {
	.card-big-performance .highlight-ml:before {
		left: -1ch;
		width: calc(100% + 0.7em);
	}
}

/* Card - Setup */
@media (max-width: 734px) {
	.card-big-setup .typography-card-big-headline .new-line {
		font-size: 23px;
		line-height: 1.35;
	}
}

@media (max-width: 734px) {
	.max-width-s {
		max-width: calc(var(--max-width-s) + 30px);
	}
}

@media only screen and (min-width: 1069px) {
	.section-welcome .hero-card-apps .hero-card-front {
		padding-right: 53px;
	}
	#apps .typography-hero-card-boc-headline {
		font-size: 63px;
	}
}

@media only screen and (max-width: 1068px) {
	#apps .typography-hero-card-boc-headline {
		font-size: 56px;
		margin-left: -30px;
	}
}

@media only screen and (max-width: 734px) {
	.small-show-inline-customized {
		display: inline;
		font-size: 20px;
	}
	.large-show-inline-customized {
		display: none;
	}
	#apps .typography-hero-card-boc-headline {
		font-size: 38px;
	}
}

@media only screen and (max-width: 400px) {
	.small-show-inline-customized {
		display: none;
	}
	html.no-static
		.section-welcome
		.hero-container
		.headline-container.engaged
		.suffix-container {
		margin-left: 5px;
	}
}

/* apple store VPs */

.section-ways-to-save .headline {
	max-width: 19ch;
}

.section-ways-to-save .card-small-headline {
	max-width: 15ch;
}

/* ways-to-save */
@media only screen and (min-width: 1069px) {
	.section-ways-to-save .card-small-headline {
		max-width: 15ch;
	}
}
@media only screen and (max-width: 734px) {
	.section-ways-to-save .headline {
		max-width: 12ch;
	}
}

@media only screen and (min-width: 1769px) {
	.section-ways-to-save .paddlenav.scroll-gallery-paddles.section-content {
		display: block;
	}
}

/* accessibility VP */

@media only screen and (min-width: 735px) {
	.card-small.card-small-accessibility p {
		width: 280px;
	}
}

/* Ways to Save -- Carousel */
.paddlenav.scroll-gallery-paddles.paddles-hide {
	display: flex;
	visibility: hidden;
}

/* modal card big */
.modal.modal-card-big
	.modal-content-performance
	.graphs
	.container
	div:last-child {
	flex: 0 0 56px;
}

/* Financing card */

.card-big-financing .card-big-copy,
.card-big-financing .card-big-headline {
	max-width: 650px;
}

@media (max-width: 1068px) {
	.card-big-financing .card-big-copy,
	.card-big-financing .card-big-headline {
		max-width: 320px;
	}
}

@media (max-width: 734px) {
	.card-big-financing .card-big-copy,
	.card-big-financing .card-big-headline {
		max-width: 180px;
	}
}

@media only screen and (min-width: 735px) and (max-width: 1068px) {
	.section-header {
		gap: 65px;
	}
}

/* preorder button */
@media only screen and (max-width: 1068px) {
	.section-select .product-tile-ctas a:not(:first-child) {
		margin-inline-start: 20px;
	}
}
@media only screen and (max-width: 734px) {
	.section-select .product-tile-ctas a:not(:first-child) {
		margin-inline-start: 12px;
	}
}

/* Dynamic Pricing */
.sosumi-link-follows,
.sosumi-link-follows + .footnote {
	display: none;
}

.sosumi-link-follows[data-pricing-loaded],
.sosumi-link-follows[data-pricing-loaded] + .footnote {
	display: inline;
}

/* highlight-green */
#apps .hero-card-back .highlight.highlight-green {
	width: 31%;
}

#apps .hero-card-back .typography-hero-card-boc-headline {
	margin-left: -30px;
}

@media only screen and (max-width: 734px) {
	#apps .hero-card-back .typography-hero-card-boc-headline {
		margin-left: -15px;
	}
}

/* card-big-headline */
@media (max-width: 1068px) {
	.card-big-reliable .card-big-headline {
		margin-right: 5px;
		margin-left: -5px;
	}
}

@media (max-width: 734px) {
	.card-big-reliable .card-big-headline {
		margin-left: 0px;
		margin-bottom: 5px;
	}
}

/* Compare Section */

@media only screen and (max-width: 460px) {
	.toggle-gallery-wrapper .tabnav-item:nth-child(2) {
		width: 100px;
		white-space: normal;
	}
}

@media only screen and (max-width: 580px) {
	.section-select .tabnav .tabnav-items.typography-family-paragraph {
		font-size: 11px;
	}
}

.select-gallery-container .tabnav .tabnav-paddle-right {
	display: none;
}
