/* Aksentfarge for gavebevis-sidene: fersken (Ola, 2026-11-13). Fila lastes bare på gavebevis-siden og takkesiden. */
:root { --ngb-accent: #e9a07a; }
/* NDF Gavebevis – stil for skjemaet og hjelpeklasser for Divi-modulene rundt det.
   Farger og former fra dyrsfrihet.no (forsiden og Støtt oss). */
.ndf-gb, .ngb-scope {
	--ngb-green: #7fb95f; --ngb-green-dark: #5f9a41; --ngb-yellow: var(--ngb-accent, #e9a07a);
	--ngb-ink: #1e1d1c; --ngb-beige: #efe9e4; --ngb-cream: #faf7f3;
	--ngb-muted: #666; --ngb-line: #d9d1c9; --ngb-vipps: #ff5b24; --ngb-red: #b3261e;
}
.ndf-gb { background: var(--ngb-beige); padding: clamp(56px, 8vw, 100px) 0; color: var(--ngb-ink); font-family: Poppins, Helvetica, Arial, sans-serif; line-height: 1.7; }
.ndf-gb *, .ndf-gb *::before, .ndf-gb *::after { box-sizing: border-box; }
.ndf-gb .ngb-wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.ndf-gb h2, .ndf-gb h3 { font-family: Poppins, Helvetica, Arial, sans-serif; font-weight: 600; line-height: 1.2; color: var(--ngb-ink); margin: 0; padding: 0; }
.ndf-gb h2 { font-size: clamp(28px, 3.4vw, 40px); }
.ndf-gb p { padding: 0; }
.ndf-gb .ngb-sr { position: absolute; left: -9999px; }
.ndf-gb :focus-visible { outline: 3px solid var(--ngb-yellow); outline-offset: 2px; }

.ndf-gb .ngb-bar { width: 50px; height: 3px; background: var(--ngb-yellow); margin: 14px 0 22px; }
.ndf-gb .ngb-center { margin-left: auto; margin-right: auto; }
.ndf-gb .ngb-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.ndf-gb .ngb-head p { color: var(--ngb-muted); margin: 0; }
.ndf-gb .ngb-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .ndf-gb .ngb-grid { grid-template-columns: 1fr; } }

/* knapper */
.ndf-gb .ngb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border: 0; border-radius: 0; background: var(--ngb-green); color: #fff; font: 600 14px/1 Poppins, sans-serif; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background .2s, transform .15s; margin-top: 6px; }
.ndf-gb .ngb-btn:hover { background: var(--ngb-green-dark); transform: translateY(-1px); }
.ndf-gb .ngb-btn:active { transform: translateY(1px); }
.ndf-gb .ngb-vipps { width: 100%; background: var(--ngb-vipps); letter-spacing: .5px; text-transform: none; font-size: 17px; min-height: 56px; }
.ndf-gb .ngb-vipps:hover { background: #e84a15; }

/* forhåndsvisning */
.ndf-gb .ngb-preview { position: sticky; top: 110px; }
@media (max-width: 900px) { .ndf-gb .ngb-preview { position: static; } }
/* Kortet: stående A5 (148 × 210 mm). Mål i cqi = mm × 100/148, likt PDF-en. */
.ndf-gb .ngb-card { position: relative; aspect-ratio: 148 / 210; width: 100%; max-width: 460px; margin: 0 auto; background: #fbf8f4; box-shadow: 0 18px 40px -18px rgba(30, 29, 28, .45); overflow: hidden; container-type: inline-size; color: #23395d; }
.ndf-gb .ngb-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ndf-gb .ngb-card__text { position: absolute; left: 10.81cqi; top: 80.41cqi; width: 78.38cqi; height: 40.54cqi; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.ndf-gb .ngb-card__kicker { font-size: 1.55cqi; font-weight: 600; letter-spacing: .38cqi; text-transform: uppercase; color: var(--kort, var(--ngb-green-dark)); line-height: 1.4; }
.ndf-gb .ngb-card__to { font-size: 5cqi; font-weight: 600; line-height: 1.15; margin: 2.03cqi 0 2.36cqi; color: #23395d; overflow-wrap: anywhere; }
.ndf-gb .ngb-card__msg { font-size: 2.26cqi; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; color: #3d4451;  text-wrap: pretty; }
.ndf-gb .ngb-card__from { font-size: 2.26cqi; font-weight: 600; margin-top: 2.36cqi; line-height: 1.4; color: #23395d; }
.ndf-gb .ngb-card__foot { position: absolute; left: 27.7cqi; bottom: 6.08cqi; width: 44.6cqi; text-align: center; text-wrap: balance; border-top: .17cqi solid #e2dbd3; padding-top: 1.76cqi; font-size: 1.5cqi; color: #7a7f88; line-height: 1.45; }
.ndf-gb .ngb-card__url { color: #b4b7bd; }
.ndf-gb .ngb-preview__under { margin: 16px 0 0; font-size: 14px; color: var(--ngb-muted); }

/* steg */
.ndf-gb .ngb-steps { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.ndf-gb .ngb-step { background: #fff; border: 1px solid var(--ngb-line); transition: border-color .2s, box-shadow .2s; }
.ndf-gb .ngb-step__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 24px 0; }
.ndf-gb .ngb-step__no { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ngb-muted); }
.ndf-gb .ngb-step h3 { font-size: 22px; padding: 2px 24px 0; }
.ndf-gb .ngb-step__body { padding: 18px 24px 24px; }
.ndf-gb .ngb-step__sum { display: none; padding: 4px 24px 20px; color: var(--ngb-muted); font-size: 15px; }
.ndf-gb .ngb-step__edit { background: none; border: 0; color: var(--ngb-green-dark); font: 600 14px Poppins, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; min-height: 44px; }
.ndf-gb .ngb-step[data-state="active"] { border-color: var(--ngb-ink); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .5); }
.ndf-gb .ngb-step[data-state="done"] .ngb-step__body { display: none; }
.ndf-gb .ngb-step[data-state="done"] .ngb-step__sum { display: block; }
.ndf-gb .ngb-step[data-state="locked"] { opacity: .55; }
.ndf-gb .ngb-step[data-state="locked"] h3 { padding-bottom: 20px; }
.ndf-gb .ngb-step[data-state="locked"] .ngb-step__body { display: none; }
.ndf-gb .ngb-step:not([data-state="done"]) .ngb-step__edit { display: none; }

/* beløp */
.ndf-gb .ngb-fieldset { border: 0; margin: 0; padding: 0; }
.ndf-gb .ngb-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 16px; }
.ndf-gb .ngb-amount__label { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ngb-muted); }
.ndf-gb .ngb-amount__value { font-size: clamp(40px, 5vw, 54px); font-weight: 700; line-height: 1; }
.ndf-gb .ngb-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 480px) { .ndf-gb .ngb-choices { grid-template-columns: repeat(2, 1fr); } }
.ndf-gb .ngb-choice { position: relative; margin: 0; }
.ndf-gb .ngb-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.ndf-gb .ngb-choice span { display: flex; align-items: center; justify-content: center; min-height: 56px; border: 1.5px solid var(--ngb-line); font-weight: 600; font-size: 17px; background: #fff; transition: border-color .15s, background .15s, transform .15s; }
.ndf-gb .ngb-choice:hover span { border-color: var(--ngb-ink); transform: translateY(-2px); }
.ndf-gb .ngb-choice input:checked + span { background: var(--ngb-ink); border-color: var(--ngb-ink); color: #fff; }
.ndf-gb .ngb-choice input:focus-visible + span { outline: 3px solid var(--ngb-yellow); outline-offset: 2px; }
.ndf-gb .ngb-when { display: none; }
.ndf-gb .ngb-when.on { display: block; }
.ndf-gb .ngb-choices + * { margin-top: 12px; }
.ndf-gb .ngb-hint { font-size: 13px; color: var(--ngb-muted); margin: 6px 0 0; line-height: 1.5; }

/* motiv */
.ndf-gb .ngb-motifs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.ndf-gb .ngb-motif { position: relative; cursor: pointer; border: 1.5px solid var(--ngb-line); background: #fff; transition: border-color .15s, transform .15s; margin: 0; }
.ndf-gb .ngb-motif:hover { transform: translateY(-2px); border-color: var(--ngb-ink); }
.ndf-gb .ngb-motif input { position: absolute; opacity: 0; }
.ndf-gb .ngb-motif__img { aspect-ratio: 1.414 / 1; overflow: hidden; }
.ndf-gb .ngb-motif__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ndf-gb .ngb-motif:hover .ngb-motif__img img { transform: scale(1.03); }
.ndf-gb .ngb-motif__name { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-weight: 600; font-size: 15px; }
.ndf-gb .ngb-motif__name i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ngb-line); display: grid; place-items: center; font-style: normal; font-size: 13px; color: #fff; }
.ndf-gb .ngb-motif:has(input:checked) { border-color: var(--ngb-ink); }
.ndf-gb .ngb-motif:has(input:checked) .ngb-motif__name i { background: var(--ngb-green); border-color: var(--ngb-green); }
.ndf-gb .ngb-motif:has(input:checked) .ngb-motif__name i::after { content: "✓"; }
.ndf-gb .ngb-motif:has(input:focus-visible) { outline: 3px solid var(--ngb-yellow); outline-offset: 2px; }

/* felter */
.ndf-gb .ngb-field { margin: 0 0 16px; }
.ndf-gb .ngb-field label, .ndf-gb .ngb-legend { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; color: var(--ngb-ink); }
.ndf-gb .ngb-field input, .ndf-gb .ngb-field textarea, .ndf-gb .ngb-field select { width: 100%; font: 400 16px/1.5 Poppins, sans-serif; padding: 12px 14px; border: 1.5px solid var(--ngb-line); background-color: #fff; color: var(--ngb-ink); border-radius: 0; box-shadow: none; margin: 0; }
.ndf-gb .ngb-field select { padding-right: 40px; appearance: none; min-height: 50px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231e1d1c' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.ndf-gb .ngb-field input:focus, .ndf-gb .ngb-field textarea:focus, .ndf-gb .ngb-field select:focus { border-color: var(--ngb-ink); outline: none; }
.ndf-gb .ngb-field textarea { min-height: 150px; resize: vertical; }
.ndf-gb .ngb-count { font-size: 13px; color: var(--ngb-muted); text-align: right; margin-top: 4px; }
.ndf-gb .ngb-err { color: var(--ngb-red); font-size: 13px; margin-top: 4px; display: none; }
.ndf-gb .ngb-field.bad .ngb-err { display: block; }
.ndf-gb .ngb-field.bad input, .ndf-gb .ngb-field.bad textarea { border-color: var(--ngb-red); }
.ndf-gb .ngb-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ngb-ink); margin: 0 0 16px; }
.ndf-gb .ngb-seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 50px; font-weight: 600; font-size: 15px; cursor: pointer; text-align: center; padding: 6px 10px; margin: 0; line-height: 1.3; }
.ndf-gb .ngb-seg input { position: absolute; opacity: 0; }
.ndf-gb .ngb-seg label:has(input:checked) { background: var(--ngb-ink); color: #fff; }
.ndf-gb .ngb-seg label:has(input:focus-visible) { outline: 3px solid var(--ngb-yellow); outline-offset: -4px; }

/* oppsummering */
.ndf-gb .ngb-summary { border-top: 1px solid var(--ngb-line); margin: 4px 0 18px; padding: 14px 0 0; font-size: 15px; }
.ndf-gb .ngb-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ndf-gb .ngb-summary dt { color: var(--ngb-muted); font-weight: 400; }
.ndf-gb .ngb-summary dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.ndf-gb .ngb-summary .ngb-total { font-size: 18px; border-top: 1px solid var(--ngb-line); margin-top: 8px; padding-top: 10px; }
.ndf-gb .ngb-status { margin: 10px 0 0; font-size: 14px; text-align: center; }
.ndf-gb .ngb-status:empty { display: none; }
.ndf-gb .ngb-terms { font-size: 13px; color: var(--ngb-muted); margin: 12px 0 0; text-align: center; }
.ndf-gb a { color: var(--ngb-green-dark); }

/* ---- Takkesiden ---- */
body.ngb-takkeside .entry-title, body.ngb-takkeside .main_title,
body.ngb-takkeside .woocommerce-order-overview, body.ngb-takkeside .woocommerce-thankyou-order-received,
body.ngb-takkeside .woocommerce-customer-details, body.ngb-takkeside #sidebar { display: none !important; }
body.ngb-takkeside #main-content .container { padding-top: 0 !important; }
body.ngb-takkeside #main-content .container::before { display: none; }
body.ngb-takkeside #left-area { width: 100% !important; padding: 0 !important; float: none; }
body.ngb-takkeside .woocommerce-order { margin: 0; }
body.ngb-takkeside #page-container, body.ngb-takkeside #main-content { overflow-x: clip; }
.ndf-gb.ngb-takk { margin: 0 calc(50% - 50vw); }
.ndf-gb.ngb-takk .ngb-grid { align-items: center; }
.ndf-gb.ngb-takk h1 { font: 600 clamp(32px, 4vw, 48px)/1.15 Poppins, Helvetica, Arial, sans-serif; color: var(--ngb-ink); margin: 6px 0 0; padding: 0; }
.ndf-gb .ngb-takk__kicker { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ngb-green-dark); }
.ndf-gb .ngb-takk__tekst p { margin: 0 0 14px; color: #444; font-size: 17px; }
.ndf-gb .ngb-takk__ordre { font-size: 14px !important; color: var(--ngb-muted) !important; }
.ndf-gb .ngb-takk__mer { background: #fff; border: 1px solid var(--ngb-line); padding: 22px 24px; margin-top: 26px; }
.ndf-gb .ngb-takk__mer p { font-size: 15px; }
.ndf-gb .ngb-takk__mer .ngb-btn { color: #fff; text-decoration: none; }
.ndf-gb .ngb-takk__feil { max-width: 640px; }
@media (max-width: 900px) { .ndf-gb.ngb-takk .ngb-preview { order: -1; } }

/* ---- Hjelpeklasser for Divi-modulene på siden ---- */
/* Fakta i toppen */
.ngb-facts ul { list-style: none !important; padding: 0 !important; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ngb-facts li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.ngb-facts li::before { content: ""; width: 8px; height: 8px; background: var(--ngb-accent, #e9a07a); border-radius: 50%; flex: none; }
/* Toppbildet: hold grisens hode i bildet på mobil */
@media (max-width: 767px) { .ngb-hero { background-position: 74% 50% !important; } }
.ngb-textlink a { color: #1e1d1c !important; }
/* Liten overskrift over h2 */
.ngb-kicker p { font-size: 13px !important; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #5f9a41; padding: 0 !important; }
/* Tall i «Din gave gjør en forskjell» */
.ngb-stats ul { list-style: none !important; padding: 0 !important; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ngb-stats b { display: block; font-size: clamp(28px, 3vw, 38px); color: var(--ngb-accent, #e9a07a); line-height: 1.1; font-weight: 700; }
.ngb-stats span { font-size: 13px; color: #d9d4cf; line-height: 1.4; display: block; margin-top: 6px; }
/* Tekstlenke med gul strek */
.ngb-textlink a { font-weight: 600; color: #1e1d1c; text-decoration: underline; text-decoration-color: var(--ngb-accent, #e9a07a); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.ngb-textlink a:hover { text-decoration-color: #7fb95f; }

@media (prefers-reduced-motion: reduce) { .ndf-gb *, .ndf-gb *::before { animation: none !important; transition: none !important; } }

/* ---- Aksentfarge også på Divi-strekene på siden ---- */
.et_pb_divider::before { border-top-color: var(--ngb-accent) !important; }
