/* rentlife blocks */

/* ── Shared variables ──────────────────────────────────────────────────── */

.rl-block-poliza,
.rl-block-calc {
	--rl-blue-dark: var(--blue-dark, #081727);
	--rl-yellow:    var(--yellow, #deaa0a);
}

/* ── Póliza card ───────────────────────────────────────────────────────── */

.rl-block-poliza {
	position:        relative;
	border:          1px solid #e5e7eb;
	height:          100%;
	display:         flex;
	flex-direction:  column;
	justify-content: flex-end;
}

.rl-block-poliza__thumbnail {
	position: relative;
}

.rl-block-poliza__thumbnail img {
	display:    block;
	width:      100%;
	height:     250px;
	object-fit: cover;
	position:   relative;
	z-index:    10;
}

.rl-block-poliza__title {
	position:   absolute;
	background: var(--rl-blue-dark);
	color:      #fff;
	z-index:    50;
	left:       0;
	bottom:     0;
	padding:    0.5rem 1.75rem;
	font-size:  1rem;
	margin:     0;
}

.rl-block-poliza__desc {
	padding: 2rem;
}

.rl-block-poliza__desc p {
	margin: 0;
}

.rl-block-poliza__spacer {
	flex-grow: 1;
}

.rl-block-poliza__benefits {
	padding: 2rem 2rem 0.5rem;
}

.rl-block-poliza__label {
	display:        block;
	color:          var(--rl-yellow);
	text-transform: uppercase;
	font-size:      0.882rem;
	font-weight:    700;
	letter-spacing: 0.04em;
}

.rl-block-poliza__benefits ul {
	list-style:    disc;
	padding-left:  1rem;
	margin:        0.5rem 0 0;
}

.rl-block-poliza__benefits li {
	margin-bottom: 0.25rem;
}

.rl-block-poliza__cost {
	position:   relative;
	padding:    2rem;
	background: #f6f8fb;
}

.rl-block-poliza__cost strong {
	display:     block;
	color:       #3c3c3c;
	font-size:   1rem;
}

.rl-block-poliza__cost p {
	margin: 0.5rem 0 0;
}

.rl-block-poliza__cta {
	display:         flex;
	justify-content: center;
	align-items:     center;
	height:          3.5rem;
	background:      var(--rl-yellow);
	color:           #fff;
	text-transform:  uppercase;
	font-weight:     700;
	text-decoration: none;
	flex-shrink:     0;
	transition:      background 0.18s ease, color 0.18s ease;
}

.rl-block-poliza__cta:hover {
	background: var(--rl-blue-dark);
	color:      #fff;
}

/* ── Póliza calculator ─────────────────────────────────────────────────── */

.rl-block-calc {
	font-family: inherit;
}

.rl-block-calc__field {
	display:       flex;
	flex-direction: column;
	margin-bottom: 1rem;
}

.rl-block-calc__label {
	display:      block;
	font-weight: 400;
	font-size: 11px;
	margin-bottom: 0.75rem;
	color: var(--global-palette7);
	text-transform: uppercase;
	letter-spacing: 0.04px;
}

.rl-block-calc__input,
.rl-block-calc__select {
	width:       100%;
	height:      2.75rem;
	border:      1px solid #e3e3e3;
	padding:     0 0.75rem;
	font-family: inherit;
	font-size:   1rem;
	color:       inherit;
	appearance:  none;
	-webkit-appearance: none;
	transition:  border-color 0.18s ease, box-shadow 0.18s ease;
}

.rl-block-calc__input:focus,
.rl-block-calc__select:focus {
	background:   #053150;
	color: var(--global-palette7) !important;
	border-color: #053150 !important;
}

.rl-block-calc__input[type="text"],
.rl-block-calc__input[type="number"],
.rl-block-calc__select {
	-moz-appearance: textfield;
	border-radius: 0;
	background-color: #053150;
	border-color: #053150;
	color: var(--global-palette7);
	font-size: 14px;
	padding-left: 0.8rem;
}

.rl-block-calc__input[type="number"]::-webkit-outer-spin-button,
.rl-block-calc__input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rl-block-calc__select {
	background-image:    url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292.4 292.4"><path fill="%23959698" d="M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.5-12.8z"/></svg>');
	background-repeat:   no-repeat;
	background-position: right 15px center;
	background-size:     9px auto;
	cursor:              pointer;
	padding-right:       2.5rem;
}

.rl-block-calc__checkbox-label {
	display:     flex;
	align-items: center;
	gap:         0.95rem;
	font-size:   1rem;
	cursor:      pointer;
	font-weight: 400;
	font-size: 0.72rem;
	margin-bottom: 0.75rem;
	color: var(--global-palette2);
	text-transform: uppercase;
	letter-spacing: 0.04px;
}

.rl-block-calc__checkbox-label input[type="checkbox"] {
	width:        1rem;
	height:       1rem;
	accent-color: var(--rl-blue-dark);
	cursor:       pointer;
	flex-shrink:  0;
}

.rl-block-calc__result {
	background: var(--global-palette4);
	color: var(--global-palette5);
	margin: 0 !important;
	padding: 1rem 2rem;
}

.rl-block-calc__result-value {
	font-size: 2.4rem;
	color: #fff;
	margin-right: 0.5rem;
}

.rl-block-calc__result-desc {
	display: block;
	color: var(--global-palette7);
}

.rl-block-calc__checkbox-label input[type="checkbox"] {
	position: absolute;
	opacity:  0;
	width:    0;
	height:   0;
	margin:   0;
}

.rl-block-calc__checkbox-box {
	display:     inline-flex;
	align-items: center;
	justify-content: center;
	width:       14px;
	height:      14px;
	min-width:   14px;
	border:      1px solid currentColor;
	background:  transparent;
	position:    relative;
	transition:  background 0.15s ease, border-color 0.15s ease;
}

.rl-block-calc__checkbox-box::after {
	content:   '';
	display:   none;
	width:     4px;
	height:    7px;
	border-right:  2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg) translate(-1px, -1px);
}

.rl-block-calc__checkbox-label input[type="checkbox"]:checked + .rl-block-calc__checkbox-box {
	background:    var(--global-palette2);
	border-color:  var(--global-palette2);
}

.rl-block-calc__checkbox-label input[type="checkbox"]:checked + .rl-block-calc__checkbox-box::after {
	display: block;
}

.rl-block-calc__checkbox-label input[type="checkbox"]:focus-visible + .rl-block-calc__checkbox-box {
	outline: 2px solid var(--global-palette2);
	outline-offset: 2px;
}

.rl-block-calc__note {
	display:       block;
	font-size:     0.882rem;
	color:         #6b7280;
	margin-bottom: 1.25rem;
}

.rl-block-calc__btn {
	display:         flex;
	justify-content: space-between;
	align-items:     center;
	width:           100%;
	height:          40px;
	background:      var(--global-palette1);
	color:           #fff;
	font-size:       11px;
	text-transform:  uppercase;
	letter-spacing:  0.05em;
	border:          none;
	cursor:          pointer;
	transition:      background 0.18s ease;
	margin-top: 2.2rem;
	padding-right: 0;
}

.rl-block-calc__btn:hover {
	background: var(--global-palette2);
	color: var(--global-palette3);
}

.rl-btn_icon-wrap {
	width: 40px;
	height: 40px;
	border-left: 0.15rem solid var(--global-palette3);
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: 1rem;
	flex-grow: 0;
	flex-shrink: 0;
}

.rl-btn_icon-wrap svg {
	width: 18px;
}

.rl-block-calc__btn .rl-btn_label {
	text-align: center;
	display: block;
	width: 100%;
}

/* ── Póliza table ──────────────────────────────────────────────────────── */

.rl-block-poliza-table {
	width: 100%;
}

.rl-block-poliza-table__scroll {
	overflow-x: auto;
	overflow-y: clip;
	-webkit-overflow-scrolling: touch;
}

.rl-block-poliza-table table {
	width:           100%;
	border-collapse: collapse;
	font-size:       0.9rem;
	font-family:     inherit;
	border-top: 1px solid var(--global-palette8);
}

.rl-block-poliza-table thead th {
	padding:    1.55rem 1rem 0.4rem;
	text-align: center;
	border:     none;
}

/* Names row */
.rl-block-poliza-table .rl-table-names-row th {
	background:     var(--global-palette9);
	color:          var(--global-palette3);
	font-weight:    400;
	font-size:      1.3rem;
}

.rl-block-poliza-table .rl-table-names-row th:first-child {
	text-align: left;
}

.rl-block-poliza-table .rl-table-names-row th,
.rl-block-poliza-table .rl-table-cta-row th {
	border-right: 1px solid var(--global-palette8);
}

.rl-block-poliza-table .rl-table-names-row th:last-child,
.rl-block-poliza-table .rl-table-cta-row th:last-child {
    border-right: none;
}

/* .rl-block-poliza-table .rl-table-names-row .wpdt-empty-cell,
.rl-block-poliza-table .rl-table-cta-row .wpdt-empty-cell {
	border-right: 1px solid var(--global-palette8);
} */

/* CTA row */
.rl-block-poliza-table .rl-table-cta-row {
	border-bottom: 1px solid var(--global-palette8);
}
.rl-block-poliza-table .rl-table-cta-row th {
	background: var(--global-palette9);
	padding:    0.65rem 1rem;
}

/* .rl-block-poliza-table .rl-table-cta-row th:nth-child(2) { background: #122b44; }
.rl-block-poliza-table .rl-table-cta-row th:nth-child(3) { background: #0f3352; }
.rl-block-poliza-table .rl-table-cta-row th:nth-child(4) { background: #0c3b60; }
.rl-block-poliza-table .rl-table-cta-row th:nth-child(5) { background: #09446e; } */

.rl-table-cta {
	display:         block;
	color:           #fff;
	text-decoration: none;
	font-weight:     400;
	text-transform:  uppercase;
	padding:         0 1rem;
	border:          1px solid rgba(255,255,255,0.25);
	transition:      background 0.18s ease;
	background: var(--global-palette1);
	height: 40px;
	line-height: 39px;
	font-size: 11px;
	letter-spacing: 0.4px;
	margin-bottom: 1.5rem;
	margin-top: 0.6rem;
	max-width: 232px;
	width: 232px;
}

.rl-table-cta:hover {
	background: var(--global-palette2);
	color:      var(--global-palette3);
}

.rl-block-poliza-table tbody tr {
	border-bottom: 1px solid #e5e7eb;
	transition:    background 0.15s ease;
}

.rl-block-poliza-table tbody tr:nth-child(even) {
	background: var(--global-palette8);
}

.rl-block-poliza-table tbody td {
	padding:        1.15rem 1rem;
	vertical-align: middle;
	border:         none;
	border-right:   1px solid #D7D7D7;
	color:          var(--rl-blue-dark);
	color:          var(--global-palette5);
	font-size:      1rem;
	font-weight:    400;
	text-align:     center;
}

.rl-block-poliza-table tbody td:last-child {
    border-right: none;
}

.rl-block-poliza-table tbody td.wpdt-align-left {
	text-align: left;
	padding-left: 1.6rem;
	color:          var(--global-palette3);
}

.rl-block-poliza-table tbody td.wpdt-merged-cell {
	font-size: 1.2rem;
	padding-block: 1.6rem;
	font-weight: 500;
	background: var(--global-palette9);
}

.rl-block-poliza-table__note {
	margin-top: 0.75rem;
	font-size:  0.8rem;
	color:      #6b7280;
}

.wpdt-empty-val {
	width: 13px;
	height: 1px;
	background: var(--global-palette3);
	display: block;
	margin: auto;
}

@media (max-width: 640px) {
	.rl-poliza-sticky-header {
		display: none !important;
	}

	.rl-table-cta {
		max-width: 132px;
		width: 132px;
	}
}