/* Variables from plugin
var(--skwg-primary-color);
var(--skwg-secondary-color);
*/

/* ========== BASE ========== */

.systemkalkulatoren-widget * {
    font-family: "Manrope", sans-serif;
}

div.systemkalkulatoren-widget {
    background: #fff;
    border-radius: 10px;
    padding: 50px 15px;
}

.skwg-header-filter {
    position: relative;
}

.skwg-container.row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 10px;
}

.skwg-btn {
	display: inline-block;
	background-color: var(--skwg-primary-color);
	color: #fff;
	padding: 10px 20px;
	width: 100%;
	text-align: center;
	border: none;
	border-radius: 5px;
	margin-top: 40px;
}

.skwg-btn:hover,
.skwg-btn:active,
.skwg-btn:focus {
	border: none;
}

.filter-button {
	background-color: var(--skwg-secondary-color);
	color: #fff;
}

.systemkalkulatoren-widget .skwg-system .system-card {
	background: #fff;
	border-radius: 12px;
	padding: 20px 25px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: transform 0.2s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.systemkalkulatoren-widget .skwg-system .system-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.systemkalkulatoren-widget .skwg-system strong {
	margin-bottom: 0;
}

.systemkalkulatoren-widget .element_system {
	margin-bottom: 12px;
	padding: 0;
}

.systemkalkulatoren-widget h4 {
	margin-bottom: 10px;
	font-size: 22px;
}

.systemkalkulatoren-widget a.blue-wg-btn {
	margin-top: 10px;
	text-align: center;
}

/* ========== FILTERS ========== */

.systemkalkulatoren-widget .skwg-filters-container {
	display: flex;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	flex-direction: column;
}

.filter-field select {
    padding: 5px 15px;
    border-radius: 5px;
    border: none;
    border-right: 10px solid transparent;
    outline: 1px solid #b9b9b9;
    width: inherit;
}

.systemkalkulatoren-widget .skwg-filters .filter-card {
	padding: 20px 30px 35px;
	/* background: #fff; */
	border-radius: 12px;
	/* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
	margin: 0 0 3rem;
	border: 1px solid #dddddd;
}

.systemkalkulatoren-widget .filter-field {
	border-bottom: 1px solid #dddddd;
	margin-top: 20px;
	padding-bottom: 40px;
}

.systemkalkulatoren-widget label {
	/*display: block;
	margin: 0 0 5px 5px;*/
}

.systemkalkulatoren-widget select,
.systemkalkulatoren-widget input#wall-height {
	width: calc(100% - 25px);
	max-width: 350px;
	cursor: pointer;
}

.systemkalkulatoren-widget .filter-card h1 {
	margin-bottom: 10px;
	font-size: 24px;
	display: inline-block;
}

.systemkalkulatoren-widget button#reset-filters {
	width: 100%;
	max-width: 350px;
}

/* ========== ACCORDION ========== */

.systemkalkulatoren-widget .accordion-toggle {
	background-color: var(--skwg-primary-color);
	color: #fff;
	padding: 10px;
	border: none;
	width: 100%;
	text-align: left;
	cursor: pointer;
	font-weight: bold;
	border-radius: 5px;
	margin-bottom: 10px;
	display: none;
}

.systemkalkulatoren-widget .accordion-content {
	transition: all 0.3s ease;
}

/* ========== COUNTERS ========== */


.systemkalkulatoren-widget select:focus {
    outline: 1px solid #b9b9b9;
}

.systemkalkulatoren-widget span.skwg-counter-value {
	font-weight: 700;
}

.systemkalkulatoren-widget p.not_system_found {
	font-size: 18px;
	margin-left: 20px;
}

.systemkalkulatoren-widget .filter-field .blue-wg-btn {
	width: 100%;
	position: relative;
	top: 5px;
}

/* Reset filter small button */
.systemkalkulatoren-widget button.reset-filter-field {
	background: transparent;
	color: #686868;
	padding: 0;
	border: none;
	margin-left: 6px;
	position: absolute;
	right: 0;
	top: 1px;
	font-weight: 900;
}

.systemkalkulatoren-widget button.reset-filter-field:hover,
.systemkalkulatoren-widget button.reset-filter-field:active,
.systemkalkulatoren-widget button.reset-filter-field:focus {
	color: #0e0e0e;
}

/* Template background override */
.wp-singular.page-template.page-template-templates {
	background: #ffffff00;
}

.skwg-counter.system-counter {
	margin-top: 15px;
	margin-bottom: -5px;
}

.skwg-thead {
	/* background: #dddddd; */
}

/* Selected filter button */
button.filter-button.selected {
	background: #003b5a;
}


button#popup-close {
    background: none;
    border: none;
    color: #002943;
    font-weight: 900;
    font-size: 23px;
    position:absolute;
    top:10px;
    right:10px;
    cursor:pointer;
}

button#popup-close:hover {
    color: #000000;
}


input.skwg-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.skwg-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    position: relative;
}

.skwg-checkbox-label::before {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    border: 2px solid #333;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
    transition: background 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.skwg-checkbox-label::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 10px;
    height: 18px;
    opacity: 0;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

input.skwg-checkbox:checked + .skwg-checkbox-label::before {
    background: var(--skwg-primary-color);
    border-color: var(--skwg-primary-color);
}

input.skwg-checkbox:checked + .skwg-checkbox-label::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

span.filter-field-label {
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.skwg-checkbox-container div {
    margin-bottom: 8px;
}

.skwg-container .more-info-btn {
    color: var(--skwg-primary-color);
}

.skwg-system table {
 --border: 1px solid #ab2e2e;
 border-radius: 10px;
 
 
 border-spacing: 0;
 border-collapse: separate;
 border: var(--border);
 overflow: hidden;
}

.skwg-system thead>tr>th{
 border-bottom: none;
}

.skwg-system table th {
 background: #f3f2ee;
}

.skwg-system table th, .skwg-system table td {
 padding: 25px !important;
}


table.system-table.table {
 table-layout: fixed;
}

.skwg-counter-container {
 margin-top: 20px;
 margin-bottom: 30px;
}
span#reset-filters {
    color: var(--primary-color);
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 7px;
}

span#reset-filters:hover {
    color: var(--secondary-color);
}
/* ========== RESPONSIVE ========== */

/* ≤ 992px */
@media (max-width: 992px) {
	.systemkalkulatoren-widget .skwg-system {
		grid-template-columns: 1fr 1fr;
	}

	.systemkalkulatoren-widget .skwg-filters-container {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	.skwg-container thead>tr>th, .skwg-container tbody>tr>th, .skwg-container tfoot>tr>th, .skwg-container thead>tr>td, .skwg-container tbody>tr>td, .skwg-container tfoot>tr>td {
		min-width: 110px;
	}

	.skwg-container .system-table {
		overflow-x: auto;
		display: block;
	}
}

/* ≤ 708px */
@media (max-width: 708px) {
	.systemkalkulatoren-widget .skwg-system {
		grid-template-columns: 1fr;
	}

	.systemkalkulatoren-widget .system-card {
		margin-bottom: 0;
	}

	.systemkalkulatoren-widget .skwg-filters-container {
		margin-top: 15px;
		grid-template-columns: repeat(2, 1fr);
	}

	.systemkalkulatoren-widget .filter-field {
		margin: 5px 0;
	}

	.systemkalkulatoren-widget .skwg-counter {
		display: table;
		margin: 20px auto 0;
	}
	.skwg-container.row {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		margin: 10px;
	}
	.skwg-filters.skwg-col-1 {
		width: 100%;
		max-width: 100%;
		margin: 0;
	}
	.systemkalkulatoren-widget select, .systemkalkulatoren-widget input#wall-height {
		max-width: 100%;
	}
}

/* ≤ 576px */
@media (max-width: 576px) {
	.systemkalkulatoren-widget .skwg-filters-container {
		grid-template-columns: 1fr;
	}
}






/* TEMP */

.skwg-col-1 {
    display: inline-block;
    margin-right: 40px;
    width: 100%;
    max-width: 350px;
}

.skwg-col-2 {
    width: 100%;
    display: inline-block;
}

table.system-table.table {
    width: 100%;
    /* display: inline-block; */
    border: 1px solid #dddddd;
}



/* END TEMP */






#system-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;

    /* NUEVO */
    overscroll-behavior: contain;
}


#system-popup .popup-content {
    background: #ffffff;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

#popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.more-info-btn {
    cursor: pointer;
    text-decoration: underline;
}


.system-details-content {
    /* padding: 10px 15px; */
    /* background-color: #f9f9f9; */
    /* border-left: 1px solid #ccc; */
    /* border-right: 1px solid #ccc; */
    /* border-bottom: 1px solid #ccc; */
}

.system-row:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

