/* Share buttons — see assets/js/share.js */

/* ---------- Customiser: icon ---------- */
.dx-share-icon { border: 1px solid var(--dx-line, #e3e5ec); cursor: pointer; padding: 0; font: inherit; }
/* Phones: the size-guide ruler is pinned in the third slot of the icon
   column, so Share skips it when "Start new design" is not there. */
body.sky9 .dx-studio-tools > .dx-share-icon:nth-child(3) { margin-top: 52px !important; }

/* ---------- Customiser: sheet ---------- */
.dx-share-scrim,
.dx-share { display: none; }
body.dx-share-open .dx-share-scrim {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(4, 14, 73, .35);
}
body.dx-share-open .dx-share {
	display: block;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 99999;
	width: min(420px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	box-sizing: border-box;
	padding: 18px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(4, 14, 73, .3);
	font-family: Inter, Helvetica, Arial, sans-serif;
	color: #040e49;
}
.dx-share__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.dx-share__head b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.dx-share__close {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f2f6;
	color: #040e49;
	cursor: pointer;
}
.dx-share__close svg { width: 18px; height: 18px; }
.dx-share__card {
	padding: 14px;
	border: 1px solid #e3e5ec;
	border-radius: 14px;
}
.dx-share__card + .dx-share__card { margin-top: 10px; }
.dx-share__label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #040e49;
}
.dx-share__sub {
	margin: 3px 0 12px;
	font-size: 13px;
	line-height: 1.4;
	color: #4b5470;
}
.dx-share__btns {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}
.dx-share__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: #040e49;
	font: 600 11px/1.2 Inter, Helvetica, Arial, sans-serif;
	cursor: pointer;
}
.dx-share__ico {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: #fff;
	transition: transform .15s ease, opacity .15s ease;
}
.dx-share__ico svg { width: 22px; height: 22px; }
.dx-share__btn:hover .dx-share__ico { transform: translateY(-2px); }
.dx-share__btn--wa .dx-share__ico { background: #25d366; }
.dx-share__btn--fb .dx-share__ico { background: #1877f2; }
.dx-share__btn--ig .dx-share__ico { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.dx-share__btn--link .dx-share__ico { background: #040e49; }
.dx-share__btn.is-busy .dx-share__ico,
.dx-share__dl.is-busy { opacity: .5; pointer-events: none; }

.dx-share__linkrow { margin-top: 12px; }
.dx-share__linkrow[hidden] { display: none; }
.dx-share__linkrow input {
	width: 100%;
	box-sizing: border-box;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #d5d9e4;
	border-radius: 10px;
	background: #f7f8fb;
	color: #040e49;
	font: 500 12px Inter, Helvetica, Arial, sans-serif;
}
.dx-share__dl {
	width: 100%;
	min-height: 44px;
	margin-top: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1.5px solid #040e49;
	border-radius: 999px;
	background: #fff;
	color: #040e49;
	font: 700 13px Inter, Helvetica, Arial, sans-serif;
	letter-spacing: .02em;
	cursor: pointer;
}
.dx-share__dl:hover { background: #040e49; color: #fff; }
.dx-share__dl svg { width: 18px; height: 18px; }

/* Phones: a sheet from the bottom. */
@media (max-width: 781px) {
	body.dx-share-open .dx-share {
		left: 0;
		right: 0;
		top: auto;
		bottom: 0;
		transform: none;
		width: 100%;
		max-height: 88vh;
		border-radius: 20px 20px 0 0;
		padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
	}
}

/* ---------- Toast ---------- */
.dx-share-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100001;
	max-width: min(420px, calc(100vw - 32px));
	padding: 12px 16px;
	border-radius: 12px;
	background: #040e49;
	color: #fff;
	font: 600 13px/1.4 Inter, Helvetica, Arial, sans-serif;
	text-align: center;
	box-shadow: 0 10px 30px rgba(4, 14, 73, .3);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 10px);
	transition: opacity .2s ease, transform .2s ease;
}
.dx-share-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Product page row ---------- */
.dx-share-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 18px 0 6px;
}
.dx-share-row__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #040e49;
}
.dx-share-row__btns { display: flex; gap: 8px; }
.dx-share-row .dx-share__txt {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.dx-share-row .dx-share__ico { width: 38px; height: 38px; }
.dx-share-row .dx-share__ico svg { width: 18px; height: 18px; }

/* "Share my design" is the main card. */
.dx-share__card--main { border: 1.5px solid #040e49; }
