/* Inherits the section's font and text colour. Background, text and button colours can be set in the plugin settings. */
.pcfg { --pcfg-accent: #000; --pcfg-accent-light: #8f8f8f; --pcfg-accent-dark: #000; --pcfg-on-accent: #fff; --pcfg-on-light: #000; font-family: inherit; color: inherit; }
.pcfg.pcfg-has-bg { padding: 24px; border-radius: 6px; }
/* Left-align everything, even when the theme or page section centres its text. */
.pcfg, .pcfg * { text-align: left; }
/* Dropdowns match the contact form: flat underline, square corners, no focus box. !important keeps themes from adding rounded borders, shadows or their own arrows. */
.pcfg-select { position: relative; }
.pcfg-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pcfg select { display: block; width: 100%; height: 36px; padding: 0 44px 0 10px !important; font: inherit; color: inherit; -webkit-appearance: none !important; appearance: none !important; background: transparent none !important; border: 0 !important; border-bottom: 1px solid currentColor !important; border-radius: 0 !important; box-shadow: none !important; outline: none !important; }
.pcfg select { text-align-last: left; }
.pcfg select:focus { border-bottom-width: 2px !important; }
.pcfg-summary dd { text-align: right; }
.pcfg *, .pcfg *::before, .pcfg *::after { box-sizing: border-box; }
.pcfg-title { margin: 0 0 16px; }
.pcfg-progress { height: 14px; border-radius: 7px; background: rgba(128, 128, 128, .25); margin: 8px 0 28px; overflow: hidden; }
.pcfg-progress span { display: block; height: 100%; background: var(--pcfg-accent); }
.pcfg label, .pcfg h4 { display: block; font-weight: 700; margin: 20px 0 6px; }
.pcfg select option { color: #000; }
.pcfg-muted { opacity: .7; }
.pcfg-total-label { font-weight: 700; margin-top: 24px; }
.pcfg-total { font-size: 2em; font-weight: 700; line-height: 1.2; }
.pcfg-summary { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.pcfg-summary dt, .pcfg-summary dd { margin: 0; padding: 8px 0; border-bottom: 1px solid rgba(128, 128, 128, .4); }
.pcfg-summary dd { text-align: right; white-space: nowrap; }
.pcfg-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Buttons: active = the button colour, inactive = lighter, hover = darker. */
.pcfg-btn { font: inherit; font-size: 14px; font-weight: 600; text-transform: uppercase; padding: 15px 30px; border: 0; border-radius: 3px; cursor: pointer; background: var(--pcfg-accent); color: var(--pcfg-on-accent); transition: background-color .15s; }
.pcfg-btn:hover:not([disabled]) { background: var(--pcfg-accent-dark); }
.pcfg-btn-light, .pcfg-btn[disabled] { background: var(--pcfg-accent-light); color: var(--pcfg-on-light); }
.pcfg-btn-light:hover { background: var(--pcfg-accent-dark); color: var(--pcfg-on-accent); }
.pcfg-btn[disabled] { cursor: not-allowed; }
.pcfg-btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.pcfg-btn-ghost:hover:not([disabled]) { background: var(--pcfg-accent-light); color: var(--pcfg-on-light); }
.pcfg-mode { margin-bottom: 24px; }
.pcfg-mode-title { font-weight: 700; font-size: 1.2em; margin-bottom: 8px; }
.pcfg-mode-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Step 2: contact details, flat underline fields like the select and the site's contact form. */
.pcfg-contact { margin-top: 32px; }
.pcfg-contact-title { margin: 0 0 8px; font-size: 1.4em; }
.pcfg-contact input[type=text], .pcfg-contact input[type=email], .pcfg-contact input[type=tel] { display: block; width: 100%; height: 48px; margin: 8px 0 0; padding: 0 10px !important; font: inherit; color: inherit; background: transparent none !important; border: 0 !important; border-bottom: 1px solid currentColor !important; border-radius: 0 !important; box-shadow: none !important; outline: none !important; }
.pcfg-contact input:focus { border-bottom-width: 2px !important; }
.pcfg-contact input::placeholder { color: inherit; opacity: .7; }
.pcfg-contact .pcfg-select { margin-top: 8px; }
.pcfg-contact .pcfg-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.pcfg-msg { min-height: 1.4em; margin: 16px 0 0; }

/* One font for everything: Montserrat. The site itself must load the font. */
.pcfg, .pcfg *, .pcfg input, .pcfg select, .pcfg button, .pcfg option { font-family: 'Montserrat', Arial, sans-serif !important; }
/* Contact form text follows the form's colour, even where the theme styles headings and fields. */
.pcfg .pcfg-contact-title, .pcfg-contact input, .pcfg-contact select, .pcfg-contact label { color: inherit !important; }
.pcfg-contact input::placeholder { color: inherit !important; opacity: .7; }
.pcfg-contact select option { color: #000; }
