/* NFO Quote popup – follows the site look.
 * Accent colour comes from --nfo-accent, which quote.js sets from the button that opened the popup
 * (green on product pages, brown on the gifting grid). Headings/labels/buttons use Futura like the site cards. */
#nfo-qm { --nfo-accent: #52562e; --nfo-cream: #F8F1EB; --nfo-line: #d9c9bd; position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: inherit; color: var(--nfo-accent); opacity: 0; transition: opacity .2s ease; }
#nfo-qm[hidden] { display: none; }
#nfo-qm.is-open { opacity: 1; }
#nfo-qm .nfo-qm__overlay { position: absolute; inset: 0; background: rgba(20, 16, 12, .55); }
#nfo-qm .nfo-qm__dialog { position: relative; display: grid; grid-template-columns: 300px 1fr; width: 100%; max-width: 880px; max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); outline: 0; transform: translateY(12px); transition: transform .2s ease; }
#nfo-qm.is-open .nfo-qm__dialog { transform: none; }

#nfo-qm .nfo-qm__close { position: absolute; top: 8px; right: 12px; z-index: 3; width: 36px; height: 36px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--nfo-accent); font-family: inherit; font-size: 30px; font-weight: 300; line-height: 36px; letter-spacing: 0; box-shadow: none; cursor: pointer; }
#nfo-qm .nfo-qm__close:hover, #nfo-qm .nfo-qm__close:focus { background: transparent; color: var(--nfo-accent); opacity: .6; }

/* product card */
#nfo-qm .nfo-qm__product { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; background: var(--nfo-cream); text-align: center; }
#nfo-qm .nfo-qm__img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; background: #efe4da; }
#nfo-qm .nfo-qm__name { margin: 0; padding: 0; font-family: Futura, sans-serif; font-size: 14px; line-height: 1.3; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--nfo-accent); }
#nfo-qm .nfo-qm__sub { margin: 0; padding: 0; font-family: Futura, sans-serif; font-size: 12px; line-height: 1.4; font-weight: 400; text-transform: capitalize; color: var(--nfo-accent); }

/* form */
#nfo-qm .nfo-qm__main { padding: 32px 36px 32px 32px; min-width: 0; }
#nfo-qm .nfo-qm__title { margin: 0 0 6px; padding: 0; font-family: Futura, sans-serif; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--nfo-accent); }
#nfo-qm .nfo-qm__intro { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: var(--nfo-accent); }
#nfo-qm .nfo-qm__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
#nfo-qm .nfo-qm__field { display: block; margin: 0 0 14px; padding: 0; }
#nfo-qm .nfo-qm__field > span { display: block; margin: 0 0 5px; font-family: Futura, sans-serif; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .6px; text-transform: uppercase; color: var(--nfo-accent); }
#nfo-qm .nfo-qm__field input, #nfo-qm .nfo-qm__field textarea { display: block; width: 100%; height: auto; min-height: 0; box-sizing: border-box; margin: 0; padding: 11px 13px; border: 1px solid var(--nfo-line); border-radius: 4px; background: #fff; color: var(--nfo-accent); font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.3; letter-spacing: 0; box-shadow: none; transition: border-color .15s ease; }
#nfo-qm .nfo-qm__field textarea { resize: vertical; min-height: 78px; }
#nfo-qm .nfo-qm__field input:focus, #nfo-qm .nfo-qm__field textarea:focus { outline: 0; border-color: var(--nfo-accent); box-shadow: none; background: #fff; color: var(--nfo-accent); }
#nfo-qm .nfo-qm__field input.is-invalid { border-color: #b3261e; }
#nfo-qm .nfo-qm__field--qty input { max-width: 120px; }
#nfo-qm .nfo-qm__err { display: block; margin-top: 3px; font-size: 12px; font-style: normal; color: #b3261e; }
#nfo-qm .nfo-qm__err:empty { display: none; }
#nfo-qm .nfo-qm__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#nfo-qm .nfo-qm__error { margin: 0 0 12px; padding: 10px 12px; border-radius: 4px; background: #fbeceb; color: #b3261e; font-size: 13px; }
#nfo-qm .nfo-qm__error[hidden] { display: none; }

#nfo-qm .nfo-qm__submit { display: inline-block; width: 100%; height: auto; min-height: 0; margin: 0; padding: 14px 24px; border: 0; border-radius: 4px; background: var(--nfo-accent); color: #fff; font-family: Futura, sans-serif; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 1.4px; text-transform: uppercase; box-shadow: none; cursor: pointer; transition: opacity .15s ease; }
#nfo-qm .nfo-qm__submit:hover, #nfo-qm .nfo-qm__submit:focus { background: var(--nfo-accent); color: #fff; opacity: .88; }
#nfo-qm .nfo-qm__submit:disabled { opacity: .55; cursor: default; }

/* thank-you */
#nfo-qm .nfo-qm__thanks { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; padding: 24px 0; text-align: center; }
#nfo-qm .nfo-qm__thanks[hidden] { display: none; }
#nfo-qm .nfo-qm__thanks p { max-width: 340px; margin: 0 0 24px; font-size: 14px; line-height: 1.5; color: var(--nfo-accent); }
#nfo-qm .nfo-qm__thanks .nfo-qm__submit { width: auto; min-width: 160px; }
#nfo-qm .nfo-qm__tick { width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--nfo-accent); color: #fff; font-size: 28px; line-height: 56px; }

/* loading overlay */
#nfo-qm .nfo-qm__loading { position: absolute; inset: 0; z-index: 2; display: none; align-items: center; justify-content: center; background: rgba(255, 255, 255, .6); }
#nfo-qm .nfo-qm__dialog.is-loading .nfo-qm__loading { display: flex; }
#nfo-qm .nfo-qm__loading span { width: 32px; height: 32px; border: 3px solid var(--nfo-line); border-top-color: var(--nfo-accent); border-radius: 50%; animation: nfo-qm-spin .8s linear infinite; }
@keyframes nfo-qm-spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
	#nfo-qm { align-items: flex-end; padding: 0; }
	#nfo-qm .nfo-qm__dialog { grid-template-columns: 1fr; max-width: none; max-height: 94vh; border-radius: 4px 4px 0 0; }
	#nfo-qm .nfo-qm__product { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; align-content: center; gap: 2px 14px; padding: 16px 52px 16px 16px; text-align: left; }
	#nfo-qm .nfo-qm__img { grid-row: 1 / 3; }
	#nfo-qm .nfo-qm__name { align-self: end; }
	#nfo-qm .nfo-qm__sub { align-self: start; }
	#nfo-qm .nfo-qm__main { padding: 20px 16px 24px; }
	#nfo-qm .nfo-qm__row { grid-template-columns: 1fr; }
	#nfo-qm .nfo-qm__title { font-size: 18px; }
}

/* ---- Quote basket toast + loading dot on Add to Quote buttons ---- */
@keyframes nfoQtDot { 0% { transform: scale(.1); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1.2); opacity: 0; } }
.nfo-qt { position: fixed; right: 20px; bottom: 20px; z-index: 100000; display: flex; align-items: center; gap: 6px; max-width: min(92vw, 420px); padding: 14px 16px; border-radius: 4px; background: #593B2E; color: #F8F1EB; font-family: Futura, sans-serif; font-size: 13px; line-height: 1.4; box-shadow: 0 6px 24px rgba(0,0,0,.25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.nfo-qt.is-on { opacity: 1; transform: none; pointer-events: auto; }
.nfo-qt a { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.nfo-qt__x { margin-left: 6px; padding: 0 4px; border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.nfo-pg .nfo-pg__btn.loading::after, button.nfo-hamper-quote.loading::after, .afrfqbt_single_page.loading::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: 8px; border-radius: 100%; background: currentColor; vertical-align: middle; animation: nfoQtDot .65s infinite cubic-bezier(.21,.53,.56,.8); }
.nfo-pg .nfo-pg__btn.loading, button.nfo-hamper-quote.loading { pointer-events: none; }

/* Add to Quote: centered confirmation dialog */
.nfo-qd { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(24, 20, 16, .58); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; font-family: inherit; }
.nfo-qd.is-on { opacity: 1; visibility: visible; }
.nfo-qd__box { position: relative; width: 100%; max-width: 440px; padding: 38px 32px 30px; text-align: center; background: #F8F1EB; color: #52562e; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); transform: translateY(14px) scale(.98); transition: transform .25s ease; }
.nfo-qd.is-on .nfo-qd__box { transform: none; }
.nfo-qd__x { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #593B2E; font-size: 32px; line-height: 1; cursor: pointer; }
.nfo-qd__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: #52562e; color: #fff; }
.nfo-qd__eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #593B2E; }
.nfo-qd__title { margin: 0 0 10px; font-family: Futura, 'Jost', 'Century Gothic', Arial, sans-serif; font-size: 24px; line-height: 1.2; font-weight: 400; letter-spacing: .01em; color: #52562e; }
.nfo-qd__text { margin: 0 0 16px; font-size: 14px; line-height: 1.65; color: #4a4a40; }
.nfo-qd__perks { display: grid; gap: 6px; margin: 0 0 24px; padding: 14px 16px; list-style: none; text-align: left; background: #fff; border-radius: 8px; font-size: 13px; color: #52562e; }
.nfo-qd__perks li { position: relative; padding-left: 22px; }
.nfo-qd__perks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 6px; height: 11px; border: solid #593B2E; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.8); }
.nfo-qd__actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; }
.nfo-qd__btn { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; min-width: max-content; min-height: 46px; padding: 11px 14px; border: 1.5px solid #593B2E; border-radius: 6px; font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: .06em; line-height: 1.2; text-align: center; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s; }
.nfo-qd__btn--primary { background: #593B2E; color: #fff; }
.nfo-qd__btn--primary:hover { background: #52562e; border-color: #52562e; color: #fff; box-shadow: 0 6px 16px rgba(82, 86, 46, .28); transform: translateY(-1px); }
.nfo-qd__btn--primary:active { transform: none; box-shadow: none; }
.nfo-qd__btn--ghost { background: #fff; color: #593B2E; }
.nfo-qd__btn--ghost:hover { background: #593B2E; color: #fff; transform: translateY(-1px); }
.nfo-qd__btn--ghost:active { transform: none; }
.nfo-qd__btn:focus-visible { outline: 2px solid #52562e; outline-offset: 2px; }
@media (max-width: 359px) { .nfo-qd__actions { flex-direction: column; } .nfo-qd__btn { flex: 1 1 auto; } }
.nfo-qd .nfo-qd__x, .nfo-qd .nfo-qd__x:focus { position: absolute !important; top: 8px !important; right: 8px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important; color: #593B2E !important; font-size: 32px !important; line-height: 1 !important; box-shadow: none !important; }
.nfo-qd .nfo-qd__x:hover { background: rgba(89, 59, 46, .1) !important; color: #593B2E !important; }
.nfo-qd a.nfo-qd__btn, .nfo-qd button.nfo-qd__btn { font-family: inherit !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: .06em !important; line-height: 1.2 !important; text-transform: uppercase !important; white-space: nowrap !important; }
.nfo-qd a.nfo-qd__btn--primary, .nfo-qd a.nfo-qd__btn--primary:visited { background: #593B2E !important; border: 1.5px solid #593B2E !important; color: #fff !important; text-decoration: none !important; }
.nfo-qd a.nfo-qd__btn--primary:hover, .nfo-qd a.nfo-qd__btn--primary:focus { background: #52562e !important; border-color: #52562e !important; color: #fff !important; }
.nfo-qd button.nfo-qd__btn--ghost, .nfo-qd button.nfo-qd__btn--ghost:focus { background: #fff !important; border: 1.5px solid #593B2E !important; border-radius: 6px !important; color: #593B2E !important; box-shadow: none !important; min-height: 46px !important; }
.nfo-qd button.nfo-qd__btn--ghost:hover { background: #593B2E !important; border-color: #593B2E !important; color: #fff !important; }

/* Brand typography (CI): Futura Light for UPPERCASE, Medium/Bold for lowercase text */
.nfo-qp__eyebrow, .nfo-qd__eyebrow, .nfo-qp__btn, .nfo-qd__btn, .nfo-qp .form_row label.nfo-qf__cap { font-weight: 300 !important; }
.nfo-qp__btn, .nfo-qd a.nfo-qd__btn, .nfo-qd button.nfo-qd__btn, .nfo-qp button.button.addify_checkout_place_quote { font-weight: 400 !important; }
.nfo-qd__text, .nfo-qp__lead, .nfo-qp__note, .nfo-qd__perks li, .nfo-qp__steps span { font-weight: 500; }
.nfo-qd__perks li { color: #52562e; }
.nfo-qd__title { font-weight: 500; }

.nfo-qd__box--pending { max-width: 280px; padding: 34px 24px 26px; }
.nfo-qd__spin { display: block; width: 34px; height: 34px; margin: 0 auto 14px; border: 3px solid #e3d6ca; border-top-color: #52562e; border-radius: 50%; animation: nfo-qd-spin .8s linear infinite; }
@keyframes nfo-qd-spin { to { transform: rotate(360deg); } }
