/*
 * Cart / order request, SMS code sheet, login and "הבקשה נשלחה".
 */

/* ---------- Empty cart ---------- */
.pk-cart-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; padding-top: 40px; padding-bottom: 48px; text-align: center; }
.pk-cart-empty__icon { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 44px; background: var(--pk-white); }
.pk-cart-empty__title { margin: 8px 0 0; font-family: var(--pk-font-display); font-size: 28px; font-weight: 600; }
.pk-cart-empty p { max-width: 290px; margin: 0 0 12px; color: var(--pk-ink-2); font-size: var(--pk-fs-base); line-height: 1.55; }

/* ---------- Layout ---------- */
.pk-cart { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 14px; padding-bottom: 24px; }
.pk-cart__title { margin: 0; font-family: var(--pk-font-display); font-size: 32px; font-weight: 600; }
.pk-cart__title span { font-family: var(--pk-font); font-size: var(--pk-fs-base); font-weight: 400; color: var(--pk-muted); }

/* Progress (phone) */
.pk-progress { margin-top: 16px; padding: 18px 18px 16px; border-radius: 24px; background: var(--pk-white); }
.pk-progress__text { margin: 0; font-size: 15.5px; font-weight: 500; line-height: 1.4; }
.pk-progress__bar { position: relative; height: 10px; margin-top: 14px; border-radius: 5px; background: #E4E2DB; }
.pk-progress__fill { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 5px; background: var(--pk-navy); transition: inline-size .3s var(--pk-ease); }
.pk-progress__mark { position: absolute; top: -4px; width: 3px; height: 18px; border-radius: 2px; background: var(--pk-orange); }
.pk-progress__labels { position: relative; height: 34px; margin-top: 6px; color: #45454F; font-size: 12px; line-height: 1.3; }
.pk-progress__labels span { position: absolute; top: 0; transform: translateX(50%); text-align: center; }
.pk-progress__labels span.is-end { inset-inline-end: 0; transform: none; text-align: end; }
.pk-progress__labels b { display: block; color: var(--pk-ink); font-weight: 600; }

/* Lines */
.pk-lines { margin-top: 8px; }
.pk-lines__list { margin: 0; padding: 0; list-style: none; }
.pk-line {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr) auto;
	grid-template-areas: "img info remove" "img qty total";
	gap: 6px 12px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid #EEECE6;
}
.pk-line.is-busy { opacity: .6; pointer-events: none; }
.pk-line__img { grid-area: img; display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 20px; background: var(--pk-white); }
.pk-line__img img { width: 64px; height: 64px; object-fit: contain; }
.pk-line__info { grid-area: info; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pk-line__name { font-size: 14px; line-height: 1.35; }
.pk-line__name:hover { text-decoration: underline; }
.pk-line__meta { display: none; color: var(--pk-muted); font-size: var(--pk-fs-sm); }
.pk-line__qty { grid-area: qty; justify-self: start; display: flex; align-items: center; height: 40px; padding: 0 2px; border: 1.5px solid var(--pk-line-2); border-radius: 20px; }
.pk-line__qty button, .pk-line__remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 18px;
	background: transparent;
	color: inherit;
}
.pk-line__qty button:disabled { opacity: .35; }
.pk-line__n { min-width: 22px; font-size: var(--pk-fs-base); font-weight: 600; text-align: center; }
.pk-line__total { grid-area: total; font-size: 17px; font-weight: 600; }
.pk-line__remove { grid-area: remove; align-self: start; width: 44px; height: 44px; margin-block-start: -10px; margin-inline-end: -10px; color: #5B5B66; }
.pk-line__remove:hover { background: var(--pk-chip); }

/* Details form */
.pk-details { margin-top: 26px; }
.pk-details__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pk-details__head .pk-h3 { margin: 0; font-size: 22px; }
.pk-details__saved { color: #5B5B66; font-size: 12.5px; }
.pk-details .pk-field__label { margin-top: 16px; }
.pk-phonecard { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-top: 14px; padding: 6px 16px; border-radius: var(--pk-r-sm); background: var(--pk-white); }
.pk-phonecard > span:first-child { display: flex; flex-direction: column; }
.pk-phonecard__label { color: #5B5B66; font-size: 12px; }
.pk-phonecard .pk-tag { position: static; display: inline-flex; gap: 4px; align-items: center; }
.pk-form-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: #FBE9E7; color: var(--pk-danger); font-size: 14px; font-weight: 500; }

/* What happens next */
.pk-nextsteps { margin-top: 24px; padding: 20px 18px; border-radius: 24px; background: var(--pk-lavender); }
.pk-nextsteps__title { margin: 0 0 12px; font-family: var(--pk-font-display); font-size: 19px; font-weight: 600; }
.pk-nextsteps ol { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pk-nextsteps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.pk-nextsteps li > span:first-child { display: flex; flex: 0 0 28px; align-items: center; justify-content: center; height: 28px; border-radius: 14px; background: var(--pk-navy); color: var(--pk-white); font-size: 13px; font-weight: 600; }
.pk-nextsteps b { font-weight: 600; }

/* Summary: fixed to the bottom on phones */
.pk-summary {
	position: sticky;
	bottom: 0;
	z-index: 15;
	margin: 28px calc(var(--pk-gutter) * -1) -24px;
	padding: 14px var(--pk-gutter) calc(20px + env(safe-area-inset-bottom));
	border-top: 1px solid #EEECE6;
	background: var(--pk-white);
	box-shadow: var(--pk-shadow-sheet);
}
.pk-totals { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; color: #45454F; font-size: 14.5px; }
.pk-totals div { display: flex; justify-content: space-between; align-items: baseline; }
.pk-totals dd { margin: 0; }
.pk-totals__free { color: var(--pk-success-ink); font-size: 12.5px; font-weight: 600; }
.pk-totals s { text-decoration-thickness: 2px; }
.pk-totals .is-free { color: var(--pk-success-ink); font-weight: 600; }
.pk-totals__grand { margin-top: 4px; color: var(--pk-ink); }
.pk-totals__grand dt { font-size: 15.5px; font-weight: 500; }
.pk-totals__grand dd { font-size: 26px; font-weight: 600; }
.pk-summary__send { min-height: 58px; border-radius: 18px; font-size: 17px; }
.pk-summary__send:disabled { background: #ECEAE4; color: #45454F; font-size: var(--pk-fs-md); cursor: not-allowed; filter: none; }

/* ---------- SMS code sheet ---------- */
.pk-verify { padding: 0 22px 30px; }
.pk-verify__top { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.pk-verify__step { color: #5B5B66; font-size: 13px; }
.pk-verify__title { margin: 4px 0 0; font-family: var(--pk-font-display); font-size: 28px; font-weight: 600; line-height: 1.15; }
.pk-verify__lead { margin: 8px 0 22px; color: #45454F; font-size: var(--pk-fs-base); line-height: 1.55; }
.pk-verify__lead bdi { color: var(--pk-ink); font-weight: 500; }
.pk-verify__row { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 20px; font-size: 14px; }
.pk-verify__resend { min-height: 44px; padding: 0; border: 0; background: none; color: var(--pk-ink); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pk-verify__resend:disabled { color: #5B5B66; text-decoration: none; cursor: default; }
.pk-verify__change { min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.pk-verify .pk-btn--block, .pk-login .pk-btn--block { min-height: 58px; border-radius: 18px; font-size: 17px; }
.pk-verify__note { margin: 14px 0 0; padding: 14px 16px; border-radius: 18px; background: var(--pk-cream); color: #3A3A44; font-size: var(--pk-fs-sm); line-height: 1.55; }

/* ---------- Login ---------- */
.pk-login { max-width: 440px; margin-inline: auto; padding: 36px 4px 48px; }
.pk-login__title { margin: 22px 0 0; font-family: var(--pk-font-display); font-size: 30px; font-weight: 600; line-height: 1.15; }
.pk-login__title:focus { outline: none; }
.pk-login__lead { margin: 10px 0 28px; color: #45454F; font-size: 15.5px; line-height: 1.55; }
.pk-login .pk-field__label { margin-top: 0; }
.pk-login .pk-btn--block { margin-top: 16px; }
.pk-login__box { margin: 22px 0 0; padding: 16px; border-radius: 20px; background: var(--pk-white); color: #3A3A44; font-size: 14px; line-height: 1.55; }
.pk-login .pk-codeinput { height: 72px; font-size: 32px; }

/* ---------- Sent ---------- */
.pk-minimal__head { display: flex; justify-content: center; padding: 20px 0 40px; }
.pk-minimal__head .pk-logo img { height: 30px; width: auto; }
.pk-sent { display: flex; flex-direction: column; max-width: 520px; margin-inline: auto; padding: 0 24px 32px; }
.pk-sent__icon { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 44px; background: var(--pk-success-bg); color: var(--pk-success-ink); }
.pk-sent__title { margin: 24px 0 0; font-family: var(--pk-font-display); font-size: 32px; font-weight: 600; line-height: 1.15; }
.pk-sent__lead { margin: 10px 0 0; color: #3A3A44; font-size: var(--pk-fs-md); line-height: 1.55; }
.pk-sent__num { margin: 6px 0 0; color: #5B5B66; font-size: 14px; }
.pk-sent__badge { position: static; display: inline-flex; align-self: flex-start; gap: 6px; height: 32px; margin: 14px 0 0; padding: 0 12px; font-size: 13px; }
.pk-sent__steps { margin: 28px 0 0; padding: 18px; border-radius: 24px; background: var(--pk-white); list-style: none; }
.pk-sent__steps li { display: flex; align-items: center; gap: 12px; min-height: 48px; color: #45454F; font-size: var(--pk-fs-base); }
.pk-sent__steps li > span { display: flex; flex: 0 0 28px; align-items: center; justify-content: center; height: 28px; border: 2px solid #CFCDC6; border-radius: 14px; }
.pk-sent__steps li.is-done > span { border: 0; background: var(--pk-navy); color: var(--pk-white); }
.pk-sent__steps li.is-next { color: var(--pk-ink); }
.pk-sent__steps li.is-next > span { border-color: var(--pk-navy); }
.pk-sent__steps b { color: var(--pk-ink); font-weight: 600; }
.pk-sent__steps small { margin-inline-start: auto; color: #5B5B66; font-size: 13px; }
.pk-sent__summary { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 16px 18px; border-radius: 24px; background: var(--pk-white); font-size: 14.5px; }
.pk-sent__summary div { display: flex; justify-content: space-between; gap: 12px; }
.pk-sent__summary div > span:first-child { flex: 0 0 auto; color: #5B5B66; }
.pk-sent__grand { padding-top: 10px; border-top: 1px solid var(--pk-line); font-weight: 600; }
.pk-sent__grand span:first-child { color: var(--pk-ink) !important; }
.pk-sent__end { text-align: end; }
.pk-sent__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.pk-sent__actions .pk-btn--block { min-height: 58px; border-radius: 18px; font-size: 16.5px; }
.pk-sent__wa { margin-top: 6px; color: #3A3A44; font-size: 14px; text-align: center; }
.pk-sent__wa span { color: var(--pk-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
	.pk-cart {
		grid-template-columns: minmax(0, 1fr) 400px;
		grid-template-areas: "title title" "save save" "main aside";
		gap: 24px 32px;
		align-items: start;
		padding-top: 32px;
		padding-bottom: 72px;
	}
	.pk-cart__title { grid-area: title; font-size: 40px; }
	.pk-cart__save { grid-area: save; margin: 0; }
	.pk-cart__main { grid-area: main; min-width: 0; }
	.pk-lines { margin: 0; padding: 8px 28px 10px; border-radius: var(--pk-r-lg); background: var(--pk-white); }
	.pk-lines__head { align-items: center; justify-content: space-between; height: 52px; color: var(--pk-muted); font-size: 14px; }
	.pk-line { grid-template-columns: 96px minmax(0, 1fr) auto auto 40px; grid-template-areas: "img info qty total remove"; gap: 20px; padding: 18px 0; border-top: 1px solid var(--pk-line); border-bottom: 0; }
	.pk-line__img { width: 96px; height: 96px; background: var(--pk-cream); }
	.pk-line__img img { width: 66px; height: 66px; }
	.pk-line__name { font-size: 15.5px; font-weight: 500; line-height: 1.4; }
	.pk-line__meta { display: block; }
	.pk-line__qty { height: 44px; border-width: 1px; }
	.pk-line__total { min-width: 80px; font-size: 16.5px; text-align: end; }
	.pk-line__remove { align-self: center; width: 40px; height: 40px; margin: 0; }
	.pk-details { margin-top: 20px; padding: 24px 28px 28px; border-radius: var(--pk-r-lg); background: var(--pk-white); }
	.pk-details .pk-input { background: var(--pk-cream); border-width: 1px; }
	.pk-details .pk-phonecard { background: var(--pk-cream); }

	.pk-summary {
		grid-area: aside;
		position: sticky;
		top: calc(var(--pk-header-h) + 72px);
		margin: 0;
		padding: 26px;
		border: 0;
		border-radius: var(--pk-r-lg);
		box-shadow: none;
	}
	.pk-summary__title { margin: 0; font-family: var(--pk-font-display); font-size: 24px; font-weight: 600; }
	.pk-summary__met { margin: 18px 0 0; padding: 14px 16px; border-radius: 18px; background: var(--pk-success-bg); color: var(--pk-success-ink); font-size: 14px; font-weight: 500; }
	.pk-summary__met[hidden] { display: none; }
	.pk-summary__prog { margin: 16px 0 0; color: #3A3A44; font-size: 14px; }
	.pk-summary__bar { position: relative; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--pk-line); }
	.pk-summary__bar span { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 4px; background: var(--pk-blue); transition: inline-size .3s var(--pk-ease); }
	.pk-totals { gap: 10px; margin: 22px 0 0; color: var(--pk-ink); font-size: var(--pk-fs-base); }
	.pk-totals__grand { padding-top: 12px; border-top: 1px solid var(--pk-line); }
	.pk-totals__grand dt, .pk-totals__grand dd { font-size: 18px; font-weight: 600; }
	.pk-summary__send { margin-top: 22px; border-radius: 20px; font-size: 16.5px; }
	.pk-summary__note { margin: 14px 0 0; color: var(--pk-muted); font-size: var(--pk-fs-sm); line-height: 1.6; text-align: center; }
}
.pk-optin { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 14px; line-height: 1.5; color: #3A3A44; cursor: pointer; }
.pk-optin--summary { margin-top: 20px; margin-bottom: 4px; }
.pk-optin input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pk-navy); }
.pk-summary__legal { margin: 10px 0 0; color: var(--pk-muted); font-size: 12.5px; line-height: 1.5; text-align: center; }
.pk-summary__legal a { color: var(--pk-ink); text-decoration: underline; text-underline-offset: 2px; }
