/* Pacific Delivery — checkout choice, order tracker, driver sign-up and driver app.
   Uses the theme's tokens (--c-primary, --c-ink, --c-ink-soft, --c-line, --radius-lg, --f-head) with fallbacks. */
.ppd-choice, .ppd-track, .ppd-card {
	--ppd-primary: var(--c-primary, #0671a8);
	--ppd-ink: var(--c-ink, #1e293b);
	--ppd-soft: var(--c-ink-soft, #55657a);
	--ppd-line: var(--c-line, #e3e8ee);
	--ppd-radius: var(--radius-lg, 18px);
}

/* checkout */
.ppd-choice { margin: 20px 0; padding: clamp(18px, 2.5vw, 26px); border: 1px solid var(--ppd-line); border-radius: var(--ppd-radius); background: #fff; }
.ppd-choice__title { margin: 0 0 12px; font: var(--w-head, 700) 1.2rem/1.25 var(--f-head, inherit); color: var(--ppd-ink); }
.ppd-choice__options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ppd-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--ppd-line); border-radius: 14px; cursor: pointer; }
.ppd-option:has(input:checked) { border-color: var(--ppd-primary); background: color-mix(in srgb, var(--ppd-primary) 6%, #fff); }
.ppd-option:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.ppd-option input { margin-top: 4px; accent-color: var(--ppd-primary); }
.ppd-option strong { display: block; color: var(--ppd-ink); }
.ppd-option small { display: block; margin-top: 2px; color: var(--ppd-soft); font-size: .9rem; line-height: 1.4; }
.ppd-choice__delivery { margin-top: 16px; }
.ppd-choice__delivery select, .ppd-choice__delivery textarea, .ppd-choice__delivery input { width: 100%; }
.ppd-choice__hint, .ppd-choice__note { margin: 8px 0 0; color: var(--ppd-soft); font-size: .92rem; }

/* customer tracker (order page) */
.ppd-track { margin: 24px 0; padding: clamp(18px, 2.5vw, 26px); border: 1px solid var(--ppd-line); border-radius: var(--ppd-radius); }
.ppd-track__title { margin: 0 0 4px; font-size: 1.25rem; }
.ppd-track__where, .ppd-track__note { margin: 0 0 12px; color: var(--ppd-soft); }
.ppd-steps { list-style: none; margin: 0 0 12px; padding: 0; }
.ppd-steps__item { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 8px 30px; color: var(--ppd-soft); }
.ppd-steps__item::before { content: ""; position: absolute; left: 4px; top: 12px; width: 14px; height: 14px; border: 2px solid var(--ppd-line); border-radius: 50%; background: #fff; }
.ppd-steps__item.is-done { color: var(--ppd-ink); font-weight: 600; }
.ppd-steps__item.is-done::before { border-color: var(--ppd-primary); background: var(--ppd-primary); }
.ppd-steps__item time { font-weight: 400; color: var(--ppd-soft); font-size: .9rem; white-space: nowrap; }

/* sign-up + app cards */
.ppd-join, .ppd-app { max-width: 560px; margin: 0 auto; padding: 0 0 32px; }
.ppd-card { padding: clamp(18px, 4vw, 28px); border: 1px solid var(--ppd-line); border-radius: var(--ppd-radius); background: #fff; }
.ppd-card h2 { margin: 0 0 8px; }
.ppd-card--ok { border-color: #0d7a3a; }
.ppd-form label { display: block; margin-bottom: 4px; font-weight: 600; }
.ppd-form input:not([type=checkbox]), .ppd-form select, .ppd-card #loginform input[type=text], .ppd-card #loginform input[type=password] { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--ppd-line); border-radius: 12px; font-size: 16px; }
.ppd-check label { font-weight: 400; }
.ppd-hp { position: absolute; left: -9999px; }
.ppd-error { padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #b32d2e; font-weight: 600; }
.ppd-muted { color: var(--c-ink-soft, #55657a); font-size: .92rem; }

/* driver app */
.ppd-app__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 16px; }
.ppd-app__head span { display: block; color: var(--c-ink-soft, #55657a); font-size: .9rem; }
.ppd-app__foot { margin-top: 24px; text-align: center; }
.ppd-list { margin: 0 0 24px; }
.ppd-list__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.1rem; }
.ppd-list__title span { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--c-line, #e3e8ee); font-size: .85rem; text-align: center; }
.ppd-job { margin: 0 0 12px; padding: 16px; border: 1px solid var(--c-line, #e3e8ee); border-left: 5px solid var(--c-primary, #0671a8); border-radius: 14px; background: #fff; }
.ppd-job.is-open { border-left-color: #e08a00; }
.ppd-job.is-delivered { border-left-color: #0d7a3a; opacity: .85; }
.ppd-job.is-focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary, #0671a8) 35%, transparent); }
.ppd-job__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ppd-chip { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--c-bg-tint, #eef4f8); font-size: .8rem; font-weight: 700; }
.ppd-job__facts { list-style: none; margin: 10px 0; padding: 0; }
.ppd-job__facts li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--c-line, #e3e8ee); font-size: .95rem; }
.ppd-job__facts li span { color: var(--c-ink-soft, #55657a); }
.ppd-job__facts li.is-cash { font-weight: 700; color: #8a4b00; }
.ppd-job__customer { padding: 10px 12px; border-radius: 10px; background: var(--c-bg-tint, #f4f7fa); }
.ppd-job__customer p { margin: 0 0 8px; }
.ppd-job__links { display: flex; gap: 8px; flex-wrap: wrap; }
.ppd-job__actions { display: grid; gap: 10px; margin-top: 12px; }
.ppd-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 18px; border: 0; border-radius: 999px; font-weight: 700; font-size: 1rem; text-align: center; text-decoration: none; cursor: pointer; }
.ppd-btn--go { background: var(--c-primary, #0671a8); color: #fff; }
.ppd-btn--go:disabled { opacity: .6; }
.ppd-btn--ghost { min-height: 44px; flex: 1; border: 2px solid var(--c-primary, #0671a8); background: #fff; color: var(--c-primary, #0671a8); }
.ppd-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ppd-cash { display: flex; gap: 10px; align-items: center; padding: 12px; border: 2px dashed #e08a00; border-radius: 12px; font-weight: 700; }
.ppd-cash input { width: 22px; height: 22px; }
.ppd-link { padding: 6px 0; border: 0; background: none; color: var(--c-primary, #0671a8); font-weight: 600; text-decoration: underline; cursor: pointer; }
.ppd-toast { position: sticky; top: 8px; z-index: 5; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #0d7a3a; color: #fff; font-weight: 600; }
.ppd-toast.is-error { background: #b32d2e; }

/* driver pages: no floating shop buttons over the job buttons */
.ppd-driver-page .whatsapp-float, .ppd-driver-page .sa-root { display: none !important; }
.ppd-choice__area-info { display: block; margin-top: 6px; color: var(--ppd-soft); font-size: .9rem; line-height: 1.4; }
.ppd-choice__area-info:empty { display: none; }
.ppd-guide { margin: 0 0 16px; padding: 4px 16px; border: 1px solid var(--c-line, #e3e8ee); border-radius: 14px; background: var(--c-bg-tint, #f4f7fa); }
.ppd-guide summary { padding: 10px 0; font-weight: 700; cursor: pointer; }
.ppd-guide ol { margin: 0 0 12px; padding-left: 20px; }
.ppd-guide li { margin-bottom: 8px; line-height: 1.45; }

/* driver app shell: own layout, delivery only */
body.ppd-shell { margin: 0; min-height: 100vh; background: var(--c-bg-tint, #f3f7f5); color: var(--c-ink, #1e293b); }
.ppd-bar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--c-line, #e3e8ee); }
.ppd-bar__in { max-width: 560px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ppd-bar__logo { display: block; height: 34px; width: auto; }
.ppd-bar__tag { padding: 5px 12px; border-radius: 999px; background: var(--c-primary, #0671a8); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.ppd-shell__main { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
.ppd-shell .ppd-app, .ppd-shell .ppd-join { padding-bottom: 0; }
.ppd-shell .ppd-card { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.ppd-hero { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 18px 14px 18px 18px; border-radius: 22px; overflow: hidden; color: var(--c-primary, #0671a8); background: linear-gradient(135deg, color-mix(in srgb, var(--c-primary, #0671a8) 14%, #fff), #fff 70%); border: 1px solid color-mix(in srgb, var(--c-primary, #0671a8) 18%, #fff); }
.ppd-hero__text { flex: 1 1 auto; min-width: 0; color: var(--c-ink, #1e293b); }
.ppd-hero__eyebrow { margin: 0 0 2px; color: var(--c-ink-soft, #55657a); font-size: .82rem; font-weight: 600; }
.ppd-hero h1 { margin: 0 0 10px; font-size: 1.55rem; line-height: 1.15; }
.ppd-rider { flex: 0 0 46%; max-width: 210px; height: auto; }
.ppd-btn--alerts { min-height: 40px; padding: 8px 14px; font-size: .9rem; background: var(--c-primary, #0671a8); color: #fff; }
.ppd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; }
.ppd-stat { display: block; padding: 12px 8px; border-radius: 16px; background: #fff; border: 1px solid var(--c-line, #e3e8ee); text-align: center; text-decoration: none; color: var(--c-ink, #1e293b); }
.ppd-stat strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.ppd-stat span { display: block; margin-top: 2px; color: var(--c-ink-soft, #55657a); font-size: .8rem; font-weight: 600; }
.ppd-stat.is-hot { background: #fff4e0; border-color: #f0b44c; }
.ppd-stat.is-hot strong { color: #a85d00; }
.ppd-stat.is-done strong { color: #0d7a3a; }
.ppd-shell .ppd-app__foot a { color: var(--c-primary, #0671a8); }
@media (max-width: 380px) { .ppd-hero h1 { font-size: 1.3rem; } .ppd-rider { flex-basis: 40%; } }
.ppd-btn--alerts.is-on { background: #e3f5ea; color: #0d7a3a; }
.ppd-card #wp-submit, .ppd-form button[type=submit] { min-height: 48px; padding: 10px 24px; border: 0; border-radius: 999px; background: var(--c-primary, #0671a8); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; }

/* photos */
.ppd-hero--photo { display: block; min-height: 230px; padding: 0; border: 0; background: #0f2a1d; color: #fff; }
.ppd-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ppd-hero--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 20, .05) 25%, rgba(10, 30, 20, .82) 100%); }
.ppd-hero--photo .ppd-hero__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; color: #fff; }
.ppd-hero--photo .ppd-hero__eyebrow { color: rgba(255, 255, 255, .85); }
.ppd-hero--photo h1 { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.ppd-hero--photo .ppd-btn--alerts { background: #fff; color: var(--c-primary, #0671a8); }
.ppd-hero--photo .ppd-btn--alerts.is-on { background: #e3f5ea; color: #0d7a3a; }
.ppd-card--photo { overflow: hidden; padding-top: 0; }
.ppd-card__img { display: block; width: calc(100% + 2 * clamp(18px, 4vw, 28px)); max-width: none; height: 180px; margin: 0 calc(-1 * clamp(18px, 4vw, 28px)) 18px; object-fit: cover; object-position: 50% 35%; }
.ppd-empty-art { max-width: 200px; margin: 4px 0 0; color: var(--c-primary, #0671a8); opacity: .9; }
.ppd-empty-art .ppd-rider { max-width: 100%; }
