/* Float List Popup — front end */

.flp, .flp-launcher, .flp-inline { --flp-primary:#5b4bdb; --flp-bg:#fff; --flp-text:#1d2327; --flp-btn-text:#fff; --flp-radius:18px; --flp-width:380px; --flp-overlay:.55; }
.flp *, .flp *::before, .flp *::after, .flp-inline *, .flp-inline *::before, .flp-inline *::after { box-sizing: border-box; }

/* ---------- Container ---------- */
.flp { display: none; position: fixed; z-index: 999999; font-family: inherit; line-height: 1.45; }
.flp.is-open, .flp.is-closing { display: block; }

.flp--floating { width: var(--flp-width); max-width: calc(100vw - 32px); }
.flp--floating.flp--bottom-right { bottom: 24px; right: 24px; }
.flp--floating.flp--bottom-left  { bottom: 24px; left: 24px; }
.flp--floating.flp--top-right    { top: 24px; right: 24px; }
.flp--floating.flp--top-left     { top: 24px; left: 24px; }
.flp--floating .flp__overlay { display: none; }
body.admin-bar .flp--floating.flp--top-right, body.admin-bar .flp--floating.flp--top-left { top: 56px; }

.flp--modal { inset: 0; padding: 16px; align-items: center; justify-content: center; }
.flp--modal.is-open, .flp--modal.is-closing { display: flex; }
.flp--modal .flp__float { width: 100%; max-width: var(--flp-width); position: relative; }
.flp--modal.flp--img-left .flp__float { max-width: max(var(--flp-width), 720px); }
.flp__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, var(--flp-overlay)); animation: flp-fade .3s ease both; }
.flp--modal.is-closing .flp__overlay { animation: flp-fade-out .25s ease both; }

/* ---------- The floating (bobbing) effect ---------- */
.flp--float .flp__float, .flp-launcher.flp--float { animation: flp-bob 5.5s ease-in-out infinite; }
.flp--float .flp__float:hover, .flp--float .flp__float:focus-within, .flp-launcher.flp--float:hover { animation-play-state: paused; }
@keyframes flp-bob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-9px); }
}

/* ---------- Card ---------- */
.flp__card {
	position: relative; display: flex; flex-direction: column; overflow: hidden; outline: none;
	background: var(--flp-bg); color: var(--flp-text); border-radius: var(--flp-radius);
	box-shadow: 0 22px 60px rgba(20, 20, 43, .25), 0 6px 16px rgba(20, 20, 43, .10);
}
.flp--img-left .flp__card { flex-direction: row; }
.flp--img-left .flp__media { width: 42%; flex: none; }
.flp--img-left .flp__media img { height: 100%; }
.flp__media img { display: block; width: 100%; height: auto; max-height: 190px; object-fit: cover; }
.flp--img-left .flp__media img { max-height: none; }
.flp__content { padding: 26px 26px 22px; flex: 1; min-width: 0; }

.flp__close {
	position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .35); color: #fff; font-size: 20px; line-height: 30px; text-align: center; cursor: pointer; transition: background .2s;
}
.flp__close:hover, .flp__close:focus-visible { background: rgba(0, 0, 0, .6); }

.flp__title { margin: 0 0 8px; padding-right: 22px; font-size: 1.45em; line-height: 1.2; font-weight: 700; color: inherit; }
.flp__body { margin: 0 0 16px; font-size: .95em; opacity: .85; }
.flp__body p { margin: 0 0 .6em; }
.flp__body p:last-child { margin-bottom: 0; }
.flp__footer { margin: 12px 0 0; font-size: .78em; opacity: .65; text-align: center; }
.flp__footer a { color: inherit; text-decoration: underline; }

/* ---------- Form ---------- */
.flp-form { margin: 0; }
.flp-input {
	display: block; width: 100%; margin: 0 0 10px; padding: 12px 14px; font: inherit; font-size: 15px; color: #1d2327; background: #fff;
	border: 1.5px solid rgba(0, 0, 0, .18); border-radius: 10px; box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.flp-input:focus { outline: none; border-color: var(--flp-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flp-primary) 25%, transparent); }
.flp-btn {
	display: block; width: 100%; margin: 0; padding: 13px 16px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .01em;
	color: var(--flp-btn-text); background: var(--flp-primary); border: 0; border-radius: 10px; cursor: pointer; text-align: center;
	transition: transform .15s, filter .15s, opacity .15s;
}
.flp-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.flp-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--flp-primary) 40%, transparent); outline-offset: 2px; }
.flp-btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.flp-consent { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 12px; font-size: .8em; line-height: 1.35; cursor: pointer; }
.flp-consent input { margin: 2px 0 0; flex: none; width: 16px; height: 16px; accent-color: var(--flp-primary); }
.flp-consent a { color: inherit; text-decoration: underline; }
.flp-consent--sms { margin-top: -2px; font-size: .74em; opacity: .85; }
.flp-msg { min-height: 0; margin: 0; font-size: .85em; }
.flp-msg:not(:empty) { margin-top: 10px; }
.flp-msg.is-error { color: #c62828; }
.flp-sr, .flp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Dark backgrounds (auto-detected from the background colour) ---------- */
.flp--dark .flp-input { color: #f3f4f6; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); }
.flp--dark .flp-input::placeholder { color: rgba(243, 244, 246, .5); }
.flp--dark .flp-input:focus { background: rgba(255, 255, 255, .09); }
.flp--dark .flp__card, .flp-inline.flp--dark { border: 1px solid rgba(255, 255, 255, .08); }
.flp--dark .flp__card { box-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 0 46px color-mix(in srgb, var(--flp-primary) 22%, transparent); }
.flp--dark .flp__close { background: rgba(255, 255, 255, .12); }
.flp--dark .flp__close:hover, .flp--dark .flp__close:focus-visible { background: rgba(255, 255, 255, .25); }
.flp--dark .flp-consent input { color-scheme: dark; }

/* ---------- Success state ---------- */
.flp__success { text-align: center; padding: 10px 0 6px; }
.flp__success[hidden] { display: none; }
.flp__check {
	width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: var(--flp-primary); color: var(--flp-btn-text);
	font-size: 28px; line-height: 54px; animation: flp-pop .45s cubic-bezier(.2, .9, .3, 1.4) both;
}
.flp__success-text { font-size: 1.05em; font-weight: 600; }
.flp__success-text p { margin: 0 0 .5em; }
.flp.is-done .flp__panel, .flp-inline.is-done .flp__panel { display: none; }

/* ---------- Entrance / exit animations ---------- */
.flp.is-open .flp__card { animation-duration: .55s; animation-fill-mode: both; animation-timing-function: cubic-bezier(.2, .9, .3, 1.15); }
.flp--entry-slide.is-open .flp__card { animation-name: flp-slide; }
.flp--entry-fade.is-open .flp__card  { animation-name: flp-fade; animation-timing-function: ease; }
.flp--entry-pop.is-open .flp__card   { animation-name: flp-pop; }
.flp--top-left, .flp--top-right { --flp-slide: -44px; }
.flp.is-closing .flp__card { animation: flp-out .25s ease both; }
@keyframes flp-slide { from { opacity: 0; transform: translateY(var(--flp-slide, 44px)); } to { opacity: 1; transform: none; } }
@keyframes flp-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes flp-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes flp-pop   { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes flp-out   { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ---------- Launcher (reopen button) ---------- */
.flp-launcher {
	position: fixed; z-index: 999998; margin: 0; padding: 11px 20px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
	color: var(--flp-btn-text); background: var(--flp-primary); border: 0; border-radius: 999px;
	box-shadow: 0 10px 28px rgba(20, 20, 43, .28); transition: filter .2s;
}
.flp-launcher[hidden] { display: none; }
.flp-launcher:hover { filter: brightness(1.1); }
.flp-launcher.flp--bottom-right { bottom: 24px; right: 24px; }
.flp-launcher.flp--bottom-left  { bottom: 24px; left: 24px; }
.flp-launcher.flp--top-right    { top: 24px; right: 24px; }
.flp-launcher.flp--top-left     { top: 24px; left: 24px; }
body.admin-bar .flp-launcher.flp--top-right, body.admin-bar .flp-launcher.flp--top-left { top: 56px; }

/* ---------- Inline shortcode form ---------- */
.flp-inline { max-width: 520px; margin: 1.5em 0; padding: 24px; background: var(--flp-bg); color: var(--flp-text); border-radius: var(--flp-radius); box-shadow: 0 8px 30px rgba(20, 20, 43, .12); }


/* ---------- Large centred split layout (image left, form right, blurred full-screen backdrop) ---------- */
.flp__eyebrow { margin: 0 0 10px; padding-right: 40px; font-size: .68em; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--flp-primary); }
.flp__accent { color: var(--flp-primary); }
.flp__decline { display: block; margin: 12px auto 0; padding: 4px 8px; font: inherit; font-size: .8em; font-weight: 600; color: inherit; opacity: .6; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.flp__decline:hover, .flp__decline:focus-visible { opacity: 1; }
.flp-label { display: block; margin: 0 0 6px; font-size: .82em; font-weight: 600; }
.flp-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 0 0 12px; padding: 11px 14px; font: inherit; font-size: .84em; font-weight: 600; color: inherit; text-align: left; background: transparent; border: 1px dashed color-mix(in srgb, currentColor 28%, transparent); border-radius: 10px; cursor: pointer; }
.flp-more:hover, .flp-more:focus-visible { border-color: var(--flp-primary); outline: none; }
.flp-more i { display: inline-block; width: 1em; font-style: normal; font-weight: 700; color: var(--flp-primary); }
.flp-more em { font-style: normal; font-size: .85em; font-weight: 600; opacity: .55; }
.flp-more.is-open i { transform: rotate(45deg); }
.flp-sms { margin: 0; }
.flp-sms[hidden] { display: none; }

.flp--split { padding: 24px; background: transparent; }
.flp--split .flp__overlay { background: rgba(4, 4, 12, var(--flp-overlay)); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
.flp--modal.flp--split .flp__float, .flp--modal.flp--split.flp--img-left .flp__float { width: 100%; max-width: 900px; animation: none; }
.flp--split .flp__card { flex-direction: row; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); border: 1px solid color-mix(in srgb, var(--flp-primary) 30%, transparent); box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 60px color-mix(in srgb, var(--flp-primary) 20%, transparent); }
.flp--split .flp__media { display: flex; align-items: center; justify-content: center; width: 42%; flex: none; padding: 36px 28px; overflow: hidden;
	background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--flp-primary) 34%, transparent), transparent 68%), linear-gradient(165deg, color-mix(in srgb, var(--flp-primary) 16%, var(--flp-bg)), color-mix(in srgb, #000 30%, var(--flp-bg)));
	border-right: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.flp--split .flp__media img { width: auto; max-width: 100%; height: auto; max-height: 440px; object-fit: contain; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .5)); }
.flp--split.flp--float .flp__media img { animation: flp-bob 5.5s ease-in-out infinite; }
.flp--split .flp__content { padding: 38px 36px 28px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.flp--split .flp__title { margin-bottom: 12px; font-size: 2.05em; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.flp--split .flp__accent { background: linear-gradient(90deg, var(--flp-primary), color-mix(in srgb, var(--flp-primary) 45%, #8b5cf6)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.flp--split .flp__body { margin-bottom: 20px; font-size: 1em; line-height: 1.5; }
.flp--split .flp-input { padding: 14px 15px; margin-bottom: 14px; border-radius: 12px; }
.flp--split .flp-consent { padding: 13px 14px; margin: 0 0 12px; font-size: .82em; font-weight: 500; line-height: 1.4; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: 12px; background: color-mix(in srgb, currentColor 4%, transparent); }
.flp--split .flp-consent input { margin-top: 1px; width: 18px; height: 18px; }
.flp--split .flp-consent--sms { margin: 0 0 12px; font-size: .78em; opacity: 1; }
.flp--split .flp-sms .flp-consent--sms span { display: block; }
.flp--split .flp-btn { padding: 16px 18px; font-size: 1em; font-weight: 700; border-radius: 12px; background: linear-gradient(90deg, var(--flp-primary), color-mix(in srgb, var(--flp-primary) 50%, #8b5cf6)); box-shadow: 0 10px 30px color-mix(in srgb, var(--flp-primary) 35%, transparent); }
.flp--split .flp__close { top: 16px; right: 16px; width: 38px; height: 38px; font-size: 22px; line-height: 36px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.flp--split .flp__footer { margin-top: 14px; }
.flp--split.flp--noimg .flp__float { max-width: 540px; }
.flp--split .flp__success { padding: 40px 0; }

@media (max-width: 720px) {
	.flp--split { padding: 0; }
	.flp--modal.flp--split .flp__float { max-width: none; height: 100%; }
	.flp--split .flp__card { flex-direction: column; height: 100%; max-height: none; border-radius: 0; border: 0; }
	.flp--split .flp__media { width: 100%; padding: 18px 20px 6px; border-right: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
	.flp--split .flp__media img { max-height: 120px; }
	.flp--split .flp__content { padding: 22px 20px 24px; flex: 1; }
	.flp--split .flp__title { font-size: 1.65em; }
}

/* ---------- Small screens: floating card becomes a bottom sheet ---------- */
@media (max-width: 600px) {
	.flp--floating, .flp--floating.flp--bottom-right, .flp--floating.flp--bottom-left, .flp--floating.flp--top-right, .flp--floating.flp--top-left {
		width: auto; max-width: none; left: 12px; right: 12px; top: auto; bottom: 12px;
	}
	.flp__content { padding: 22px 20px 18px; }
	.flp--img-left .flp__card { flex-direction: column; }
	.flp--img-left .flp__media { width: 100%; }
	.flp--img-left .flp__media img { height: auto; max-height: 160px; }
	.flp__media img { max-height: 140px; }
	.flp-launcher.flp--top-right, .flp-launcher.flp--top-left { top: auto; bottom: 16px; }
	.flp-launcher.flp--top-right, .flp-launcher.flp--bottom-right { right: 16px; left: auto; }
	.flp-launcher.flp--top-left, .flp-launcher.flp--bottom-left { left: 16px; right: auto; }
}

html.flp-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.flp--float .flp__float, .flp-launcher.flp--float, .flp--split.flp--float .flp__media img { animation: none; }
	.flp.is-open .flp__card, .flp__overlay, .flp__check { animation-duration: .01s; }
}
