/* Binjimmy Studio customer editor (/cipta-kad/) and manage page (/urus-kad/). Phone first. */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond.woff") format("woff"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff") format("woff"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "BJS Kufi"; src: url("../fonts/sets/reemkufi.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "BJS Arab"; src: url("../fonts/sets/amiri.woff") format("woff"); font-display: swap; }
@font-face { font-family: "BJS Ruqah"; src: url("../fonts/sets/arefruqaa.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Great Vibes"; src: url("../fonts/great-vibes.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
	--bg: #FAF6EC;
	--panel: #FFFFFF;
	--ink: #2E2A22;
	--muted: #7A705E;
	--line: #E6DCC4;
	--green: #1F3D2E;
	--green-ink: #F3E6BF;
	--gold: #B08A36;
	--danger: #A63D3D;
	--ok: #2F6B45;
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--script: "Great Vibes", cursive;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body.ed {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
}
body.ed.ed--scroll { overflow: auto; height: auto; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Top bar */
.ed-top {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
	border-bottom: 1px solid var(--line);
	background: var(--bg);
	z-index: 5;
}
.ed-brand img { display: block; max-height: 32px; width: auto; }
.ed-brand { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); text-decoration: none; }
.ed-chips { display: flex; gap: 6px; }
.ed-chip { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; white-space: nowrap; }
.ed-timer { font-variant-numeric: tabular-nums; }
.ed-timer.is-low { background: #FBEAEA; border-color: #E9B9B9; color: var(--danger); }

.ed-app { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; position: relative; }
.ed-loading { margin: auto; display: flex; gap: 8px; }
.ed-loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: ed-dot 1s ease-in-out infinite; }
.ed-loading span:nth-child(2) { animation-delay: .15s; }
.ed-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes ed-dot { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }

/* Card preview area */
.ed-preview { flex: 1 1 46%; min-height: 180px; position: relative; background: #EFE7D4; overflow: hidden; }
.ed-preview iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }
.ed-preview-full {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 2;
	font-size: 12px;
	font-weight: 600;
	border: 0;
	border-radius: 999px;
	padding: 8px 12px;
	background: rgba(31, 61, 46, .9);
	color: var(--green-ink);
}

/* Bottom panel with the current step */
.ed-panel {
	flex: 0 1 auto;
	max-height: 56%;
	min-height: 220px;
	display: flex;
	flex-direction: column;
	background: var(--panel);
	border-top: 1px solid var(--line);
	border-radius: 18px 18px 0 0;
	margin-top: -14px;
	position: relative;
	z-index: 3;
	box-shadow: 0 -8px 24px rgba(40, 32, 18, .08);
}
.ed-panel__body { flex: 1 1 auto; overflow-y: auto; padding: 16px 16px 8px; -webkit-overflow-scrolling: touch; }
.ed-panel__nav { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); }
.ed-step-no { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 2px; }
.ed-title { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--green); margin: 0 0 4px; line-height: 1.15; }
.ed-hint { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.45; }

.ed-note {
	font-size: 13px;
	line-height: 1.45;
	background: #FBF5E6;
	border: 1px solid #EEDDB5;
	border-radius: 10px;
	padding: 10px 12px;
	margin: 0 0 14px;
	display: flex;
	gap: 10px;
	align-items: flex-start;
}
.ed-note--warn { background: #FBEAEA; border-color: #E9B9B9; color: #7A2525; }
.ed-note button { margin-left: auto; border: 0; background: none; font-size: 18px; line-height: 1; padding: 0 2px; color: inherit; }

/* Fields */
.ed-field { margin: 0 0 12px; }
.ed-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 5px; }
.ed-label small { font-weight: 400; }
.ed-input {
	width: 100%;
	font-size: 16px;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #FFFDF8;
	outline: none;
}
.ed-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 54, .18); }
textarea.ed-input { resize: vertical; min-height: 92px; line-height: 1.45; }
.ed-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ed-row--contact { grid-template-columns: 1fr 1fr; }
.ed-sub { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.ed-err { font-size: 13px; color: var(--danger); min-height: 18px; margin: 4px 0 0; }
.ed-okmsg { color: var(--ok); }

/* Choice tiles */
.ed-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ed-swatch { border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; text-align: center; font-size: 12px; }
.ed-swatch i { display: block; height: 56px; border-radius: 8px; margin-bottom: 6px; border: 1px solid rgba(0, 0, 0, .06); }
.ed-swatch i.is-img { background-size: cover; background-position: center; }
.ed-swatch[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.ed-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-pill { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: #fff; font-size: 13px; font-weight: 500; }
.ed-pill[aria-pressed="true"] { background: var(--green); color: var(--green-ink); border-color: var(--green); }

.ed-list { display: flex; flex-direction: column; gap: 8px; }
.ed-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	text-align: left;
	width: 100%;
}
.ed-option[aria-pressed="true"], .ed-option.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.ed-option__main { flex: 1; min-width: 0; }
.ed-option__title { font-weight: 600; font-size: 14px; }
.ed-option__sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ed-option__side { font-weight: 600; font-size: 14px; white-space: nowrap; }
.ed-play { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #FBF5E6; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.ed-play svg { width: 14px; height: 14px; }
.ed-check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.is-on .ed-check { background: var(--green); border-color: var(--green); color: #fff; }
.ed-check svg { width: 14px; height: 14px; }

/* Programme rows */
.ed-prog { display: grid; grid-template-columns: 124px 1fr 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
.ed-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; }

/* Stepper */
.ed-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.ed-stepper button { width: 48px; height: 48px; border: 0; background: none; font-size: 22px; color: var(--green); }
.ed-stepper output { min-width: 56px; text-align: center; font-size: 20px; font-weight: 600; }

/* Uploads */
.ed-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ed-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #F1EADA; }
.ed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-thumb .ed-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; font-size: 16px; background: rgba(0, 0, 0, .55); color: #fff; border: 0; }
.ed-thumb--busy { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.ed-add {
	aspect-ratio: 1;
	border: 1.5px dashed #D6C79F;
	border-radius: 10px;
	background: #FFFDF8;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 12px;
	color: var(--muted);
}
.ed-add b { font-size: 24px; font-weight: 400; color: var(--gold); }
.ed-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Reorder list */
.ed-sort { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; -webkit-user-select: none; user-select: none; }
.ed-sort li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 10px 10px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	font-weight: 500;
	touch-action: auto;
	position: relative;
}
.ed-sort li.is-fixed { background: #F7F2E6; color: var(--muted); }
.ed-sort li.is-drag { z-index: 5; box-shadow: 0 10px 24px rgba(40, 32, 18, .18); border-color: var(--gold); }
.ed-handle {
	margin-left: auto;
	width: 44px;
	height: 40px;
	border: 0;
	background: none;
	color: var(--muted);
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: none;
	cursor: grab;
}
.ed-handle svg { width: 20px; height: 20px; }

/* Link */
.ed-slug { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #FFFDF8; }
.ed-slug span { padding: 11px 0 11px 12px; color: var(--muted); font-size: 14px; white-space: nowrap; display: flex; align-items: center; max-width: 52%; overflow: hidden; text-overflow: ellipsis; }
.ed-slug input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 12px 11px 2px; font-size: 16px; outline: none; }
.ed-slug:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 54, .18); }

/* Summary */
.ed-sum { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.ed-sum div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; }
.ed-sum .ed-sum__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; font-size: 16px; }

/* Buttons */
.ed-btn {
	border: 1px solid var(--line);
	background: #fff;
	color: var(--green);
	border-radius: 999px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 600;
	min-height: 48px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.ed-btn--main { background: var(--green); color: var(--green-ink); border-color: var(--green); flex: 2; }
.ed-btn--wide { width: 100%; }
.ed-btn--wa { background: #1E7A47; border-color: #1E7A47; color: #fff; }
.ed-btn:disabled { opacity: .55; cursor: default; }
.ed-panel__nav .ed-btn { flex: 1; }
.ed-panel__nav .ed-btn--main { flex: 2; }

/* Full-page screens (package picker, waiting, done) */
.ed-page { flex: 1; overflow-y: auto; padding: 22px 18px calc(30px + env(safe-area-inset-bottom)); max-width: 520px; width: 100%; margin: 0 auto; }
.ed-page h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--green); margin: 4px 0 6px; line-height: 1.1; }
.ed-page p.lead { color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.ed-tier { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 16px; margin: 0 0 12px; }
.ed-tier--hot { border: 2px solid var(--gold); }
.ed-tier__top { display: flex; justify-content: space-between; align-items: baseline; }
.ed-tier__name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--green); }
.ed-tier__price { font-size: 20px; font-weight: 700; }
.ed-tier__list { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.ed-tier__tag { display: inline-block; font-size: 11px; font-weight: 600; background: #FBF1DA; color: #7A5A12; border-radius: 999px; padding: 3px 9px; margin-bottom: 6px; }
.ed-box { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px; margin: 0 0 14px; }
.ed-box h2 { font-family: var(--serif); font-size: 20px; color: var(--green); margin: 0 0 8px; }
.ed-linkline { display: flex; gap: 8px; align-items: center; }
.ed-linkline code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; background: #FBF5E6; border-radius: 8px; padding: 10px; }
.ed-stack { display: flex; flex-direction: column; gap: 10px; }
.ed-big-ok { width: 64px; height: 64px; border-radius: 50%; background: #E7F1EA; color: var(--ok); display: flex; align-items: center; justify-content: center; margin: 6px 0 10px; }
.ed-big-ok svg { width: 30px; height: 30px; }

/* Full-card overlay */
.ed-full { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; }
.ed-full iframe { flex: 1; border: 0; width: 100%; background: var(--bg); }
.ed-full__bar { display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); }
.ed-full__bar .ed-btn { flex: 1; }

/* Expired overlay */
.ed-block { position: fixed; inset: 0; z-index: 60; background: rgba(250, 246, 236, .97); display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.ed-block h2 { font-family: var(--serif); font-size: 28px; color: var(--green); margin: 0 0 8px; }
.ed-block p { color: var(--muted); margin: 0 0 18px; }

.ed-toast {
	position: fixed;
	left: 50%;
	top: calc(64px + env(safe-area-inset-top));
	transform: translateX(-50%);
	z-index: 70;
	background: rgba(20, 24, 22, .92);
	color: #fff;
	font-size: 13px;
	padding: 10px 16px;
	border-radius: 999px;
	max-width: 90vw;
}

/* Manage page tables */
.ed-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 12px; }
.ed-stat { background: #FBF5E6; border-radius: 10px; padding: 10px 12px; }
.ed-stat b { display: block; font-size: 22px; color: var(--green); }
.ed-stat span { font-size: 12px; color: var(--muted); }
.ed-rows { list-style: none; margin: 0; padding: 0; }
.ed-rows li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.ed-rows li:last-child { border-bottom: 0; }
.ed-rows small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ed-yes { color: var(--ok); font-weight: 600; }
.ed-no { color: var(--danger); font-weight: 600; }
.ed-link-btn { border: 0; background: none; color: var(--danger); font-size: 13px; padding: 4px; }

@media (min-width: 760px) {
	.ed-app--split { flex-direction: row; }
	.ed-app--split .ed-preview { flex: 1 1 auto; }
	.ed-app--split .ed-panel { width: 420px; max-height: none; margin-top: 0; border-radius: 0; border-top: 0; border-left: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Payment instructions on the "Pesanan diterima" screen */
.ed-pay-amount { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; }
.ed-pay-amount b { font-size: 24px; color: var(--green, #1F3D2E); }
.ed-pay-acc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ed-pay-acc small { display: block; color: #7A705E; font-size: 12px; }
.ed-pay-acc b { display: block; font-size: 18px; letter-spacing: .04em; margin: 2px 0; }
.ed-pay-qr { display: block; width: min(220px, 70%); margin: 14px auto 4px; border-radius: 10px; border: 1px solid var(--line); }
.ed-pay .ed-btn--wa { margin-top: 10px; }
.ed-pay .ed-btn--wa { text-align: center; justify-content: center; }

/* Hiasan choices in the first step */
.ed-orns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ed-orn { border: 1px solid var(--line); border-radius: 12px; padding: 6px 4px 6px; background: #fff; text-align: center; font-size: 11px; line-height: 1.25; color: inherit; }
.ed-orn__pic { display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 8px; background: #FAF6EC; color: var(--gold); margin-bottom: 5px; overflow: hidden; }
.ed-orn__pic svg { width: 54px; height: 54px; align-self: flex-start; margin-right: auto; }
.ed-orn__pic--none { font-size: 18px; color: #B9AE95; }
.ed-orn[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }

/* Font choices in the first step */
.ed-fonts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ed-font { border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px 7px; background: #fff; text-align: center; color: inherit; }
.ed-font__pic { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 8px; background: #FAF6EC; color: var(--green); font-size: 21px; line-height: 1; white-space: nowrap; overflow: hidden; margin-bottom: 5px; padding: 0 4px; }
.ed-font__name { font-size: 12px; }
.ed-font[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }

.ed-tier__desc { margin: 4px 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; color: #7A705E; }
.ed-agree { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.ed-agree input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); }
.ed-agree a { color: var(--green); font-weight: 600; }

/* Random button in the first step */
.ed-random-row { display: flex; justify-content: flex-end; margin: -4px 0 -6px; }
.ed-random { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px 8px 12px; border: 1px solid var(--gold); border-radius: 999px; background: #fff; color: var(--green); font: 600 13px/1 var(--sans); letter-spacing: .03em; cursor: pointer; }
.ed-random:active { background: #FAF6EC; }
.ed-random__ic { display: inline-flex; width: 20px; height: 20px; color: var(--gold); }
.ed-random__ic svg { width: 100%; height: 100%; }
.ed-random.is-rolling .ed-random__ic { animation: ed-roll .5s ease; }
@keyframes ed-roll { 0% { transform: rotate(0); } 60% { transform: rotate(250deg) scale(1.15); } 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ed-random.is-rolling .ed-random__ic { animation: none; } }

/* Bismillah choices */
.ed-bis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ed-bis__opt { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px 7px; background: #fff; text-align: center; color: inherit; }
.ed-bis__pic { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 8px; background: #FAF6EC; color: var(--green); font-family: "BJS Arab", serif; font-size: 12px; white-space: nowrap; overflow: hidden; margin-bottom: 5px; }
.ed-bis__pic--kufi { font-family: "BJS Kufi", "BJS Arab", serif; font-weight: 600; font-size: 12px; color: var(--gold); }
.ed-bis__pic--ruqah { font-family: "BJS Ruqah", "BJS Arab", serif; font-size: 13px; color: var(--gold); }
.ed-bis__pic--none { font-family: inherit; color: #B9AE95; }
.ed-bis__name { font-size: 12px; }
.ed-bis__opt[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }

.ed-bis[hidden] { display: none; }
.ed-swrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ed-swrow .ed-sub { margin-right: auto; }
.ed-switch { position: relative; flex: none; width: 50px; height: 30px; border-radius: 30px; border: 0; padding: 0; background: #D9D2C3; transition: background .2s; }
.ed-switch__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.ed-switch[aria-checked="true"] { background: var(--green); }
.ed-switch[aria-checked="true"] .ed-switch__knob { transform: translateX(20px); }

/* Title row with the guide button */
.ed-titlerow { display: flex; align-items: center; gap: 8px; }
.ed-help { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--gold); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ed-help svg { width: 17px; height: 17px; }

/* Draft links under the main button */
.ed-draftlinks { flex: 1 0 100%; display: flex; justify-content: center; gap: 24px; margin-top: -2px; }
.ed-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 2px; font-size: 13px; color: #5E5747; }
.ed-link span { display: inline-flex; }
.ed-link svg { width: 15px; height: 15px; }
.ed-link--red { color: #B4483C; }

/* Delete confirmation */
.ed-modal { position: fixed; inset: 0; z-index: 200; background: rgba(15, 22, 18, .6); display: flex; align-items: center; justify-content: center; padding: 22px; }
.ed-modal__card { width: 100%; max-width: 360px; background: #fff; border-radius: 20px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.ed-modal__ic { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: #FBE9E6; color: #B4483C; display: flex; align-items: center; justify-content: center; }
.ed-modal__ic svg { width: 26px; height: 26px; }
.ed-modal h3 { margin: 0 0 6px; font-size: 18px; color: #2B2723; }
.ed-modal p { margin: 0; font-size: 14px; line-height: 1.55; color: #4A4336; }
.ed-modal__row { display: flex; gap: 10px; margin-top: 18px; }
.ed-modal__btn { flex: 1; padding: 12px; border-radius: 24px; border: 0; background: #F3EEE3; color: #2B2723; font-size: 15px; font-weight: 600; }
.ed-modal__btn--red { background: #B4483C; color: #fff; }
.ed-modal__btn:disabled { opacity: .7; }

/* First-time guide */
.ed-tour { position: fixed; inset: 0; z-index: 210; }
.ed-tour__hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(15, 22, 18, .62), 0 0 0 3px #D9B76A; transition: all .35s ease; pointer-events: none; }
.ed-tour__bub { position: fixed; background: #fff; border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 12px 34px rgba(0, 0, 0, .28); color: #2B2723; transition: top .35s ease, left .35s ease; }
.ed-tour__t { display: block; font-size: 15px; color: var(--green); margin-bottom: 3px; }
.ed-tour__b { margin: 0; font-size: 14px; line-height: 1.5; }
.ed-tour__row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.ed-tour__n { font-size: 12px; color: #9A8F79; }
.ed-tour__skip { border: 0; background: none; font-size: 13px; color: #7A705E; margin-right: 8px; padding: 8px 6px; }
.ed-tour__go { border: 0; background: var(--green); color: var(--green-ink); border-radius: 20px; padding: 8px 16px; font-size: 13px; font-weight: 600; }
.ed-tour__arrow { position: absolute; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
.ed-tour__arrow.is-up { top: -7px; }
.ed-tour__arrow.is-down { bottom: -7px; }
.ed-tour__arrow[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .ed-tour__hole, .ed-tour__bub { transition: none; } }

/* Required fields: grey button until filled, red box and a line under it when missing */
.ed-btn--main.is-off { background: #CFC8B8; border-color: #CFC8B8; color: #6F6858; }
.ed-btn.is-shake { animation: ed-shake .4s ease; }
@keyframes ed-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.ed-input.is-bad, .ed-slug.is-bad { border-color: #C0473B; box-shadow: 0 0 0 3px rgba(192, 71, 59, .15); }
.ed-fielderr { margin: 6px 0 0; font-size: 13px; color: #B4483C; }
.ed-agree input.is-bad { outline: 2px solid #C0473B; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ed-btn.is-shake { animation: none; } }

/* Step number opens the list of steps */
.ed-step-jump { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 4px 10px 4px 11px; font-family: inherit; cursor: pointer; margin-bottom: 6px; }
.ed-step-jump i { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.ed-steps { position: fixed; inset: 0; z-index: 205; background: rgba(15, 22, 18, .45); display: flex; align-items: flex-end; justify-content: center; }
.ed-steps__sheet { width: 100%; max-width: 520px; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 14px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); }
.ed-steps__sheet:before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: #DDD4C2; margin: 0 auto 12px; }
.ed-steps__t { margin: 0 6px 8px; font-size: 15px; font-weight: 600; color: var(--green); }
.ed-steps__row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 11px 10px; border-radius: 12px; font: inherit; font-size: 14px; color: #2B2723; text-align: left; }
.ed-steps__row em { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #F1ECE1; color: #7A705E; flex: none; }
.ed-steps__row small { margin-left: auto; font-size: 12px; color: #9A8F79; }
.ed-steps__row.is-ok em { background: var(--green); color: var(--green-ink); }
.ed-steps__row.is-cur { background: #FAF4E4; font-weight: 600; }
.ed-steps__row.is-cur em { background: var(--gold); color: #fff; }
.ed-steps__row.is-bad em { background: #F6DAD5; color: #B4483C; }
.ed-steps__row.is-bad small { color: #B4483C; }
.ed-steps__row:disabled { color: #B3AA97; }
.ed-steps__note { margin: 8px 6px 0; font-size: 12px; color: #9A8F79; }

/* Ready-made styles */
.ed-random-row--head { justify-content: space-between; align-items: center; margin: 0 0 4px; }
.ed-random-row--head .ed-sub { margin: 0; }
.ed-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ed-preset { border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 8px; background: #fff; text-align: center; color: inherit; min-width: 0; }
.ed-preset[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.ed-preset__pic { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 108px; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; margin-bottom: 6px; }
.ed-preset__o { position: absolute; width: 52%; opacity: .95; }
.ed-preset__o svg { display: block; width: 100%; height: auto; }
.ed-preset__o--tl { top: 0; left: 0; }
.ed-preset__o--br { bottom: 0; right: 0; transform: scale(-1, -1); }
.ed-preset__bis { position: relative; font-family: "BJS Arab", serif; font-size: 10px; line-height: 1.5; white-space: nowrap; }
.ed-preset__bis.ed-bis__pic--kufi { font-family: "BJS Kufi", "BJS Arab", serif; font-weight: 600; }
.ed-preset__bis.ed-bis__pic--ruqah { font-family: "BJS Ruqah", "BJS Arab", serif; }
.ed-preset__k { position: relative; font-size: 6px; letter-spacing: .3em; text-transform: uppercase; margin: 2px 0 1px; }
.ed-preset__n { position: relative; font-size: 19px; line-height: 1.1; padding: 0 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-preset__name { display: block; font-size: 13px; font-weight: 600; }
.ed-own__tog { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; width: 100%; margin: 14px 0 0; padding: 12px 14px; border: 1px dashed #CDBF9E; border-radius: 14px; background: #FFFDF7; text-align: left; color: var(--green); font: inherit; }
.ed-own__tog span { font-size: 14px; font-weight: 600; }
.ed-own__tog small { flex: 1 0 100%; order: 3; font-size: 12px; color: #9A8F79; }
.ed-own__tog i { margin-left: auto; width: 8px; height: 8px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.ed-own__tog[aria-expanded="true"] i { transform: rotate(-135deg); }
.ed-own[hidden] { display: none; }

/* Quick picks under a field (invitation texts, usual times) */
.ed-quick-lbl { margin: 10px 0 6px; font-size: 12px; color: #7A705E; }
.ed-chipset--quick .ed-pill { font-size: 13px; padding: 8px 12px; }

/* Map check in the venue step */
.ed-map { height: 190px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #F3EEE3; display: flex; align-items: center; justify-content: center; }
.ed-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.ed-map__empty { font-size: 13px; color: #9A8F79; padding: 0 16px; text-align: center; }
.ed-map__cap { margin-top: 6px; }
.ed-places__box { display: block; width: 100%; margin-top: 4px; }
.ed-places[hidden] { display: none; }

/* Final check before sending */
.ed-check-list { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; margin-bottom: 6px; }
.ed-check-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px 11px 14px; border: 0; border-top: 1px solid #F1EBDD; background: none; font: inherit; font-size: 14px; color: #2B2723; text-align: left; }
.ed-check-row:first-child { border-top: 0; }
.ed-check-row i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; background: var(--green); color: var(--green-ink); }
.ed-check-row b { font-weight: 600; }
.ed-check-row span { margin-left: auto; color: #7A705E; font-size: 13px; text-align: right; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-check-row u { text-decoration: none; color: var(--gold); font-size: 18px; line-height: 1; }
.ed-check-row.is-warn i { background: #F6E3B8; color: #8A6416; }
.ed-check-row.is-warn span { color: #8A6416; }
.ed-check-row.is-bad i { background: #F6DAD5; color: #B4483C; }
.ed-check-row.is-bad span { color: #B4483C; }

.ed-map__cap.is-warn { color: #8A6416; }

/* Paid card: tabs, Simpan, save state */
.ed-tabs { display: flex; gap: 8px; overflow-x: auto; margin: -4px -16px 12px; padding: 2px 16px 10px; border-bottom: 1px solid #EFE8DA; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ed-tabs::-webkit-scrollbar { display: none; }
.ed-tab { flex: none; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: #fff; font: inherit; font-size: 13px; color: #2B2723; }
.ed-tab[aria-selected="true"] { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.ed-savestate { flex: 1 0 100%; margin: -2px 0 0; text-align: center; font-size: 12px; color: #9A8F79; }
.ed-savestate.is-saved { color: #3E7A50; }
.ed-savestate.is-dirty { color: #8A6416; }
.ed-modal__btn--main { background: var(--green); color: var(--green-ink); }
.ed-modal__x { display: block; margin: 12px auto 0; border: 0; background: none; font: inherit; font-size: 13px; color: #7A705E; }
