/* Hyannis Honda Care - customer portal ([hhc_portal]) */

/* The theme's big page title and narrow content column are replaced on this page. */
.hhc-portal-page .entry-header,
.hhc-portal-page .page-header { display: none !important; }
.hhc-portal-page .site-main { padding-top: 0; }
.hhc-portal-page .entry-content > .hhc-portal,
.hhc-portal-page .hhc-portal { max-width: 1180px !important; width: calc(100% - 32px); margin: 40px auto 64px !important; }

.hhc-portal {
	--hhc-blue: #3f78ad; --hhc-blue-dk: #2f5f8c; --hhc-blue-bg: #eef4fa;
	--hhc-orange: #ef8950;
	--hhc-ink: #1d2733; --hhc-muted: #5b6673; --hhc-line: #dde3ea; --hhc-bg: #f5f7fa;
	--hhc-ok: #1f6b35; --hhc-ok-bg: #e8f5ec; --hhc-err: #a1261b; --hhc-err-bg: #fbeceb;
	color: var(--hhc-ink); font-size: 16px; line-height: 1.55; font-family: inherit;
}
.hhc-portal *, .hhc-portal *::before, .hhc-portal *::after { box-sizing: border-box; }
.hhc-portal h2, .hhc-portal h3 { color: var(--hhc-ink); font-family: inherit; letter-spacing: 0; margin: 0 0 6px; line-height: 1.25; }
.hhc-portal h2 { font-size: 28px; font-weight: 700; }
.hhc-portal h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.hhc-portal p { margin: 0 0 14px; }
.hhc-portal a { color: var(--hhc-blue-dk); }
.hhc-portal a:hover { color: var(--hhc-blue); }
.hhc-portal .hhc-muted { color: var(--hhc-muted); }
.hhc-portal .hhc-small { font-size: 13px; font-weight: 500; }
.hhc-portal .hhc-center { text-align: center; }
.hhc-i { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }

.hhc-card { background: #fff; border: 1px solid var(--hhc-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 38, 64, .04), 0 6px 20px rgba(16, 38, 64, .05); }
.hhc-card-pad { padding: 24px 28px; margin-bottom: 20px; }
.hhc-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hhc-blue); }

/* Buttons */
.hhc-portal .hhc-btn, .site .hhc-portal button.hhc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border: 1px solid var(--hhc-blue); border-radius: 8px; background: var(--hhc-blue) !important; color: #fff !important; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.hhc-portal .hhc-btn:hover, .site .hhc-portal button.hhc-btn:hover { background: var(--hhc-blue-dk) !important; border-color: var(--hhc-blue-dk); color: #fff !important; }
.hhc-portal .hhc-btn:focus-visible, .hhc-portal a:focus-visible, .hhc-portal input:focus-visible { outline: 3px solid rgba(63, 120, 173, .35); outline-offset: 2px; }
.hhc-portal .hhc-btn-block { width: 100%; }
.hhc-portal .hhc-btn-ghost { background: #fff !important; color: var(--hhc-blue-dk) !important; border-color: var(--hhc-line); }
.hhc-portal .hhc-btn-ghost:hover { background: var(--hhc-blue-bg) !important; color: var(--hhc-blue-dk) !important; border-color: #c9d6e3; }

/* Forms */
.hhc-form .hhc-field { margin-bottom: 16px; }
.hhc-portal label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; color: var(--hhc-ink); }
.hhc-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.hhc-label-row a { font-size: 14px; }
.hhc-portal input[type=text], .hhc-portal input[type=email], .hhc-portal input[type=tel], .hhc-portal input[type=password] {
	width: 100%; max-width: none; height: 46px; padding: 0 14px; border: 1px solid #c6cfd9; border-radius: 8px; background: #fff; color: var(--hhc-ink); font: inherit; font-size: 16px; box-shadow: none;
}
.hhc-portal select {
	width: 100% !important; max-width: none; height: 46px; padding: 0 40px 0 14px !important; border: 1px solid #c6cfd9 !important; border-radius: 8px !important; color: var(--hhc-ink); font: inherit; font-size: 16px !important; box-shadow: none;
	-webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6673' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center !important;
}
.hhc-portal select:focus { border-color: var(--hhc-blue) !important; box-shadow: 0 0 0 3px rgba(63, 120, 173, .18); outline: none; }
.hhc-portal input:focus { border-color: var(--hhc-blue); box-shadow: 0 0 0 3px rgba(63, 120, 173, .18); outline: none; }
.hhc-portal .hhc-check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 4px 0 20px; }
.hhc-portal .hhc-check input { width: 18px; height: 18px; margin: 0; }
.hhc-static { height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: 8px; background: var(--hhc-bg); color: var(--hhc-muted); }
.hhc-portal small { display: block; margin-top: 6px; font-size: 13px; }
.hhc-grid-2, .hhc-grid-3 { display: grid; gap: 0 20px; }
.hhc-grid-2 { grid-template-columns: 1fr 1fr; }
.hhc-grid-3 { grid-template-columns: 2fr 1fr 1fr; }
.hhc-span-2 { grid-column: span 2; }
.hhc-actions { display: flex; justify-content: flex-end; }

/* Alerts */
.hhc-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 8px; margin: 0 0 18px; font-size: 15px; }
.hhc-alert.is-ok { background: var(--hhc-ok-bg); color: var(--hhc-ok); }
.hhc-alert.is-error { background: var(--hhc-err-bg); color: var(--hhc-err); }
.hhc-alert.is-info { background: var(--hhc-blue-bg); color: var(--hhc-blue-dk); }
.hhc-note { margin-top: 24px; padding: 16px 18px; border-radius: 10px; background: var(--hhc-bg); font-size: 15px; color: var(--hhc-muted); }
.hhc-note strong { color: var(--hhc-ink); }

/* Signed out */
.hhc-auth { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.hhc-auth-brand { padding: 48px; background: linear-gradient(160deg, #f4f8fc 0%, #e6eef7 100%); border-right: 1px solid var(--hhc-line); }
.hhc-auth-brand .hhc-portal-logo { display: block; width: 200px; max-width: 70%; height: auto; margin-bottom: 32px; }
.hhc-auth-brand h2 { font-size: 30px; }
.hhc-checks { list-style: none; margin: 24px 0 32px; padding: 0; }
.hhc-checks li { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; }
.hhc-checks .hhc-i { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--hhc-blue); color: #fff; stroke-width: 2.6; }
.hhc-auth-help { display: flex; gap: 8px; align-items: center; padding-top: 24px; border-top: 1px solid #d3deea; color: var(--hhc-muted); }
.hhc-auth-form { padding: 48px 56px; max-width: 560px; width: 100%; margin: 0 auto; align-self: center; }

/* Signed in */
.hhc-head { display: flex; align-items: center; gap: 24px; padding: 20px 28px; margin-bottom: 24px; border-top: 4px solid var(--hhc-orange); }
.hhc-head-logo { width: 120px; height: auto; }
.hhc-head-text { display: flex; flex-direction: column; line-height: 1.35; }
.hhc-head-text strong { font-size: 20px; }
.hhc-head-out { margin-left: auto; }
.hhc-shell { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.hhc-side { padding: 12px; position: sticky; top: 24px; }
.hhc-side > a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; color: var(--hhc-ink); text-decoration: none; font-weight: 500; }
.hhc-side > a:hover { background: var(--hhc-bg); color: var(--hhc-ink); }
.hhc-side > a[aria-current=page] { background: var(--hhc-blue-bg); color: var(--hhc-blue-dk); font-weight: 700; box-shadow: inset 3px 0 0 var(--hhc-blue); }
.hhc-side-help { margin: 12px 4px 4px; padding: 16px 12px 6px; border-top: 1px solid var(--hhc-line); font-size: 14px; }
.hhc-side-help a { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 600; text-decoration: none; }
.hhc-main { min-width: 0; }
.hhc-page-title { margin-bottom: 20px; }

.hhc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.hhc-stat { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; }
.hhc-stat-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hhc-muted); }
.hhc-stat-num { font-size: 30px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hhc-stat-sm { font-size: 16px; line-height: 1.4; }
.hhc-stat a { font-size: 14px; font-weight: 600; }
.hhc-stat.is-attn { border-top: 4px solid var(--hhc-orange); }
.hhc-section-head { display: flex; justify-content: space-between; align-items: baseline; }
.hhc-section-head a { font-weight: 600; font-size: 15px; }

/* Tables (reset the theme's bordered tables) */
.hhc-table-wrap { overflow-x: auto; margin: 0 -4px; }
.hhc-portal table.hhc-table { width: 100%; border-collapse: collapse; border: 0; margin: 0; font-size: 15px; }
.hhc-portal .hhc-table th, .hhc-portal .hhc-table td { border: 0; border-bottom: 1px solid var(--hhc-line); padding: 14px 12px; text-align: left; vertical-align: middle; }
.hhc-portal .hhc-table thead th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hhc-muted); background: var(--hhc-bg); border-bottom: 0; }
.hhc-portal .hhc-table thead th:first-child { border-radius: 8px 0 0 8px; }
.hhc-portal .hhc-table thead th:last-child { border-radius: 0 8px 8px 0; }
.hhc-portal .hhc-table tbody tr:last-child td { border-bottom: 0; }
.hhc-portal .hhc-table tbody tr:hover td { background: #fafbfd; }
.hhc-portal .hhc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.hhc-table-foot { margin: 12px 4px 0; color: var(--hhc-muted); font-size: 14px; text-align: right; }
.hhc-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--hhc-bg); color: var(--hhc-muted); }
.hhc-pill.is-paid { background: var(--hhc-ok-bg); color: var(--hhc-ok); }
.hhc-pill.is-not_paid { background: var(--hhc-err-bg); color: var(--hhc-err); }

@media (max-width: 960px) {
	.hhc-shell { grid-template-columns: 1fr; }
	.hhc-side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
	.hhc-side > a { flex: 1 1 auto; justify-content: center; }
	.hhc-side-help { display: none; }
	.hhc-stats { grid-template-columns: 1fr 1fr; }
	.hhc-auth { grid-template-columns: 1fr; }
	.hhc-auth-brand { border-right: 0; border-bottom: 1px solid var(--hhc-line); padding: 32px; }
	.hhc-auth-brand .hhc-checks, .hhc-auth-brand .hhc-auth-help { display: none; }
	/* The site header already shows the logo on small screens; keep the intro short. */
	.hhc-auth-brand .hhc-portal-logo { display: none; }
	.hhc-auth-brand { padding: 22px 24px; }
	.hhc-auth-brand h2 { font-size: 22px; margin-bottom: 4px; }
	.hhc-auth-brand p { margin: 0; font-size: 15px; }
	.hhc-auth-form { padding: 24px; }
}
@media (max-width: 600px) {
	.hhc-portal-page .hhc-portal { width: calc(100% - 24px); margin-top: 0 !important; }
	.hhc-portal-page .site-main, .hhc-portal-page .entry-content, .hhc-portal-page article { padding-top: 0 !important; margin-top: 0 !important; }
	.hhc-head { margin-top: 12px; margin-bottom: 16px; }
	.hhc-card-pad { padding: 20px; }
	.hhc-head { flex-wrap: wrap; gap: 12px; padding: 16px 20px; }
	.hhc-head-text { border-left: 0; padding-left: 0; }
	.hhc-head-out { margin-left: 0; width: 100%; }
	.hhc-stats, .hhc-grid-2, .hhc-grid-3 { grid-template-columns: 1fr; }
	.hhc-span-2 { grid-column: auto; }
	.hhc-portal h2 { font-size: 24px; }
	.hhc-portal .hhc-table thead { display: none; }
	.hhc-portal .hhc-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--hhc-line); }
	.hhc-portal .hhc-table td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 6px 4px; text-align: right; }
	.hhc-portal .hhc-table td::before { content: attr(data-label); font-weight: 600; color: var(--hhc-muted); text-align: left; }
	.hhc-portal .hhc-table .num { text-align: right; }
	.hhc-actions .hhc-btn { width: 100%; }
}

/* ---------- Quote, coverage options & checkout ([hhc_quote_form], [hhc_coverage]) ---------- */
.hhc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hhc-portal .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hhc-public .hhc-quote-card { max-width: 820px; margin: 0 auto; padding: 36px 40px; }
.hhc-quote-intro { margin-bottom: 24px; }
.hhc-quote-intro h2 { margin-top: 6px; }
.hhc-vin-lookup { padding: 16px 18px; margin-bottom: 22px; border-radius: 10px; background: var(--hhc-blue-bg); }
.hhc-vin-lookup label { display: block; font-weight: 700; margin-bottom: 8px; }
.hhc-vin-lookup .hhc-small { margin: 8px 0 0; }
.hhc-vin-lookup .hhc-small:empty { display: none; }
.hhc-inline { display: flex; gap: 10px; }
.hhc-inline input { flex: 1; min-width: 0; }
.hhc-shell-wide { grid-template-columns: 1fr 360px; }
.hhc-sticky { position: sticky; top: 24px; }
.hhc-vehicle { display: flex; align-items: center; gap: 18px; padding: 18px 24px; margin-bottom: 20px; }
.hhc-vehicle > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.hhc-vehicle strong { font-size: 20px; }
.hhc-vehicle .hhc-i { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--hhc-blue-bg); color: var(--hhc-blue); }
.hhc-plan-group { margin-top: 22px; }
.hhc-plan-group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--hhc-muted); margin-bottom: 10px; }
.hhc-plan-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.hhc-portal .hhc-plan { display: grid !important; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: center; margin: 0 !important; padding: 14px 16px; border: 1.5px solid var(--hhc-line); border-radius: 10px; cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.hhc-plan:hover { border-color: var(--hhc-blue); }
.hhc-portal .hhc-plan input[type=radio] { grid-row: span 2; position: static !important; appearance: auto !important; -webkit-appearance: radio !important; width: 20px !important; height: 20px !important; min-width: 0; margin: 0 !important; border: 0 !important; background: none !important; accent-color: var(--hhc-blue); }
.hhc-portal .hhc-plan input[type=radio]::before, .hhc-portal .hhc-plan input[type=radio]::after { display: none !important; content: none !important; }
.hhc-plan-code, .hhc-plan-term { display: block; grid-column: 2; }
.hhc-plan:has(input:checked) { border-color: var(--hhc-blue); background: var(--hhc-blue-bg); box-shadow: 0 0 0 1px var(--hhc-blue); }
.hhc-plan:has(input:focus-visible) { outline: 3px solid rgba(63, 120, 173, .35); outline-offset: 2px; }
.hhc-plan-code { font-weight: 700; font-size: 17px; }
.hhc-plan-code em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--hhc-orange); }
.hhc-plan-term { font-size: 14px; color: var(--hhc-muted); }
.hhc-summary { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 15px; }
.hhc-summary th, .hhc-summary td { padding: 9px 0; border: 0; border-bottom: 1px solid var(--hhc-line); background: none; vertical-align: top; }
.hhc-summary th { text-align: left; font-weight: 600; color: var(--hhc-muted); padding-right: 12px; }
.hhc-summary td { text-align: right; }
.hhc-summary-total th, .hhc-summary-total td { border-bottom: 0; padding-top: 14px; font-size: 20px; font-weight: 700; color: var(--hhc-ink); }
.hhc-public form h3, .hhc-main form h3 { margin-top: 22px; }
.hhc-card-fields { padding: 18px; border-radius: 10px; background: var(--hhc-bg); margin-bottom: 18px; }
.hhc-secure { display: flex; align-items: flex-end; }
.hhc-secure span { display: flex; align-items: center; gap: 6px; height: 46px; font-size: 13px; font-weight: 600; color: var(--hhc-ok); }
.hhc-turnstile { margin: 4px 0 16px; }
.hhc-amount { font-size: 26px; }
.hhc-portal .hhc-btn-sm { min-height: 34px !important; padding: 6px 14px !important; font-size: 14px !important; }
.hhc-actions { text-align: right; white-space: nowrap; }
#hhc-pay-submit .hhc-i { width: 18px; height: 18px; margin-right: 4px; }
@media (max-width: 900px) {
	.hhc-shell-wide { grid-template-columns: 1fr; }
	.hhc-sticky { position: static; }
	.hhc-public .hhc-quote-card { padding: 24px 20px; }
	.hhc-vehicle { flex-wrap: wrap; }
	.hhc-inline { flex-direction: column; }
}

/* Thank-you confirmation ([hhc_thank_you]) */
.hhc-portal-page .hhc-thanks { max-width: 640px !important; margin: 8px auto 24px !important; text-align: left; }
.hhc-thanks .hhc-card-pad { margin: 0; }
.hhc-thanks h3 { margin-top: 4px; }
.hhc-thanks h4 { font-size: 16px; margin: 18px 0 8px; }
.hhc-steps { margin: 0 0 14px 20px; padding: 0; }
.hhc-steps li { margin-bottom: 6px; }

/* Phones: compact plan grid, summary first at checkout */
@media (max-width: 600px) {
	.hhc-inline input { flex: none; width: 100%; }
	.hhc-vehicle { padding: 16px 18px; gap: 12px; flex-direction: column; align-items: stretch; }
	.hhc-vehicle > div:first-child { display: none; }
	.hhc-vehicle strong { font-size: 18px; }
	.hhc-plan-list { grid-template-columns: 1fr 1fr; gap: 8px; }
	.hhc-portal .hhc-plan { grid-template-columns: 18px 1fr; column-gap: 8px; padding: 11px 10px; }
	.hhc-portal .hhc-plan input[type=radio] { width: 18px !important; height: 18px !important; }
	.hhc-plan-code { font-size: 16px; }
	.hhc-plan-term { font-size: 12.5px; line-height: 1.35; }
	.hhc-plan-group { margin-top: 18px; }
	.hhc-checkout > aside { order: -1; }
	.hhc-public .hhc-card-pad { padding: 20px 18px; }
}

/* Phones: space between the page banner and the quote / plan / checkout cards */
@media (max-width: 900px) {
	.hhc-portal-page .hhc-portal.hhc-public:not(.hhc-thanks) { margin-top: 28px !important; }
}
