/* Peninsula quote list and shop sections. Uses the tokens and buttons in pen-design.css. Loaded by pen-shop.php. */

/* Floating quote list button (desktop and tablet; phones use the bottom bar). */
.pen-ql-fab { position: fixed; right: 24px; bottom: 88px; z-index: 9990; display: none; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--pen-navy); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 14px 34px -12px rgba(11, 27, 51, .6); }
.pen-ql-has .pen-ql-fab { display: inline-flex; }
.pen-ql-count, .pen-bar-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--pen-gold); color: var(--pen-navy); font-size: 13px; font-weight: 800; box-sizing: border-box; }
.pen-ql-fab:focus-visible { outline: 3px solid var(--pen-gold); outline-offset: 3px; }

/* Quote list panel */
.pen-ql { position: fixed; inset: 0; z-index: 99999; display: flex; justify-content: flex-end; }
.pen-ql[hidden] { display: none; }
.pen-ql__backdrop { position: absolute; inset: 0; z-index: 0; border: 0; padding: 0 !important; margin: 0 !important; background: rgba(11, 27, 51, .55); cursor: pointer; }
.pen-ql__panel { position: relative; z-index: 1; width: 480px; max-width: 100%; height: 100%; overflow-y: auto; background: #fff; color: var(--pen-ink); box-sizing: border-box; display: flex; flex-direction: column; animation: pen-in .3s ease; }
.pen-ql__head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: #fff; border-bottom: 1px solid var(--pen-line); }
.pen-ql__head h2 { margin: 0; font-size: 22px; color: var(--pen-navy); }
.pen-ql .pen-icon-btn { background: #fff !important; border: 1px solid var(--pen-line) !important; padding: 0 !important; }
.pen-ql__body { padding: 16px 24px 32px; display: flex; flex-direction: column; gap: 14px; }
.pen-ql__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pen-ql__item { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px; border: 1px solid var(--pen-line); border-radius: 14px; }
.pen-ql__item > div:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pen-ql__item a { font-weight: 600; color: var(--pen-navy); text-decoration: none; word-break: break-all; }
.pen-ql__item span { font-size: 14px; color: var(--pen-text); }
.pen-ql__item .pen-ql__price { font-weight: 700; color: var(--pen-navy); }
.pen-ql__item .pen-qty { margin: 0; align-self: center; }
.pen-ql__item .pen-qty button { width: 38px; height: 40px; }
.pen-ql__rm { grid-column: 1 / -1; justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--pen-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.pen-ql__empty { margin: 8px 0; line-height: 1.6; color: var(--pen-text); }
.pen-ql__total { margin: 0; font-size: 17px; color: var(--pen-navy); }
.pen-ql__total:empty { display: none; }
.pen-ql__form { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--pen-line); padding-top: 16px; }
.pen-ql__form[hidden] { display: none; }
.pen-ql__promise { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--pen-gold-soft); color: var(--pen-gold-ink); font-size: 14px; line-height: 1.5; }
.pen-ql__form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--pen-ink); }
.pen-ql__form input, .pen-ql__form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #C8D0DC; border-radius: 10px; font: inherit; font-weight: 400; font-size: 16px; color: var(--pen-ink); background: #fff; box-sizing: border-box; }
.pen-ql__form input:focus, .pen-ql__form textarea:focus { outline: 3px solid var(--pen-gold); outline-offset: 0; border-color: var(--pen-navy); }
.pen-ql__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pen-ql__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pen-ql__msg { margin: 0; font-size: 14px; color: var(--pen-text); }
.pen-ql__msg:empty { display: none; }
.pen-ql__msg.is-err { color: #B42318; font-weight: 600; }
.pen-ql__done { padding: 18px; border-radius: 14px; background: #ECFDF3; color: #05603A; line-height: 1.6; }

/* "Added" toast */
.pen-toast { position: fixed; left: 50%; bottom: 96px; z-index: 99998; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--pen-navy); color: #fff; font-size: 14px; box-shadow: 0 16px 40px -14px rgba(11, 27, 51, .7); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; box-sizing: border-box; }
.pen-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pen-toast button { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--pen-gold); color: var(--pen-navy); font: inherit; font-weight: 700; cursor: pointer; }

/* Add to quote on cards, quick view and product page */
.pen-card__actions .pen-btn--gold { padding: 0 14px; }
.pen-single-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0 !important; }
.pen-single-actions .pen-qty { margin: 0; }

/* Promise strip (home and product page) */
.pen-promise { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.pen-promise li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--pen-text); }
.pen-promise svg { flex: none; margin-top: 1px; color: #0E7C4A; }
.pen-promise strong { color: var(--pen-navy); }
.pen-promise--product { padding: 16px 18px; border: 1px solid var(--pen-line); border-radius: 14px; background: var(--pen-ground); }
.pen-promise--home { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 28px 0; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--pen-line); }

/* Home sections */
.pen-home-sec { margin: 0 0 48px; }
.pen-home-sec h2 { margin: 0 0 18px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; color: var(--pen-navy); }
.pen-home-sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pen-home-sec__head a { font-weight: 700; color: var(--pen-navy); }
.pen-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: none; }
.pen-steps li { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: var(--pen-ground); line-height: 1.55; color: var(--pen-text); }
.pen-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: var(--pen-navy); color: #fff; font-weight: 800; margin-bottom: 6px; }
.pen-steps li strong { font-size: 18px; color: var(--pen-navy); }
.pen-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.pen-duo__card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: 20px; background: var(--pen-gold-soft); color: var(--pen-text) !important; text-decoration: none !important; line-height: 1.55; transition: transform .25s ease, box-shadow .25s ease; }
.pen-duo__card strong { font-size: 22px; line-height: 1.25; color: var(--pen-navy); }
.pen-duo__card--dark { background: var(--pen-navy); color: #C3CEDF !important; }
.pen-duo__card--dark strong { color: #fff; }
.pen-duo__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(11, 27, 51, .45); }
.pen-duo__card .pen-btn { margin-top: auto; }
.pen-final { padding: clamp(28px, 5vw, 56px); border-radius: 24px; background: var(--pen-navy); color: #C3CEDF; text-align: center; }
.pen-final h2 { color: #fff; }
.pen-final p { max-width: 560px; margin: 0 auto 22px; line-height: 1.6; }
.pen-final div { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Theme bottom bar: compare is off; the car filter has no data; Quote list and WhatsApp are added on phones only.
   The theme styles every span in the bar as a yellow icon box, so ours are reset. */
.sticky-dashboard li.compare, .sticky-dashboard li.vfilter-toggle { display: none !important; }
.sticky-dashboard li.pen-bar-quote span, .sticky-dashboard li.pen-bar-wa span { background: none !important; width: auto !important; height: auto !important; padding: 0 !important; margin: 0 !important; border: 0 !important; color: inherit !important; font-size: 11px !important; line-height: 1.2 !important; -webkit-mask: none !important; mask: none !important; }
.sticky-dashboard li.pen-bar-quote a, .sticky-dashboard li.pen-bar-wa a { background-image: none !important; }
.sticky-dashboard li.pen-bar-quote a::before, .sticky-dashboard li.pen-bar-quote a::after, .sticky-dashboard li.pen-bar-wa a::before, .sticky-dashboard li.pen-bar-wa a::after { display: none !important; content: none !important; }
.sticky-dashboard li.pen-bar-quote span.pen-bar-ico, .sticky-dashboard li.pen-bar-wa span.pen-bar-ico { position: relative !important; }
.sticky-dashboard li.pen-bar-quote span.pen-bar-count { position: absolute !important; top: -8px; right: -14px; min-width: 20px; height: 20px !important; padding: 0 5px !important; border-radius: 999px; background: var(--pen-gold) !important; color: var(--pen-navy) !important; font-weight: 800; }
@media (min-width: 768px) { .sticky-dashboard li.pen-bar-quote, .sticky-dashboard li.pen-bar-wa { display: none !important; } }
@media (max-width: 767px) { .sticky-dashboard li.arrow-top { display: none !important; } }
/* Footer social icons from the theme demo point to "#link" and show as empty boxes; hidden until the client sends real pages. */
.elementor-widget-et_social_links { display: none !important; }

/* Phone bottom bar additions */
.sticky-dashboard li.pen-bar-quote a, .sticky-dashboard li.pen-bar-wa a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.pen-bar-ico { position: relative; display: inline-flex; }
.pen-bar-count { position: absolute; top: -8px; right: -14px; min-width: 20px; height: 20px; font-size: 11px; padding: 0 5px; }

@media (min-width: 768px) {
	.pen-ql-fab { bottom: 96px; }
}
@media (max-width: 767px) {
	.pen-ql-fab { display: none !important; }
	.pen-ql__panel { width: 100%; }
	.pen-ql__row { grid-template-columns: 1fr; }
	.pen-toast { bottom: 84px; }
	.pen-home-sec { margin-bottom: 36px; }
}
/* Motion. Everything below is switched off for visitors who ask for reduced motion (end of file). */
@keyframes pen-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pen-drift { from { background-position: 0% 0%, 100% 100%; } to { background-position: 100% 60%, 0% 30%; } }
@keyframes pen-glow { 0%, 100% { box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6), 0 0 0 0 rgba(201, 162, 77, 0); } 50% { box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6), 0 0 0 6px rgba(201, 162, 77, .35); } }
@keyframes pen-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes pen-draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes pen-ring { 0% { box-shadow: 0 0 0 0 rgba(11, 27, 51, .35); } 100% { box-shadow: 0 0 0 12px rgba(11, 27, 51, 0); } }

/* Hero: slow moving light behind the search, staggered entrance, one soft pulse on the search box. */
.pen-finder { position: relative; isolation: isolate; }
.pen-finder::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
	background: radial-gradient(circle, rgba(201, 162, 77, .22), transparent 42%), radial-gradient(circle, rgba(70, 130, 210, .28), transparent 46%);
	background-size: 160% 160%, 170% 170%; background-repeat: no-repeat; animation: pen-drift 16s ease-in-out infinite alternate; }
.pen-finder > * { animation: pen-up .7s cubic-bezier(.2, .7, .2, 1) both; }
.pen-finder > :nth-child(2) { animation-delay: .08s; }
.pen-finder > :nth-child(3) { animation-delay: .16s; }
.pen-finder > :nth-child(n+4) { animation-delay: .24s; }
.pen-finder__box { animation: pen-glow 2.2s ease-in-out 1.1s 2; }

/* Sections, cards, steps and tiles rise in as they scroll into view (class added by shop.js). */
.pen-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.pen-reveal.is-in { opacity: 1; transform: none; }
.pen-reveal.pen-card.is-in:hover { transform: translateY(-4px); }
.pen-promise li.is-in svg path { stroke-dasharray: 30; animation: pen-draw .6s ease var(--d, 0ms) both; }
.pen-steps li.is-in span { animation: pen-ring 1.4s ease-out calc(var(--d, 0ms) + .3s) 2; }

/* Gold buttons: light sweep on hover; "Added" state after a click; list counters pop when they change. */
.pen-btn--gold { position: relative; overflow: hidden; }
.pen-btn--gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); transition: left .7s ease; pointer-events: none; }
.pen-btn--gold:hover::after { left: 130%; }
[data-pen-add].is-added { background: #0E7C4A !important; color: #fff !important; }
.pen-bump { animation: pen-pop .45s ease; }
.pen-duo__card .pen-btn { transition: transform .25s ease; }
.pen-duo__card:hover .pen-btn { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
	.pen-finder::before, .pen-finder > *, .pen-finder__box, .pen-promise li svg path, .pen-steps li span, .pen-bump { animation: none !important; }
	.pen-reveal { opacity: 1; transform: none; transition: none; }
	.pen-btn--gold::after { display: none; }
	.pen-ql__panel, .pen-duo__card, .pen-toast { animation: none; transition: none; }
	.pen-duo__card:hover { transform: none; }
}

/* Batch 28: send us your VIN. The theme's vehicle filter (and its VIN box) has no vehicle data behind it, so it is hidden. */
.et-product-search .filter-toggle, .filter-box, .widget_product_vehicle_filter_widget { display: none !important; }
.pen-finder__vin { margin: 0; font-size: 15px; line-height: 1.6; color: #C3CEDF; }
.pen-finder__vin button { padding: 0 !important; border: 0 !important; background: none !important; color: var(--pen-gold) !important; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pen-finder__vin button:focus-visible { outline: 3px solid var(--pen-gold); outline-offset: 2px; }
.pen-ql__vin-intro { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--pen-ground); line-height: 1.6; color: var(--pen-text); }
.pen-ql__vin-intro[hidden] { display: none; }
.pen-ql__hint { font-size: 13px; font-weight: 400; color: var(--pen-muted); }
.pen-ql__form input[name="vin"] { font-family: var(--pen-mono, monospace); text-transform: uppercase; letter-spacing: .04em; }
.pen-ql__form input[name="vin"]::placeholder { text-transform: none; letter-spacing: 0; }
.pen-final p { color: #C3CEDF !important; } /* theme paragraph colour was winning on the navy background */
