/* "Kompatibilné s týmto telefónom" in the phone's buy box (inc/accessories.php, assets/js/pages/nm-accessories.js). */

.nm-acc { margin: 14px 0 4px; min-width: 0; font-size: 14px; color: var(--head); }
.amtc-npp .nm-acc__title { margin: 0 0 16px; } /* look: .services-title (nm-product.css) */

/* Chips: one scrolling row. */
.nm-acc__chips {
	display: flex; gap: 6px; width: 0; min-width: 100%; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none;
}
.nm-acc__chips::-webkit-scrollbar { display: none; }
.nm-acc__chip {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px;
	border: 1px solid var(--brand-tint2); border-radius: 999px; background: #fff; color: var(--ink);
	font-size: 14px; font-weight: 500; cursor: pointer;
}
.nm-acc__chip:hover { border-color: var(--brand); }
.nm-acc__chip[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); font-weight: 700; }
.nm-acc__chip i {
	display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
	background: var(--cta); color: #fff; font-size: 12px; font-style: normal; font-weight: 700;
}
.nm-acc__chip i[hidden] { display: none; }

/* Cards: the homepage's "Aký telefón máte?" items (nm-home.css .nmh-mine__items / .nmh-pick) – one
 * scrolling row of square cells sharing their lines; a picked cell has a blue frame and check. */
.nm-acc__rail-wrap { position: relative; }
.nm-acc__rail {
	display: grid; grid-auto-columns: 168px; grid-auto-flow: column; gap: 0; width: 0; min-width: 100%;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
	scrollbar-color: var(--primary-semi-light) transparent; scrollbar-width: thin;
	/* 1px room on top and left so a picked card's frame (outline, see .is-on) is not clipped; the left line
	 * is a background that stops where the cards stop (not down through the scrollbar gap). */
	padding: 1px 0 10px 1px;
	background: linear-gradient(var(--nd-c-line), var(--nd-c-line)) 0 1px / 1px calc(100% - 11px) no-repeat;
}
.nm-acc__card {
	position: relative; display: grid; gap: 4px; align-content: start; padding: 10px 8px; background: #fff;
	color: var(--nd-c-ink); cursor: pointer; scroll-snap-align: start;
	box-shadow: inset -1px 0 0 var(--nd-c-line), inset 0 1px 0 var(--nd-c-line), inset 0 -1px 0 var(--nd-c-line);
	transition: box-shadow .15s;
}
.nm-acc__card[hidden] { display: none; }
.nm-acc__card:hover {
	box-shadow: inset -1px 0 0 var(--nd-c-line), inset 0 1px 0 var(--nd-c-line), inset 0 -1px 0 var(--nd-c-line), inset 0 0 0 1px var(--primary-semi-light);
}
/* Picked: a 2px frame lying on the cell's shared lines (1px over the line, 1px into the cell), so two
 * picked neighbours share one line instead of drawing two frames side by side. */
.nm-acc__card.is-on {
	z-index: 1;
	outline: 2px solid var(--primary); outline-offset: -1px;
}
.nm-acc__check {
	position: absolute; top: 6px; right: 6px; z-index: 1; width: 20px; height: 20px; padding: 0;
	border: 2px solid var(--nd-c-line); border-radius: 50%; background: #fff; cursor: pointer;
}
.nm-acc__check[aria-pressed="true"] {
	border-color: var(--primary);
	background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.nm-acc__img { display: grid; place-items: center; height: 88px; }
.nm-acc__img img { max-width: 100%; max-height: 88px; width: auto; height: auto; object-fit: contain; }
/* The kind only in "Odporúčané" (a kind's view says it in the chip). */
.nm-acc__kind { color: var(--nd-c-muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.nm-acc__rail:not([data-acc-view=""]) .nm-acc__kind { display: none; }
.nm-acc__name {
	display: -webkit-box; overflow: hidden; font-size: var(--nd-fs-12, 12px); line-height: 1.3;
	-webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.nm-acc__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.nm-acc__price { min-width: 0; white-space: nowrap; }
.nm-acc__price b { font-size: var(--nd-fs-14, 14px); }
.nm-acc__price s { margin-left: 3px; color: var(--nd-c-muted); font-size: 11px; }
.nm-acc__detail {
	padding: 4px 10px; border: 1px solid var(--primary-light); border-radius: 999px; background: #fff;
	color: var(--primary-semi-dark); font-size: 12px; font-weight: 700; text-decoration: none;
}
.nm-acc__detail:hover, .nm-acc__detail:focus-visible { border-color: var(--primary); background: var(--primary); color: #fff; }
.nm-acc__arrow {
	position: absolute; top: 50px; z-index: 2; width: 32px; height: 32px; border: 1px solid var(--brand-tint2);
	border-radius: 50%; background: #fff; color: var(--brand); font-size: 20px; line-height: 1; cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.nm-acc__arrow.is-prev { left: -10px; }
.nm-acc__arrow.is-next { right: -10px; }
.nm-acc__arrow[hidden] { display: none; }
@media (hover: none) {
	.nm-acc__arrow { display: none; }
}

/* Sum. */
.nm-acc__sum { margin-top: 10px; padding: 10px 12px; border-radius: var(--nd-radius); background: var(--brand-tint); }
.nm-acc__sum-acc, .nm-acc__sum-all { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nm-acc__sum-acc[hidden] { display: none; }
.nm-acc__sum-acc { margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--brand-tint2); }
.nm-acc__sum-acc small { color: var(--muted); font-size: 13px; }
.nm-acc__sum-acc s { color: var(--muted); font-size: 13px; }
.nm-acc__sum-acc s[hidden] { display: none; }
.nm-acc__sum-all { font-weight: 700; }
.nm-acc__sum-all b { color: var(--brand); font-size: 18px; white-space: nowrap; }

/* The weekly deal among the cards. */
.nm-acc__deal {
	position: absolute; top: 6px; left: 6px; z-index: 1; padding: 1px 7px; border-radius: 999px;
	background: var(--coupon-accent, #d80001); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.6;
}

/* "Dokúpte vhodné príslušenstvo" with the buy box's cards (filter amtc_npp_accessory_card): the theme's
 * rail and filter stay, the cell (.acc-card--own) is just the frame of a .nm-acc__card. */
/* Like .nm-acc__rail: 1px room for the picked frame, the left line as a background of the padding box
 * (it ends with the cards, not down through the scrollbar). */
.amtc-npp .acc-section .carousel:has(.acc-card--own) {
	border: 0; border-radius: 0; padding: 1px 0 0 1px !important;
	background: linear-gradient(var(--nd-c-line), var(--nd-c-line)) 0 1px / 1px calc(100% - 1px) no-repeat padding-box;
}
.amtc-npp .acc-card--own {
	flex-basis: calc(100% / 6) !important; width: calc(100% / 6) !important;
	padding: 0; gap: 0; border-right: 0; text-align: left; align-items: stretch;
}
.amtc-npp .acc-card--own > .nm-acc__card { flex: 1 1 auto; padding: 12px 10px; }
.amtc-npp .acc-card--own .nm-acc__img { height: 120px; }
.amtc-npp .acc-card--own .nm-acc__img img { max-height: 120px; }
@media (max-width: 1000px) {
	.amtc-npp .acc-card--own { flex-basis: calc(100% / 4) !important; width: calc(100% / 4) !important; }
}
@media (max-width: 720px) {
	.amtc-npp .acc-card--own { flex-basis: 45% !important; width: 45% !important; }
}
