.gpe {
	--gpe-primary: #0b2559;
	--gpe-accent: #ffd75e;
	--gpe-bg: #eeece8;
	--gpe-surface: #fbfaf7;
	--gpe-border: #9a9a9a;
	--gpe-text: #2b2b2b;
	--gpe-muted: #5d5d5d;
	--gpe-radius: 14px;
	background: var(--gpe-bg);
	border-radius: var(--gpe-radius);
	padding: clamp(20px, 4vw, 48px);
	color: var(--gpe-text);
	box-sizing: border-box;
}
.gpe *, .gpe *::before, .gpe *::after { box-sizing: border-box; }
.gpe button { font: inherit; }

.gpe__title { color: var(--gpe-primary); font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 4px; line-height: 1.15; }
.gpe__subtitle { margin: 0 0 24px; color: var(--gpe-muted); font-size: 17px; }

/* Stepper */
.gpe__steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 28px; flex-wrap: wrap; }
.gpe__steps li { margin: 0; }
.gpe__steps li > * { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--gpe-muted); font-size: 14px; font-weight: 600; }
.gpe__steps b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--gpe-border); font-size: 13px; }
.gpe__steps .is-active > * { color: var(--gpe-primary); background: #fff; border-color: #ddd; }
.gpe__steps .is-active b { background: var(--gpe-primary); color: #fff; border-color: var(--gpe-primary); }
.gpe__steps .is-done b { background: var(--gpe-accent); border-color: var(--gpe-accent); color: var(--gpe-primary); }
.gpe__steps button { cursor: pointer; }
.gpe__steps button:hover { color: var(--gpe-primary); }

/* Layout */
.gpe__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .gpe__grid { grid-template-columns: 1fr; } .gpe__summary { order: -1; } }

.gpe__q { font-size: 20px; color: var(--gpe-primary); margin: 0 0 16px; font-family: Georgia, serif; }
.gpe__label { display: block; font-weight: 600; letter-spacing: .02em; font-size: 15px; margin: 22px 0 10px; color: #444; }
.gpe__label:first-child { margin-top: 0; }
.gpe__hint { color: var(--gpe-muted); margin: -8px 0 16px; font-size: 15px; }

/* Event cards */
.gpe__events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .gpe__events { grid-template-columns: 1fr; } }
.gpe__event { text-align: left; padding: 18px; border-radius: 12px; border: 1.5px solid #d6d3cc; background: var(--gpe-surface); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.gpe__event strong { color: var(--gpe-primary); font-size: 17px; }
.gpe__event span { color: var(--gpe-muted); font-size: 14px; line-height: 1.4; }
.gpe__event:hover { border-color: var(--gpe-primary); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.gpe__event.is-selected { border-color: var(--gpe-primary); background: #fff; box-shadow: inset 0 0 0 1px var(--gpe-primary); }

/* Pills */
.gpe__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.gpe__pill { min-width: 66px; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--gpe-border); background: transparent; font-weight: 700; color: #333; cursor: pointer; }
.gpe__pill:hover { border-color: var(--gpe-primary); }
.gpe__pill.is-selected { background: var(--gpe-primary); border-color: var(--gpe-primary); color: #fff; }
.gpe__exact { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--gpe-muted); }
.gpe__exact input { width: 100px; padding: 8px 10px; border-radius: 8px; border: 1px solid #d0cdc6; background: var(--gpe-surface); }

/* Select */
.gpe__select { position: relative; }
.gpe__select select { width: 100%; appearance: none; -webkit-appearance: none; padding: 14px 44px 14px 14px; border-radius: 6px; border: 1px solid #d0cdc6; background: var(--gpe-surface); font-size: 16px; color: var(--gpe-text); cursor: pointer; }
.gpe__select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #555; border-bottom: 2px solid #555; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* Checks */
.gpe__checks { display: flex; flex-wrap: wrap; gap: 10px; }
.gpe__check { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gpe-border); cursor: pointer; font-weight: 600; font-size: 14px; background: transparent; user-select: none; }
.gpe__check input { position: absolute; opacity: 0; pointer-events: none; }
.gpe__check.is-selected { background: var(--gpe-accent); border-color: var(--gpe-accent); }
.gpe__check:focus-within { outline: 2px solid var(--gpe-primary); outline-offset: 2px; }

/* Buttons */
.gpe__nav { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.gpe__btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border-radius: 6px; border: 1.5px solid var(--gpe-primary); background: var(--gpe-primary); color: #fff !important; font-size: 16px; cursor: pointer; text-decoration: none !important; transition: filter .15s; }
.gpe__btn:hover { filter: brightness(1.15); }
.gpe__btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.gpe__btn--ghost { background: transparent; color: var(--gpe-primary) !important; }
.gpe__btn--accent { background: var(--gpe-accent); border-color: var(--gpe-accent); color: var(--gpe-primary) !important; font-weight: 700; }
.gpe__btn--wide { min-width: min(100%, 370px); }
.gpe__btn--sm { padding: 8px 12px; font-size: 14px; width: 100%; }
.gpe__link { background: none; border: 0; padding: 0; color: var(--gpe-primary); text-decoration: underline; cursor: pointer; font-weight: 600; }

/* Summary */
.gpe__summary { background: #fff; border-radius: 16px; border: 4px solid #fff; box-shadow: 0 12px 30px rgba(0,0,0,.10); overflow: hidden; }
.gpe__summary img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.gpe__summary-body { padding: 20px 22px 22px; background: linear-gradient(135deg, var(--gpe-primary), color-mix(in srgb, var(--gpe-primary) 70%, #4a6bb5)); color: #fff; border-radius: 12px; }
.gpe__summary.has-img .gpe__summary-body { background: #fff; color: var(--gpe-text); border-radius: 0; }
.gpe__eyebrow { display: inline-block; background: var(--gpe-accent); color: var(--gpe-primary); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.gpe__summary dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.gpe__summary dt { opacity: .7; font-size: 14px; }
.gpe__summary dd { margin: 0; font-weight: 700; }

/* Results */
.gpe__results-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.gpe__group { background: var(--gpe-surface); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.gpe__group header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.gpe__group h4 { margin: 0; color: var(--gpe-primary); font-size: 18px; }
.gpe__group header span { color: var(--gpe-muted); font-size: 13px; }
.gpe__products { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gpe__none { margin: 0; color: var(--gpe-muted); font-size: 14px; }

.gpe__card { background: #fff; border: 1.5px solid #e6e3dc; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
.gpe__card.is-selected { border-color: var(--gpe-primary); box-shadow: inset 0 0 0 1px var(--gpe-primary); }
.gpe__img { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #f4f2ee; }
.gpe__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gpe__name { font-size: 14px; font-weight: 600; color: var(--gpe-text) !important; text-decoration: none !important; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.gpe__price { color: var(--gpe-primary); font-weight: 700; font-size: 15px; }
.gpe__price del { opacity: .55; font-weight: 400; margin-right: 4px; }
.gpe__actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.gpe__pick { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.gpe__pick input { accent-color: var(--gpe-primary); width: 16px; height: 16px; }
.gpe__qty { display: flex; border: 1px solid #d0cdc6; border-radius: 6px; overflow: hidden; }
.gpe__qty button { width: 34px; border: 0; background: #f4f2ee; cursor: pointer; font-size: 16px; }
.gpe__qty input { flex: 1; min-width: 0; border: 0; text-align: center; padding: 6px 0; -moz-appearance: textfield; }
.gpe__qty input::-webkit-outer-spin-button, .gpe__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.gpe__bar { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--gpe-primary); color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); margin-top: 8px; }
.gpe__bar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gpe__bar .gpe__btn--ghost { border-color: #fff; color: #fff !important; }
.gpe__msg { font-size: 13px; margin-top: 4px; opacity: .9; }

.gpe__loading, .gpe__empty { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px 20px; color: var(--gpe-muted); text-align: center; }
.gpe__spinner { width: 22px; height: 22px; border: 3px solid #d0cdc6; border-top-color: var(--gpe-primary); border-radius: 50%; animation: gpe-spin .8s linear infinite; }
@keyframes gpe-spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
	.gpe__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gpe__btn--wide { width: 100%; }
	.gpe__bar-actions, .gpe__bar-actions .gpe__btn { width: 100%; }
}
