/* Rivix Detailing Packages — Frontend Styles */

.rdp-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 30px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- CARD SHELL ---------- */
.rdp-card {
	flex: 1 1 260px;
	max-width: 320px;
	background: #111;
	border: 1px solid #d4af37;
	border-radius: 10px;
	overflow: hidden;
	transition: max-width .35s ease, flex-basis .35s ease;
}

.rdp-card.rdp-is-expanded {
	flex: 1 1 100%;
	max-width: 100%;
	order: 99;
}

/* When expanded, hide the collapsed view and show the expanded one */
.rdp-collapsed { display: block; }
.rdp-expanded { display: none; }
.rdp-card.rdp-is-expanded .rdp-collapsed { display: none; }
.rdp-card.rdp-is-expanded .rdp-expanded { display: block; }

/* ---------- COLLAPSED CARD ---------- */
.rdp-photo {
	position: relative;
	height: 170px;
	background-size: cover;
	background-position: center;
	background-color: #222;
}

.rdp-order {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #d4af37;
	color: #111;
	font-weight: 700;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rdp-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #d4af37;
	color: #111;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .05em;
	padding: 5px 10px;
	border-radius: 4px;
	text-transform: uppercase;
}

.rdp-icon-circle {
	position: absolute;
	bottom: -22px;
	left: 50%;
	transform: translateX(-50%);
	width: 46px;
	height: 46px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.rdp-icon-circle .dashicons { color: #111; font-size: 22px; width: 22px; height: 22px; }

.rdp-body {
	padding: 34px 18px 18px;
	text-align: center;
	color: #eee;
}

.rdp-title {
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0 0 10px;
	line-height: 1.3;
}

.rdp-short-desc {
	font-size: 13px;
	color: #bbb;
	margin: 0 0 14px;
	line-height: 1.5;
}

.rdp-best-for-label {
	color: #d4af37;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	margin: 0 0 4px;
}
.rdp-best-for-text {
	font-size: 12px;
	color: #ccc;
	margin: 0 0 14px;
}

.rdp-price-label {
	color: #d4af37;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	margin: 0 0 2px;
}
.rdp-price {
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 14px;
}
.rdp-price-large { font-size: 30px; }

.rdp-book-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	background: #d4af37;
	color: #111;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .03em;
	text-transform: uppercase;
	border: none;
	border-radius: 6px;
	padding: 11px 14px;
	cursor: pointer;
	text-decoration: none;
	margin-bottom: 8px;
	transition: background .2s ease;
}
.rdp-book-btn:hover { background: #c49b2c; color:#111; }
.rdp-book-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }

.rdp-view-details {
	background: none;
	border: none;
	color: #d4af37;
	font-size: 12px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.rdp-view-details .dashicons { font-size: 14px; width: 14px; height: 14px; }

/* ---------- EXPANDED CARD ---------- */
.rdp-expanded {
	position: relative;
	padding: 20px;
	background: #0c0c0c;
}

.rdp-close-btn {
	position: absolute;
	top: 14px;
	right: 14px;
	background: #d4af37;
	border: none;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
}
.rdp-close-btn .dashicons { font-size: 16px; width: 16px; height: 16px; color: #111; }

.rdp-expanded-top {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 16px;
	margin-bottom: 22px;
}

.rdp-expanded-hero {
	position: relative;
	background-size: cover;
	background-position: center;
	background-color: #222;
	border-radius: 8px;
	min-height: 220px;
	display: flex;
	align-items: flex-end;
	padding: 16px;
}
.rdp-hero-caption h3 {
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0 0 6px;
}
.rdp-hero-caption p {
	color: #ddd;
	font-size: 12px;
	line-height: 1.5;
	margin: 0;
	max-width: 90%;
}
.rdp-expanded-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.1));
	border-radius: 8px;
}
.rdp-expanded-hero .rdp-order,
.rdp-expanded-hero .rdp-badge,
.rdp-expanded-hero .rdp-hero-caption { position: relative; z-index: 1; }

.rdp-expanded-col {
	background: #fff;
	border-radius: 8px;
	padding: 16px;
}

.rdp-col-heading {
	color: #b5862a;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin: 0 0 12px;
}
.rdp-not-suitable-heading { margin-top: 14px; }

.rdp-check-list, .rdp-cross-list, .rdp-addon-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rdp-check-list li, .rdp-cross-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #333;
	margin-bottom: 8px;
	line-height: 1.4;
}
.rdp-check-list .dashicons { color: #2ea043; font-size: 16px; width:16px; height:16px; flex-shrink:0; margin-top:1px;}
.rdp-cross-list .dashicons { color: #d1372f; font-size: 16px; width:16px; height:16px; flex-shrink:0; margin-top:1px;}

.rdp-addon-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #333;
	margin-bottom: 10px;
	border-bottom: 1px dashed #eee;
	padding-bottom: 8px;
}
.rdp-addon-list li .dashicons { color:#2ea043; font-size:16px; width:16px; height:16px; margin-right:-4px; }
.rdp-addon-name { flex: 1; margin-left: 4px; }
.rdp-addon-price { color: #b5862a; font-weight: 700; white-space: nowrap; }

.rdp-price-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.rdp-price-table th {
	text-align: left;
	color: #888;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}
.rdp-price-table td {
	padding: 8px 0;
	border-bottom: 1px solid #f2f2f2;
	color: #222;
}
.rdp-price-table td:last-child { font-weight: 700; color: #b5862a; text-align: right; }

.rdp-expanded-cta {
	background: #111;
	border: 1px solid #d4af37;
	border-radius: 8px;
	padding: 20px 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.rdp-expanded-cta .rdp-price-label { color: #d4af37; }
.rdp-expanded-cta .rdp-price { color: #fff; }
.rdp-book-link { text-decoration: none; }
.rdp-call-text { color: #ccc; font-size: 12px; margin: 8px 0 0; }
.rdp-call-text a { color: #d4af37; text-decoration: none; }

.rdp-distinction-text {
	font-size: 13px;
	color: #333;
	line-height: 1.5;
	margin: 0 0 4px;
}

.rdp-expanded-bottom {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 16px;
}
.rdp-info-col {
	background: #fff;
	border-radius: 8px;
	padding: 16px;
}

.rdp-fineprint {
	text-align: center;
	color: #888;
	font-size: 11px;
	font-style: italic;
	margin: 10px 0 0;
}

.rdp-not-suitable-note {
	font-size: 12px;
	color: #555;
	font-style: italic;
	line-height: 1.5;
	margin: 10px 0 0;
	padding-top: 8px;
	border-top: 1px dashed #eee;
}

/* ---------- EXTRA CATEGORIZED CHECKLISTS (Interior / Exterior / Completion, etc.) ---------- */
.rdp-extra-categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}
.rdp-category-block { }

/* ---------- CATEGORIZED TABLES (e.g. Add-on Services / Protection & Correction) ---------- */
.rdp-table-sections {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 16px;
}
.rdp-table-section-block { }

.rdp-data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.rdp-data-table th {
	text-align: left;
	color: #888;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .02em;
	padding: 0 12px 8px 0;
	border-bottom: 1px solid #eee;
}
.rdp-data-table td {
	padding: 10px 12px 10px 0;
	border-bottom: 1px solid #f2f2f2;
	color: #333;
	vertical-align: top;
}
.rdp-data-table tr:last-child td { border-bottom: none; }
.rdp-data-table th.rdp-col-price,
.rdp-data-table td.rdp-col-price { text-align: right; padding-right: 0; }
.rdp-data-table td.rdp-col-price { color: #b5862a; font-weight: 700; white-space: nowrap; }

.rdp-table-extra-text {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #eee;
	font-size: 13px;
	color: #333;
	line-height: 1.6;
}
.rdp-table-extra-text p { margin: 0 0 10px; }
.rdp-table-extra-text p:last-child { margin-bottom: 0; }

/* ---------- WHY THIS IS THE BEST VALUE ---------- */
.rdp-value-section {
	background: #fff;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 16px;
}
.rdp-value-heading {
	color: #111;
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .02em;
	margin: 0 0 12px;
}
.rdp-value-intro {
	font-size: 13px;
	color: #333;
	line-height: 1.6;
	margin: 0 0 12px;
}
.rdp-value-breakdown {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}
.rdp-value-breakdown li {
	font-size: 13px;
	color: #333;
	padding: 6px 0 6px 18px;
	position: relative;
	border-bottom: 1px dashed #eee;
}
.rdp-value-breakdown li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: #b5862a;
}
.rdp-value-breakdown li strong { color: #b5862a; }
.rdp-value-closing {
	font-size: 13px;
	color: #333;
	line-height: 1.6;
	margin: 0;
}
.rdp-value-closing strong { color: #b5862a; }

/* ---------- ADD-ON IMAGE CARDS ---------- */
.rdp-addon-cards-section { margin-bottom: 16px; }
.rdp-addon-cards-heading {
	color: #d4af37;
	display: flex;
	align-items: center;
	gap: 6px;
}
.rdp-addon-cards-heading .dashicons { font-size: 16px; width: 16px; height: 16px; }

.rdp-addon-cards-row {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding-bottom: 4px;
}
.rdp-addon-card {
	position: relative;
	flex: 0 0 170px;
	height: 130px;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
	background-color: #222;
	overflow: hidden;
}
.rdp-addon-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.05) 60%);
}
.rdp-addon-card-info {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	z-index: 1;
}
.rdp-addon-card-title {
	display: block;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.3;
}
.rdp-addon-card-price {
	display: block;
	color: #d4af37;
	font-size: 11px;
	margin-top: 3px;
}

/* ---------- COMPARE BUTTON ---------- */
.rdp-compare-wrap {
	text-align: center;
	width: 100%;
	margin: 6px 0 0;
}
.rdp-compare-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid #d4af37;
	color: #d4af37;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding: 12px 22px;
	border-radius: 6px;
	cursor: pointer;
}
.rdp-compare-toggle:hover { background: #d4af37; color: #111; }
.rdp-compare-toggle .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* ---------- COMPARE MODAL ---------- */
body.rdp-modal-lock { overflow: hidden; }

.rdp-compare-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
}
.rdp-compare-modal.rdp-modal-open { display: block; }

.rdp-compare-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.75);
}

.rdp-compare-box {
	position: relative;
	background: #0c0c0c;
	border: 1px solid #d4af37;
	border-radius: 10px;
	max-width: 1100px;
	width: 92%;
	max-height: 86vh;
	margin: 5vh auto;
	padding: 24px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.rdp-compare-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: #d4af37;
	border: none;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.rdp-compare-close .dashicons { font-size: 16px; width: 16px; height: 16px; color: #111; }

.rdp-compare-title {
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0 0 16px;
}

.rdp-compare-scroll { overflow: auto; }

.rdp-compare-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 640px;
}
.rdp-compare-table th, .rdp-compare-table td {
	border: 1px solid #262626;
	padding: 12px;
	vertical-align: top;
	color: #ddd;
	font-size: 13px;
}
.rdp-compare-row-label {
	background: #161616;
	color: #d4af37 !important;
	font-weight: 700;
	white-space: nowrap;
	width: 140px;
}
.rdp-compare-thumb {
	width: 100%;
	height: 90px;
	background-size: cover;
	background-position: center;
	background-color: #222;
	border-radius: 6px;
	margin-bottom: 8px;
}
.rdp-compare-pkg-title {
	color: #fff;
	font-weight: 800;
	font-size: 12px;
	text-transform: uppercase;
	text-align: center;
}
.rdp-compare-price { color: #d4af37; font-weight: 800; font-size: 16px; text-align: center; }

.rdp-compare-mini-list { list-style: none; margin: 0; padding: 0; }
.rdp-compare-mini-list li {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 12px;
	margin-bottom: 5px;
}
.rdp-compare-mini-list .dashicons { font-size: 14px; width: 14px; height: 14px; margin-top: 1px; flex-shrink:0; }
.rdp-compare-mini-list li .dashicons { color: #2ea043; }
.rdp-compare-mini-cross li .dashicons { color: #d1372f; }
.rdp-compare-more { color: #888; font-size: 11px; font-style: italic; }

.rdp-compare-book { width: 100%; margin: 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
	.rdp-expanded-top { grid-template-columns: 1fr 1fr; }
	.rdp-expanded-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.rdp-expanded-top { grid-template-columns: 1fr; }
	.rdp-card { max-width: 100%; }
}
