.pc-wrapper { margin: 1.5em 0; }
.pc-location-title { margin-bottom: 4px; }
.pc-location-address { color: #555; font-size: 0.92em; margin-bottom: 1em; }
.pc-table-title { margin-bottom: 4px; }
.pc-table-description { color: #555; font-size: 0.92em; margin-bottom: 1em; }

/* Scrollable wrapper for narrow screens */
.pc-table-scroll { overflow-x: auto; }

.pc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
}

.pc-table th,
.pc-table td {
	padding: 10px 14px;
	border: 1px solid #ddd;
	text-align: left;
}

.pc-table thead th {
	background: #2c3e50;
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}

.pc-table tbody tr:nth-child(even) { background: #f7f9fc; }
.pc-table tbody tr:hover           { background: #eef2f7; }

.pc-col-part  { min-width: 180px; }
.pc-col-price { min-width: 130px; white-space: nowrap; }

.pc-item-remarks {
	display: block;
	color: #777;
	font-size: 0.85em;
	font-style: italic;
	margin-top: 2px;
}

/* Scan-type grouped display */
.pc-scan-type-group { margin-bottom: 28px; }
.pc-scan-type-heading {
	display: inline-block;
	background: #2c3e50;
	color: #fff;
	padding: 5px 14px;
	border-radius: 3px 3px 0 0;
	margin: 0 0 0 0;
	font-size: 0.95em;
	letter-spacing: 0.03em;
}
.pc-scan-type-group .pc-table { margin-top: 0; }
.pc-scan-type-group .pc-table thead th:first-child { border-top-left-radius: 0; }

.pc-error,
.pc-empty { color: #888; font-style: italic; }

/* ── Price Calculator Form ─────────────────────────────────────── */
.pc-form-wrapper { margin: 1.5em 0; }

/* ── Quickbook button ──────────────────────────────────────────── */
.pc-quickbook-wrapper { margin: 1.5em 0; }
.pc-col-book { width: 1%; white-space: nowrap; }
.pc-quickbook-btn {
    display: inline-block;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 0.88em;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.pc-quickbook-btn:hover { background: #3d5166; }
.pc-form-instruction { color: #555; font-size: 0.92em; margin-bottom: 1em; }

/* ── Custom multi-select dropdown ─────────────────────────────── */
.pc-dropdown {
    position: relative;
    margin-bottom: 1.25em;
    font-size: 0.95em;
}

/* The visible field — tags + search input sit here together */
.pc-dropdown-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #d4d4d5;
    border-radius: 4px;
    background: #fff;
    cursor: text;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pc-dropdown-field:focus-within {
    border-color: #96c8da;
    box-shadow: 0 0 0 2px rgba(150,200,218,0.25);
}
.pc-dropdown[aria-expanded="true"] .pc-dropdown-field {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Search input — always visible, grows to fill available width */
.pc-dropdown-search {
    flex: 1;
    min-width: 140px;
    border: none;
    outline: none;
    padding: 2px 0;
    font-size: 0.95em;
    background: transparent;
    color: #333;
}
.pc-dropdown-search::placeholder { color: #aaa; }

/* Selected item tags */
.pc-dropdown-tags { display: contents; }

.pc-dropdown-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f0fe;
    border: 1px solid #c5d8f6;
    border-radius: 3px;
    padding: 3px 4px 3px 8px;
    font-size: 0.88em;
    color: #1a3c6e;
    white-space: nowrap;
}
.pc-tag-label { line-height: 1.3; }
.pc-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: none;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1.1em;
    line-height: 1;
    color: #5580b5;
    padding: 0;
}
.pc-tag-remove:hover { background: #c5d8f6; color: #1a3c6e; }

/* Dropdown options panel */
.pc-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #96c8da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 999;
    max-height: 360px;
    display: flex;
    flex-direction: column;
}
.pc-dropdown-menu[hidden] { display: none !important; }
.pc-dropdown-options {
    overflow-y: auto;
    flex: 1 1 auto;
}

.pc-dropdown-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}
.pc-dropdown-option:last-child { border-bottom: none; }
.pc-dropdown-option:hover { background: #f0f7ff; }
.pc-dropdown-option.pc-option--selected { background: #e8f0fe; }
.pc-dropdown-option.pc-option--selected .pc-option-name { color: #1a3c6e; }
.pc-dropdown-option.pc-option--selected .pc-option-price-amount { color: #1a3c6e; }

/* Checkbox */
.pc-option-check {
    display: flex;
    align-items: center;
    margin-right: 10px;
    flex-shrink: 0;
}
.pc-option-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    pointer-events: none;
    accent-color: #2c3e50;
    cursor: pointer;
}

.pc-option-name {
    font-weight: 500;
    color: #333;
    flex: 1;
    font-size: 0.92em;
    line-height: 1.4;
}
.pc-option-prices {
    font-weight: 400;
    font-size: 0.88em;
    color: #888;
    margin-left: 4px;
}

.pc-dropdown-empty { padding: 10px 12px; color: #aaa; font-style: italic; font-size: 0.88em; }

.pc-dropdown-footer {
    padding: 8px 12px;
    border-top: 1px solid #e8e8e8;
    background: #fafafa;
    border-radius: 0 0 4px 4px;
    flex-shrink: 0;
}
.pc-dropdown-done {
    display: block;
    width: 100%;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-align: center;
}
.pc-dropdown-done:hover { background: #3d5166; }

/* Calendar button */
.pc-calendar-wrap {
    margin-top: 1.25em;
}
.pc-calendar-btn {
    display: inline-block;
    background: #2c3e50;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}
.pc-calendar-btn:hover { background: #3d5166; }

/* Contrast note (pricing table display) */
.pc-contrast-note {
    margin-top: 0.75em;
    font-size: 0.92em;
    color: #555;
}

/* Contrast checkbox (calculator form) */
.pc-contrast-option {
    margin-bottom: 1em;
}
.pc-contrast-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95em;
    color: #333;
    line-height: 1.4;
}
.pc-contrast-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    padding: 0;
    accent-color: #2c3e50;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
}
.pc-contrast-text {
    white-space: nowrap;
}
.pc-contrast-price {
    color: #888;
    font-size: 0.9em;
    white-space: nowrap;
}
/* Result box */
.pc-form-result {
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 1em;
}
.pc-form-result--empty {
    background: #f9f9f9;
    border: 1px dashed #ccc;
    color: #888;
    font-style: italic;
}
.pc-form-result--empty p { margin: 0; }
.pc-form-result--active {
    background: #2c3e50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
}
.pc-result-left  { flex: 1; min-width: 0; }
.pc-result-right { flex-shrink: 0; }
.pc-result-book-btn {
    display: inline-block;
    background: #fff;
    color: #2c3e50 !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s;
}
.pc-result-book-btn:hover { background: #e8f0fe; }
.pc-form-count { margin: 0 0 4px; font-size: 0.9em; color: #ffffff !important; }
.pc-form-total { margin: 0 0 4px; font-size: 2em; font-weight: 700; line-height: 1.1; color: #ffffff !important; }
.pc-form-rate  { margin: 0; font-size: 0.85em; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Booking Modal ─────────────────────────────────────────────── */
.pc-booking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.pc-booking-overlay[hidden] { display: none !important; }

.pc-booking-panel {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 660px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pc-booking-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.pc-booking-title {
    margin: 0 0 3px;
    font-size: 1.15em;
    color: #2c3e50;
}
.pc-booking-location {
    margin: 0;
    font-size: 0.88em;
    color: #888;
}
.pc-booking-scan {
    margin: 4px 0 0;
    font-size: 0.88em;
    color: #1a3c6e;
    font-weight: 600;
}

/* Payment section (Stripe Card Element or plain card fields) inside the booking form */
.pcb-payment-section {
    margin-bottom: 14px;
}
.pcb-payment-amount {
    margin: 0 0 10px;
    font-size: 0.92em;
    color: #333;
}
.pcb-card-note {
    margin: 0 0 12px;
    font-size: 0.85em;
    color: #555;
}
.pcb-card-row {
    display: flex;
    gap: 12px;
}
.pcb-card-field-half {
    flex: 1;
    min-width: 0;
}
.pcb-card-element {
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}
.pcb-card-errors {
    margin-top: 6px;
    font-size: 0.85em;
    color: #d63638;
    min-height: 1em;
}
.pc-booking-close {
    background: none;
    border: none;
    font-size: 1.8em;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0 0 0 16px;
    flex-shrink: 0;
}
.pc-booking-close:hover { color: #333; }

.pc-booking-body {
    overflow-y: auto;
    flex: 1;
    padding: 20px 24px 24px;
}

.pc-booking-step-label {
    margin: 0 0 12px;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #2c3e50;
}

/* Date strip */
.pc-booking-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.pc-booking-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    min-width: 54px;
    transition: border-color 0.1s, background 0.1s;
    font-family: inherit;
}
.pc-booking-date:hover:not(:disabled) {
    border-color: #2c3e50;
    background: #f0f7ff;
}
.pc-booking-date--selected,
.pc-booking-date--selected:hover {
    border-color: #2c3e50 !important;
    background: #2c3e50 !important;
}
.pc-booking-date--selected .pc-booking-date-day,
.pc-booking-date--selected .pc-booking-date-num,
.pc-booking-date--selected .pc-booking-date-month { color: #fff !important; }

.pc-booking-date--closed,
.pc-booking-date:disabled {
    background: #f7f7f7 !important;
    border-color: #e8e8e8 !important;
    cursor: not-allowed;
}
.pc-booking-date-day   { font-size: 0.68em; text-transform: uppercase; letter-spacing: 0.05em; color: #999; line-height: 1.3; }
.pc-booking-date-num   { font-size: 1.3em; font-weight: 700; line-height: 1.2; color: #2c3e50; }
.pc-booking-date-month { font-size: 0.68em; color: #bbb; line-height: 1.3; }
.pc-booking-date--closed .pc-booking-date-day,
.pc-booking-date--closed .pc-booking-date-num,
.pc-booking-date--closed .pc-booking-date-month,
.pc-booking-date:disabled .pc-booking-date-day,
.pc-booking-date:disabled .pc-booking-date-num,
.pc-booking-date:disabled .pc-booking-date-month { color: #ccc !important; }

/* Time slots */
.pc-booking-slots-wrap { margin-bottom: 28px; }
.pc-booking-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pc-booking-slot {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 0.92em;
    font-family: inherit;
    transition: border-color 0.1s, background 0.1s;
}
.pc-booking-slot:hover { border-color: #2c3e50; background: #f0f7ff; }
.pc-booking-slot--selected,
.pc-booking-slot--selected:hover {
    border-color: #2c3e50 !important;
    background: #2c3e50 !important;
    color: #fff !important;
}

/* Booking form */
.pc-booking-form-wrap { margin-bottom: 8px; }
.pc-booking-form-inner label {
    display: block;
    margin-bottom: 14px;
    font-size: 0.88em;
    font-weight: 600;
    color: #555;
}
.pc-booking-input {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    color: #333;
    box-sizing: border-box;
    background: #fff;
}
.pc-booking-input:focus {
    border-color: #96c8da;
    outline: none;
    box-shadow: 0 0 0 2px rgba(150, 200, 218, 0.25);
}
.pc-booking-textarea { resize: vertical; min-height: 80px; }
.pc-req { color: #d63638; }

.pc-booking-sel-info {
    background: #f0f7ff;
    border: 1px solid #c5d8f6;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 0.88em;
    color: #1a3c6e;
    margin-bottom: 16px;
    font-weight: 500;
    min-height: 38px;
}
.pc-booking-sel-info:empty { display: none; }

.pc-booking-submit {
    display: block;
    width: 100%;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px;
    font-size: 1.05em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}
.pc-booking-submit:hover    { background: #3d5166; }
.pc-booking-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.pc-booking-msg {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.88em;
    line-height: 1.4;
}
.pc-booking-msg--error {
    background: #fdf3f4;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.pc-booking-no-avail {
    color: #888;
    font-style: italic;
    font-size: 0.92em;
    margin: 0;
}

/* Success screen */
.pc-booking-success {
    text-align: center;
    padding: 40px 16px;
}
.pc-booking-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #d4edda;
    color: #155724;
    font-size: 1.8em;
    margin-bottom: 16px;
}
.pc-booking-success h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #2c3e50;
}
.pc-booking-success p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

/* ── Price Calculator Wizard ───────────────────────────────── */
.pc-wizard { margin: 1.5em 0; }

.pc-wiz-step { /* intentionally unstyled — children carry the layout */ }

.pc-wiz-back {
    background: none;
    border: none;
    color: #666;
    font-size: 0.88em;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.75em;
    display: inline-block;
}
.pc-wiz-back:hover { color: #2c3e50; }

.pc-wiz-breadcrumb {
    display: inline-block;
    background: #f0f7ff;
    border: 1px solid #c5d8f6;
    color: #1a3c6e;
    font-size: 0.82em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 0.9em;
}

.pc-wiz-step-label {
    font-size: 0.74em;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
    font-weight: 700;
    margin: 0 0 4px;
}

.pc-wiz-title {
    margin: 0 0 1.1em;
    font-size: 1.2em;
    color: #2c3e50;
}

/* Card grid — used for both scan type and location steps */
.pc-wiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 0.5em;
}

.pc-wiz-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
    box-sizing: border-box;
}
.pc-wiz-card:hover {
    border-color: #2c3e50;
    background: #f0f7ff;
}

.pc-wiz-card-name {
    font-size: 1em;
    font-weight: 700;
    color: #2c3e50;
    display: block;
    margin-bottom: 3px;
}

.pc-wiz-card-sub {
    font-size: 0.82em;
    color: #888;
    display: block;
    line-height: 1.4;
    white-space: pre-line;
}

/* Reset button */
.pc-form-reset {
    background: none;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.88em;
    color: #555;
}
.pc-form-reset:hover { border-color: #999; color: #333; }
