/* MSWI Product Compare — styles
 * Palette matched to masterspaswi.com: blue #14759f, orange CTA #e43700.
 */

.mswi-compare,
.mswi-bar,
.mswi-select {
	--mswi-blue: #14759f;
	--mswi-blue-dark: #0f5c7d;
	--mswi-orange: #e43700;
	--mswi-orange-dark: #c22f00;
	--mswi-line: #dfe4e8;
	--mswi-alt: #f4f7f9;
	--mswi-ink: #333;
	font-family: Arial, Helvetica, sans-serif;
	color: var(--mswi-ink);
	box-sizing: border-box;
}
.mswi-compare *,
.mswi-select * { box-sizing: border-box; }

/* ---------- Comparison table ---------- */
.mswi-compare__scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.mswi-compare__table {
	border-collapse: collapse;
	width: 100%;
	min-width: 640px; /* forces horizontal scroll on mobile instead of stacking */
	table-layout: fixed;
}
.mswi-compare__table th,
.mswi-compare__table td {
	border: 1px solid var(--mswi-line);
	padding: 12px 14px;
	vertical-align: top;
	text-align: left;
	word-wrap: break-word;
}

/* sticky product header row on desktop */
.mswi-compare__head th {
	position: -webkit-sticky;
	position: sticky;
	top: -1px;
	z-index: 3;
	background: #fff;
}
.mswi-compare__corner {
	z-index: 4;
	background: #fff;
}
.mswi-compare__rowlabel {
	width: 190px;
	background: var(--mswi-alt);
	font-weight: 700;
	position: -webkit-sticky;
	position: sticky;
	left: 0;
	z-index: 2;
}
.mswi-compare__head .mswi-compare__corner {
	left: 0;
}

.mswi-compare__col { text-align: center; }
.mswi-compare__img img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 6px auto 10px;
}
.mswi-compare__name {
	display: block;
	font-weight: 700;
	color: var(--mswi-blue);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.3;
	margin-bottom: 6px;
}
.mswi-compare__name:hover { text-decoration: underline; }
.mswi-compare__price {
	font-size: 13px;
	color: #555;
	margin-bottom: 10px;
}
.mswi-compare__remove {
	background: none;
	border: 0;
	color: #999;
	cursor: pointer;
	font-size: 12px;
	float: right;
	padding: 0;
}
.mswi-compare__remove:hover { color: var(--mswi-orange); }
.mswi-compare__reset {
	font-size: 13px;
	color: var(--mswi-blue);
	text-decoration: none;
}

/* section group header */
.mswi-compare__grouplabel {
	background: var(--mswi-blue);
	color: #fff;
	font-size: 15px;
	letter-spacing: .02em;
	text-transform: uppercase;
	left: 0;
}
.mswi-compare__row.is-alt .mswi-compare__cell,
.mswi-compare__row.is-alt .mswi-compare__rowlabel { background: var(--mswi-alt); }
.mswi-compare__cell { text-align: center; font-size: 14px; line-height: 1.5; }

/* CTA buttons (orange) */
.mswi-compare__cta {
	display: inline-block;
	background: var(--mswi-orange);
	color: #fff !important;
	text-decoration: none;
	padding: 8px 14px;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}
.mswi-compare__cta:hover { background: var(--mswi-orange-dark); color: #fff; }
.mswi-compare__row--cta .mswi-compare__cell { padding: 16px 14px; }

/* ---------- Floating bar ---------- */
.mswi-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 99998;
	background: var(--mswi-blue);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 12px 16px;
	box-shadow: 0 -2px 8px rgba(0,0,0,.2);
	font-size: 15px;
}
.mswi-bar__count { font-weight: 700; }
.mswi-bar__view {
	background: var(--mswi-orange);
	color: #fff;
	border: 0;
	padding: 9px 18px;
	border-radius: 3px;
	font-weight: 700;
	cursor: pointer;
	font-size: 14px;
}
.mswi-bar__view:hover { background: var(--mswi-orange-dark); }
.mswi-bar__clear {
	background: none;
	border: 0;
	color: #cfe4ee;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}
.mswi-bar__clear:hover { color: #fff; }

/* ---------- Selector (Flow B) ---------- */
.mswi-select__title { color: var(--mswi-blue); margin: 0 0 4px; }
.mswi-select__sub { margin: 0 0 18px; color: #666; }

/* Dropdown category filter */
.mswi-select__filterbar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.mswi-select__filterlabel {
	font-weight: 700;
	font-size: 13px;
	color: var(--mswi-ink);
}
.mswi-select__dropdown {
	appearance: none;
	-webkit-appearance: none;
	background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2314759f' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 1px solid var(--mswi-blue);
	color: var(--mswi-blue);
	font-weight: 700;
	font-size: 15px;
	padding: 10px 38px 10px 14px;
	border-radius: 4px;
	min-width: 260px;
	cursor: pointer;
}
.mswi-select__dropdown:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(20,117,159,.2);
}
.mswi-select__empty {
	color: #777;
	font-style: italic;
	padding: 24px 0;
}

.mswi-select__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
	align-items: stretch;
}
.mswi-select__card {
	border: 1px solid var(--mswi-line);
	border-radius: 6px;
	padding: 14px 12px 16px;
	text-align: center;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: border-color .15s, box-shadow .15s;
	background: #fff;
}
.mswi-select__card:hover { border-color: var(--mswi-blue); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.mswi-select__check {
	position: absolute;
	top: 10px; left: 10px;
	width: 18px; height: 18px;
	margin: 0;
	cursor: pointer;
	z-index: 2;
}
.mswi-select__check:checked ~ .mswi-select__cardname { color: var(--mswi-blue); }
.mswi-select__card:has(.mswi-select__check:checked) {
	border-color: var(--mswi-blue);
	box-shadow: 0 0 0 2px rgba(20,117,159,.28);
}
/* fixed image area — same height whether or not a thumbnail exists */
.mswi-select__cardimg {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 130px;
	margin-bottom: 10px;
	background: var(--mswi-alt);
	border-radius: 4px;
	overflow: hidden;
}
.mswi-select__cardimg img { max-width: 100%; max-height: 130px; height: auto; width: auto; display: block; }
/* placeholder icon when there is no image */
.mswi-select__cardimg:empty::after {
	content: "No image";
	font-size: 12px;
	color: #9aa7af;
}
.mswi-select__cardname {
	display: block;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.3;
	margin-top: auto; /* pin name to bottom so all names align */
}

.mswi-select__bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 99998;
	background: var(--mswi-blue);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 12px 16px;
	box-shadow: 0 -2px 8px rgba(0,0,0,.2);
}
.mswi-select__count { font-weight: 700; }
.mswi-select__go {
	background: var(--mswi-orange);
	color: #fff;
	border: 0;
	padding: 9px 18px;
	border-radius: 3px;
	font-weight: 700;
	cursor: pointer;
}
.mswi-select__go:hover:not(:disabled) { background: var(--mswi-orange-dark); }
.mswi-select__go:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Add to Compare button checkbox (category/product pages) ---------- */
/* Pure-CSS checkbox drawn before the button text — no icon-font dependency.
   The theme's <i class="fa fa-square-o"> / fa-check-square-o> are hidden;
   we draw our own box via a ::before on the button. My JS toggles .is-added. */
.berocket_product_smart_compare,
.mswi-add {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	position: relative;
}
/* hide the theme's (possibly non-rendering) FA icons */
.berocket_product_smart_compare .fa,
.berocket_product_smart_compare .fa-square-o,
.berocket_product_smart_compare .fa-check-square-o { display: none !important; }

/* our drawn checkbox */
.berocket_product_smart_compare::before,
.mswi-add::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid var(--mswi-blue, #14759f);
	border-radius: 3px;
	background: #fff;
	flex: 0 0 auto;
	box-sizing: border-box;
	transition: background .12s;
	margin-top: 0;
    position: relative;
    left: 0;
    top: 1px;
    margin-right: 5px;
}
/* checked state: fill the box AND show a centered white tick (SVG background,
   so it's always centered in the box regardless of the button's own padding) */
.berocket_product_smart_compare.is-added::before,
.mswi-add.is-added::before {
	background: var(--mswi-blue, #14759f) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.5l2.5 2.5 4.5-5'/%3E%3C/svg%3E") no-repeat center center;
	background-size: 12px 12px;
	border-color: var(--mswi-blue, #14759f);
}
/* keep the label color consistent */
.berocket_product_smart_compare { color: var(--mswi-blue, #14759f); text-decoration: none; }
.berocket_product_smart_compare.is-added { color: var(--mswi-blue, #14759f); }

/* PDP / shortcode "Add to Compare" link styling */
.mswi-add {
	color: var(--mswi-blue, #14759f);
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	padding: 6px 0;
	vertical-align: middle;
}
.mswi-add:hover { text-decoration: none; color: var(--mswi-blue-dark, #0f5c7d); }
.mswi-add:hover::before { border-color: var(--mswi-blue-dark, #0f5c7d); }

/* ---------- Request Information modal ---------- */
.mswi-modal-iframe-box { min-height: 300px; position: relative; }
.mswi-modal-spinner {
	position: absolute;
	top: 50%; left: 50%;
	width: 40px; height: 40px;
	margin: -20px 0 0 -20px;
	border: 4px solid var(--mswi-alt);
	border-top-color: var(--mswi-blue);
	border-radius: 50%;
	animation: mswi-spin 1s linear infinite;
}
@keyframes mswi-spin { to { transform: rotate(360deg); } }
.mswi-modal-iframe-box iframe { width: 100%; border: 0; display: block; overflow: hidden; }
#mswiCompareModal .modal-body { padding: 24px; max-height: none; overflow: visible; }
#mswiCompareModal .modal-dialog { max-height: none; }
#mswiCompareModal .mswi-modal-title { color: var(--mswi-blue); text-align: center; font-size: 22px; margin: 0 0 4px; }
#mswiCompareModal .mswi-modal-sub { text-align: center; color: #666; margin: 0 0 16px; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.mswi-compare__rowlabel { width: 110px; }
	.mswi-compare__name { font-size: 14px; }
	.mswi-bar, .mswi-select__bar { flex-wrap: wrap; gap: 10px; font-size: 14px; }
}

.mswi-compare__scroll {
	overflow-x: inherit;
	-webkit-overflow-scrolling: inherit;
}
.mswi-compare__scroll thead {
	background: #fff;
}
.mswi-compare__scroll thead a.mswi-compare__cta {
	color: #fff !important;
}
.mswi-compare__cell .mswi-compare__cta {
	color: #fff !important;
}
#mswiCompareModal .modal-content {
	padding: 15px;
}
#mswiCompareModal .modal-content .modal-body .close {
	right: 9px;
	top: 9px;
	font-size: 18px;
	height: 32px;
	width: 32px;
}
#mswiCompareModal .mswi-modal-title {
	margin: 20px 0 20px;
	color: #231f20;
	font-size: 22px;
}
#mswiCompareModal .modal-body {
	padding: 30px 15px 15px;
	max-height: none;
	overflow: visible;
	border: 2px solid #231f20;
	position: relative;
}
#mswiCompareModal .mswi-modal-sub {
	color: #333;
}
#mswiCompareModal .modal-body .mswi-modal-iframe-box {
	overflow-y: auto;
	height: 700px;
}
.top-dtls a.mswi-compare__img img {
    max-width: 200px;
}
.top-dtls a.mswi-compare__img {
    height: 240px;
    display: flex;
  align-content: center;
  align-items: center;
}
.top-dtls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: column;
    text-align: center;
}
.mswi-compare__head th .mswi-compare__remove {
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;
    margin: auto;
}
.mswi-compare__head th {
    padding-top: 30px;
    background: #fff;
    border: none;
    border-left: none !important;
    border-right: none !important;
}
.mswi-compare__table th, .mswi-compare__table td {
	border: 1px solid #000;
}
.page-content-area .mpls_prolist a.add_to_cart_button {
	display: flex;
	justify-content: center;
	align-content: center;
	align-items: center;
}
.page-content-area .mpls_prolist a.add_to_cart_button .br_compare_button_text {
	margin-top: 3px;
}
.mswi-compare__row--cta .mswi-compare__cell {
	text-align: center;
}
.mswi-select__check {
	accent-color: #14759f;
}
body.modal-open {
	overflow: hidden;
}
.welcome-content a.mswi-compare__name {
	min-height: 40px;
	margin-bottom: 5px;
}
.mswi-compare__head .product-info {
	padding: 12px 0px;
}
.mswi-compare__head .mswi-compare__corner {
	background: #fff;
}

.mswi-compare__table .mswi-compare__head th:first-child::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 100%;
	border-left: 1px solid #000;
	border-bottom: none;
}
.mswi-compare__table .mswi-compare__head th:last-child::before {
	content: "";
	position: absolute;
	right: -1px;
	left: auto;
	bottom: 0;
	width: 1px;
	height: 100%;
	background: #000;
}
.mswi-compare__table .mswi-compare__head th:nth-child(3n)::after {
	left: -1px;
	content: "";
}
.mswi-compare__table .mswi-compare__head th:nth-child(4n)::after {
	left: -1px;
	content: "";
}
.mswi-compare__table .mswi-compare__head th::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	border-bottom: 1px solid #000;
}
.mswi-compare__table .mswi-compare__head th:first-child::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	border-bottom: 1px solid #000;
}
.mswi-compare__price {
	font-size: 13px;
	color: #000;
	margin-bottom: 10px;
	height: 22px;
}
.get_pricing_modal iframe {
	height: 700px;
}
.new-comparison-link {
	line-height: normal;
	margin-bottom: 25px;
}
.new-comparison-link .mswi-compare__reset {
	font-size: 15px;
}

@media (min-width: 768px) and (max-width: 1199px) {
.top-dtls a.mswi-compare__img {
	height: 140px;
}
.top-dtls a.mswi-compare__img img {
	max-width: 120px;
}
.welcome-content a.mswi-compare__name {
	font-size: 12px;
}
.welcome-content a {
	font-size: 12px;
}
.mswi-compare__head .product-info {
	font-size: 14px;
}
.mswi-compare__table th, .mswi-compare__table td {
	font-size: 14px;
}
.custom_compare h1 {
	font-size: 24px;
}
}

@media (max-width: 767px) {
.mswi-compare__scroll {
	overflow-x: auto;
}
.mswi-compare__reset {
	font-size: 10px;
}
.mswi-compare__table {
	min-width: 850px;
}
.top-dtls a.mswi-compare__img img {
	max-width: 150px;
}
.top-dtls a.mswi-compare__img {
	height: 180px;
}
.mswi-compare__table th, .mswi-compare__table td {
	font-size: 10px;
	padding: 12px 8px;
}
.mswi-compare__cell .mswi-compare__cta {
	font-size: 10px;
}
.welcome-content a.mswi-compare__name {
	min-height: 34px;
	margin-bottom: 5px;
	font-size: 12px;
}
#crumbs .breadcrumbs > li a, #crumbs .breadcrumbs > li span {
	font-size: 12px;
}
li.menu-item.request-pricing a {
	font-size: 12px;
}
.welcome-content .custom_compare h1 {
	font-size: 16px;
}
.new-comparison-link {
	margin-bottom: 20px;
	margin-top: 7px;
}
.new-comparison-link .mswi-compare__reset {
	font-size: 13px;
}
.welcome-content p {
	font-size: 14px !important;
}
.footer-col ul li a {
	font-size: 14px;
}
.footer-bottom p {
	font-size: 14px;
}
.footer-links a {
	font-size: 14px;
}
.footer-hours {
	font-size: 14px;
}
#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-1 .mega-toggle-label {
	font-size: 12px !important;
}
.top-header .call-us > span a {
	font-size: 14px;
}
#mswiCompareModal .modal-content .modal-body .close {
	right: 5px;
	top: 5px;
	font-size: 20px;
	height: 26px;
	width: 26px;
}
.mswi-compare__scroll thead a.mswi-compare__cta {
	font-size: 11px;
}
.mswi-select__grid {
	gap: 8px;
}
.footer .footer-container {
	gap: 15px;
}
.mswi-compare__table .mswi-compare__group {
	height: 48px;
}
.mswi-compare__table .mswi-compare__group .mswi-compare__grouplabel {
	position: absolute;
	left: 10px;
	height: 48px;
	width: 95%;
}
iframe {
	width: 100%;
}
.welcome-content .page-title {
	font-size: 24px;
	line-height: normal;
}
.term-description .brochure_spa_request .button {
	font-size: 14px;
}
.mpls_details_box h2.page-title-h2box {
	font-size: 22px !important;
}
.mpls_dethtxt {
	font-size: 16px !important;
}
p.brochure_spa a.button {
	font-size: 14px;
}
.welcome-content h3{
	font-size: 18px;
}
.term-description .mpls_plhead.new_modification_cat_header {
	font-size: 18px;
}
.term-description .mpls_plhead.new_modification_cat_header_bottom {
	font-size: 18px;
}
.mswi-compare__head .mswi-compare__corner {
	z-index: 99;
}
.mswi-compare__head .mswi-compare__corner {
	left: -2px;
}
.mswi-compare__rowlabel {
    left: -2px;
}
.footer .footer-col h4 {
	margin-bottom: 5px;
}
}

/* ---------- Alert modal (replaces native alert) ---------- */
.mswi-alert {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	font-family: Arial, Helvetica, sans-serif;
}
.mswi-alert.is-visible { display: block; }
.mswi-alert__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.55);
}
.mswi-alert__box {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	width: 90%;
	max-width: 420px;
	padding: 34px 28px 26px;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0,0,0,.35);
	text-align: center;
}
.mswi-alert__msg {
	font-size: 17px;
	font-weight: 700;
	color: #333;
	line-height: 1.4;
	margin-bottom: 22px;
}
.mswi-alert__ok {
	background: #e43700;
	color: #fff;
	border: 0;
	padding: 10px 28px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.mswi-alert__ok:hover { background: #c22f00; }
.mswi-alert__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 30px;
	height: 30px;
	background: #1a2b38;
	color: #fff;
	border: 0;
	border-radius: 4px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.mswi-alert__close:hover { background: #0f1c26; }
tr.mswi-compare__head button.mswi-compare__remove {
    width: 200px;
    right: auto;
}
tr.mswi-compare__head .top-dtls {
    justify-content: flex-start;
    align-items: flex-start;
}
table.mswi-compare__table .mswi-compare__row--cta .mswi-compare__cell {
    text-align: left;
}