/* Template simulateur financement – partagé admin + front */

.ntic-vo-sim-header {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	background: #1e3a5f;
	color: #fff;
	border-radius: 4px;
}

.ntic-vo-sim-title {
	margin: 0 0 0.5rem 0;
	font-size: 1.1rem;
	font-weight: 700;
}

.ntic-vo-sim-validity {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.95;
	line-height: 1.4;
	font-weight: 600;
}

.ntic-vo-sim-vehicle {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: 1rem;
	padding: 1rem;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #f6f7f7;
}

.ntic-vo-sim-vehicle-img {
	max-width: 160px;
	height: auto;
	border-radius: 4px;
}

.ntic-vo-sim-vehicle-placeholder {
	width: 160px;
	height: 100px;
	background: #dcdcde;
	border-radius: 4px;
}

.ntic-vo-sim-vehicle-info {
	flex: 1;
}

.ntic-vo-sim-vehicle-title {
	margin: 0 0 0.25rem 0;
	font-weight: 600;
	font-size: 1rem;
}

.ntic-vo-sim-vehicle-price {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1e3a5f;
}

.ntic-vo-sim-offer {
	margin-bottom: 1rem;
	padding: 1rem;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
}

.ntic-vo-sim-offer-label {
	margin: 0 0 0.5rem 0;
	font-weight: 600;
	font-size: 1rem;
}

.ntic-vo-sim-offer-details {
	margin: 0;
	padding-left: 1.25rem;
}

.ntic-vo-sim-offer-details li {
	margin-bottom: 0.25rem;
}

.ntic-vo-sim-personalization {
	padding: 1rem;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #f9f9f9;
}

.ntic-vo-sim-personalization-title {
	margin: 0 0 0.5rem 0;
	font-weight: 600;
	font-size: 0.95rem;
}

.ntic-vo-sim-personalization-list {
	margin: 0;
	padding-left: 1.25rem;
	color: #50575e;
}

.ntic-vo-sim-personalization-list li {
	margin-bottom: 0.25rem;
}

.ntic-vo-offers-result .ntic-vo-error {
	color: #b32d2e;
	margin: 0.5rem 0;
}

/* Footer : legalNotice, legalMention, etc. */
.ntic-vo-sim-footer {
	margin-top: 1.5rem;
	padding: 1rem;
	border-top: 1px solid #dcdcde;
	background: #f6f7f7;
	border-radius: 4px;
	font-size: 0.8rem;
	color: #50575e;
	line-height: 1.5;
}

.ntic-vo-sim-footer-legal {
	margin: 0 0 0.75rem 0;
}

.ntic-vo-sim-footer-legal:last-child {
	margin-bottom: 0;
}

.ntic-vo-sim-price-row {
	display: flex;
	gap: 5px;
	font-size: 13px;
	align-items: center;
}

.ntic-vo-sim-info-btn {
	background: none;
	border: none;
	cursor: pointer;
	margin:0;
	padding:0;
}

.ntic-vo-sim-block {
	padding: 5px !important;
}
.ntic-vo-sim-info-btn:hover {
	opacity: 0.8;
}

.ntic-vo-sim-info-btn:focus {
	outline: none;
}

.ntic-vo-sim-info-btn:active {
	transform: scale(0.98);
}

.ntic-vo-sim-info-btn:focus-visible {
	outline: 2px solid #BED364;
	outline-offset: 2px;
}

.ntic-vo-sim-info-btn:focus-visible:active {
	transform: scale(0.98);
}

.price-value {
    font-size: 20px;
    font-weight: 700;
    color: #BED364;
    padding-bottom: 5px;
}

.legal-mention.justify-teaser {
	font-size: 11px;
	color: #A1A1A1;
}

.ap-item .ap-inner .ap-title {
	font-size: 14px !important;
}

.monthly-payement-price {
	padding-left:8px;
}

/* Titre sur une ligne */
.ap-item.ap-item-style4 .ap-inner .ap-title {
	max-width: 34ch;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ap-item.ap-item-style4 .ap-inner .ap-title a {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}


.ap-item.ap-item-style4 .ap-inner .ap-info-inner {
    padding: 10px 5px 10px 2px !important;
}

/* ==========================================================================
   Popup détail simulation (structure type Spoticar .modal-financial-details)
   jQuery UI Dialog – couleurs à personnaliser côté thème
   ========================================================================== */

#ntic-vo-sim-detail-dialog.ui-dialog-content,
.ui-dialog:has(#ntic-vo-sim-detail-dialog) {
	max-width: 560px;
}

.ui-dialog .ui-dialog-titlebar-close {
	top: 50%;
	margin-top: -10px;
	right: 0.5rem;
}

.modal-financial-details {
	overflow: hidden;
	border-radius: 4px;
}

.modal-financial-details__header {
	padding: 0.75rem 1rem;
	text-align: center;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 1rem;
	background: var(--ntic-vo-modal-header-bg, #051D40);
	color: var(--ntic-vo-modal-header-color, #fff);
}

.modal-financial-details__scroll {
	max-height: 600px;
	overflow-y: scroll; /* ascenseur toujours visible pour indiquer qu’on peut scroller */
	scrollbar-gutter: stable; /* réserve l’espace de l’ascenseur même quand pas de débordement */
}

/* Rendre l’ascenseur visible (Chrome, Safari, Edge) */
.modal-financial-details__scroll::-webkit-scrollbar {
	width: 4px;
}
.modal-financial-details__scroll::-webkit-scrollbar-track {
	background: var(--ntic-vo-modal-scroll-track, #eee);
	border-radius: 4px;
}
.modal-financial-details__scroll::-webkit-scrollbar-thumb {
	background: var(--ntic-vo-modal-scroll-thumb, #BED364);
	border-radius: 4px;
}
.modal-financial-details__scroll::-webkit-scrollbar-thumb:hover {
	background: var(--ntic-vo-modal-scroll-thumb-hover, #BED364);
}

.modal-financial-details__body {
	padding: 1rem;
	background: var(--ntic-vo-modal-body-bg, #fff);
}

.modal-financial-details__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--ntic-vo-modal-row-border, #e5e5e5);
}

.modal-financial-details__row:nth-child(even) {
	background: var(--ntic-vo-modal-row-alt-bg, #f9f9f9);
	margin: 0 -1rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

.modal-financial-details__label {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--ntic-vo-modal-label-color, #333);
}

.modal-financial-details__value {
	text-align: right;
	font-size: 0.9rem;
	white-space: nowrap;
	color: var(--ntic-vo-modal-value-color, #333);
}

.modal-financial-details__no-detail {
	margin: 0;
	color: #666;
	font-style: italic;
}

.modal-financial-details__legal {
	margin: 0;
	padding: 1rem;
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--ntic-vo-modal-legal-color, #666);
	background: var(--ntic-vo-modal-legal-bg, #f5f5f5);
	border-top: 1px solid var(--ntic-vo-modal-row-border, #e5e5e5);
}

.modal-financial-details__legal p {
	margin: 0 0 0.5rem 0;
}

.modal-financial-details__legal p:last-child {
	margin-bottom: 0;
}

.ntic-vo-sim-detail-popup-close-btn {
	font-weight: 700 !important;
	text-transform: uppercase;
	border: 1px solid #BED364 !important;
	background: var(--ntic-vo-modal-btn-bg, #051D40) !important;
	color: var(--ntic-vo-modal-btn-color, #fff) !important;
	cursor: pointer !important;
	border-radius: 2px !important;
	height: 40px !important;
	line-height: 40px !important;
}

.ntic-vo-sim-detail-popup-close-btn:hover {
	opacity: 0.9;
}

.ui-button.ui-dialog-titlebar-close {
	top: 9px !important;
}

.ntic-vo-sim-single .ntic-vo-sim-price-row {
	padding-bottom: 8px;
}

.ntic-vo-sim-single .price-value {
	color: #051D40 !important;
	font-size: 32px !important;
}

.ntic-vo-sim-single .legal-mention.justify-teaser {
	font-size: 12px;
	color: #A1A1A1;
}

.ntic-vo-sim-single .info-icon {
	opacity: 0.5;
	width: 24px;
	height: 24px;
}

.ntic-vo-sim-single .ntic-vo-price-row {
	padding-bottom: 5px;
}

.ntic-vo-sim-personalize-link {
    font-size: 16px;
    font-weight: 700;
    color: #051D40 !important;
    -webkit-text-decoration-line: underline;
    text-decoration-line: underline;
}