/* Gawistik Fotoprint – produktside. Accentfarven kan overskrives med --gfp-accent. */

.gfp-product form.cart .quantity { display: none !important; }
.gfp-product form.cart { display: block; }

.gfp {
	--gfp-accent: var(--primary, #2e7d32);
	color: inherit;
	--gfp-line: rgba(0, 0, 0, .18);
	--gfp-soft: rgba(0, 0, 0, .04);
	--gfp-good: #2e7d32;
	--gfp-warn: #b26a00;
	--gfp-bad: #c62828;
	display: grid;
	gap: 18px;
	margin: 0 0 20px;
	width: 100%;
	font-size: 15px;
}
.gfp *, .gfp *::before, .gfp *::after { box-sizing: border-box; }
.gfp [hidden] { display: none !important; }

/* Valg */
.gfp-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gfp-field { display: grid; gap: 6px; align-content: start; }
.gfp-label { font-weight: 600; font-size: 14px; }
.gfp-size {
	width: 100%; min-height: 44px; padding: 0 12px;
	border: 1px solid var(--gfp-line); border-radius: 8px; background: #fff; font: inherit;
}
.gfp-quality { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gfp-pill {
	min-height: 44px; padding: 0 18px; border: 1px solid var(--gfp-line); border-radius: 999px;
	background: #fff; color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.gfp-pill:hover:not(:disabled) { border-color: var(--gfp-accent); }
.gfp-pill.is-on { border-color: var(--gfp-accent); background: var(--gfp-accent); color: #fff; }
.gfp-pill:disabled { cursor: default; opacity: 1; }
.gfp-hint { font-size: 13px; opacity: .7; }

/* Upload-felt */
.gfp-drop {
	position: relative; display: grid; justify-items: center; gap: 4px; padding: 28px 16px;
	border: 2px dashed color-mix(in srgb, var(--gfp-accent) 35%, transparent); border-radius: 12px; background: #fff;
	text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.gfp-drop:hover, .gfp-drop:focus-within, .gfp-drop.is-over {
	border-color: var(--gfp-accent); background: color-mix(in srgb, var(--gfp-accent) 7%, transparent);
}
.gfp-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.gfp-drop-icon { color: var(--gfp-accent); }
.gfp-drop-title { font-weight: 600; font-size: 16px; }
.gfp-drop-sub { font-size: 13px; opacity: .75; }

/* Værktøjslinje */
.gfp-toolbar {
	display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; font-size: 14px;
}
.gfp-count { font-weight: 600; }
.gfp-bulk { display: inline-flex; align-items: center; gap: 6px; }
.gfp-bulk-qty { width: 64px; min-height: 36px; padding: 0 8px; border: 1px solid var(--gfp-line); border-radius: 6px; font: inherit; }
.gfp-bulk-apply, .gfp-clear, .gfp-retry {
	min-height: 36px; padding: 0 12px; border: 1px solid var(--gfp-line); border-radius: 6px;
	background: #fff; color: inherit; font: inherit; font-size: 13px; cursor: pointer;
}
.gfp-clear { border-color: transparent; background: none; color: var(--gfp-bad); }
.gfp-retry { min-height: 26px; padding: 0 8px; margin-left: 4px; }

/* Billedgitter */
.gfp-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;
	margin: 0; padding: 0; list-style: none;
}
.gfp-grid:empty { display: none; }
.gfp-item { display: grid; gap: 6px; min-width: 0; margin: 0; }
.gfp-stage {
	position: relative; display: grid; place-items: center; aspect-ratio: 1;
	border-radius: 10px; background: var(--gfp-soft); overflow: hidden;
}
.gfp-paper {
	background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); overflow: hidden;
	transition: aspect-ratio .2s, width .2s;
}
.gfp-paper img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gfp-item.is-fit .gfp-paper img { object-fit: contain; }
.gfp-paper img:not([src]) { visibility: hidden; }
.gfp-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .8); overflow: hidden; }
.gfp-bar span { display: block; height: 100%; width: 0; background: var(--gfp-accent); transition: width .2s; }
.gfp-item.is-done .gfp-bar, .gfp-item.is-error .gfp-bar { display: none; }
.gfp-item.is-error .gfp-paper { opacity: .4; }
.gfp-remove {
	position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; padding: 0;
	border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff;
	font-size: 18px; line-height: 28px; cursor: pointer;
}
.gfp-remove:hover { background: var(--gfp-bad); }
.gfp-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gfp-status { font-size: 12px; opacity: .75; min-height: 16px; }
.gfp-status.is-good, .gfp-status.is-warn, .gfp-status.is-bad { opacity: 1; font-weight: 600; }
.gfp-status.is-good { color: var(--gfp-good); }
.gfp-status.is-warn { color: var(--gfp-warn); }
.gfp-status.is-bad { color: var(--gfp-bad); }
.gfp-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.gfp-stepper { display: inline-flex; border: 1px solid var(--gfp-line); border-radius: 8px; overflow: hidden; background: #fff; }
.gfp-stepper button {
	width: 34px; min-height: 36px; padding: 0; border: 0; background: none; color: inherit;
	font-size: 18px; cursor: pointer;
}
.gfp-stepper button:hover { background: var(--gfp-soft); }
.gfp-copies {
	width: 48px; min-height: 36px; padding: 0; border: 0; border-inline: 1px solid var(--gfp-line);
	text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; appearance: textfield;
}
.gfp-copies::-webkit-outer-spin-button, .gfp-copies::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gfp-fit { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; cursor: pointer; user-select: none; }
.gfp-fit input { margin: 0; }

/* Pris */
.gfp-prices {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: end;
	padding: 16px; border: 1px solid var(--gfp-line); border-radius: 12px;
}
.gfp-tier-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; }
.gfp-tier-table th, .gfp-tier-table td { padding: 5px 8px; border: 0; text-align: left; background: none; }
.gfp-tier-table th { font-size: 12px; font-weight: 600; opacity: .7; }
.gfp-tier-table td:last-child, .gfp-tier-table th:last-child { text-align: right; }
.gfp-tier-table tr.is-on td { background: color-mix(in srgb, var(--gfp-accent) 12%, transparent); font-weight: 700; }
.gfp-tier-table tr.is-on td:first-child { border-radius: 6px 0 0 6px; }
.gfp-tier-table tr.is-on td:last-child { border-radius: 0 6px 6px 0; }
.gfp-summary { display: grid; gap: 4px; text-align: right; }
.gfp-summary-line { font-size: 14px; opacity: .75; }
.gfp-total { font-size: 28px; font-weight: 700; line-height: 1.1; }
.gfp-nudge {
	justify-self: end; margin-top: 6px; padding: 6px 10px; border-radius: 6px; font-size: 13px;
	background: color-mix(in srgb, var(--gfp-accent) 10%, transparent); color: var(--gfp-accent);
}

.gfp-message { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; background: var(--gfp-soft); }
.gfp-message.is-error { background: #fdecea; color: var(--gfp-bad); }
.gfp-message.is-warn { background: #fff4e5; color: #8a4b00; }
.gfp-message.is-ok { background: #edf7ed; color: var(--gfp-good); }

.gfp-product .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }

/* Temaer (fx Bricks) styler alle knapper i "læg i kurv"-elementet med ID-selektorer – derfor !important. */
.gfp button {
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	text-align: center !important; gap: 0 !important; min-width: 0 !important;
	margin: 0 !important; line-height: 1.2 !important; font-weight: 500 !important; letter-spacing: normal !important;
	text-transform: none !important; box-shadow: none !important; width: auto !important;
}
.gfp .gfp-pill {
	padding: 0 18px !important; border: 1px solid var(--gfp-line) !important; border-radius: 999px !important;
	background: #fff !important; color: inherit !important; font-size: 15px !important;
}
.gfp .gfp-pill:hover:not(:disabled) { border-color: var(--gfp-accent) !important; }
.gfp .gfp-pill.is-on { border-color: var(--gfp-accent) !important; background: var(--gfp-accent) !important; color: #fff !important; }
.gfp .gfp-bulk-apply, .gfp .gfp-retry {
	padding: 0 12px !important; border: 1px solid var(--gfp-line) !important; border-radius: 6px !important;
	background: #fff !important; color: inherit !important; font-size: 13px !important;
}
.gfp .gfp-retry { padding: 0 8px !important; }
.gfp .gfp-clear { padding: 0 4px !important; border: 0 !important; background: none !important; color: var(--gfp-bad) !important; font-size: 13px !important; }
.gfp .gfp-stepper button {
	padding: 0 !important; border: 0 !important; border-radius: 0 !important;
	background: #fff !important; color: inherit !important; font-size: 18px !important;
}
.gfp .gfp-stepper button:hover { background: color-mix(in srgb, var(--gfp-accent) 8%, #fff) !important; }
.gfp .gfp-remove {
	width: 28px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
	background: rgba(0, 0, 0, .6) !important; color: #fff !important; font-size: 18px !important; line-height: 28px !important;
}
.gfp .gfp-remove:hover { background: var(--gfp-bad) !important; }
.gfp .gfp-stepper button { width: 34px !important; }
.gfp .gfp-label, .gfp .gfp-drop, .gfp .gfp-fit {
	color: inherit !important; opacity: 1 !important; text-transform: none !important; letter-spacing: normal !important;
}
.gfp .gfp-label { font-size: 14px !important; font-weight: 600 !important; margin: 0 !important; }
.gfp .gfp-drop { margin: 0 !important; font-weight: 400 !important; }
.gfp .gfp-fit { font-size: 12px !important; margin: 0 !important; font-weight: 400 !important; }

/* Skabeloner der skjuler standardknappen (fx Lumise-skabelonen i Bricks) – vis den på fotoprint. */
.gfp-product form.cart .single_add_to_cart_button { display: inline-flex !important; }

/* Flere kilder: telefon og events */
.gfp-sources { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -6px; }
.gfp .gfp-src {
	display: inline-flex !important; align-items: center !important; gap: 8px !important;
	min-height: 42px; padding: 0 16px !important; border: 1px solid var(--gfp-line) !important; border-radius: 999px !important;
	background: #fff !important; color: inherit !important; font-size: 14px !important; font-weight: 500 !important;
	line-height: 1.2 !important; text-decoration: none !important; cursor: pointer; width: auto !important;
}
.gfp .gfp-src:hover { border-color: var(--gfp-accent) !important; color: var(--gfp-accent) !important; }
.gfp .gfp-src svg { color: var(--gfp-accent); flex: none; }
.gfp .gfp-src-login { border-style: dashed !important; }

/* Beskæring */
.gfp-crop { font-size: 12px; opacity: .7; min-height: 16px; }
.gfp-crop.is-crop { opacity: 1; color: var(--gfp-warn); }

/* Modal (ligger direkte i body – udenfor temaets knap-regler) */
html.gfp-modal-open { overflow: hidden; }
.gfp-modal {
	--gfp-accent: var(--primary, #2e7d32);
	position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center;
	padding: 16px; background: rgba(20, 12, 8, .55); font-size: 15px; color: #2e1f18;
}
.gfp-modal *, .gfp-modal *::before, .gfp-modal *::after { box-sizing: border-box; }
.gfp-modal-box {
	position: relative; width: 100%; max-width: 380px; max-height: calc(100vh - 32px); overflow: auto;
	padding: 28px 24px 24px; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.gfp-modal.is-wide .gfp-modal-box { max-width: 760px; text-align: left; }
.gfp-modal-title { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.gfp-modal p { margin: 0 0 14px; line-height: 1.45; color: #5a4a42; }
.gfp-modal button { font: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; margin: 0; }
.gfp-modal-close {
	position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; padding: 0 !important;
	border: 0 !important; border-radius: 50% !important; background: transparent !important; color: #8a7a72 !important;
	font-size: 26px !important; line-height: 1 !important; cursor: pointer;
}
.gfp-modal-close:hover { background: #f3ece8 !important; }
.gfp-modal-status { font-size: 14px; color: var(--gfp-accent) !important; }
.gfp-qr { width: 240px; max-width: 100%; aspect-ratio: 1; margin: 6px auto 14px; display: grid; place-items: center; color: #8a7a72; }
.gfp-qr svg { width: 100%; height: auto; display: block; }
.gfp-qr-alt { font-size: 12px !important; }
.gfp-qr-alt a { color: #8a7a72; word-break: break-all; }

.gfp-ev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gfp-ev {
	display: grid !important; gap: 4px; padding: 0 0 10px !important; border: 1px solid #e6dcd6 !important; border-radius: 12px !important;
	background: #fff !important; color: inherit !important; text-align: left; cursor: pointer; overflow: hidden;
}
.gfp-ev:hover { border-color: var(--gfp-accent) !important; }
.gfp-ev-cover { display: block; aspect-ratio: 4 / 3; background: #f3ece8 center / cover; }
.gfp-ev-name { padding: 0 10px; font-weight: 600; font-size: 14px; }
.gfp-ev-meta { padding: 0 10px; font-size: 12px; color: #8a7a72; }
.gfp-ev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gfp-ev-title { flex: 1; text-align: center; }
.gfp-link { padding: 4px 0 !important; border: 0 !important; background: none !important; color: var(--gfp-accent) !important; font-size: 14px !important; cursor: pointer; }
.gfp-ev-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px;
	max-height: min(60vh, 520px); overflow: auto; padding: 2px;
}
.gfp-ev-grid > p { grid-column: 1 / -1; }
.gfp-ev-photo {
	position: relative; aspect-ratio: 1; padding: 0 !important; border: 0 !important; border-radius: 8px !important;
	background: #f3ece8 !important; overflow: hidden; cursor: pointer;
}
.gfp-ev-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gfp-ev-heic { display: grid; place-items: center; height: 100%; font-size: 12px; font-weight: 600; color: #8a7a72; }
.gfp-ev-photo[aria-pressed="true"] { outline: 3px solid var(--gfp-accent); outline-offset: -3px; }
.gfp-ev-photo[aria-pressed="true"]::after {
	content: "✓"; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
	display: grid; place-items: center; background: var(--gfp-accent); color: #fff; font-size: 14px; font-weight: 700;
}
.gfp-ev-foot {
	position: sticky; bottom: -24px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin: 12px -24px -24px; padding: 14px 24px; border-top: 1px solid #eee; background: #fff;
}
.gfp-ev-count { font-size: 14px; color: #5a4a42; }
.gfp-ev-add {
	min-height: 44px; padding: 0 20px !important; border: 0 !important; border-radius: 8px !important;
	background: var(--gfp-accent) !important; color: #fff !important; font-weight: 600 !important; cursor: pointer;
}
.gfp-ev-add:disabled { opacity: .45; cursor: not-allowed; }

/* Kurv */
.gfp-cart-thumb { object-fit: cover; aspect-ratio: 1; }

@media (max-width: 600px) {
	.gfp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.gfp-prices { grid-template-columns: 1fr; }
	.gfp-summary { text-align: left; }
	.gfp-nudge { justify-self: start; }
	.gfp-fit { font-size: 11px; }
}
