/*!
 * Platflix Booking for WordPress · Copyright (c) 2026 Spiros Konispoliatis.
 * Released under GPL-2.0-or-later (the WordPress plugin only); the Platflix platform itself is proprietary.
 */
/* Platflix Booking – inherits the theme's fonts; colours can be changed with the --pfx-* variables. */
.pfx { --pfx-accent: #ffcc00; --pfx-accent-text: #111; --pfx-text: #111827; --pfx-muted: #596273; --pfx-line: #d8dee8;
       --pfx-bg: #fff; --pfx-soft: #f8fafc; --pfx-error: #dc2626; --pfx-radius: 12px;
       color: var(--pfx-text); width: 100%; max-width: 1200px; margin: 0 auto; container: platflix / inline-size; }
@media (prefers-color-scheme: dark) {
    .pfx.pfx-auto-dark { --pfx-bg: #111827; --pfx-soft: #1f2937; --pfx-line: #374151; --pfx-muted: #9ca3af; }
}
.pfx *, .pfx *::before, .pfx *::after { box-sizing: border-box; }
.pfx label { display: block; color: #111827; font-size: .9rem; font-weight: 600; line-height: 1.35; margin-bottom: .35rem; }
.pfx input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .pfx select, .pfx textarea { width: 100%; padding: .65rem .75rem; border: 1px solid var(--pfx-line); border-radius: 8px;
    background: #fff !important; color: #111827 !important; font: inherit; line-height: 1.35; min-height: 44px; }
.pfx textarea { min-height: 90px; }
.pfx-field { margin-bottom: .9rem; min-width: 0; }
.pfx-row { display: flex; gap: .5rem; }
.pfx-row input { flex: 1 1 0; min-width: 0; width: 0; }
.pfx-row.pfx-phone select { flex: 0 0 8.5rem; max-width: 45%; } .pfx-row select { flex: 0 0 6.4rem; min-width: 0; padding-left: .5rem; padding-right: .25rem; }
.pfx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .65rem 1.2rem;
    border: 0; border-radius: 8px; background: var(--pfx-accent); color: var(--pfx-accent-text) !important; font-weight: 600;
    text-decoration: none !important; cursor: pointer; width: 100%; }
.pfx-btn:hover { filter: brightness(.95); }
.pfx-btn-lg { font-size: 1.05rem; margin-top: .5rem; }
.pfx-title { margin: 0 0 1rem; }
.pfx-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pfx-card { display: flex; flex-direction: column; border: 1px solid var(--pfx-line); border-radius: var(--pfx-radius); overflow: hidden; background: var(--pfx-bg); }
.pfx-noimg { aspect-ratio: 16 / 6 !important; display: flex !important; align-items: center; justify-content: center; color: var(--pfx-muted, #94a3b8); }
.pfx-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--pfx-soft); display: block; }
.pfx-body { padding: 1rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.pfx-body h4 { margin: 0; font-size: 1.1rem; }
.pfx-desc { margin: 0; color: var(--pfx-muted); font-size: .9rem; }
.pfx-similar { margin: -.35rem 0 0; color: var(--pfx-muted); font-size: .85rem; }
.pfx-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.pfx-specs li { font-size: .78rem; padding: .15rem .55rem; border: 1px solid var(--pfx-line); border-radius: 999px; color: var(--pfx-muted); }
.pfx-price { margin-top: auto; display: flex; flex-direction: column; }
.pfx-total { font-size: 1.5rem; font-weight: 700; }
.pfx-per { font-size: .85rem; color: var(--pfx-muted); }
.pfx-summary { border: 1px solid var(--pfx-line); border-radius: var(--pfx-radius); padding: 1.1rem; margin-bottom: 1.5rem; background: var(--pfx-soft); }
.pfx dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.pfx dt { color: var(--pfx-muted); } .pfx dd { margin: 0; }
.pfx-strong { font-weight: 700; color: inherit !important; font-size: 1.1rem; }
.pfx-grid2 { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pfx-check { display: flex !important; gap: .5rem; align-items: flex-start; font-weight: 400 !important; margin: .5rem 0 1rem; }
.pfx-check input { width: auto; min-height: 0; margin-top: .2rem; }
.pfx-invalid input, .pfx-invalid select, .pfx-check.pfx-invalid { border-color: var(--pfx-error); color: var(--pfx-error); }
.pfx-notice { padding: .8rem 1rem; border-radius: 8px; background: var(--pfx-soft); border: 1px solid var(--pfx-line); }
.pfx-error { border-color: var(--pfx-error); color: var(--pfx-error); }
.pfx-link { font-size: .9rem; }
.pfx-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.pfx-done { text-align: center; max-width: 560px; margin: 0 auto; padding: 1.5rem; border: 1px solid var(--pfx-line); border-radius: var(--pfx-radius); }
.pfx-done dl { text-align: left; }
.pfx-tick { width: 56px; height: 56px; margin: 0 auto .75rem; border-radius: 50%; background: #16a34a; color: #fff; font-size: 30px; line-height: 56px; }
.pfx-ref { font-size: 1.1rem; }
@media (min-width: 640px) { .pfx-btn { width: auto; } .pfx-card .pfx-btn { width: 100%; } }

/* Insurance, extras, discount code */
.pfx-options { border: 1px solid var(--pfx-line); border-radius: var(--pfx-radius); padding: 1.1rem; margin-bottom: 1.5rem; }
.pfx-options .pfx-title:first-of-type { margin-top: 0; }
.pfx-choices { display: grid; gap: .5rem; margin-bottom: 1rem; }
.pfx-choice { display: flex; gap: .75rem; align-items: center; padding: .7rem .85rem; border: 1px solid var(--pfx-line); border-radius: 10px; cursor: pointer; min-width: 0; }
.pfx-choice:has(input:checked) { border-color: var(--pfx-accent); box-shadow: 0 0 0 1px var(--pfx-accent); }
.pfx-choice input[type=radio] { width: auto; min-height: 0; flex: none; }
.pfx-choice > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pfx-choice small { color: var(--pfx-muted); }
.pfx-extra select { width: auto; min-width: 4.5rem; flex: none; }
.pfx-btn-secondary { background: transparent; color: var(--pfx-accent) !important; border: 1px solid var(--pfx-accent); }
.pfx-error-text { color: var(--pfx-error); display: block; margin-top: .25rem; }
.pfx-muted { color: var(--pfx-muted); margin: .5rem 0; }

/* Search box: vehicle, separate pickup/return fields, dates, driver age and search. */
.pfx-search { position: relative; z-index: 2; width: 100%; max-width: none; background: var(--pfx-accent); color: var(--pfx-accent-text); border: 0; border-radius: 16px;
    padding: clamp(1rem, 2.5vw, 1.6rem); margin: 0 auto 1.5rem; box-shadow: none; }
.pfx-types { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.pfx-types legend { font-weight: 700; font-size: .95rem; margin-bottom: .45rem; padding: 0; }
.pfx-tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--pfx-line); border-radius: 8px; overflow: hidden; max-width: 100%; }
.pfx .pfx-tab { margin: 0; font-size: .92rem; cursor: pointer; }
.pfx-tab input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; pointer-events: none; }
.pfx-tab span { display: flex; align-items: center; gap: .55rem; padding: .55rem 1.1rem; min-height: 46px; font-weight: 600; }
.pfx-tab + .pfx-tab span { border-left: 1px solid var(--pfx-line); }
.pfx-tab input:checked + span { background: var(--pfx-accent); color: var(--pfx-accent-text); }
.pfx-tab input:focus-visible + span { outline: 2px solid var(--pfx-accent); outline-offset: -4px; }
.pfx-main { display: grid; gap: 0 .85rem; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(220px, 1.4fr) minmax(220px, 1.4fr) minmax(170px, auto); align-items: end; }
.pfx-main > .pfx-field { margin-bottom: .6rem; }
.pfx-search label { font-weight: 700; font-size: .92rem; }
.pfx-labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .3rem; }
.pfx-labelrow > label { margin: 0; }
.pfx .pfx-same { display: inline-flex; align-items: center; gap: .35rem; font-weight: 400; font-size: .85rem; margin: 0; cursor: pointer; white-space: nowrap; }
.pfx-same input { width: 1.05rem; height: 1.05rem; min-height: 0; padding: 0; accent-color: var(--pfx-accent); }
.pfx-icon-input { position: relative; }
.pfx-icon-input svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: #4b5563; pointer-events: none; }
.pfx-icon-input select { padding-left: 2.3rem; min-height: 50px; }
.pfx-rl { margin-top: 0; }
.pfx-search:has(#pf_same:checked) .pfx-return-label,
.pfx-search:has(#pf_same:checked) .pfx-rl { display: none; }
.pfx-dt input, .pfx-dt select { min-height: 50px; }
.pfx-bottom { display: flex; align-items: center; justify-content: flex-start; gap: .75rem; flex-wrap: wrap; margin-top: .2rem; }
.pfx .pfx-age { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-weight: 500; font-size: .98rem; color: #111; }
.pfx-age-select { position: relative; display: inline-block; }
.pfx-age-select select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; min-height: 0; width: auto;
    padding: .2rem 1.4rem .2rem .1rem; font-weight: 700; color: #111; cursor: pointer; }
.pfx-age-select::after { content: ""; position: absolute; right: .3rem; top: 50%; width: .45rem; height: .45rem; margin-top: -.35rem;
    border-right: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(45deg); pointer-events: none; }
.pfx-search-btn { min-width: 170px; min-height: 50px; margin-bottom: .6rem; font-size: 1rem; }
.pfx-search .pfx-btn { color: #111 !important; background: #fff !important; border: 1px solid #111; border-radius: 10px; box-shadow: none; }
.pfx-search .pfx-btn:hover { background: #f8fafc !important; }
.pfx-search input:not([type=hidden]), .pfx-search select { color: #111827 !important; background: #fff !important; border: 1px solid #cbd5e1; border-radius: 10px; box-shadow: none; }
.pfx-search input:focus-visible, .pfx-search select:focus-visible { outline: 2px solid var(--pfx-accent); outline-offset: 1px; }
.pfx-search .pfx-same input { accent-color: #111; }
.pfx-offer-jump { display: inline-flex; align-items: center; min-height: 40px; padding: .45rem .8rem; border: 1px solid #111; border-radius: 999px; background: #fff; color: #111 !important; font-size: .9rem; font-weight: 700; line-height: 1.2; text-decoration: none !important; white-space: nowrap; }
.pfx-offer-jump:hover { background: #f8fafc; text-decoration: underline !important; }
.pfx-offer-jump:focus-visible { outline: 2px solid var(--pfx-accent); outline-offset: 2px; }
.pfx-date-display { cursor: pointer; min-width: 0; overflow: visible; text-overflow: clip; white-space: nowrap; }
.pfx-dt, .pfx-dt .pfx-row { min-width: 0; }
.pfx-dt .pfx-row select { flex: 0 0 6.25rem; }
.pfx-search input[type=hidden] { display: none !important; }
.pfx-calendar[hidden] { display: none; }
.pfx-calendar { position: absolute; z-index: 50; width: min(700px, calc(100vw - 32px)); max-width: calc(100% - 16px); max-height: calc(100vh - 24px); overflow-y: auto; padding: 16px; border: 1px solid #cbd5e1; border-radius: 12px;
    background: #fff; color: #111827; box-shadow: 0 18px 48px rgba(15, 23, 42, .2); }
.pfx-cal-head { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 8px; }
.pfx-cal-head > button { width: 36px; height: 36px; border: 0; background: transparent; color: #334155; font-size: 28px; line-height: 1; cursor: pointer; }
.pfx-cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: center; font-weight: 700; text-transform: capitalize; }
.pfx-cal-grids { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pfx-cal-month { min-width: 0; }
.pfx-cal-title { display: none; }
.pfx-cal-week, .pfx-cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.pfx-cal-week { margin: 8px 0 2px; color: #64748b; font-size: .82rem; font-weight: 700; }
.pfx-cal-week span { padding: 5px 0; }
.pfx-cal-days { grid-auto-rows: 36px; align-items: center; }
.pfx-cal-day { justify-self: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #111827; font: inherit; cursor: pointer; }
.pfx-cal-day:hover:not(:disabled) { background: #f1f5f9; }
.pfx-cal-day.is-selected { background: #555; color: #fff; }
.pfx-cal-day:disabled { color: #cbd5e1; cursor: default; }
.pfx-cal-rule { height: 2px; margin: 12px 0; background: var(--pfx-accent); }
.pfx-cal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 44px; }
.pfx-cal-picked { margin-right: auto; color: #475569; font-size: .9rem; }
.pfx-cal-footer button { min-height: 42px; padding: 0 18px; border: 2px solid #111; border-radius: 8px; background: #fff; color: #111; font: inherit; font-weight: 700; cursor: pointer; }
.pfx-cal-footer .pfx-cal-apply { background: var(--pfx-accent); color: var(--pfx-accent-text); border-color: var(--pfx-accent); }
.pfx-cal-footer button:focus-visible, .pfx-cal-head button:focus-visible, .pfx-cal-day:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
@media (max-width: 1040px) {
    .pfx-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .pfx-search-btn { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 560px) {
    .pfx-main { grid-template-columns: minmax(0, 1fr); }
    .pfx-tabs { display: flex; } .pfx-tab { flex: 1; } .pfx-tab span { justify-content: center; padding: .55rem .6rem; }
    .pfx-search-btn { grid-column: auto; width: 100%; min-width: 0; }
    .pfx-bottom > span:empty { display: none; }
}

/* [platflix_faq] (AEO package) */
.pfx-faq { max-width: 800px; }
.pfx-faq-item { border-bottom: 1px solid var(--pfx-line); }
.pfx-faq-item summary { cursor: pointer; padding: .9rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.pfx-faq-item summary::-webkit-details-marker { display: none; }
.pfx-faq-item summary::after { content: "+"; color: var(--pfx-muted); font-weight: 400; }
.pfx-faq-item[open] summary::after { content: "−"; }
.pfx-faq-item p { margin: 0 0 1rem; color: var(--pfx-text); line-height: 1.6; }

/* 1.12: optional address and trip fields */
.pfx-subtitle { margin: 1.1rem 0 .4rem; font-size: 1rem; font-weight: 600; color: var(--pfx-muted); }
.pfx-offer { margin: 1rem 0; padding: .75rem 1rem; border: 1px dashed var(--pfx-line, #d1d5db); border-radius: 10px; }
.pfx-offer summary { cursor: pointer; font-weight: 600; color: #111; }
.pfx-offer form { margin-top: .75rem; }
.pfx-muted { color: var(--pfx-muted, #6b7280); font-size: .93rem; }

/* 1.16 "Area / region": suggestions while typing */
.pfx-ac { position: relative; }
.pfx-sugg { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; max-height: 16rem; overflow-y: auto; margin-top: 2px; background: #fff; color: #111827; border: 1px solid #d1d5db; border-radius: .5rem; box-shadow: none; }
.pfx-sugg[hidden] { display: none; }
.pfx-sugg-item { padding: .55rem .75rem; cursor: pointer; font-size: .95rem; line-height: 1.3; }
.pfx-sugg-item:hover, .pfx-sugg-item.pfx-on { background: #eff6ff; }

@media (max-width: 560px) {
    .pfx-calendar { padding: 10px; }
    .pfx-cal-grids { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pfx-cal-months { grid-template-columns: 1fr; }
    .pfx-cal-months span:nth-child(2), .pfx-cal-month:nth-child(2) { display: none; }
    .pfx-cal-days { grid-auto-rows: 32px; }
    .pfx-cal-day { width: 28px; height: 28px; }
    .pfx-cal-footer { flex-wrap: wrap; }
    .pfx-cal-picked { flex-basis: 100%; margin-right: 0; }
    .pfx-cal-footer button { flex: 1 1 auto; padding: 0 12px; }
}

/* Use the plugin's actual column width: WordPress sidebars can be narrow on a wide screen. */
@container platflix (max-width: 1040px) {
    .pfx-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pfx-search-btn { grid-column: 1 / -1; justify-self: end; }
}
@container platflix (max-width: 600px) {
    .pfx-search { padding: 1rem; border-radius: 12px; }
    .pfx-main { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pfx-search-btn { grid-column: auto; justify-self: stretch; width: 100%; min-width: 0; }
    .pfx-tabs { display: flex; }
    .pfx-tab { flex: 1; }
    .pfx-tab span { justify-content: center; padding: .55rem .6rem; }
    .pfx-calendar { padding: 10px; }
    .pfx-cal-grids { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pfx-cal-months { grid-template-columns: 1fr; }
    .pfx-cal-months span:nth-child(2), .pfx-cal-month:nth-child(2) { display: none; }
    .pfx-cal-days { grid-auto-rows: 34px; }
    .pfx-cal-day { width: 30px; height: 30px; }
    .pfx-cal-footer { flex-wrap: wrap; }
    .pfx-cal-picked { flex-basis: 100%; margin-right: 0; }
    .pfx-cal-footer button { flex: 1 1 auto; }
}
@container platflix (max-width: 360px) {
    .pfx-dt .pfx-row { flex-direction: column; gap: .4rem; }
    .pfx-dt .pfx-row input, .pfx-dt .pfx-row select { flex: 0 1 auto; width: 100%; max-width: none; }
}



.pfx [hidden] { display: none !important; }
