/* =========================================================
   RepairPlugin Pro — Customer Portal
   BEM prefix: rp-portal
   ========================================================= */

/* --- Wrapper --- */
html .rp-portal-container {
	margin-bottom: 30px;
}

html .rp-portal-container .rp-portal {
	box-sizing: border-box;
	font-family: var(--rp-customer_portal_font);
	color: inherit;
	padding: 24px 16px;
}

/* =========================================================
   Auth card (State 1 — not logged in)
   ========================================================= */
html .rp-portal-container .rp-portal--auth {
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

html .rp-portal-container .rp-portal__card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: unset;
	border:1px solid #e5e5e5;
	width: 100%;
	max-width: 480px;
	overflow: hidden;
}

/* --- Tabs --- */
html .rp-portal-container .rp-portal__tabs {
	display: flex;
	border-bottom: 2px solid #f0f0f0;
	background: #fcfcfc;
}

html .rp-portal-container .rp-portal__tab {
	flex: 1;
	padding: 14px 10px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	font-size: 14px;
	font-weight: 500;
	color: #666;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
	outline: none;
	box-shadow: none;
	border-color: transparent;
    border-bottom-color: #ddd;
    background: #fcfcfc;
}

html .rp-portal-container .rp-portal__tab:hover {
	color: var(--theme, #2c7be5);
	border-color: transparent;
    border-bottom-color: #ddd;
    background: #fcfcfc;
	box-shadow: unset;
}

html .rp-portal-container .rp-portal__tab:focus,
html .rp-portal-container .rp-portal__tab:focus-visible {
	color: #666;
	border-color: transparent;
    border-bottom-color: #ddd;
    background: #fcfcfc;
	box-shadow: unset;
}

html .rp-portal-container .rp-portal__tab--active:focus,
html .rp-portal-container .rp-portal__tab--active:focus-visible {
	outline: none;
	box-shadow: none;
	background: #fff;
	color: var(--theme, #2c7be5);
	border-color: transparent;
	border-bottom-color: var(--theme, #2c7be5);
}

html .rp-portal-container .rp-portal__tab--active {
	color: var(--theme, #2c7be5);
	border-color: transparent;
	border-bottom-color: var(--theme, #2c7be5);
	background: #fff;
	font-weight: 600;
	outline: none;
}

html .rp-portal-container .rp-portal__tab--active:hover {
	color: var(--theme, #2c7be5);
	background: #fff;
	border-bottom-color: var(--theme, #2c7be5);
	box-shadow: none;
}

/* --- Tab panels --- */
html .rp-portal-container .rp-portal__tab-panel {
	padding: 28px 32px 32px;
}

/* --- Notices --- */
html .rp-portal-container .rp-portal__notice {
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 14px;
	margin-bottom: 18px;
	line-height: 1.5;
}

html .rp-portal-container .rp-portal__notice--error {
	background: #fff0f0;
	border: 1px solid #f5c6c6;
	color: #c0392b;
}

html .rp-portal-container .rp-portal__notice--success {
	background: #f0fff4;
	border: 1px solid #a3d9b0;
	color: #1e7e34;
}

html .rp-portal-container .rp-portal__notice--info {
	background: #f0f4ff;
	border: 1px solid #b3c6f5;
	color: #2c5fad;
}

/* --- Form groups --- */
html .rp-portal-container .rp-portal__form-group {
	margin-bottom: 18px;
}

html .rp-portal-container .rp-portal__form-group--checkbox {
	margin-bottom: 22px;
}

html .rp-portal-container .rp-portal__label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #444;
	margin-bottom: 6px;
}

html .rp-portal-container .rp-portal__input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	font-size: 14px;
	color: #333;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
}

html .rp-portal-container .rp-portal__input:focus {
	border-color: var(--theme, #2c7be5);
	box-shadow: 0 0 0 3px var(--theme-15-opacity, rgba(44, 123, 229, 0.15));
}

/* --- Checkbox label --- */
html .rp-portal-container .rp-portal__checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #555;
	cursor: pointer;
}

html .rp-portal-container .rp-portal__checkbox-label input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	min-width: 16px;
	border: 1.5px solid #d0d7de;
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
	position: relative;
}

html .rp-portal-container .rp-portal__checkbox-label input[type="checkbox"]:checked {
	background: var(--theme, #2c7be5);
	border-color: var(--theme, #2c7be5);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2,6 5,9 10,3' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 11px 11px;
}

html .rp-portal-container .rp-portal__checkbox-label input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--theme, #2c7be5);
	outline-offset: 2px;
}

/* --- Primary button --- */
html .rp-portal-container .rp-portal__btn {
	display: inline-block;
	width: 100%;
	padding: 11px 20px;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	text-align: center;
	text-decoration: none;
}

html .rp-portal-container .rp-portal__btn--primary {
	background: var(--theme, #2c7be5);
	color: #ffffff;
}

html .rp-portal-container .rp-portal__btn--primary:hover {
	background: var(--theme-80-opacity, #1a63c7);
}

html .rp-portal-container .rp-portal__btn--primary:active {
	transform: scale(0.99);
}

/* --- Button loading spinner --- */
html .rp-portal-container .rp-portal__btn--loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

html .rp-portal-container .rp-portal__btn--loading:focus::after,
html .rp-portal-container .rp-portal__btn--loading:active::after,
html .rp-portal-container .rp-portal__btn--loading:hover::after,
html .rp-portal-container .rp-portal__btn--loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	margin-left: -8px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: rp-portal-spin 0.7s linear infinite;
	display: block !important;
}

/* --- Appointment list loading placeholder --- */
html .rp-portal-container .rp-portal__loading-placeholder {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 120px;
	box-sizing: border-box;
}

/* --- Appointment list reload overlay (no layout shift) --- */
html .rp-portal-container .rp-portal__list-loading-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 150px;
	background: var(--theme-3-opacity);
	border-radius: inherit;
	z-index: 10;
}

html .rp-portal-container .rp-portal__loading-spinner {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 3px solid rgba(0, 0, 0, 0.1);
	border-top-color: #27a9e1;
	border-radius: 50%;
	animation: rp-portal-spin 0.75s linear infinite;
}

@keyframes rp-portal-spin {
	to { transform: rotate(360deg); }
}

/* =========================================================
   Restricted (State 2)
   ========================================================= */
html .rp-portal-container .rp-portal--restricted {
	text-align: center;
	padding: 48px 24px;
	color: #555;
	font-size: 16px;
}

/* =========================================================
   Dashboard (State 3)
   ========================================================= */
html .rp-portal-container .rp-portal--dashboard {
	max-width: 1200px !important;
    margin: 0 auto;
    background: #ffffff;
    border: unset;
    border-radius: 0px;
    box-shadow: unset;
}

/* strip the generic .rp-portal padding for the dashboard card */
html .rp-portal-container .rp-portal.rp-portal--dashboard {
	padding: 0;
}

/* --- Header --- */
html .rp-portal-container .rp-portal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding: 24px 28px 20px;
	border-bottom: 0px solid #f0f0f0;
	margin-bottom: 0;
}

html .rp-portal-container .rp-portal__header-left {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

html .rp-portal-container .rp-portal__header-greeting {
	font-size: 12px;
	font-weight: 500;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

html .rp-portal-container .rp-portal__header-name {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	color: #222;
	line-height: 1.2;
}

html .rp-portal-container .rp-portal__header h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	color: #222;
}

html .rp-portal-container .rp-portal__new-booking-btn,
html .rp-portal-container .rp-portal__new-booking-btn:hover,
html .rp-portal-container .rp-portal__new-booking-btn:active,
html .rp-portal-container .rp-portal__new-booking-btn:focus {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	background: var(--theme, #2c7be5);
	color: #ffffff;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.2s;
	white-space: nowrap;
}

html .rp-portal-container .rp-portal__new-booking-btn:hover {
	background: var(--theme-80-opacity, #1a63c7);
	color: #ffffff;
	text-decoration: none;
}

/* --- Dashboard body (sidebar + content wrapper) --- */
html .rp-portal-container .rp-portal__dashboard-body {
	display: flex;
	flex-direction: column;
}

/* --- Dashboard nav (tabs + logout) --- */
/* Default (mobile): horizontal top bar */
html .rp-portal-container .rp-portal__dashboard-nav {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	border-bottom: 2px solid #f0f0f0;
	margin-bottom: 0;
	gap: 0;
	margin-top: 0;
	padding: 0 28px;
	background: #fbfbfb;
}

html .rp-portal-container .rp-portal__dashboard-tabs {
	display: flex;
	gap: 0;
	align-items: stretch;
}

/* --- Dashboard content area --- */
html .rp-portal-container .rp-portal__dashboard-content {
	flex: 1;
	min-width: 0;
}

html .rp-portal-container .rp-portal__dashboard-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 18px 20px 18px 4px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	font-size: 14px;
	font-weight: 500;
	color: #777;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
	outline: none;
	white-space: nowrap;
	letter-spacing: 0.01em;
}

html .rp-portal-container .rp-portal__dashboard-tab:focus,
html .rp-portal-container .rp-portal__dashboard-tab:focus-visible {
	outline: none;
	box-shadow: none;
	background: none;
	color: #777;
	border-bottom-color: transparent;
}

html .rp-portal-container .rp-portal__dashboard-tab + .rp-portal__dashboard-tab {
	padding-left: 20px;
}

html .rp-portal-container .rp-portal__dashboard-tab svg {
	flex-shrink: 0;
	opacity: 0.5 !important;
	transition: opacity 0.2s;
}

html .rp-portal-container .rp-portal__dashboard-tab:hover {
	color: var(--theme, #2c7be5);
	background: none;
}

html .rp-portal-container .rp-portal__dashboard-tab:hover svg {
	opacity: 0.85 !important;
}

html .rp-portal-container .rp-portal__dashboard-tab--active:hover {
	color: var(--theme, #2c7be5);
	background: none;
	border-bottom-color: var(--theme, #2c7be5);
}

html .rp-portal-container .rp-portal__dashboard-tab--active:hover svg {
	opacity: 1 !important;
}

html .rp-portal-container .rp-portal__dashboard-tab:active {
	color: var(--theme, #2c7be5);
	background: none;
}

html .rp-portal-container .rp-portal__dashboard-tab--active:active,
html .rp-portal-container .rp-portal__dashboard-tab--active:focus {
	color: var(--theme, #2c7be5);
	background: none;
	border-bottom-color: var(--theme, #2c7be5);
}

html .rp-portal-container .rp-portal__dashboard-tab--active {
	color: var(--theme, #2c7be5);
	border-bottom-color: var(--theme, #2c7be5);
	font-weight: 600;
}

html .rp-portal-container .rp-portal__dashboard-tab--active svg {
	opacity: 1 !important;
}

html .rp-portal-container .rp-portal__dashboard-tab--active:focus,
html .rp-portal-container .rp-portal__dashboard-tab--active:focus-visible {
	outline: none;
	box-shadow: none;
	background: none;
	color: var(--theme, #2c7be5);
	border-bottom-color: var(--theme, #2c7be5);
}

/* --- Logout button --- */
html .rp-portal-container .rp-portal__logout-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	align-self: center;
	background: none;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	color: #777;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
	white-space: nowrap;
	margin-bottom: 0;
	letter-spacing: 0.01em;
}

html .rp-portal-container .rp-portal__logout-btn svg {
	flex-shrink: 0;
	opacity: 0.6 !important;
	transition: opacity 0.2s;
}

html .rp-portal-container .rp-portal__logout-btn:hover,
html .rp-portal-container .rp-portal__logout-btn:active,
html .rp-portal-container .rp-portal__logout-btn:focus {
	border-color: #e0c0c0;
	color: #c0392b;
	background: #fff8f8;
}

html .rp-portal-container .rp-portal__logout-btn:hover svg,
html .rp-portal-container .rp-portal__logout-btn:active svg,
html .rp-portal-container .rp-portal__logout-btn:focus svg {
	opacity: 1 !important;
}

html .rp-portal-container .rp-portal__logout-btn:active {
	border-color: #d4a0a0;
	color: #a93226;
	background: #fef0f0;
}

html .rp-portal-container .rp-portal__logout-btn:focus,
html .rp-portal-container .rp-portal__logout-btn:focus-visible {
	outline: none;
	box-shadow: none;
	background: none;
	color: #aaa;
	border-color: #e8e8e8;
}

html .rp-portal-container .rp-portal__logout-btn--loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
	opacity: 0.7 !important;
}

html .rp-portal-container .rp-portal__logout-btn--loading svg {
	display: none;
}

html .rp-portal-container .rp-portal__logout-btn--loading:focus::after,
html .rp-portal-container .rp-portal__logout-btn--loading:active::after,
html .rp-portal-container .rp-portal__logout-btn--loading:hover::after,
html .rp-portal-container .rp-portal__logout-btn--loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 13px;
	height: 13px;
	margin-top: -6px;
	margin-left: -6px;
	border: 2px solid rgba(160, 160, 160, 0.35);
	border-top-color: #aaa;
	border-radius: 50%;
	animation: rp-portal-spin 0.7s linear infinite;
	display: block !important;
}

/* --- Dashboard panels --- */
html .rp-portal-container .rp-portal__dashboard-panel {
	min-height: 450px;
	padding: 28px 40px 32px;
}

/* --- Empty state --- */
html .rp-portal-container .rp-portal__dashboard-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 56px 24px;
	color: #bbb;
	text-align: center;
}

html .rp-portal-container .rp-portal__dashboard-empty svg {
	color: #d8d8d8;
}

html .rp-portal-container .rp-portal__dashboard-empty p {
	margin: 0;
	font-size: 14px;
	color: #aaa;
}

/* --- Account info card --- */
html .rp-portal-container .rp-portal__account-card {
	background: #f9f9f9;
	border: 1px solid #ebebeb;
	border-radius: 10px;
	padding: 24px 24px 20px;
	max-width: 480px;
}

html .rp-portal-container .rp-portal__account-card-title {
	font-size: 13px;
	font-weight: 700;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 18px;
}

html .rp-portal-container .rp-portal__account-rows {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

html .rp-portal-container .rp-portal__account-row {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

html .rp-portal-container .rp-portal__account-row-label {
	font-size: 11px;
	font-weight: 600;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

html .rp-portal-container .rp-portal__account-row-value {
	font-size: 14px;
	font-weight: 500;
	color: #333;
}

/* --- Account Details form --- */

/* ── Force consistent field styling inside panel cards (account & language pages) ──
   Overrides any WordPress theme styles on raw input/select/textarea elements.      */
html .rp-portal-container .rp-portal__panel-card input[type="date"],
html .rp-portal-container .rp-portal__panel-card input[type="text"],
html .rp-portal-container .rp-portal__panel-card input[type="email"],
html .rp-portal-container .rp-portal__panel-card input[type="password"],
html .rp-portal-container .rp-portal__panel-card input[type="tel"],
html .rp-portal-container .rp-portal__panel-card input[type="url"],
html .rp-portal-container .rp-portal__panel-card input[type="number"],
html .rp-portal-container .rp-portal__panel-card input[type="search"],
html .rp-portal-container .rp-portal__panel-card input[type="reset"],
html .rp-portal-container .rp-portal__panel-card select,
html .rp-portal-container .rp-portal__panel-card textarea,
html .rp-portal-container .rp-portal input[type="date"],
html .rp-portal-container .rp-portal input[type="text"],
html .rp-portal-container .rp-portal input[type="email"],
html .rp-portal-container .rp-portal input[type="password"],
html .rp-portal-container .rp-portal input[type="tel"],
html .rp-portal-container .rp-portal input[type="url"],
html .rp-portal-container .rp-portal input[type="number"],
html .rp-portal-container .rp-portal input[type="search"],
html .rp-portal-container .rp-portal input[type="reset"],
html .rp-portal-container .rp-portal select,
html .rp-portal-container .rp-portal textarea{
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	font-size: 14px;
	color: #333;
	background: #fcfcfc;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
	box-shadow: none;
	margin: 0;
}

html .rp-portal-container .rp-portal__panel-card input[type="text"]:focus,
html .rp-portal-container .rp-portal__panel-card input[type="email"]:focus,
html .rp-portal-container .rp-portal__panel-card input[type="password"]:focus,
html .rp-portal-container .rp-portal__panel-card input[type="tel"]:focus,
html .rp-portal-container .rp-portal__panel-card input[type="url"]:focus,
html .rp-portal-container .rp-portal__panel-card input[type="number"]:focus,
html .rp-portal-container .rp-portal__panel-card input[type="search"]:focus,
html .rp-portal-container .rp-portal__panel-card input[type="reset"]:focus,
html .rp-portal-container .rp-portal__panel-card select:focus,
html .rp-portal-container .rp-portal__panel-card textarea:focus,
html .rp-portal-container .rp-portal input[type="text"]:focus,
html .rp-portal-container .rp-portal input[type="email"]:focus,
html .rp-portal-container .rp-portal input[type="password"]:focus,
html .rp-portal-container .rp-portal input[type="tel"]:focus,
html .rp-portal-container .rp-portal input[type="url"]:focus,
html .rp-portal-container .rp-portal input[type="number"]:focus,
html .rp-portal-container .rp-portal input[type="search"]:focus,
html .rp-portal-container .rp-portal input[type="reset"]:focus,
html .rp-portal-container .rp-portal select:focus,
html .rp-portal-container .rp-portal textarea:focus {
	border-color: var(--theme, #2c7be5);
	box-shadow: 0 0 0 3px var(--theme-15-opacity, rgba(44, 123, 229, 0.15)) !important;
	outline: none;
}

/* Keep the custom chevron arrow on selects */
html .rp-portal-container .rp-portal__panel-card select {
	appearance: none;
	-webkit-appearance: none;
	background-image: 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='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 8px;
	padding-right: 34px;
	cursor: pointer;
}

/* When inside .rp-portal__panel-card the card already provides
   background/border/shadow, so remove the inner card background. */
html .rp-portal-container .rp-portal__panel-card .rp-portal__account-card {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

/* Each logical group (Personal / Address / Other) */
html .rp-portal-container .rp-portal__account-section {
	padding: 30px 0 8px;
	padding-bottom: 0px;
	margin-top: 30px;
	border-top: 1px solid #f0f0f0;
}

html .rp-portal-container .rp-portal__account-section.rp-portal__account-section--first {
	padding-top: 0px;
	margin-top: 5px;
	border-top: none;
}

/* Section heading — e.g. "Personal information", "Address" */
html .rp-portal-container .rp-portal__account-section-title {
	font-size: 11px;
	font-weight: 700;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 16px;
}

/* Two-column responsive grid inside each section */
html .rp-portal-container .rp-portal__account-fields-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 20px;
}

html .rp-portal-container .rp-portal__account-field {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 10px;
}

html .rp-portal-container .rp-portal__account-field--half {
	flex: 1 1 calc(50% - 10px);
	min-width: 200px;
}

html .rp-portal-container .rp-portal__account-field--full {
	flex: 1 1 100%;
	width: 100%;
}

html .rp-portal-container .rp-portal__account-field--full.new-password-separator {
	margin: 0px;
}

html .rp-portal-container .rp-portal__required {
	color: #e74c3c;
	font-size: 13px;
	margin-left: 2px;
}

html .rp-portal-container .rp-portal__select-wrap {
	position: relative;
}

html .rp-portal-container .rp-portal__select {
	appearance: none;
	-webkit-appearance: none;
	background-image: 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='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 8px;
	padding-right: 34px;
	cursor: pointer;
}

html .rp-portal-container .rp-portal__textarea {
	resize: vertical;
	min-height: 80px;
	line-height: 1.5;
}

/* Save button row — separated from the last section with a clear line */
html .rp-portal-container .rp-portal__account-form-footer {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	margin-top: 15px;
	padding-top: 15px;
	padding-bottom: 10px;
	border-top: unset;
}

html .rp-portal-container #rp-portal-change-password-form .rp-portal__account-form-footer {
	padding-top: 16px;
}

html .rp-portal-container .rp-portal__account-save-btn {
	width: auto;
	min-width: 140px;
	padding: 10px 24px;
}

/* --- Change-password section spacing --- */
html .rp-portal-container .rp-portal__account-section--password {
	margin-top: 40px;
}

/* Inside a panel-card the card already separates the sections */
html .rp-portal-container .rp-portal__panel-card .rp-portal__account-section--password {
	margin-top: 0;
}

/* Notices that sit inside the account tab (outside a tab-panel boundary) */
html .rp-portal-container #rp-account-error,
html .rp-portal-container #rp-account-success {
	margin-bottom: 8px;
	margin-top: 0;
	width: 100%;
}

html .rp-portal-container .rp-portal__account-form-footer {
	flex-wrap: wrap;
}

html .rp-portal-container .rp-portal__account-form-footer .rp-portal__notice {
	flex: 1 1 100%;
	margin-bottom: 12px;
	margin-top: 0;
}

/* Inline save + change-pw buttons — auto width, not full-width */
html .rp-portal-container .rp-portal__chpw-save-btn {
	width: auto;
	min-width: 160px;
	padding: 10px 24px;
}


/* =========================================================
   Responsive — element-width-based (repair-mq-* classes)
   ========================================================= */

/* ── Default (Desktop: no repair-mq-* class, width > 1200 px) ── */
/* Desktop sidebar layout */
html .rp-portal-container .rp-portal__dashboard-body {
	flex-direction: row;
	align-items: stretch;
	box-shadow: 0px 0px 2px rgba(0,0,0,0.3);
	border-radius: 10px;
	overflow: hidden;
}

html .rp-portal-container .rp-portal__dashboard-nav {
	/* Left sidebar */
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	border-bottom: none;
	border-right: 2px solid #f0f0f0;
	width: 220px;
	min-width: 220px;
	max-width: 220px;
	padding: 20px 0 20px;
	background: #fdfdfd;
}

html .rp-portal-container .rp-portal__dashboard-tabs {
	flex-direction: column;
	align-items: stretch;
}

/* Reset the bottom-border trick used in the horizontal layout */
html .rp-portal-container .rp-portal__dashboard-tab {
	display: flex;
	padding: 13px 20px 13px 20px;
	border: none;
	border-left: 3px solid transparent;
	margin-bottom: 0;
	justify-content: flex-start;
	font-size: 14px;
	border-radius: 0;
	width: 100%;
	box-sizing: border-box;
}

html .rp-portal-container .rp-portal__dashboard-tab + .rp-portal__dashboard-tab {
	padding-left: 20px;
}

html .rp-portal-container .rp-portal__dashboard-tab:focus,
html .rp-portal-container .rp-portal__dashboard-tab:focus-visible {
	border: none;
	border-left: 3px solid transparent;
}

html .rp-portal-container .rp-portal__dashboard-tab--active,
html .rp-portal-container .rp-portal__dashboard-tab--active:hover,
html .rp-portal-container .rp-portal__dashboard-tab--active:focus,
html .rp-portal-container .rp-portal__dashboard-tab--active:focus-visible,
html .rp-portal-container .rp-portal__dashboard-tab--active:active {
	border: none;
	border-left: 3px solid var(--theme, #2c7be5);
	background: var(--theme-5-opacity);
	color: var(--theme, #2c7be5);
}

html .rp-portal-container .rp-portal__logout-btn {
	margin: 20px 16px 4px;
	align-self: auto;
	justify-content: flex-start;
	width: calc(100% - 32px);
}

/* Content area — takes all remaining width */
html .rp-portal-container .rp-portal__dashboard-content {
	flex: 1;
	min-width: 0;
}

/* --- Label row (label + forgot-password link inline) --- */
html .rp-portal-container .rp-portal__label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-bottom: 6px;
}

html .rp-portal-container .rp-portal__label-row .rp-portal__label {
	margin-bottom: 0;
}

/* --- Forgot password link (inline with password label) --- */
html .rp-portal-container .rp-portal__forgot-link,
html .rp-portal-container .rp-portal__forgot-link:hover,
html .rp-portal-container .rp-portal__forgot-link:active,
html .rp-portal-container .rp-portal__forgot-link:focus {
	background: none;
	border: none;
	padding: 0;
	font-size: 12px;
	color: var(--theme, #2c7be5);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: opacity 0.15s;
	line-height: 1;
}

html .rp-portal-container .rp-portal__forgot-link:hover,
html .rp-portal-container .rp-portal__forgot-link:active,
html .rp-portal-container .rp-portal__forgot-link:focus {
	opacity: 0.7 !important;
	background: none;
	color: var(--theme, #2c7be5);
}

html .rp-portal-container .rp-portal__forgot-link:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 3px;
	border-radius: 2px;
}

/* --- Sub-view header with back button --- */
html .rp-portal-container .rp-portal__subview-header {
	margin-bottom: 20px;
}

html .rp-portal-container .rp-portal__back-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: none;
	border: none;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--theme, #2c7be5);
	cursor: pointer;
	transition: opacity 0.15s;
	line-height: 1.6em;
}

html .rp-portal-container .rp-portal__back-btn:hover,
html .rp-portal-container .rp-portal__back-btn:active,
html .rp-portal-container .rp-portal__back-btn:focus {
	opacity: 0.7 !important;
	background: none;
	color: var(--theme, #2c7be5);
	text-decoration: underline;
}

html .rp-portal-container .rp-portal__back-btn:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 3px;
	border-radius: 2px;
}

/* =========================================================
   Language selector
   ========================================================= */
html .rp-portal-container .rp-portal__lang-selector {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding-bottom: 8px;
}

html .rp-portal-container .rp-portal__lang-select-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

html .rp-portal-container .rp-portal__lang-icon {
	position: absolute;
	left: 9px;
	width: 15px;
	height: 15px;
	color: var(--theme, #2c7be5);
	pointer-events: none;
	flex-shrink: 0;
}

html .rp-portal-container .rp-portal__lang-select {
	height: 36px;
	padding: 0 10px 0 26px;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	font-size: 13px;
	color: #444;
	background: #fff;
	outline: none;
	cursor: pointer;
	transition: border-color 0.2s;
	max-width: 200px;
}

html .rp-portal-container .rp-portal__lang-select:focus {
	border-color: var(--theme, #2c7be5);
}

html .rp-portal-container .rp-portal__lang-change-btn {
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--theme, #2c7be5);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--theme, #2c7be5);
	background: #fff;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
}

html .rp-portal-container .rp-portal__lang-change-btn:not(.rp-portal__lang-change-btn--loading):hover {
	background: var(--theme, #2c7be5);
	color: #fff;
	border-color: var(--theme, #2c7be5);
	outline: none;
}

html .rp-portal-container .rp-portal__lang-change-btn:focus,
html .rp-portal-container .rp-portal__lang-change-btn:focus-visible {
	outline: none;
	box-shadow: none;
	border-color: var(--theme, #2c7be5);
}

html .rp-portal-container .rp-portal__lang-change-btn--loading,
html .rp-portal-container .rp-portal__lang-change-btn:disabled {
	opacity: 0.6 !important;
	cursor: not-allowed;
}

html .rp-portal-container .rp-portal__lang-change-btn--loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

html .rp-portal-container .rp-portal__lang-change-btn--loading:focus::after,
html .rp-portal-container .rp-portal__lang-change-btn--loading:active::after,
html .rp-portal-container .rp-portal__lang-change-btn--loading:hover::after,
html .rp-portal-container .rp-portal__lang-change-btn--loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 13px;
	height: 13px;
	margin-top: -6px;
	margin-left: -6px;
	border: 2px solid var(--theme-20-opacity, rgba(44, 123, 229, 0.3));
	border-top-color: var(--theme, #2c7be5);
	border-radius: 50%;
	animation: rp-portal-spin 0.7s linear infinite;
	display: block !important;
}


/* =========================================================
   Shared Panel Page Layout
   (gray bleed background + white card system used by
    Appointments, Account Details, and the detail view)
   ========================================================= */

/* ── Gray page background — bleeds to panel edges ── */
html .rp-portal-container .rp-portal__panel-bg {
	background: var(--theme-3-opacity);
	margin: -28px -40px -32px;
	padding: 24px 32px 32px;
	min-height: 100%;
	box-sizing: border-box;
	min-height: 450px;
}

/* ── White card ── */
html .rp-portal-container .rp-portal__panel-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 20px 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	margin-bottom: 16px;
}

@media(min-width: 1100px) {
	html .rp-portal-container #rp-dashboard-tab-account .rp-portal__panel-card {
		padding-right: 120px;
	}
}

html .rp-portal-container .rp-portal__panel-card:last-child {
	margin-bottom: 0;
}

/* ── Card title (section heading inside a panel card) ── */
html .rp-portal-container .rp-portal__panel-card-title {
	font-size: 11px;
	font-weight: 700;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f2f2f2;
}

/* =========================================================
   Appointment List — Search & Filters
   ========================================================= */

html .rp-portal-container #rp-appt-list-controls {
	display: flex;
	flex-direction: column;
	gap: 10px;
	/* no margin-bottom — #rp-appt-list-body provides the visual separation */
}

/* Divider between controls and the list body */
html .rp-portal-container #rp-appt-list-body:not(:empty) {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid transparent;
}

/* ── Search bar ── */
html .rp-portal-container .rp-portal__appt-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

html .rp-portal-container .rp-portal__appt-search-wrap .rp-portal__appt-search-field {
	position: relative;
	width: 100%;
}

html .rp-portal-container .rp-portal__appt-search-icon {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	color: #888;
	pointer-events: none;
	line-height: 0;
	z-index: 1;
}

html .rp-portal-container .rp-portal__appt-search-input,
html .rp-portal-container .rp-portal__appt-search-input[type="search"] {
	flex: 1;
	min-width: 0; /* allow shrinking inside flex container */
	height: 38px;
	padding: 0 10px 0 32px !important;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fcfcfc !important;
	font-size: 13.5px;
	font-family: inherit;
	color: #333;
	box-sizing: border-box;
	outline: none;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
}
html .rp-portal-container .rp-portal__appt-search-input:focus {
	border-color: var(--theme);
	box-shadow: 0 0 0 3px var(--theme-10-opacity);
	outline: none;
}
html .rp-portal-container .rp-portal__appt-search-input::placeholder {
	color: #bbb;
	opacity: 1 !important;
}
html .rp-portal-container .rp-portal__appt-search-input::-webkit-search-cancel-button {
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}
html .rp-portal-container .rp-portal__appt-search-input::-webkit-search-cancel-button:hover {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

/* ── Filters accordion ── */
/* Note: overflow is NOT set to hidden here — that would clip focus rings on inner inputs */
html .rp-portal-container .rp-portal__appt-filters-accordion {
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	background: #fff;
}

html .rp-portal-container .rp-portal__appt-filters-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px 14px;
	background: none;
	border: none;
	border-radius: 8px; /* always full radius; body has its own radius */
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	line-height: normal;
	color: #555;
	text-align: left;
	gap: 8px;
	box-shadow: none;
	outline: none;
	transition: background 0.12s;
	margin: 0;
	min-height: 38px;
}

html .rp-portal-container .rp-portal__appt-filters-toggle #rp-appt-filters-heading {
	font-weight: 600;
}

html .rp-portal-container .rp-portal__appt-filters-toggle:hover,
html .rp-portal-container .rp-portal__appt-filters-toggle:focus,
html .rp-portal-container .rp-portal__appt-filters-toggle:focus-visible {
	background: #fafafa;
	box-shadow: none;
	outline: none;
	color: #555;
}

html .rp-portal-container .rp-portal__appt-filters-toggle-label {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #555;
}

html .rp-portal-container .rp-portal__appt-filters-toggle-chevron {
	line-height: 0;
	color: #bbb;
	flex-shrink: 0;
	transition: transform 0.2s;
}
html .rp-portal-container .rp-portal__appt-filters-toggle--open .rp-portal__appt-filters-toggle-chevron {
	transform: rotate(180deg);
}

html .rp-portal-container .rp-portal__appt-filters-body {
	padding: 0 14px 16px;
	border-top: 1px solid #f0f0f0;
	border-radius: 0 0 8px 8px;
}

html .rp-portal-container .rp-portal__appt-filters-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
	padding-top: 12px;
}

html .rp-portal-container .rp-portal__appt-filter-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0; /* prevent grid blowout */
}

html .rp-portal-container .rp-portal__appt-filter-label {
	font-size: 11px;
	font-weight: 600;
	font-family: inherit;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Base styles for all filter inputs (text, date, select) */
html .rp-portal-container .rp-portal__appt-filter-input {
	height: 34px;
	padding: 0 10px;
	border: 1px solid #e0e0e0;
	border-radius: 7px;
	background: #fff;
	font-size: 13px;
	font-family: inherit;
	color: #333;
	box-sizing: border-box;
	outline: none;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	width: 100%;
	margin: 0;
}
html .rp-portal-container .rp-portal__appt-filter-input:focus {
	border-color: var(--theme);
	box-shadow: 0 0 0 3px var(--theme-10-opacity);
	outline: none;
}

/* Select: custom arrow + suppress native appearance */
html .rp-portal-container .rp-portal select.rp-portal__appt-filter-select {
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 30px;
	padding: 5px 12px;
	font-size: 14px;
	cursor: pointer;
}

/* Date: do NOT suppress appearance — we want the native calendar picker icon */
html .rp-portal-container .rp-portal__appt-filter-date {
	-webkit-appearance: auto;
	appearance: auto;
	padding-right: 6px; /* room for native date icon */
	cursor: pointer;
	font-size: 14px;
}
/* Colour the native date picker icon to match theme (Chromium) */
html .rp-portal-container .rp-portal__appt-filter-date::-webkit-calendar-picker-indicator {
	opacity: 0.5 !important;
	cursor: pointer;
}
html .rp-portal-container .rp-portal__appt-filter-date:hover::-webkit-calendar-picker-indicator,
html .rp-portal-container .rp-portal__appt-filter-date:focus::-webkit-calendar-picker-indicator {
	opacity: 0.9 !important;
}

/* ── Reset button — flex sibling of the search input, slides in from the right ── */
/* Always in the DOM; collapsed+non-interactive until --visible modifier is added */
html .rp-portal-container .rp-portal__appt-filters-reset {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px 3px 8px;
	font-size: 11.5px;
	font-weight: 500;
	font-family: inherit;
	line-height: normal;
	border-radius: 20px;
	cursor: pointer;
	box-shadow: none;
	outline: none;
	margin: 0;
	white-space: nowrap;
	/* collapsed by default — no layout shift, slides in smoothly */
	max-width: 0;
	overflow: hidden;
	opacity: 0 !important;
	pointer-events: none;
	padding-left: 0;
	padding-right: 0;
	transition: max-width 0.22s ease, opacity 0.18s, padding 0.22s ease,
	            background 0.15s, color 0.15s, border-color 0.15s;
}
html .rp-portal-container .rp-portal__appt-filters-reset,
html .rp-portal-container .rp-portal__appt-filters-reset:hover,
html .rp-portal-container .rp-portal__appt-filters-reset:active,
html .rp-portal-container .rp-portal__appt-filters-reset:focus {
	color: #e05252;
	background: #fff3f3;
	border: 1px solid #f5c6c6;
}
html .rp-portal-container .rp-portal__appt-filters-reset span#rp-appt-reset-label {
	font-size: 11.5px;
    font-weight: 500;
    font-family: inherit;
    line-height: normal;
    color: #e05252;
}
html .rp-portal-container .rp-portal__appt-filters-reset svg {
	flex-shrink: 0;
	stroke: currentColor;
}
/* Visible state toggled by JS via this modifier class */
html .rp-portal-container .rp-portal__appt-filters-reset--visible {
	max-width: 160px; /* wider than the button will ever be */
	opacity: 1 !important;
	pointer-events: auto;
	padding: 6px 9px 6px 8px;
	margin: 0 0 0 6px;
}
html .rp-portal-container .rp-portal__appt-filters-reset:hover {
	background: #ffe5e5;
	color: #c0392b;
	border-color: #f0aaaa;
	box-shadow: none;
}
html .rp-portal-container .rp-portal__appt-filters-reset:hover span#rp-appt-reset-label {
	color: #c0392b;
}
html .rp-portal-container .rp-portal__appt-filters-reset:focus,
html .rp-portal-container .rp-portal__appt-filters-reset:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.18);
	border-color: #e05252;
}

/* =========================================================
   Appointment List
   ========================================================= */

/* ── List container ── */
html .rp-portal-container .rp-portal__appt-list {
	position: relative;  /* anchor for the page-change overlay */
	display: block;
    overflow-x: auto;
    width: 100%;
}

/* ── Header row (column labels above the cards) ── */
html .rp-portal-container .rp-portal__appt-header {
	display: flex;
	align-items: center;
	padding: 0 12px 8px;
	margin-bottom: 0px;
}

html .rp-portal-container .rp-portal__appt-header-col {
	font-size: 11px;
	font-weight: 700;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	white-space: nowrap;
	padding: 0 10px;
}

/* ── Data row — each row is its own white card ── */
html .rp-portal-container .rp-portal__appt-row {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	transition: box-shadow 0.15s, transform 0.1s;
	padding: 6px 12px;
}

html .rp-portal-container .rp-portal__appt-row:hover {
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	transform: none;
	background: #fff;
}

html .rp-portal-container .rp-portal__appt-row {
	margin-bottom: 10px;
}

html .rp-portal-container .rp-portal__appt-row:nth-last-child(1) {
	margin-bottom: 0;
}

/* ── Shared column base ── */
html .rp-portal-container .rp-portal__appt-col {
	padding: 14px 10px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

html .rp-portal-container .rp-portal__appt-col.multi-repair {
	gap: 8px;
	display: inline-flex;
	width: 355px;
	padding: 14px 10px;
	    align-items: center;
}

html .rp-portal-container .rp-portal__appt-col.multi-repair .rp-portal__appt-repair-row {
    display: inline-flex;
    align-items: center;
}

html .rp-portal-container .rp-portal__appt-col.multi-repair .rp-portal__appt-repair-row .rp-portal__appt-repair-name {
	width: 185px;
	padding: 0px 10px;
}

html .rp-portal-container .rp-portal__appt-col.multi-repair .rp-portal__appt-repair-row.is-upsale .rp-portal__appt-repair-name {
    font-size: 14px;
    flex: 1 1 0;
    min-width: 0;
    line-height: 1.65rem;
    color: #888;
    font-weight: 400;
	width: 355px;
}

html .rp-portal-container .rp-portal__appt-col.multi-repair .rp-portal__appt-repair-row .rp-appt-detail__workflow-status-col {
	width: 170px;
	padding: 0px 10px;
}

html .rp-portal-container .rp-portal__appt-col.multi-repair .rp-portal__appt-repair-row .rp-appt-detail__workflow-status-col .rp-appt-detail__workflow-status {
	white-space: normal !important;
	line-height: 1.2rem;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* ── Column widths ── */
html .rp-portal-container .rp-portal__appt-col--appt     { width: 120px; flex-shrink: 0; }
html .rp-portal-container .rp-portal__appt-col--datetime { width: 145px; flex-shrink: 0; }
html .rp-portal-container .rp-portal__appt-col--device   { width: 180px; flex-shrink: 0; }
html .rp-portal-container .rp-portal__appt-col--repair   { width: 185px; flex-shrink: 0; }
html .rp-portal-container .rp-portal__appt-col--price    { width: 80px; flex-shrink: 0; }
html .rp-portal-container .rp-portal__appt-col--action   { width: 170px; flex-shrink: 0; align-items: flex-start; justify-content: center; }

/* same widths for header */
html .rp-portal-container .rp-portal__appt-header-col--appt     { width: 120px; flex-shrink: 0; }
html .rp-portal-container .rp-portal__appt-header-col--datetime { width: 145px; flex-shrink: 0; }
html .rp-portal-container .rp-portal__appt-header-col--device   { width: 180px; flex-shrink: 0; }
html .rp-portal-container .rp-portal__appt-header-col--repair   { width: 185px; flex-shrink: 0; }
html .rp-portal-container .rp-portal__appt-header-col--price    { width: 80px; flex-shrink: 0; }
html .rp-portal-container .rp-portal__appt-header-col--action   { width: 170px; flex-shrink: 0; }

/* ── Col 1: Number + Status ── */
html .rp-portal-container .rp-portal__appt-number {
	font-size: 14px;
	font-weight: 400;
	color: #444;
	letter-spacing: 0.01em;
}

html .rp-portal-container .rp-portal__appt-status {
	display: inline-flex;
	align-items: start;
	align-self: flex-start;
	gap: 6px;
	padding: 4px 9px;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0.04em;
	white-space: normal;
	line-height: 1.3em;
}
html .rp-portal-container .rp-portal__appt-status::before {
	content: '';
	display: inline-block;
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.75 !important;
	position: relative;
    top: 5px;
}

/* Colors derived from admin circle-icon dot colors in upsales.css / appointments.css */
html .rp-portal-container .rp-portal__appt-status--pending         { background: #fff2d8; color: #444; }
html .rp-portal-container .rp-portal__appt-status--offered         { background: #e0f0ff; color: #444; }
html .rp-portal-container .rp-portal__appt-status--approved        { background: #ebf4dc; color: #444; }
html .rp-portal-container .rp-portal__appt-status--canceled        { background: #efefef; color: #444; }
html .rp-portal-container .rp-portal__appt-status--price-requested { background: #fff1d6; color: #444; }
html .rp-portal-container .rp-portal__appt-status--completed       { background: #dcf4dd; color: #444; }

/* Dot colors — override currentColor so the ::before bubble uses the exact status dot color */
html .rp-portal-container .rp-portal__appt-status--pending::before         { background: #febc12; }
html .rp-portal-container .rp-portal__appt-status--offered::before         { background: #22a3ff; }
html .rp-portal-container .rp-portal__appt-status--approved::before        { background: #4fba6f; }
html .rp-portal-container .rp-portal__appt-status--canceled::before        { background: #959595; }
html .rp-portal-container .rp-portal__appt-status--price-requested::before { background: #e69500; }
html .rp-portal-container .rp-portal__appt-status--completed::before       { background: #1e9f49; }

/* ── Col 2: Time (primary) + Date (secondary) ── */
html .rp-portal-container .rp-portal__appt-time {
	font-size: 15px;
	font-weight: 600;
	color: #222;
}

html .rp-portal-container .rp-portal__appt-date {
	font-size: 14px;
	font-weight: 400;
	color: #888;
}

/* ── Col 3: Device ── */
html .rp-portal-container .rp-portal__appt-device-sub {
	font-size: 14px;
	font-weight: 400;
	color: #888;
	white-space: normal;
}

html .rp-portal-container .rp-portal__appt-device-model {
	font-size: 15px;
	font-weight: 600;
	color: #222;
	white-space: normal;
}

/* ── Col 4: Repair / Upsale ── */
html .rp-portal-container .rp-portal__appt-repair-name {
	font-size: 15px;
	font-weight: 400;
	color: #444;
	white-space: pre-wrap;
	word-break: break-word;
	display: inline;
}

html .rp-portal-container .rp-portal__appt-repair-name.rp-display-block {
	display: block;
}

html .rp-portal-container .rp-portal__appt-col--repair {
	display: inline-block;
}

html .rp-portal-container .rp-portal__appt-more {
	font-size: 12px;
	font-weight: 500;
	color: var(--theme, #2c7be5);
	opacity: 0.85 !important;
}

html .rp-portal-container .rp-portal__appt-more-badge {
	display: inline-block;
	border: 1px solid var(--theme);
	background: #fff;
	color: var(--theme);
	padding: 0 6px;
	margin-left: 6px;
	font-weight: 600;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.6;
}

html .rp-portal-container .rp-portal__appt-empty {
	color: #bbb;
	font-size: 13px;
}

/* ── Col 5: Price ── */
html .rp-portal-container .rp-portal__appt-price {
	font-size: 15px;
	font-weight: 600;
	color: #222;
	white-space: nowrap;
}

html .rp-portal-container .rp-portal__appt-price--paid   { color: #1e7e34; }
html .rp-portal-container .rp-portal__appt-price--edited { color: #c07a00; }

html .rp-portal-container .rp-portal__appt-price-wrap {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

html .rp-portal-container .rp-portal__appt-paid-badge {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 1;
}

html .rp-portal-container .rp-portal__appt-paid-badge--warning {
	cursor: help;
}

/* ── Page-change overlay — covers only the rows area, not the footer ── */
html .rp-portal-container .rp-portal__appt-list-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--theme-3-opacity);
    border-radius: 10px;
    z-index: 5;
    opacity: 0.7 !important;
}

/* ── Pagination footer ── */
html .rp-portal-container .rp-portal__appt-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 2px 0;
	padding-left:4px;
	margin-top: 6px;
	border-top: 0px solid #ebebeb;
}

html .rp-portal-container .rp-portal__appt-showing {
	font-size: 12.5px;
	color: #999;
	white-space: nowrap;
	letter-spacing: 0.01em;
}

html .rp-portal-container .rp-portal__appt-pagination {
	display: flex;
	align-items: center;
	gap: 3px;
}

html .rp-portal-container .rp-portal__appt-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 7px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	color: #555;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	line-height: 1;
	transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

html .rp-portal-container .rp-portal__appt-page-btn:hover:not(:disabled),
html .rp-portal-container .rp-portal__appt-page-btn:active:not(:disabled),
html .rp-portal-container .rp-portal__appt-page-btn:focus:not(:disabled) {
	border-color: var(--theme) !important;
	text-decoration: none;
	color: var(--theme, #2c7be5);
	background: #fff;
	/* show 0.5px solid border through box shadow also */
	box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 0 0 0.5px var(--theme, #2c7be5);
}

html .rp-portal-container .rp-portal__appt-page-btn--active {
	background: var(--theme, #2c7be5) !important;
	border-color: var(--theme, #2c7be5) !important;
	color: #fff !important;
	cursor: default;
	box-shadow: none !important;
}

html .rp-portal-container .rp-portal__appt-page-btn--disabled,
html .rp-portal-container .rp-portal__appt-page-btn--disabled:hover,
html .rp-portal-container .rp-portal__appt-page-btn--disabled:active,
html .rp-portal-container .rp-portal__appt-page-btn--disabled:focus,
html .rp-portal-container .rp-portal__appt-page-btn--disabled[disabled] {
	opacity: 0.3 !important;
	cursor: default;
	box-shadow: none;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	color: #555;
}

html .rp-portal-container .rp-portal__appt-page-btn--prev,
html .rp-portal-container .rp-portal__appt-page-btn--next {
	color: #666;
	min-width: 30px;
	padding: 0 9px;
}

html .rp-portal-container .rp-portal__appt-page-btn--prev svg,
html .rp-portal-container .rp-portal__appt-page-btn--next svg {
	display: block;
	flex-shrink: 0;
}

html .rp-portal-container .rp-portal__appt-page-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 30px;
	font-size: 13px;
	color: #bbb;
	user-select: none;
	letter-spacing: 0.05em;
}



/* ── Paid-online badge inside appointment details order summary ── */
html .rp-portal-container .rp-appt-detail__paid-badge-wrap {
	padding: 10px 8px 4px;
	text-align: right;
    padding-right: 0px;
    margin-right: -7px;
}

html .rp-portal-container .rp-appt-detail__paid-online-full-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 6px;
	background: #eaf7ee;
	color: #1e7e34;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}

html .rp-portal-container .rp-appt-detail__paid-online-full-badge.rp-portal__appt-paid-badge--warning {
	background: #fff4e5;
	color: #994d00;
}

html .rp-portal-container .rp-appt-detail__paid-badge-label strong {
	font-weight: 700;
}

/* ── Col 6: View button ── */
html .rp-portal-container .rp-portal__appt-view-btn,
html .rp-portal-container .rp-portal__appt-view-btn:hover {
	display: inline-flex;
	align-items: start;
	justify-content: start;
	text-align: left;
	padding: 6px 0px;
	font-size: 13px;
	font-weight: 600;
	color: var(--theme, #2c7be5) !important;
	background: none !important;
	border: 0px;
	border-radius: 0px;
	cursor: pointer;
	white-space: nowrap;
	opacity: 1 !important;
	transition: opacity 0.15s, text-decoration 0.15s;
}

html .rp-portal-container .rp-portal__appt-view-btn:hover {
	opacity: 0.85 !important;
	text-decoration: underline;
	outline: none;
	box-shadow: unset;
}

html .rp-portal-container .rp-portal__appt-view-btn:focus,
html .rp-portal-container .rp-portal__appt-view-btn:focus-visible,
html .rp-portal-container .rp-portal__appt-view-btn:active,
html .rp-portal-container .rp-portal__appt-view-btn:active:focus {
	outline: none;
	box-shadow: unset;
}

/* =========================================================
   Appointment Detail (Template 3)
   BEM root: .rp-appt-detail
   ========================================================= */

/* ── Subview wrapper: bleeds out to cancel the panel's padding ── */
html .rp-portal-container #rp-appt-subview-detail {
	margin: -28px -40px -32px;
	min-height: 100%;
}

/* ── Page-level background ── */
html .rp-portal-container .rp-appt-detail {
	background: var(--theme-3-opacity);
	margin: 0;
	padding: 24px 32px 32px;
	min-height: 100%;
	box-sizing: border-box;
}

/* ── Back link ── */
html .rp-portal-container .rp-appt-detail__back-wrap {
	margin-bottom: 20px;
}

/* ── Header ── */
html .rp-portal-container .rp-appt-detail__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 16px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 18px 22px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ── Rich Header Card ── */
html .rp-portal-container .rp-appt-detail__header-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 18px 22px 20px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

html .rp-portal-container .rp-appt-detail__header-card-heading {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 700;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 14px;
	line-height: 1.6rem;
}

html .rp-portal-container .rp-appt-detail__header-card-heading svg {
	flex-shrink: 0;
	color: var(--theme, #2c7be5);
	opacity: 0.65 !important;
}

html .rp-portal-container .rp-appt-detail__header-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f2f2f2;
}

/* Section divider variant: no border, just spacing */
html .rp-portal-container .rp-appt-detail__header-card-top--section {
	border-bottom: none;
	border-top: none;
	padding-bottom: 0;
	padding-top: 0;
	margin-top: 16px;
	margin-bottom: 8px;
}


html .rp-portal-container .rp-appt-detail__header-card-id {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

html .rp-portal-container .rp-appt-detail__header-card-body {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 0;
}

html .rp-portal-container .rp-appt-detail__header-block {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
	padding: 0 22px 0 0;
}

html .rp-portal-container .rp-appt-detail__header-block--w30 {
	flex: 3 1 0;
}

html .rp-portal-container .rp-appt-detail__header-block--w35 {
	flex: 3.5 1 0;
}

html .rp-portal-container .rp-appt-detail__header-block:last-child {
	padding-right: 0;
}

html .rp-portal-container .rp-appt-detail__header-block-sep {
	width: 1px;
	align-self: stretch;
	background: #f0f0f0;
	margin: 0 22px 0 0;
	flex-shrink: 0;
}

html .rp-portal-container .rp-appt-detail__header-block-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 4px;
	line-height: 1.6rem;
}

html .rp-portal-container .rp-appt-detail__header-block-label svg {
	flex-shrink: 0;
	color: var(--theme, #2c7be5);
	opacity: 0.65 !important;
}

html .rp-portal-container .rp-appt-detail__header-block-primary {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.5;
}

html .rp-portal-container .rp-appt-detail__header-block-secondary {
	font-size: 14px;
	font-weight: 400;
	color: #666;
	line-height: 1.4;
}

html .rp-portal-container .rp-appt-detail__delivery-badge--inline {
	margin-top: 2px;
}

html .rp-portal-container .rp-appt-detail__cal-footer {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 14px;
	margin-top: 14px;
	border-top: 1px solid #eee;
}

html .rp-portal-container .rp-appt-detail__cal-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 500;
	color: var(--theme, #2c7be5);
	text-decoration: underline;
}

html .rp-portal-container .rp-appt-detail__cal-link:hover {
	text-decoration: underline;
}

html .rp-portal-container #rp-appt-detail-location-map {
	display:inline-block;
}

html .rp-portal-container .rp-appt-detail__cal-sep {
	color: #bbb;
	font-size: 13px;
	line-height: 1;
}

html .rp-portal-container .rp-appt-detail__reschedule-link {
	display: inline-table;
	margin-top: 0px;
	font-size: 13px;
	font-weight: 500;
	color: var(--theme, #2c7be5);
	text-decoration: none !important;
}

html .rp-portal-container .rp-appt-detail__reschedule-link:hover,
html .rp-portal-container .rp-appt-detail__reschedule-link:active,
html .rp-portal-container .rp-appt-detail__reschedule-link:focus {
	text-decoration: underline !important;
}

html .rp-portal-container .rp-appt-detail__header-block-primary--dot {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

html .rp-portal-container .rp-appt-detail__service-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	min-width: 8px;
	border-radius: 50%;
	background: var(--theme, #2c7be5);
	flex-shrink: 0;
}

html .rp-portal-container .rp-appt-detail__header-left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

html .rp-portal-container .rp-appt-detail__appt-number {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: -0.01em;
}

html .rp-portal-container .rp-appt-detail__status-badge {
	font-size: 12px !important;
	padding: 4px 9px !important;
	border-radius: 6px !important;
	line-height: 1.3em !important;
}

html .rp-portal-container .rp-appt-detail__header-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 12px;
}

html .rp-portal-container .rp-appt-detail__header-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: #666;
}

html .rp-portal-container .rp-appt-detail__header-meta-item svg {
	flex-shrink: 0;
	color: #bbb;
}

html .rp-portal-container .rp-appt-detail__header-meta-sep {
	color: #ddd;
	font-size: 16px;
	line-height: 1;
}

/* ── Two-column grid (main + sidebar) ── */
html .rp-portal-container .rp-appt-detail__grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 16px;
	align-items: start;
	margin-bottom: 16px;
}

/* ── Cards ── */
html .rp-portal-container .rp-appt-detail__card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 20px 22px 18px;
	margin-bottom: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

html .rp-portal-container .rp-appt-detail__card:last-child {
	margin-bottom: 0;
}

/* Full-width cards below the grid */
html .rp-portal-container .rp-appt-detail__card--full {
	margin-bottom: 16px;
}

/* Header row: side-by-side header cards with a gap */
html .rp-portal-container .rp-appt-detail__header-row {
	display: flex;
	align-items: stretch;
	gap: 20px;
	margin-bottom: 20px;
}

html .rp-portal-container .rp-appt-detail__header-row .rp-appt-detail__header-card {
	margin-bottom: 0;
}

html .rp-portal-container .rp-appt-detail__header-card--two-thirds {
	flex: 2 1 0;
	min-width: 0;
}

html .rp-portal-container .rp-appt-detail__header-card--one-third {
	flex: 1 1 0;
	min-width: 0;
}

/* Two-thirds width card (used for Device & Repairs summary above the grid) */
html .rp-portal-container .rp-appt-detail__card--two-thirds {
	width: calc(66.666% - 8px);
}

html .rp-portal-container .rp-appt-detail__card-title {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 700;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f2f2f2;
}

html .rp-portal-container .rp-appt-detail__card-title svg {
	flex-shrink: 0;
	color: var(--theme, #2c7be5);
	opacity: 0.7 !important;
}

/* ── Device block ── */
/* Two-column layout inside the Device & Repairs card */
html .rp-portal-container .rp-appt-detail__device-repairs-cols {
	display: flex;
	align-items: flex-start;
	gap: 0;
	margin-top: 4px;
}

html .rp-portal-container .rp-appt-detail__device-repairs-col {
	flex: 1 1 0;
	min-width: 0;
	padding: 14px 20px 2px;
}

html .rp-portal-container .rp-appt-detail__device-repairs-col:first-child {
	padding-left: 0;
}

html .rp-portal-container .rp-appt-detail__device-repairs-sep {
	width: 1px;
	align-self: stretch;
	background: #e8e8e8;
	flex-shrink: 0;
	margin: 4px 0;
}

/* Repairs card two-column layout */
html .rp-portal-container .rp-appt-detail__repairs-cols {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 0;
	margin-top: 4px;
}

html .rp-portal-container .rp-appt-detail__header-block--w70 {
	flex: 7 1 0;
}

html .rp-portal-container .rp-appt-detail__repairs-col {
	min-width: 0;
	padding: 12px 20px 4px;
}

html .rp-portal-container .rp-appt-detail__repairs-col--device {
	flex: 3 1 0;
	padding-left: 0;
}

html .rp-portal-container .rp-appt-detail__repairs-col--items {
	flex: 7 1 0;
}

html .rp-portal-container .rp-appt-detail__repairs-sep {
	width: 1px;
	align-self: stretch;
	background: #e8e8e8;
	flex-shrink: 0;
	margin: 8px 0;
}

/* Inline items list (repairs + upsales, no dots) */
html .rp-portal-container .rp-appt-detail__items-inline {
	list-style: none;
	margin: 0px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

html .rp-portal-container .rp-appt-detail__item-inline {
	display: flex;
	align-items: center;
	gap: 10px;
}

html .rp-portal-container .rp-appt-detail__item-inline-name {
	font-size: 14px;
	color: #333;
	font-weight: 500;
	flex: 1 1 0;
	min-width: 0;
	line-height: 1.65rem;
}

html .rp-portal-container .rp-appt-detail__item-inline--upsale .rp-appt-detail__item-inline-name {
	color: #888;
	font-weight: 400;
}

html .rp-portal-container .rp-appt-detail__device-block {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 10px 12px;
	background: #f8f9fb;
	border: 1px solid #eef0f4;
	border-radius: 8px;
	margin-bottom: 0;
}

html .rp-portal-container .rp-appt-detail__device-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	min-width: 42px;
	border-radius: 10px;
	background: var(--theme-15-opacity, rgba(44,123,229,0.12));
	color: var(--theme, #2c7be5);
}

html .rp-portal-container .rp-appt-detail__device-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

html .rp-portal-container .rp-appt-detail__device-category {
	font-size: 13px;
	color: #999;
	font-weight: 500;
}

html .rp-portal-container .rp-appt-detail__device-model {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.25;
}

html .rp-portal-container .rp-appt-detail__device-color {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #777;
	margin-top: 2px;
}

html .rp-portal-container .rp-appt-detail__color-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,0.15);
	flex-shrink: 0;
}

/* ── Items (repairs / upsales) ── */
html .rp-portal-container .rp-appt-detail__items-block {
	margin-bottom: 14px;
}

html .rp-portal-container .rp-appt-detail__items-block:last-child {
	margin-bottom: 0;
}

html .rp-portal-container .rp-appt-detail__items-block--upsales {
	padding-top: 14px;
	border-top: 1px dashed #ebebeb;
}

html .rp-portal-container .rp-appt-detail__items-label {
	font-size: 11px;
	font-weight: 700;
	color: #bbb;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 10px;
}

html .rp-portal-container .rp-appt-detail__items-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

html .rp-portal-container .rp-appt-detail__item-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #f5f5f5;
}

html .rp-portal-container .rp-appt-detail__item-row:last-child {
	border-bottom: none;
}

html .rp-portal-container .rp-appt-detail__item-name {
	font-size: 14px;
	color: #333;
	font-weight: 500;
	flex: 1;
	min-width: 0;
}

html .rp-portal-container .rp-appt-detail__item-name--upsale {
	color: #666;
	font-weight: 400;
}

html .rp-portal-container .rp-appt-detail__item-price {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── Price breakdown ── */
html .rp-portal-container .rp-appt-detail__price-table {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-left: -8px;
	margin-right: -8px;
}

html .rp-portal-container .rp-appt-detail__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 12px;
	padding: 8px 8px;
	/* No border-bottom — dividers are drawn via the adjacent-sibling rule below
	   so that separators inserted between sections never cause a double-border. */
}

/* Draw a divider only between two consecutive price rows (same section). */
html .rp-portal-container .rp-appt-detail__price-row + .rp-appt-detail__price-row {
	border-top: 1px solid #f7f7f7;
}

/* The --total row carries its own full border-box; suppress the sibling top border. */
html .rp-portal-container .rp-appt-detail__price-row + .rp-appt-detail__price-row--total {
	border-top: none;
}

html .rp-portal-container .rp-appt-detail__price-label {
	font-size: 14px;
	color: #555;
	flex: 1;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

html .rp-portal-container .rp-appt-detail__price-val {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	white-space: nowrap;
	flex-shrink: 0;
}

html .rp-portal-container .rp-appt-detail__price-row--discount .rp-appt-detail__price-label,
html .rp-portal-container .rp-appt-detail__price-row--discount .rp-appt-detail__price-val {
	color: var(--theme);
}

html .rp-portal-container .rp-appt-detail__price-row--total {
	margin-top: 4px;
	margin-bottom: 4px;
	padding: 12px 14px;
	background: #f3f4f6;
	border: 1px solid #e8eaed;
	border-radius: 7px;
	border-bottom: none;
}

html .rp-portal-container .rp-appt-detail__price-row--total .rp-appt-detail__price-label {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

html .rp-portal-container .rp-appt-detail__price-row--total .rp-appt-detail__price-val {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
}

/* Quote # reference sub-row — shown below "Initial Deposit (Quote Fee)" */
html .rp-portal-container .rp-appt-detail__price-row--quote-ref {
	padding: 0px 8px 6px;
    margin-top: -8px;
    border-top: none !important;
}

html .rp-portal-container .rp-appt-detail__price-label--muted {
	font-size: 12px;
	color: #888;
	gap: 0px;
}

html .rp-portal-container .rp-appt-detail__coupon-badge {
	display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    background: var(--theme-10-opacity, rgba(44, 123, 229, 0.08));
    color: var(--theme, #2c7be5);
    border: 1px solid var(--theme-30-opacity, rgba(44, 123, 229, 0.3));
    letter-spacing: 0.04em;
    vertical-align: middle;
    line-height: 1.6em;
}

/* ── Combo discount inline badge on repair name ── */
html .rp-portal-container .rp-appt-detail__percent-off-badge {
	display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    background: var(--theme-10-opacity, rgba(44, 123, 229, 0.08));
    color: var(--theme, #2c7be5);
    border: 1px solid var(--theme-30-opacity, rgba(44, 123, 229, 0.3));
    letter-spacing: 0.04em;
    vertical-align: middle;
    line-height: 1.6em;
}

/* Separator line inside price table */
html .rp-portal-container .rp-appt-detail__price-separator {
	border: none;
	border-top: 1px solid #e8eaed;
	margin: 2px 0;
}

/* Small note row (e.g. excl. payment method fee) — can appear standalone or inside a price row */
html .rp-portal-container .rp-appt-detail__price-note {
	font-size: 12px;
    color: #888;
    padding: 0 8px 6px;
    width: 100%;
    margin-top: -5px;
    padding: 0px;
}

/* "Paid online with X" sub-line inside label cell of deposit / quote-fee-post-total rows */
html .rp-portal-container .rp-appt-detail__paid-online-note {
	display: block;
    width: 100%;
    font-size: 12px;
    color: #888;
    font-weight: 400;
    line-height: 1.2em;
    margin-bottom: 4px;
    margin-top: -4px;
}

/* ── Delivery badge (sidebar) ── */
html .rp-portal-container .rp-appt-detail__delivery-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 11px;
	border-radius: 6px;
	background: var(--theme-15-opacity, rgba(44,123,229,0.1));
	color: var(--theme, #2c7be5);
	font-size: 13px;
	font-weight: 600;
}

html .rp-portal-container .rp-appt-detail__delivery-badge svg {
	flex-shrink: 0;
}

/* ── Definition list (sidebar / customer details)
      Using div/span markup to avoid WordPress theme dt/dd overrides ── */
html .rp-portal-container .rp-appt-detail__dl {
	display: flex;
	flex-direction: column;
	gap: 0;
}

html .rp-portal-container .rp-appt-detail__dl-row {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 0;
	border-bottom: 1px solid #f5f5f5;
}

/* Also support native dt/dd inside .rp-appt-detail__dl-row if used */
html .rp-portal-container .rp-appt-detail__dl-row dt,
html .rp-portal-container .rp-appt-detail__dl-term {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin: 0;
	padding: 0;
	float: none;
	width: auto;
}

html .rp-portal-container .rp-appt-detail__dl-row dd,
html .rp-portal-container .rp-appt-detail__dl-desc {
	display: block;
	font-size: 14px;
	color: #333;
	margin: 0;
	padding: 0;
	line-height: 1.65rem;
	float: none;
	width: auto;
}

html .rp-portal-container .rp-appt-detail__dl-row:last-child {
	border-bottom: none;
}

html .rp-portal-container .rp-appt-detail__dl-desc--bold {
	font-weight: 500;
}

html .rp-portal-container .rp-appt-detail__customer-note {
	font-style: italic;
	color: #555;
	font-size: 13px;
	line-height: 1.55;
	margin: 4px 0 0;
	padding: 8px 12px;
	background: #f8f9fb;
	border-left: 3px solid #d8dce5;
	border-radius: 0 4px 4px 0;
}

html .rp-portal-container .rp-appt-detail__link {
	color: var(--theme, #2c7be5);
	text-decoration: none;
	font-size: 13px;
}

html .rp-portal-container .rp-appt-detail__link:hover {
	text-decoration: underline;
}

/* ── Workflow / Repair Progress ── */
html .rp-portal-container .rp-appt-detail__workflow-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

html .rp-portal-container .rp-appt-detail__workflow-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #f8f9fb;
	border: 1px solid #eef0f4;
}

html .rp-portal-container .rp-appt-detail__workflow-dot {
	width: 10px;
	height: 10px;
	min-width: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

html .rp-portal-container .rp-appt-detail__workflow-dot--done       { background: #27ae60; }
html .rp-portal-container .rp-appt-detail__workflow-dot--inprogress { background: var(--theme, #2c7be5); }
html .rp-portal-container .rp-appt-detail__workflow-dot--waiting    { background: #d0d0d0; }

html .rp-portal-container .rp-appt-detail__workflow-info {
	display: flex;
	flex: 1;
	min-width: 0;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

html .rp-portal-container .rp-appt-detail__workflow-repair-name {
	font-size: 14px;
	color: #333;
	font-weight: 500;
}

html .rp-portal-container .rp-appt-detail__workflow-repair-name--upsale {
	color: #666;
	font-weight: 400;
}

html .rp-portal-container .rp-appt-detail__workflow-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0px 10px;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	line-height: 1.65rem;
}

/* Dot inside a dynamic badge */
html .rp-portal-container .rp-appt-detail__workflow-status-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex-shrink: 0;
}

html .rp-portal-container .rp-appt-detail__workflow-status--done       { background: #edf7f1; color: #1e7e34; }
html .rp-portal-container .rp-appt-detail__workflow-status--inprogress { background: #eef2fd; color: #1a56c4; }
html .rp-portal-container .rp-appt-detail__workflow-status--waiting    { background: #f2f2f2; color: #888; }

/* ── Notes (external) ── */
html .rp-portal-container .rp-appt-detail__notes-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* legacy aliases — kept for backwards compat, real styles live in the
   NOTE ITEMS block further below */
html .rp-portal-container .rp-appt-detail__note-text {
	font-size: 14px;
	color: #444;
	margin: 0 0 10px;
	font-style: italic;
	line-height: 1.6;
}

html .rp-portal-container .rp-appt-detail__note-date {
	font-size: 12px;
	color: #bbb;
}

/* ── Activity Timeline ── */
html .rp-portal-container .rp-appt-detail__timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	position: relative;
}

/* Vertical connector line — runs between icon centres */
html .rp-portal-container .rp-appt-detail__timeline::before {
	content: '';
	position: absolute;
	left: 14px; /* centre of the 30px icon (15px - 1px half of line) */
	top: 30px;  /* start after first icon */
	bottom: 30px;
	width: 2px;
	background: #edf0f5;
	border-radius: 1px;
	display: block;
}

html .rp-portal-container .rp-appt-detail__timeline-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	position: relative;
}

html .rp-portal-container .rp-appt-detail__timeline-item + .rp-appt-detail__timeline-item {
	border-top: 1px solid #f5f5f5;
}

html .rp-portal-container .rp-appt-detail__timeline-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	min-width: 30px;
	border-radius: 50%;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	box-shadow: 0 0 0 3px var(--theme-3-opacity); /* matches page background so it "cuts" the line */
}

html .rp-portal-container .rp-appt-detail__timeline-icon--notification { background: #eef2fd; color: #1a56c4; }
html .rp-portal-container .rp-appt-detail__timeline-icon--status       { background: #fef9e7; color: #9a6700; }
html .rp-portal-container .rp-appt-detail__timeline-icon--created      { background: #edf7f1; color: #1e7e34; }

html .rp-portal-container .rp-appt-detail__timeline-body {
	flex: 1;
	min-width: 0;
	padding-top: 5px;
}

html .rp-portal-container .rp-appt-detail__timeline-msg {
	font-size: 14px;
	color: #333;
	margin: 0 0 6px;
	line-height: 1.45;
}

html .rp-portal-container .rp-appt-detail__timeline-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 8px;
}

html .rp-portal-container .rp-appt-detail__timeline-actor {
	font-size: 12px;
	font-weight: 600;
	color: #666;
}

html .rp-portal-container .rp-appt-detail__timeline-dot {
	display: inline-block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #ccc;
	flex-shrink: 0;
	margin-bottom: 1px; /* vertical alignment */
}

html .rp-portal-container .rp-appt-detail__timeline-date {
	font-size: 12px;
	color: #bbb;
}

html .rp-portal-container .rp-appt-detail__timeline-channel {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 7px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
}

html .rp-portal-container .rp-appt-detail__timeline-channel--email { background: #eef2fd; color: #1a56c4; }
html .rp-portal-container .rp-appt-detail__timeline-channel--sms   { background: #f3effe; color: #6830c0; }

/* =========================================================
   Appointment Detail — Notes & Activity sections
   ========================================================= */

/* ── Section uses the same header-card shell ── */
html .rp-portal-container .rp-appt-detail__section {
	/* inherits all styling from .rp-appt-detail__header-card */
}

/* ── Count badge next to the heading ─────────────────────── */
html .rp-portal-container .rp-appt-detail__section-count {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    color: #424242;
    background: #ddd;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1em;
    vertical-align: middle;
}

/* ── Rail variables (shared by Notes & Activity) ─────────── */
html .rp-portal-container .rp-appt-detail__notes-list,
html .rp-portal-container .rp-appt-detail__activity-list {
	position: relative;
	--list-pad: 64px;
	--rail-x: 24px;
	padding-left: var(--list-pad);
	margin-top: 8px;
    margin-bottom: 8px;
	max-height: 420px;
	overflow-y: auto;
	padding-right: 12px;
}

/* Vertical rail line — uses --rail-height (set by JS) so the line
   never extends past the last item when the list is scrollable */
html .rp-portal-container .rp-appt-detail__activity-list::before,
html .rp-portal-container .rp-appt-detail__notes-list.has-items::before {
	content: "";
	position: absolute;
	left: var(--rail-x);
	top: 0;
	bottom: auto;
	width: 2px;
	height: var(--rail-height, 100%);
	background: #e6edf5;
	z-index: 0;
	display: block;
}

/* ── Empty state ─────────────────────────────────────────── */
html .rp-portal-container .rp-appt-detail__notes-empty {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #bbb;
	font-size: 14px;
	padding: 6px 0 4px;
	margin-bottom: 10px !important;
}

html .rp-portal-container .rp-appt-detail__notes-empty svg {
	flex-shrink: 0;
	opacity: 0.45 !important;
}

/* ══════════════════════════════════════════════════════════
   NOTE ITEMS
   ══════════════════════════════════════════════════════════ */

html .rp-portal-container .rp-appt-detail__note-item {
	position: relative;
	z-index: 1;
	background: #fdfdfd;
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	padding: 16px 20px;
	margin: 18px 0;
}

html .rp-portal-container .rp-appt-detail__note-item:first-child { margin-top: 0; }
html .rp-portal-container .rp-appt-detail__note-item:last-child  { margin-bottom: 0; }

/* Filled icon pin — user icon, matches workflow note pin */
html .rp-portal-container .rp-appt-detail__note-item::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(var(--rail-x) - var(--list-pad));
	transform: translate(-50%, -50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: #2563eb;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 12c2.761 0 5-2.686 5-6s-2.239-5-5-5-5 2.239-5 5 2.239 6 5 6zm0 2c-4.418 0-8 2.239-8 5v3h16v-3c0-2.761-3.582-5-8-5z'/></svg>");
	z-index: 1;
	display: block;
}

/* is-external = green pin (matches workflow) */
html .rp-portal-container .rp-appt-detail__note-item.is-external::before { background-color: #2ea24c; }
/* is-internal = blue pin (matches workflow) */
html .rp-portal-container .rp-appt-detail__note-item.is-internal::before { background-color: #2563eb; }

html .rp-portal-container .rp-appt-detail__note-head { margin-bottom: 6px; }

/* "Related to:" tag — 13px / 500 / #414141, no uppercase — matches workflow .tag */
html .rp-portal-container .rp-appt-detail__note-tag {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	color: #414141;
	padding: 4px 0;
}

/* Note body text — 15px / 1.4 — matches workflow .note-body */
html .rp-portal-container .rp-appt-detail__note-body {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--rp-text, #333);
	margin: 6px 0 8px !important;
}

/* Meta row: left (author · dot · time) + right (pill) */
html .rp-portal-container .rp-appt-detail__note-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	font-size: 12px;
	color: #999;
}

html .rp-portal-container .rp-appt-detail__note-meta-left {
	display: flex;
	align-items: center;
	gap: 5px;
}

html .rp-portal-container .rp-appt-detail__note-meta-author { font-weight: normal; color: #adadad; }
html .rp-portal-container .rp-appt-detail__note-meta-dot    { color: #adadad; }
html .rp-portal-container .rp-appt-detail__note-meta-time   { color: #adadad; }

/* Pill — border-radius:6px (not pill-shaped), matches workflow */
html .rp-portal-container .rp-appt-detail__note-pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	text-transform: capitalize;
}

html .rp-portal-container .rp-appt-detail__note-pill.is-external { background: #ebf4dc; color: #1e9f49; }
html .rp-portal-container .rp-appt-detail__note-pill.is-internal { background: #dce9f7; color: #1f75bc; }

/* ══════════════════════════════════════════════════════════
   ACTIVITY ITEMS
   ══════════════════════════════════════════════════════════ */

html .rp-portal-container .rp-appt-detail__activity-item {
	position: relative;
	z-index: 1;
	background: #fdfdfd;
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	padding: 16px 20px;
	margin: 18px 0;
}

html .rp-portal-container .rp-appt-detail__activity-item:first-child { margin-top: 0; }
html .rp-portal-container .rp-appt-detail__activity-item:last-child  { margin-bottom: 0; }

/* Base filled icon pin — gray with swap-arrows SVG (status change) */
html .rp-portal-container .rp-appt-detail__activity-item::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(var(--rail-x) - var(--list-pad));
	transform: translate(-50%, -50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: #98a2b3;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 12px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='10' fill='%2398a2b3'/><path fill='%23fbfdfe' d='M4,7.94v-.37c0-.31.25-.56.56-.56h8.44v-1.12c0-.5.61-.75.96-.4l1.87,1.87c.22.22.22.58,0,.79l-1.87,1.87c-.35.35-.96.11-.96-.4v-1.12H4.56c-.31,0-.56-.25-.56-.56ZM15.44,11.5H7v-1.12c0-.5-.61-.75-.96-.4l-1.87,1.87c-.22.22-.22.58,0,.79l1.87,1.87c.35.35.96.11.96-.4v-1.12h8.44c.31,0,.56-.25.56-.56v-.37c0-.31-.25-.56-.56-.56Z'/></svg>");
	z-index: 1;
	display: block;
}

/* is-status: gray arrows pin (status change) */
html .rp-portal-container .rp-appt-detail__activity-item.is-status::before {
	background-color: #98a2b3;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

/* is-notify: green bell pin (notification sent) — matches workflow */
html .rp-portal-container .rp-appt-detail__activity-item.is-notify::before {
	background-color: #2ea24c;
	background-size: 12px 12px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path fill='white' d='M224 512c35.3 0 64-28.7 64-64H160c0 35.3 28.7 64 64 64zm215.4-149.1c-19.8-20.6-55.5-52.6-55.5-154.9 0-77.7-54.5-139.2-127.9-155.2V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v20.8C118.6 68.8 64 130.3 64 208c0 102.3-35.7 134.3-55.5 154.9A31.9 31.9 0 0 0 0 376c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32 0-8.5-3.4-16.6-8.6-23.1z'/></svg>");
}

html .rp-portal-container .rp-appt-detail__activity-head { margin-bottom: 6px; }

/* "Related to:" tag — 13px / 500 / #414141, no uppercase — matches workflow */
html .rp-portal-container .rp-appt-detail__activity-tag {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	color: #414141;
	padding: 4px 0;
}

/* Activity body text — 15px / 1.4 — matches workflow */
html .rp-portal-container .rp-appt-detail__activity-text {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--rp-text, #333);
	margin: 6px 0 8px !important;
}

html .rp-portal-container .rp-appt-detail__activity-text p {
	font-size: 14px;
    line-height: 1.5em;
    margin: 10px 0px;
	margin-bottom: 15px;
}

html .rp-portal-container .rp-appt-detail__activity-text table td {
	line-height: 1.4em;
}

html .rp-portal-container .rp-appt-detail__activity-text table th {
	line-height: 1.4em;
	font-weight: 600;
}

html .rp-portal-container .rp-appt-detail__activity-text strong {
	font-weight: 600;
	color: #1a1a1a;
}

/* Badge inside activity text — mirrors .workflow-manage-page .activity-item .activity-text .badge */
html .rp-portal-container .rp-appt-detail__activity-text .badge {
	display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    white-space: nowrap;
    background: #efefef;
	font-size: 13px;
	line-height: 1.6em;
	margin-top: 0;
	padding: 2px 10px;
    font-weight: 500;
	position: relative;
	top:-1px;
}

html .rp-portal-container .rp-appt-detail__activity-text .badge .dot {
	width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #aaa;
}

/* Status chip — mirrors .workflow-manage-page .status-chip */
html .rp-portal-container .rp-appt-detail__activity-text .status-chip {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid #e1e9f2;
	background: #f7f9fc;
	color: #304864;
}
html .rp-portal-container .rp-appt-detail__activity-text .status-chip.is-orange {
	background: #fff2e1;
	border-color: #ffe6c8;
	color: #7a4a12;
}
html .rp-portal-container .rp-appt-detail__activity-text .status-chip.is-blue {
	background: #e6f3fe;
	border-color: #d3e9ff;
	color: #0f3550;
}

/* SMS chip — mirrors .workflow-manage-page .chip-sms */
html .rp-portal-container .rp-appt-detail__activity-text .chip-sms {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 6px;
	border-radius: 6px;
	border: 1px dashed #dfe6ee;
	font-size: 12px;
	margin-left: 6px;
	color: #476280;
	background: #f7fbff;
}

/* Meta row — flex: left (author · dot · time) | right (optional channel) */
html .rp-portal-container .rp-appt-detail__activity-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	font-size: 12px;
	color: #999;
}

html .rp-portal-container .rp-appt-detail__activity-meta-channel {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #7b8794;
    font-size: 13px;
}

html .rp-portal-container .rp-appt-detail__activity-meta-channel svg {
	width: 14px;
	height: 14px;
}

html .rp-portal-container .rp-appt-detail__activity-meta-left {
	display: flex;
	align-items: center;
	gap: 5px;
}

html .rp-portal-container .rp-appt-detail__activity-meta-author { font-weight: normal; color: #adadad; }
html .rp-portal-container .rp-appt-detail__activity-meta-dot    { color: #adadad; }
html .rp-portal-container .rp-appt-detail__activity-meta-time   { color: #adadad; }

/* =========================================================
   Manage Appointment Card
   ========================================================= */

html .rp-portal-container .rp-appt-detail__manage-card {
	border-top: 3px solid #f5f5f5;
}

html .rp-portal-container .rp-appt-detail__manage-body {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Each action row */
html .rp-portal-container .rp-appt-detail__manage-block {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 0;
	border-bottom: 1px solid #f2f2f2;
}

html .rp-portal-container .rp-appt-detail__manage-block:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

html .rp-portal-container .rp-appt-detail__manage-block:first-child {
	padding-top: 0;
}

html .rp-portal-container .rp-appt-detail__manage-sep {
	display: none; /* handled via border-bottom on blocks */
}

/* Text side */
html .rp-portal-container .rp-appt-detail__manage-block-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 0;
	min-width: 0;
}

html .rp-portal-container .rp-appt-detail__manage-block-title {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

html .rp-portal-container .rp-appt-detail__manage-block-desc {
	font-size: 13px;
	color: #888;
	line-height: 1.5;
}

/* Button wrapper — enforces minimum width; button fills it naturally */
html .rp-portal-container .rp-appt-detail__manage-btn-wrap {
	flex-shrink: 0;
	min-width: 130px;
}

/* Shared button base */
html .rp-portal-container .rp-appt-detail__manage-btn {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 7px;
	width: auto;
	padding: 0px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	text-decoration: none;
	transition: background 0.18s, color 0.18s, box-shadow 0.18s;
	white-space: nowrap;
	line-height: 1.5rem;
}

/* Outline variant — Reschedule */
html .rp-portal-container .rp-appt-detail__manage-btn--outline {
	background: transparent;
	color: var(--theme, #2c7be5);
	border: 1.5px solid transparent;
	text-decoration: none !important;
}

html .rp-portal-container .rp-appt-detail__manage-btn--outline:hover,
html .rp-portal-container .rp-appt-detail__manage-btn--outline:active,
html .rp-portal-container .rp-appt-detail__manage-btn--outline:focus {
	color: var(--theme-80-opacity, #2c7be5);
	text-decoration: underline !important;
	outline: none;
	box-shadow: unset;
}

/* Danger variant — Cancel */
html .rp-portal-container .rp-appt-detail__manage-btn--danger {
	background: transparent;
	color: #d94040;
	border: 1.5px solid transparent;
	text-decoration: none !important;
}

html .rp-portal-container .rp-appt-detail__manage-btn--danger:hover,
html .rp-portal-container .rp-appt-detail__manage-btn--danger:active,
html .rp-portal-container .rp-appt-detail__manage-btn--danger:focus {
	/* a bit darker red */
	color: #b61a1a;
	text-decoration: underline !important;
	outline: none;
	box-shadow: unset;
}

/* Primary variant — Finalize Booking */
html .rp-portal-container .rp-appt-detail__manage-btn--primary {
	background: var(--theme, #2c7be5);
	color: #fff !important;
	border: none;
	padding: 9px 18px;
	text-decoration: none !important;
}

html .rp-portal-container .rp-appt-detail__manage-btn--primary:hover,
html .rp-portal-container .rp-appt-detail__manage-btn--primary:active,
html .rp-portal-container .rp-appt-detail__manage-btn--primary:focus {
	background: var(--theme-80-opacity, #1a68d1);
	color: #fff !important;
	text-decoration: none !important;
	outline: none;
	box-shadow: 0 2px 8px rgba(44, 123, 229, 0.3);
}

html .rp-portal-container #rp-appt-detail-finalize-wrap {
	margin-left: -8px;
    margin-right: -8px;
}
/* Finalize Booking wrapper — sits below the price table */
html .rp-portal-container .rp-appt-detail__finalize-btn,
html .rp-portal-container .rp-appt-detail__finalize-btn:hover,
html .rp-portal-container .rp-appt-detail__finalize-btn:active,
html .rp-portal-container .rp-appt-detail__finalize-btn:focus {
	margin-top: 14px;
	width: 100%;
	justify-content: center;
	background: var(--theme, #2c7be5);
    color: #fff !important;
    border: none;
    padding: 9px 18px;
    text-decoration: none !important;
	text-decoration: none !important;
	outline: none !important;
	box-shadow: unset !important;
}

html .rp-portal-container .rp-appt-detail__finalize-btn:hover {
	background: var(--theme-80-opacity, #1a68d1);
	color: #fff !important;
}



/* ── Notifications Tab ──────────────────────────────────────────────────────── */

/* Row that places the toggle track and label side by side, on its own line */
html .rp-portal-container .rp-portal__notif-toggle-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}

/* The track */
html .rp-portal-container .rp-portal__notif-toggle {
	position: relative;
	width: 40px;
	height: 22px;
	border-radius: 999px;
	background: #d0d7de;
	transition: background 0.2s ease;
	flex-shrink: 0;
	cursor: pointer;
	opacity: 0.7 !important;
}

html .rp-portal-container .rp-portal__notif-toggle--on {
	background: var(--theme, #2c7be5);
}

/* The knob */
html .rp-portal-container .rp-portal__notif-toggle-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.18);
	transition: transform 0.2s ease;
}

html .rp-portal-container .rp-portal__notif-toggle--on .rp-portal__notif-toggle-knob {
	transform: translateX(18px);
}

/* "Always on" label next to the toggle — same weight/colour as .rp-portal__label */
html .rp-portal-container .rp-portal__notif-toggle-label {
	font-size: 14px;
	font-weight: 600;
	color: #444;
}
html .rp-portal-container .rp-portal__notif-desc {
	font-size: 13px;
	color: #888;
	margin: 0 0 14px;
	line-height: 1.55;
}

/* Sub-label above the channel chips — inherits .rp-portal__label, just adds spacing */
html .rp-portal-container .rp-portal__notif-channel-heading {
	margin-top: 20px;
	margin-bottom: 10px;
}

/* Chips row */
html .rp-portal-container .rp-portal__notif-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 4px;
}

/* Individual chip — mirrors repairs_workflow design, adapted to portal tokens */
html .rp-portal-container .rp-portal__notif-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border: 2px solid #d0d7de;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 400;
	color: #444;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
	line-height: 1.2em;
	user-select: none;
}

/* Hide the native radio */
html .rp-portal-container .rp-portal__notif-chip input[type="radio"] {
	display: none;
}

/* SVG icon inside chip */
html .rp-portal-container .rp-portal__notif-chip-ico {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

html .rp-portal-container .rp-portal__notif-chip-ico svg {
	width: 100%;
	height: 100%;
	fill: #adadad;
	transition: fill 0.15s ease;
}

/* "None" chip has a slightly wider icon */
html .rp-portal-container .rp-portal__notif-chip--none .rp-portal__notif-chip-ico {
	width: 18px;
	height: 14px;
}

/* Selected state — use portal --theme colour, matching button/input focus */
html .rp-portal-container .rp-portal__notif-chip:has(input:checked) {
	border-color: var(--theme, #2c7be5);
	color: var(--theme, #2c7be5);
	background: #fff;
}

html .rp-portal-container .rp-portal__notif-chip:has(input:checked) .rp-portal__notif-chip-ico svg {
	fill: var(--theme, #2c7be5);
}

/* Hover (unselected) */
html .rp-portal-container .rp-portal__notif-chip:hover {
	border-color: #aab4be;
}

html .rp-portal-container .rp-portal__notif-chip:focus { outline: none; }
html .rp-portal-container .rp-portal__notif-chip:focus-visible { outline: none; }

html .rp-portal-container .rp-portal__appt-row,
html .rp-portal-container .rp-portal__appt-header {
	min-width: 915px;
}

html .rp-portal-container.repair-mq-10 .rp-appt-detail__header-card-body {
	flex-direction: column;
	gap: 20px;
}

html .rp-portal-container.repair-mq-10 .rp-appt-detail__header-block-sep {
	width: 100%;
	height: 1px;
}

html .rp-portal-container.repair-mq-10 .rp-appt-detail__repairs-cols {
    gap: 20px;
}

html .rp-portal-container.repair-mq-10 .rp-appt-detail__header-block-sep.extra-sep {
	display: none !important;
}

html .rp-portal-container.repair-mq-10 .rp-appt-detail__header-row {
	flex-direction: column;
	gap: 0;
}

html .rp-portal-container.repair-mq-10 .rp-appt-detail__header-row .rp-appt-detail__header-card {
	margin-bottom: 20px;
}

html .rp-portal-container.repair-mq-10 .rp-appt-detail__header-row .rp-appt-detail__header-card.customer-details-card {
	margin-bottom: 0px;
}

/* ── Responsive ── */

html .rp-portal-container.repair-mq-8 .rp-appt-detail__card--two-thirds,
html .rp-portal-container.repair-mq-8 .rp-appt-detail__header-card--two-thirds {
	width: 100%;
}

/* Responsive: stack columns on small screens */
html .rp-portal-container.repair-mq-8 .rp-appt-detail__repairs-cols {
	flex-direction: column;
}

html .rp-portal-container.repair-mq-8 .rp-appt-detail__repairs-cols .rp-appt-detail__header-block {
	width: 100%;
	padding: 0 0 0px;
}

/* ── Responsive ── */
html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-panel {
	min-height: 200px;
}

/* ── Mobile/Tablet (repair-mq-8 and below, width ≤ 680 px) ── */
html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-body {
	flex-direction: column;
	align-items: stretch;
}

html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-nav {
	/* Back to horizontal top bar */
	flex-direction: row;
	align-items: stretch;
	justify-content: space-between;
	border-bottom: 2px solid #f0f0f0;
	border-right: none;
	width: 100%;
	min-width: auto;
	max-width: none;
	padding: 0 28px;
	background: #fbfbfb;
}

html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tabs {
	flex-direction: row;
	align-items: stretch;
	flex: 1;
	gap: 0;
}

html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab {
	display: inline-flex;
	padding: 18px 20px 18px 4px;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	justify-content: center;
	font-size: 14px;
	border-radius: 0;
	width: auto;
	box-sizing: border-box;
	white-space: nowrap;
}

html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab + .rp-portal__dashboard-tab {
	padding-left: 20px;
}

html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab--active,
html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab--active:hover,
html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab--active:focus,
html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab--active:focus-visible,
html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab--active:active {
	border: none;
	border-bottom: 2px solid var(--theme, #2c7be5);
	background: transparent;
	color: var(--theme, #2c7be5);
}

html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab:focus,
html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab:focus-visible {
	border: none;
	border-bottom: 2px solid transparent;
}

html .rp-portal-container.repair-mq-8 .rp-portal__logout-btn {
	margin: 0;
	align-self: center;
	justify-content: center;
	width: auto;
}

html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-content {
	flex: 1;
	min-width: 0;
}

html .rp-portal-container.repair-mq-8 .rp-portal__panel-bg {
	margin: -28px -28px -32px;
	padding: 20px 24px 28px;
}

/* Responsive: stack blocks vertically on narrow screens */

html .rp-portal-container.repair-mq-8 .rp-appt-detail__header-block {
	padding-right: 0;
}

html .rp-portal-container.repair-mq-8 .rp-appt-detail__device-repairs-cols {
	flex-direction: column;
}

html .rp-portal-container.repair-mq-8 .rp-appt-detail__device-repairs-col {
	padding: 14px 0 2px;
}

html .rp-portal-container.repair-mq-8 .rp-appt-detail__device-repairs-sep {
	display: none;
}

/* Collapse to single column on medium */
html .rp-portal-container.repair-mq-8 .rp-appt-detail__grid {
	grid-template-columns: 1fr;
}

html .rp-portal-container.repair-mq-8 #rp-appt-subview-detail {
	margin: -28px -28px -32px;
}

html .rp-portal-container.repair-mq-8 .rp-appt-detail {
	margin: 0;
	padding: 24px 24px 28px;
}

html .rp-portal-container.repair-mq-8 .rp-portal__header {
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding-left: 0px;
    padding-right: 0px;
	padding-top: 20px;
	padding-bottom: 24px;
}

html .rp-portal-container.repair-mq-8 .rp-portal__new-booking-btn {
	width: 100%;
	justify-content: center;
	text-align: center;
}

/* Wrap nav: tabs stack vertically, logout button below */
html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-nav {
	padding: 0;
	flex-direction: column;
	align-items: stretch;
	flex-wrap: nowrap;
	border-bottom: 2px solid #f0f0f0;
	border-right: none;
	width: 100%;
	min-width: auto;
	max-width: none;
}

html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tabs {
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	border-bottom: none;
}

html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	padding: 13px 20px;
	border: none;
	border-left: 3px solid transparent;
	border-bottom: 1px solid #f5f5f5;
	margin-bottom: 0;
	font-size: 13px;
	justify-content: flex-start;
}

html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab + .rp-portal__dashboard-tab {
	padding-left: 20px;
}

html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab--active,
html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab--active:hover,
html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab--active:focus,
html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab--active:focus-visible,
html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-tab--active:active {
	border: none;
	border-left: 3px solid var(--theme, #2c7be5);
	border-bottom: 1px solid #f5f5f5;
	background: #fff;
	color: var(--theme, #2c7be5);
}

html .rp-portal-container.repair-mq-8 .rp-portal__logout-btn {
	margin: 10px 16px 12px;
	align-self: flex-start;
	width: auto;
}

html .rp-portal-container.repair-mq-8 .rp-portal__dashboard-panel {
	padding: 22px 20px 26px;
}

html .rp-portal-container.repair-mq-8 .rp-portal__account-field--half {
	flex: 1 1 100%;
	min-width: 0;
}

html .rp-portal-container.repair-mq-8 .rp-portal__account-save-btn {
	width: 100%;
}

html .rp-portal-container.repair-mq-8 .rp-portal__panel-bg {
	margin: -22px -20px -26px;
	padding: 24px 18px 24px;
}

html .rp-portal-container.repair-mq-8 .rp-portal__panel-card {
	padding: 16px 18px;
}

html .rp-portal-container.repair-mq-8 #rp-appt-subview-detail {
	margin: -22px -20px -26px;
}

html .rp-portal-container.repair-mq-8 .rp-appt-detail {
	margin: 0;
	padding: 24px 18px 24px;
}

html .rp-portal-container.repair-mq-8 .rp-appt-detail__header {
	flex-direction: column;
	align-items: flex-start;
}

html .rp-portal-container.repair-mq-8 .rp-appt-detail__header-meta-sep {
	display: none;
}

html .rp-portal-container.repair-mq-8 .rp-portal__appt-filters-grid {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

html .rp-portal-container.repair-mq-8 .rp-portal__notif-chips {
	flex-direction: column;
}

html .rp-portal-container.repair-mq-8 .rp-portal__notif-chip {
	width: 100%;
	justify-content: flex-start;
	padding-top: 10px;
	padding-bottom: 10px;
}

html .rp-portal-container.repair-mq-8 .rp-portal__appt-list {
	padding-bottom: 10px;
}

html .rp-portal-container.repair-mq-6 .rp-appt-detail__manage-block {
	flex-direction: column;
	align-items: flex-start;
}

html .rp-portal-container.repair-mq-6 .rp-appt-detail__manage-btn-wrap {
	width: 100%;
}

html .rp-portal-container.repair-mq-6 .rp-appt-detail__manage-btn {
	width: 100%;
}

html .rp-portal-container.repair-mq-6 .rp-appt-detail__cal-footer {
	flex-direction: column;
    align-items: start;
    gap: 0px;
}

html .rp-portal-container.repair-mq-6 .rp-appt-detail__header-card#rp-appt-detail-notes-card,
html .rp-portal-container.repair-mq-6 .rp-appt-detail__header-card#rp-appt-detail-activity-card {
    padding-left: 12px;
    padding-right: 12px;
}

html .rp-portal-container.repair-mq-6 .rp-appt-detail__header-card#rp-appt-detail-notes-card .rp-appt-detail__header-card-heading,
html .rp-portal-container.repair-mq-6 .rp-appt-detail__header-card#rp-appt-detail-activity-card .rp-appt-detail__header-card-heading,
html .rp-portal-container.repair-mq-6 .rp-appt-detail__notes-empty {
	padding-left: 10px;
	padding-right: 10px;
}

html .rp-portal-container.repair-mq-6 .rp-appt-detail__note-meta-left,
html .rp-portal-container.repair-mq-6 .rp-appt-detail__activity-meta-left {
	flex-direction: column;
	align-items: flex-start;
	gap: 0px;
}

html .rp-portal-container.repair-mq-6 .rp-appt-detail__note-meta-left .rp-appt-detail__note-meta-dot,
html .rp-portal-container.repair-mq-6 .rp-appt-detail__activity-meta-left .rp-appt-detail__activity-meta-dot {
	display: none;
}

html .rp-portal-container.repair-mq-6 .rp-appt-detail__activity-meta {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

html .rp-portal-container.repair-mq-6 .rp-appt-detail__notes-list.has-items,
html .rp-portal-container.repair-mq-6 .rp-appt-detail__activity-list.has-items {
	padding-left: 30px;
	padding-right: 0px;
	--rail-x: 10px;
	--list-pad: 30px;
	--list-pad-left: 30px;
}
html .rp-portal-container.repair-mq-6 .rp-appt-detail__notes-list.has-items::before,
html .rp-portal-container.repair-mq-6 .rp-appt-detail__activity-list.has-items::before {
	left: 10px;
}
html .rp-portal-container.repair-mq-6 .rp-appt-detail__notes-list.has-items,
html .rp-portal-container.repair-mq-6 .rp-appt-detail__activity-list.has-items {
	max-height: 300px;
	overflow-y: auto;
	margin-top: 20px;
}
html .rp-portal-container.repair-mq-6 .rp-appt-detail__notes-list.has-items .note-item:nth-child(1),
html .rp-portal-container.repair-mq-6 .rp-appt-detail__activity-list.has-items .activity-item:nth-child(1) {
	margin-top: 0px;
}
html .rp-portal-container.repair-mq-6 .rp-appt-detail__notes-list.has-items .note-item:nth-last-child(1),
html .rp-portal-container.repair-mq-6 .rp-appt-detail__activity-list.has-items .activity-item:nth-last-child(1) {
	margin-bottom: 0px;
}

html .rp-portal-container.repair-mq-4 .rp-portal {
	padding-left: 0;
	padding-right: 0;
}

html .rp-portal-container.repair-mq-4 .rp-portal__tab-panel {
	padding: 20px 18px 24px;
}

html .rp-portal-container.repair-mq-4 .rp-portal__tab {
	font-size: 12px;
	padding: 12px 6px;
}

html .rp-portal-container.repair-mq-4 .rp-portal__panel-bg {
	margin: -22px -18px -24px;
	padding: 22px 12px 22px;
}

html .rp-portal-container.repair-mq-4 .rp-portal__panel-card {
	padding: 14px 16px;
}

html .rp-portal-container.repair-mq-4 #rp-appt-subview-detail {
	margin: -22px -18px -24px;
}

html .rp-portal-container.repair-mq-4 .rp-appt-detail {
	margin: 0;
	padding: 24px 12px 22px;
}

html .rp-portal-container.repair-mq-4 .rp-appt-detail__workflow-info {
	flex-direction: column;
	align-items: flex-start;
}

html .rp-portal-container.repair-mq-3 .rp-portal__panel-bg {
	margin: -22px -18px -24px;
	padding: 22px 8px 22px;
}

html .rp-portal-container.repair-mq-3 .rp-appt-detail {
	margin: 0;
	padding: 24px 8px 22px;
}

/* =========================================================
   Rewards / Coupons widget — sidebar coupon-style button
   ========================================================= */

html .rp-portal-container .rp-portal__rewards-widget {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	margin: 10px 16px 16px;
	padding: 0;
	padding-top: 10px;
	background: #fff;
	border: 1px dashed var(--theme, #2c7be5);
	border-radius: 10px;
	cursor: pointer;
	text-align: center;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
	outline: none;
	overflow: visible;
	margin-top: 30px;
}

html .rp-portal-container .rp-portal__rewards-widget:hover {
	background: var(--theme-5-opacity, rgba(44,123,229,0.04));
}

html .rp-portal-container .rp-portal__rewards-widget:focus-visible {
	outline: 2px solid var(--theme, #2c7be5);
	outline-offset: 2px;
}

/* Circular notch cut-outs on left & right edges (classic coupon look) */
html .rp-portal-container .rp-portal__rewards-notch {
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fdfdfd;
	border: 2px dashed var(--theme, #2c7be5);
	z-index: 2;
	/* vertically centred on the divider line */
	bottom: 34px;
	transform: translateY(50%);
}

html .rp-portal-container .rp-portal__rewards-notch--left {
	left: -10px;
}

html .rp-portal-container .rp-portal__rewards-notch--right {
	right: -10px;
}

/* Badge — solid theme-colour strip across the top */
html .rp-portal-container .rp-portal__rewards-badge {
	display: block;
	width: 100%;
	padding: 4px 8px;
	background: var(--theme, #2c7be5);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.5;
	box-sizing: border-box;
	width: auto;
    border-radius: 15px;
    position: absolute;
    top: -10px;
	left: 12px;
	font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
	background: #cef6ce !important;
    color: #0fad0f !important;
    border: 1.5px solid #9be79b !important;
}

/* Icon + count row */
html .rp-portal-container .rp-portal__rewards-body {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px 4px;
	width: 100%;
	box-sizing: border-box;
}

/* Icon box — filled themed square */
html .rp-portal-container .rp-portal__rewards-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: var(--theme-10-opacity, #2c7be5);
	border-radius: 8px;
	color: var(--theme, #2c7be5);
}

html .rp-portal-container .rp-portal__rewards-icon svg {
	display: block;
	color: inherit;
}

html .rp-portal-container .rp-portal__rewards-icon svg path {
	fill: currentColor;
}

/* Coupon count text */
html .rp-portal-container .rp-portal__rewards-count {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #222;
	line-height: 1.35;
	text-align: left;
}

/* Perforated dashed horizontal divider */
html .rp-portal-container .rp-portal__rewards-divider {
	display: block;
	width: calc(100% + 4px);
	margin-left: -2px;
	border: none;
	border-top: 1px dashed var(--theme-40-opacity, rgba(44,123,229,0.35));
	margin-top: 10px;
	margin-bottom: 0;
}

/* CTA row */
html .rp-portal-container .rp-portal__rewards-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	padding: 7px 10px 9px;
	font-size: 11px;
	font-weight: 600;
	color: var(--theme, #2c7be5);
	letter-spacing: 0.01em;
	box-sizing: border-box;
}

html .rp-portal-container .rp-portal__rewards-cta svg {
	flex-shrink: 0;
	transition: transform 0.18s ease;
}

html .rp-portal-container .rp-portal__rewards-widget:hover .rp-portal__rewards-cta svg {
	transform: translateX(3px);
}

/* repair-mq-8 and below: hide the widget (sidebar becomes a horizontal bar) */
html .rp-portal-container.repair-mq-8 .rp-portal__rewards-widget {
	display: none;
}



/* ============================================================
   Discounts / Coupons tab
   ============================================================ */

html .rp-portal-container .rp-discounts__header {
display: flex;
align-items: flex-start;
gap: 12px;
margin-bottom: 24px;
}

html .rp-portal-container .rp-discounts__header-icon {
display: flex;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
border-radius: 10px;
background: var(--theme-10-opacity);
color: var(--theme);
flex-shrink: 0;
}

html .rp-portal-container .rp-discounts__title {
margin: 0 0 4px;
font-size: 15px;
font-weight: 700;
color: #1a1a2e;
}

html .rp-portal-container .rp-discounts__subtitle {
margin: 0;
font-size: 12.5px;
color: #6b7280;
line-height: 1.5;
}

html .rp-portal-container .rp-discounts__empty {
text-align: center;
color: #9ca3af;
font-size: 13px;
padding: 32px 0;
}

html .rp-portal-container .rp-discounts__list {
display: flex;
flex-direction: column;
gap: 16px;
}

/* Coupon card */
html .rp-portal-container .rp-discounts__coupon {
display: flex;
align-items: stretch;
border-radius: 12px;
overflow: hidden;
border: 1px solid #efefef;
background: #fff;
box-shadow: 0 2px 8px rgba(0,0,0,.04);
transition: box-shadow .15s ease;
}

html .rp-portal-container .rp-discounts__coupon:hover {
box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

/* Badge (left side) */
html .rp-portal-container .rp-discounts__coupon-badge {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 100px;
padding: 18px 14px;
background: linear-gradient(135deg, var(--theme) 0%, var(--theme-80-opacity) 100%);
color: #fff;
text-align: center;
gap: 2px;
}

html .rp-portal-container .rp-discounts__coupon-amount {
font-size: 22px;
font-weight: 800;
line-height: 1;
letter-spacing: -.5px;
}

html .rp-portal-container .rp-discounts__coupon-type-label {
font-size: 13px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
}

/* Perforated divider */
html .rp-portal-container .rp-discounts__coupon-divider {
display: block;
width: 0;
border-left: 1px dashed var(--theme);
flex-shrink: 0;
}

/* Body (right side) */
html .rp-portal-container .rp-discounts__coupon-body {
flex: 1;
padding: 14px 18px;
display: flex;
flex-direction: column;
justify-content: center;
gap: 10px;
}

html .rp-portal-container .rp-discounts__coupon-desc {
margin: 0;
font-size: 12.5px;
color: #4b5563;
line-height: 1.5;
}

html .rp-portal-container .rp-discounts__coupon-code-row {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}

html .rp-portal-container .rp-discounts__coupon-code {
font-family: 'Courier New', Courier, monospace;
font-size: 13px;
font-weight: 700;
letter-spacing: 1.5px;
padding: 5px 10px;
border-radius: 6px;
background: var(--theme-10-opacity);
color: var(--theme);
border: 1px dashed var(--theme-40-opacity);
}

html .rp-portal-container .rp-discounts__coupon-copy-btn,
html .rp-portal-container .rp-discounts__coupon-copy-btn:hover,
html .rp-portal-container .rp-discounts__coupon-copy-btn--copied {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 5px 11px;
border: 1.5px solid var(--theme-40-opacity);
border-radius: 6px;
background: transparent;
color: var(--theme);
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: background .15s, color .15s;
}

html .rp-portal-container .rp-discounts__coupon-copy-btn:hover {
background: var(--theme);
color: #fff;
border-color: var(--theme);
}

html .rp-portal-container.repair-mq-5 .rp-discounts__coupon {
	flex-direction: column;
}
html .rp-portal-container.repair-mq-5 .rp-discounts__coupon-divider {
    display: block;
    width: 100%;
    border-bottom: 1px dashed var(--theme);
    flex-shrink: 0;
}
