/* Local overrides */

/* Global Nav */

#ac-globalfooter .ac-gf-buystrip-info-column .ac-gf-buystrip-info-caption {
	display: block;
	margin-top: 0;
}

#ac-globalfooter .ac-gf-block-link {
	color: rgba(0, 0, 0, 0.88);
}

/* hero */
.hero-card {
	text-align: left;
}

.hero-card-apps {
	width: 100%;
}

.section-welcome .hero-container .headline-container .headline {
	flex-wrap: wrap;
}

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

/* trade it forward tile */

@media (max-width: 734px) {
	#gallery-worth-it .scroll-container .item-container {
		height: 414px;
	}
	.card-big-trade-in.less-img-spacing .card-big-image {
		margin-block: 24px auto;
	}
}

/* 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;
	}
}

/* Apple intelligence BOC */

@media only screen and (max-width: 326px) {
	.modal-content.modal-content-apple-intelligence p:nth-child(5) {
		margin-right: 11px;
	}
	.modal-content.modal-content-apple-intelligence a {
		text-decoration: none;
	}
}

/* Transfer card front */

.section-welcome .hero-card-transfer .hero-card-front {
	padding-right: 45px;
	padding-left: 45px;
}

/* Mac + iPhone */

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

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

/* get-more */
@media only screen and (max-width: 734px) {
	.section-get-more .headline {
		max-width: 11ch;
	}
}

@media only screen and (min-width: 734px) and (max-width: 1068px) {
	.card-big-ai .card-big-headline {
		margin-inline-end: -4ch;
	}
}

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

/* worth-it - trade in */
@media only screen and (max-width: 734px) {
	#worth-it .typography-subsection-headline {
		font-size: 36px;
	}

	.card-big-trade-in .card-big-headline {
		max-width: 14ch;
	}
}

@media only screen and (max-width: 734px) {
	.modal.modal-card-big .graphs .graph-video-conferencing .stat {
		font-size: 14px;
	}
}

/* Financing card */

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

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

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

/* ways-to-save */
.section-ways-to-save .headline {
	max-width: 22ch;
}

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

@media only screen and (max-width: 734px) {
	.section-ways-to-save .headline {
		max-width: 14ch;
	}
}

/* even-more */
@media only screen and (min-width: 735px) {
	.section-even-more .headline {
		max-width: 16ch;
	}
}

/* compare */

@media only screen and (max-width: 460px) {
	.toggle-gallery-wrapper .tabnav-item:nth-child(2) {
		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;
}

@media (max-width: 734px) {
	.card-big-reliable .card-big-headline {
		--select-gallery-height: 587px;
	}
}

/* Pre-Order button Alignment */

@media only screen and (max-width: 1068px) {
	.section-select .product-tile-ctas .button + a,
	.section-select .product-tile-ctas .product-tile-current + a,
	.section-select .product-tile-ctas a + a,
	.section-select .product-tile-ctas button + a {
		margin-inline-start: 21px;
	}
}

@media only screen and (max-width: 735px) {
	.section-select .product-tile-ctas .button + a,
	.section-select .product-tile-ctas .product-tile-current + a,
	.section-select .product-tile-ctas a + a,
	.section-select .product-tile-ctas button + a {
		margin-inline-start: 13px;
	}
}

/* cards - reliability */
@media only screen and (min-width: 735px) and (max-width: 1068px) {
	#reliability .card-big-headline .icon {
		top: 8px;
	}
}
@media only screen and (max-width: 734px) {
	#reliability .card-big-headline {
		padding-bottom: 10px;
	}
	#reliability .card-big-image {
		max-height: 217px;
	}
}

@media (max-width: 333px) {
	.custom_more {
		width: 250px;
	}
}
