/* ==========================================================================
   JGG Products – payment page. Same look as the tour checkout (foxiz-child/assets/css/jgg-checkout.css),
   own copy so the plugin doesn't depend on the theme. Everything is scoped to .jgg-co / .jgg-pay-page.
   ========================================================================== */

body.jgg-pay-page { margin: 0; background: #fff; }
.jgg-pay-top { display: flex; justify-content: center; padding: 14px 16px 0; }
.jgg-pay-top img { display: block; width: 170px; height: auto; }

.jgg-co {
	--ink: #111;
	--text: #333;
	--muted: #6b6b6b;
	--line: #e2e2e2;
	--gray: #f4f4f4;
	--yellow: #f7ec46;
	--red: #c62828;
	--green: #1e7b34;
	--font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	box-sizing: border-box;
	max-width: 1240px;
	margin: 0 auto 80px;
	padding: 0 24px;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}
.jgg-co *, .jgg-co *::before, .jgg-co *::after { box-sizing: border-box; border-radius: 0 !important; }
.jgg-co p { margin: 0 0 12px; }
.jgg-co button { font-family: inherit; cursor: pointer; }

/* ---------- Steps ---------- */
.jgg-co__steps { display: flex; align-items: center; justify-content: center; gap: 14px; list-style: none; margin: 32px 0 36px; padding: 0; }
.jgg-co__steps > li { list-style: none; margin: 0; padding: 0; }
.jgg-co__steps > li::marker, .jgg-co__steps > li::before { content: none !important; }
.jgg-co__stepdot { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.jgg-co__num { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: 50% !important; font-family: var(--mono); font-size: 13px; background: #fff; }
.jgg-co__stepdot.is-current { color: var(--ink); }
.jgg-co__stepdot.is-current .jgg-co__num { background: #000; border-color: #000; color: var(--yellow); }
.jgg-co__stepdot.is-done { color: var(--ink); cursor: pointer; }
.jgg-co__stepdot.is-done .jgg-co__num { background: var(--yellow); border-color: #000; color: #000; }
.jgg-co__stepline { width: min(260px, 22vw); height: 2px; background: var(--line); }

/* ---------- Layout ---------- */
.jgg-co__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 72px; align-items: start; }
.jgg-co__main { min-width: 0; max-width: 640px; }
.jgg-co__aside { position: sticky; top: 24px; }
.jgg-co__h { margin: 0 0 10px !important; font-family: var(--font); font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.jgg-co__h:focus { outline: none; }
.jgg-co__sub { color: var(--muted); font-size: 14px; margin-bottom: 18px !important; }
.jgg-co__secure { display: flex; align-items: center; gap: 8px; margin-bottom: 18px !important; font-size: 15px; font-weight: 600; color: var(--green); }
.jgg-co__label { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.jgg-co[data-step="1"] .jgg-co__step--2, .jgg-co[data-step="2"] .jgg-co__step--1 { display: none; }
.jgg-co__step { display: flex; flex-direction: column; }

/* ---------- Fields: square, label on top in mono caps ---------- */
.jgg-co__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.jgg-co__field { position: relative; margin: 0 !important; }
.jgg-co__field--wide { grid-column: 1 / -1; }
.jgg-co__field label { position: absolute; left: 15px; top: 8px; z-index: 3; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.jgg-co input[type=text], .jgg-co input[type=email], .jgg-co input[type=tel], .jgg-co input[type=date], .jgg-co input[type=time], .jgg-co input[type=number], .jgg-co__field select, .jgg-co textarea {
	width: 100%; min-height: 56px; margin: 0; padding: 24px 14px 8px; font-family: var(--font); font-size: 16px; color: var(--ink);
	background: #fff; border: 1.5px solid #8a8a8a; box-shadow: none; outline: none;
}
.jgg-co__field input, .jgg-co__field textarea, .jgg-co__field select { position: relative; z-index: 1; } /* the theme stacks inputs; keep the label above them */
.jgg-co__field select { -webkit-appearance: none; appearance: none; border-radius: 0; color: var(--ink); line-height: 1.2; cursor: pointer; padding-right: 40px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.jgg-co__field input[type=date], .jgg-co__field input[type=time], .jgg-co__field input[type=number], .jgg-co__field select { height: 56px; }
.jgg-co__field[hidden] { display: none; }
.jgg-co__sub2 { margin: 22px 0 12px !important; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.jgg-co__details { padding: 14px 18px; border-top: 1px solid var(--line); }
.jgg-co__details[hidden] { display: none; }
.jgg-co__details dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 14px; }
.jgg-co__details dt { color: var(--muted); }
.jgg-co__details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.jgg-co textarea { min-height: 96px; padding-top: 28px; resize: vertical; }
.jgg-co input:focus, .jgg-co textarea:focus { border-color: #000; box-shadow: 0 0 0 3px var(--yellow); }
.jgg-co .is-bad { border-color: var(--red) !important; }
.jgg-co__err { min-height: 0; margin: 8px 0 !important; font-size: 14px; font-weight: 600; color: var(--red); }
.jgg-co__err:empty { display: none; }

/* ---------- Buttons ---------- (.jgg-co prefix: WP Travel Engine styles every [type=submit]) */
.jgg-co .jgg-co__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 420px; min-height: 56px; margin-top: 10px; padding: 12px 28px;
	font-family: var(--font); font-size: 18px; font-weight: 700 !important; line-height: 1.2; color: var(--yellow) !important; border-radius: 0 !important; box-shadow: none !important; background: #000 !important; border: 2px solid #000 !important;
	text-decoration: none !important; text-transform: none; transition: transform .15s;
}
.jgg-co .jgg-co__btn:hover { transform: translateY(-1px); }
.jgg-co .jgg-co__btn:disabled, .jgg-co .jgg-co__btn.is-busy { opacity: .45; pointer-events: none; }
.jgg-co__fine { margin-top: 12px !important; font-size: 13px; color: var(--muted); }
.jgg-co__link { padding: 0; background: none; border: 0; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Step 2 ---------- */
.jgg-co__recap { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 0 22px; padding: 16px 18px; background: var(--gray); }
.jgg-co__recap-text { margin: 2px 0 0 !important; font-weight: 600; word-break: break-word; }
.jgg-co__element { margin: 0 0 6px; }

/* ---------- Order summary ---------- */
.jgg-co__card { background: #fff; border: 1.5px solid var(--line); }
.jgg-co__trip { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 18px; }
.jgg-co__trip:not(:has(.jgg-co__tripimg)) { grid-template-columns: minmax(0, 1fr); }
.jgg-co__tripimg { display: block; width: 84px; height: 84px; overflow: hidden; background: var(--gray); }
.jgg-co__tripimg img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; }
.jgg-co__tripname { margin: 0 !important; font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.jgg-co__qty { margin: 6px 0 0 !important; font-size: 14px; color: var(--muted); }
.jgg-co__totals { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.jgg-co__table { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.jgg-co__table tr { background: none !important; } /* the theme stripes every table */
.jgg-co__table td { padding: 5px 0; border: 0; font-size: 15px; vertical-align: baseline; background: none; }
.jgg-co__table td:last-child { padding-left: 16px; text-align: right; white-space: nowrap; }
.jgg-co__table .jgg-co__total td { padding: 16px 0 4px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 800; }

/* ---------- "See the price in your currency" (same as the tour checkout) ---------- */
.jgg-co .jgg-fx { margin: 14px 0 0; padding: 14px 18px; border: 1px solid var(--line); background: #fff; }
.jgg-co .jgg-fx__charge { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.jgg-co .jgg-fx__btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 14px 0 0; padding: 12px 16px; background: #fff; border: 2px solid var(--ink); font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
.jgg-co .jgg-fx__btn:hover, .jgg-co .jgg-fx__btn[aria-expanded="true"] { background: var(--ink); color: #fff; }
.jgg-co .jgg-fx__panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.jgg-co .jgg-fx__panel[hidden] { display: none; }
.jgg-co .jgg-fx__label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.jgg-co .jgg-fx__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.jgg-co .jgg-fx__est { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.jgg-co .jgg-fx__note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.jgg-cur { display: inline-block; position: relative; flex: 0 0 auto; }
.jgg-co .jgg-cur__select {
	-webkit-appearance: none; appearance: none; min-width: 104px; height: 36px; margin: 0; padding: 0 32px 0 12px !important;
	font-family: var(--font) !important; font-size: 13px !important; font-weight: 600 !important; line-height: 36px !important; color: #000 !important;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center !important;
	border: 1px solid #cfcfcf !important; box-shadow: none !important; cursor: pointer;
}
.jgg-co .jgg-cur__select:hover { border-color: #000 !important; }
.jgg-co .jgg-cur__select:focus { outline: 2px solid var(--yellow); outline-offset: 0; border-color: #000 !important; }

/* ---------- Result / message pages ---------- */
.jgg-co__msg { padding-top: 48px; }
.jgg-co__grid--result { margin-top: 40px; }
.jgg-co__msg { max-width: 640px; margin: 0 auto; text-align: center; }
.jgg-co__badge { display: inline-block; margin: 0 0 14px !important; padding: 4px 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; background: var(--yellow); color: #000; }

/* ---------- Phones / tablets ---------- */
@media (max-width: 960px) {
	.jgg-co { padding: 0 16px; }
	.jgg-co__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.jgg-co__main { max-width: none; }
	.jgg-co__aside { position: static; order: -1; }
	.jgg-co__aside .jgg-co__h { font-size: 22px; }
	.jgg-co .jgg-co__btn { max-width: none; }
	.jgg-co__grid--result { margin-top: 24px; }
}
@media (max-width: 560px) {
	.jgg-co__h { font-size: 25px; }
	.jgg-co__steps { gap: 10px; margin: 22px 0 24px; }
	.jgg-co__stepline { width: 48px; }
	.jgg-co__row { grid-template-columns: 1fr; }
}
