/*
 * PB Salary Calculator — standalone widget styles.
 *
 * One responsive markup: the results table becomes stacked cards below
 * 767px via CSS alone (data-label attributes), same technique used
 * elsewhere in this family of widgets. No third-party CSS/JS libraries,
 * no external webfont — headings use a system sans-serif stack.
 */

.pbsc-widget {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

.pbsc-widget *,
.pbsc-widget *::before,
.pbsc-widget *::after {
	box-sizing: border-box;
}

/* Hero */

.pbsc-hero-container{
	width: 100%;
	min-height: 400px;
}

.pbsc-hero {
	border-radius: 0 0 54px 54px;
	background-color: #0650D8;
	padding: 80px 40px 140px;
	text-align: center;
}

.pbsc-hero .pbsc-heading {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 58px;
	font-weight: 700;
	line-height: 1.15;
	color: #ffffff;
	margin: 0 0 24px;
}

.pbsc-hero .pbsc-subheading {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #ffffff;
	margin: 0 0 40px;
}

/* Card */

.pbsc-card-container{
	width: 100%;
	max-width: 1140px;
	margin: -80px auto 0;
}

.pbsc-card {
	position: relative;
	border-radius: 20px;
	background-color: #ffffff;
	box-shadow: 0 4px 10px 0 rgba( 0, 0, 0, 0.2 );
	padding: 32px;
	margin-top: -25px;
}

/* Intro (used when the hero is disabled — plain, dark-on-white) */

.pbsc-card > .pbsc-intro .pbsc-heading {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 700;
	color: #141414;
}

.pbsc-card > .pbsc-intro .pbsc-subheading {
	margin: 0 0 24px;
	color: #555555;
	font-size: 16px;
	line-height: 1.5;
}

/* Form */

.pbsc-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
}

.pbsc-field {
	flex: 1 1 240px;
	min-width: 220px;
	position: relative;
}

.pbsc-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #2E2E2E;
}

.pbsc-country {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #7E8182;
	border-radius: 12px;
	background-color: #ffffff;
	font-size: 14px;
}

.pbsc-country:disabled {
	background-color: #f5f5f5;
	color: #9aa1a9;
}

.pbsc-submit {
	flex: 0 0 auto;
	border: 0;
	border-radius: 50px;
	padding: 11px 30px 12px;
	background-color: #FF5C5C;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.pbsc-submit:hover:not(:disabled) {
	background-color: #E14B4B;
}

.pbsc-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.pbsc-error {
	flex-basis: 100%;
	color: #c0392b;
	font-size: 13px;
}

/* Role picker (dependency-free searchable multiselect) */

.pbsc-role-picker {
	position: relative;
}

.pbsc-role-picker__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
}

.pbsc-role-picker__chips:empty {
	display: none;
}

.pbsc-role-picker__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border-radius: 999px;
	background-color: #e8f0fe;
	color: #0650d8;
	font-size: 12px;
	font-weight: 600;
}

.pbsc-role-picker__chip-remove {
	border: 0;
	background: none;
	color: #0650d8;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	padding: 0;
}

.pbsc-role-picker__toggle {
	width: 100%;
	min-height: 44px;
	text-align: left;
	padding: 10px 12px;
	border: 1px solid #7E8182;
	border-radius: 12px;
	background-color: #ffffff;
	font-size: 14px;
	color: #2a3342;
	cursor: pointer;
}

.pbsc-role-picker__menu {
	position: absolute;
	z-index: 20;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 6px;
	background: #ffffff;
	border: 1px solid #d7dbe0;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba( 0, 0, 0, 0.12 );
	padding: 10px;
	max-height: 260px;
	display: flex;
	flex-direction: column;
}

/* An authored `display` rule on the same element beats the browser's
   default `[hidden] { display: none }` UA rule regardless of specificity,
   so the `hidden` attribute alone doesn't actually hide this menu without
   this explicit override (same pattern as .pbsc-empty[hidden] below). */
.pbsc-role-picker__menu[hidden] {
	display: none;
}

.pbsc-role-picker__search {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #d7dbe0;
	border-radius: 6px;
	margin-bottom: 8px;
	font-size: 13px;
}

.pbsc-role-picker__list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
}

.pbsc-role-picker__list li {
	padding: 2px 0;
}

.pbsc-role-picker__list li.pbsc-role-hidden {
	display: none;
}

.pbsc-role-picker__list label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
}

.pbsc-role-picker__list label:hover {
	background-color: #f5f7fb;
}

.pbsc-role-picker__empty {
	padding: 6px 8px;
	color: #888888;
	font-size: 13px;
}

/* Results heading */

.pbsc-results-heading {
	margin-top: 36px;
}

.pbsc-results-heading h3 {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 700;
	color: #1B3241;
}

.pbsc-results-heading-accent {
	color: #0650D8;
}

.pbsc-results-subheading {
	margin: 0 0 20px;
	color: #555555;
	font-size: 15px;
	line-height: 1.5;
}

/* Post-results filter row */

.pbsc-filter-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	justify-content: space-between;
	width: 98%;
	margin: 0 auto 16px;
}

.pbsc-filter-row .filter-wrapper{
	display: flex;
    gap: 10px;
}

.pbsc-filter-row select {
	padding: 8px 12px;
	border: 1px solid #7E8182;
	border-radius: 8px;
	background-color: #ffffff;
	font-size: 13px;
	color: #2a3342;
	width: 100%;
	max-width: 198px;
}

.pbsc-filter-row .reset-wrapper{

}
.pbsc-reset {
	border: 0;
	background: none;
	color: #1D1D1D;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 0;
	margin-left: auto;
	display: flex;
	border-radius: 30px;
    border: 1px solid #CBC9C9;
    text-decoration: none;
    padding: 4px 23px 5px;
}
.pbsc-reset:hover {
	background-color: #CBC9C9;
	color: #1D1D1D;
	text-decoration: none;
}

/* Results table */
.pbsc-results-container{
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;	
}

.pbsc-results {
	margin-top: 28px;
}

.pbsc-table-scroll {
	width: 98%;
	margin: 0 auto;
	overflow-x: auto;
}

.pbsc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	border: 0;
	margin: 0;
}

.pbsc-table thead th {
	background-color: #5c98b9;
	color: #ffffff;
	text-align: left;
	font-size: 16px;
	font-weight: 600;
	padding: 14px 12px;
	white-space: nowrap;
	border: 0;
	height: 70px;
	vertical-align: middle;
}
.pbsc-table thead th:first-child{
	padding-left: 20px;
}
.pbsc-table thead th span{
	display: block;
	margin: 0;
    color: #FFF;
    font-family: inherit;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 17.427px;
}

.pbsc-table tbody td {
	background-color: #f5f5f5;
	border: 0;
	padding: 42px 12px;
	vertical-align: middle;
	font-size: 18px;
	font-weight: 500;
	height: 120px;
	vertical-align: middle;
	border-bottom: 1px solid #E2E2E2;
}
.pbsc-table tbody td:first-child{
	padding-left: 20px;
}
.pbsc-table tbody td:last-child{

}

.pbsc-row{
	background-color: #f5f5f5;
}
.pbsc-row.pbsc-row-loading {
	opacity: 0.5;
}

.pbsc-col-role {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}

.pbsc-table tbody .pbsc-add-role-row td{
	border-bottom: 1px solid rgba(42, 51, 66, .3);
	background: rgba(120, 175, 206, .5) !important;
	text-align: left;
	padding: 6px 20px;
	height: auto;
}

.pbsc-remove {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	line-height: 20px;
	border: 0;
	border-radius: 50%;
	background-color: #adabc3;
	color: #ffffff;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
	display: grid
}

.pbsc-remove:hover {
	background-color: #8f8da3;
}

.pbsc-seniority {
	border: 0;
	border-radius: 6px;
	background-color: #e5e1e1;
	padding: 6px 10px;
	font-size: 14px;
}

.pbsc-cell-savings {
	color: #2c6d15;
	font-weight: 700;
}

/* Mobile-only stacked-card label inside salary cells (shown in the
   max-width: 767px block below). */
.pbsc-cell-label {
	display: none;
}

.pbsc-add-role-row td {
	background-color: rgba( 120, 175, 206, 0.5 );
	text-align: center;
	padding: 10px 12px;
	cursor: pointer;
}

.pbsc-add-role-row__link {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border-radius: 12px;
	color: #0650D8;
	font-size: 14px;
	font-weight: 600;
}

.pbsc-empty {
	margin-top: 20px;
	padding: 20px;
	border-radius: 10px;
	background-color: #fdf3e7;
	color: #6b4a1c;
	font-size: 14px;
}

.pbsc-empty[hidden] {
	display: none;
}

/* Summary */

.pbsc-summary {
	display: flex;
	align-items: center;
	gap: 32px;
	margin:0;
	padding: 28px 24px;
	border-radius: 14px;
	background: #dff4ff;
	box-shadow: 0 -2px 10px 0 rgba( 0, 0, 0, 0.12 );
	flex-wrap: wrap;
}

.pbsc-donut {
	--pbsc-donut-fill: #35b37e;
	--pbsc-donut-track: #c1dfb6;
	--pbsc-donut-pct: 0;
	flex: 0 0 auto;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: conic-gradient( var( --pbsc-donut-fill ) calc( var( --pbsc-donut-pct ) * 1% ), var( --pbsc-donut-track ) 0 );
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.pbsc-donut::after {
	content: '';
	position: absolute;
	inset: 14px;
	border-radius: 50%;
	background-color: #dff4ff;
}

.pbsc-donut-label {
	position: relative;
	z-index: 1;
	font-size: 22px;
	font-weight: 700;
	color: #2c6d15;
}

.pbsc-summary-text {
	flex: 1 1 260px;
}

.pbsc-summary-text h3 {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 400;
	color: #030303;
}

.pbsc-summary-amount {
	font-size: 28px;
	font-weight: 700;
	color: #2c6d15;
}

.pbsc-disclaimer {
	margin: 10px 0 0;
	font-size: 13px;
	font-style: italic;
	color: #1b3241;
	max-width: 440px;
}

.pbsc-cta {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	padding: 10px 28px;
	border-radius: 38px;
	background-color: #0650d8;
	color: #ffffff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	transition: background-color 0.15s ease;
}

.pbsc-cta:hover {
	background-color: #053faa;
	color: #ffffff;
}

/* Editor-only preview */

.pbsc-editor-note {
	margin-top: 12px;
	font-size: 12px;
	color: #888888;
}

/* Responsive: table becomes stacked cards */

@media ( max-width: 1247px ) {

	.pbsc-card-container{
		padding: 0 2.5rem;
	}
	.pbsc-results-container{
		padding: 0 2.5rem;
	}

}

@media ( min-width: 768px ) and ( max-width: 1060px ) {
	.pbsc-table tbody td:last-child{
		text-align: right;
		padding-right: 20px;
	}
}

@media ( min-width: 768px ) and ( max-width: 868px ) {
	.pbsc-submit{
		width: 100%;
		display: block;
	}

}


@media ( max-width: 767px ) {

	.pbsc-card-container{
		background-color: #0650D8;
		margin: 0 auto;
		padding: 2.5rem;
	}

	.pbsc-hero-container{
		min-height: unset;
	}

	.pbsc-hero {
		border-radius: 0;
		padding: 50px 24px 0;
		text-align: left;
	}

	.pbsc-hero .pbsc-heading {
		font-size: 38px;
	}

	.pbsc-hero .pbsc-subheading {
		font-size: 16px;
		margin: 0;
	}
	.pbsc-hero .pbsc-subheading p{
		margin: 0;
	}

	.pbsc-card {
		padding: 25px;
		margin-top: 0;
	}

	.pbsc-form {
		flex-direction: column;
		align-items: stretch;
	}

	.pbsc-field,
	.pbsc-submit {
		flex-basis: auto;
		width: 100%;
	}

	.pbsc-filter-row {
		flex-direction: column;
		align-items: stretch;
	}

	.pbsc-filter-row select {
		width: 50%;
		max-width: unset;
	}

	.pbsc-reset {
		margin-left: 0;
		align-self: flex-start;
		width: 100%;
		display: inline-flex;
        justify-content: center;
	}

	.pbsc-table thead {
		display: none;
	}

	.pbsc-table,
	.pbsc-table tbody,
	.pbsc-table tr,
	.pbsc-table td {
		display: block;
		width: 100%;
	}

	.pbsc-row {
		margin-bottom: 12px;
		border-radius: 10px;
		overflow: hidden;
		border: 1px solid #e2e2e2;
	}

	.pbsc-table tbody td {
		border-bottom: 1px solid #e9e9e9;
		padding: 10px 14px;
		text-align: right;
		position: relative;
		padding-left: 46%;
		height: 60px;
	}

	.pbsc-table tbody td:first-child{
		text-align: left;
		padding: 10px 14px;
		height: auto;
		color: #ffffff;
	}
	.pbsc-table tbody td:first-child::before{
		display: none;
	}

	.pbsc-table tbody td.pbsc-col-role{
		background-color: #5C98B9 !important;
	}

	.pbsc-table tbody td::before {
		content: attr( data-label );
		position: absolute;
		left: 14px;
		top: 16px;
		width: 40%;
		text-align: left;
		font-weight: 700;
		color: #555555;
		font-size: 13px;
	}

	/* Salary cells use a real label element instead of ::before so markup
	   (e.g. <span>) from the Results Copy templates can be styled here,
	   via .pbsc-cell-label span. */
	.pbsc-table tbody td.pbsc-has-cell-label::before {
		display: none;
	}

	.pbsc-table tbody td.pbsc-col-other .pbsc-cell-label{

	}

	.pbsc-table tbody td.pbsc-col-ph .pbsc-cell-label{
		color: #0650D8;
	}
	.pbsc-table tbody td.pbsc-col-ph .pbsc-cell-value{
		color: #0650D8;	
	}

	.pbsc-table tbody td.pbsc-col-savings .pbsc-cell-label{
		color: #36B37E;
	}
	.pbsc-table tbody td.pbsc-col-savings .pbsc-cell-value{
		color: #36B37E;	
	}

	.pbsc-table tbody td .pbsc-cell-label {
		display: block;
		position: absolute;
		left: 14px;
		top: 4px;
		width: 40%;
		text-align: left;
		font-weight: 700;
		color: #555555;
		font-size: 13px;
	}

	.pbsc-table tbody td .pbsc-cell-label span{
		display: block;
		font-weight: 600;
	}

	.pbsc-remove{
		position: absolute;
		right: 14px;
	}

	.pbsc-col-role {
		justify-content: flex-end;
	}

	.pbsc-add-role-row td {
		padding-left: 14px;
		text-align: center;
	}

	.pbsc-summary {
		flex-direction: column;
		text-align: center;
		gap: 16px;
	}

	.pbsc-summary-text {
		text-align: center;
		flex: 1 1 50px;
	}

	.pbsc-disclaimer {
		max-width: none;
	}
}
