/* Rental Products */

.rental-product {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rental-product h2 {
	line-height: 1.3em;
}

.rental-product .tcb-button-link {
	border-radius: 0 0 10px 10px!important;
	border: none!important;
}

/** Product Rentals **/

/* Overall layout: sidebar + content */
.rental-products-layout {
    display: grid;
    grid-template-columns: 1.3fr 4fr;
    grid-gap: 50px;
	margin-bottom: 120px;
}

@media(max-width: 1024px) {
	.rental-products-layout {
		grid-gap: 20px;
	}
}

.rental-products-layout h1 {
	font-weight: 800;
	margin-top: 20px;
}

.rental-products-banner {
	grid-column: 1 / 3;
	margin-bottom: 10px;
}

@media(max-width: 900px) {
	.rental-products-banner {
		grid-column: auto;
		margin: 0;
	}

	.rental-products-layout {
		grid-template-columns: 1fr;
	}
}

.rental-products-banner .button {
	padding: 15px;
	border-radius: 5px;
	font-weight: 500;
	font-size: 18px!important;
	margin-top: 20px;
}

.post-type-archive-rental-product .archive-description, .tax-needs-category .archive-description, .tax-store-location .archive-description {
	display: none;
}

.post-type-archive-rental-product .content-sidebar-wrap, .tax-needs-category .content-sidebar-wrap, .tax-store-location .content-sidebar-wrap {
	margin-left: 10px;
	margin-right: 10px;
}

.post-type-archive-rental-product .breadcrumb {
	padding: 20px 10px 0 10px;
}

/* Sidebar styling */
.filters-sidebar {
    padding: 0;
    border-radius: 6px;
	height: fit-content;
}

.filters-sidebar h3 {
    margin-top: 0;
	font-size: 26px;
}


.filters-sidebar h4 {
	font-size: 18px;
	font-weight: 700;
}

.filters-sidebar ul {
    list-style: none;
    padding-left: 0;
	margin-left: 0!important;
}
.filters-sidebar li {
    margin-bottom: 0.5rem;
}

/* Style the store location dropdown like product cards */
.filters-sidebar .filter-group select {
    width: 95%;
    padding: 10px 0 10px 5%;
    font-size: 1rem;
    border: 2px solid #fff;
    border-radius: 6px;
    background-color: #fff;
    color: #003366;
	font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filters-sidebar .filter-group select:hover,
.filters-sidebar .filter-group select:focus {
    border-color: #003166;
    outline: none;
}

/* Highlight the selected option in the dropdown with gold text */
.filters-sidebar .filter-group select option[selected] {
    background-color: #ffba00;
    font-weight: 700;
}

/* Highlight the currently selected needs category link */

.filters-sidebar .filter-group ul li.current-term {
    font-weight: 700;
    background-color: #003166;
}


.filters-sidebar .filter-group ul li.current-term a {
    color: #FFFFFF!important;
}

.filter-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-gap: 20px;
}

.rental-archive-description {
	max-width: 800px;
}

.step-1 {
	padding: 20px;
	border-radius: 10px;
	background: #ffba00;
}

.steps-2-3 {
	padding: 20px;
	margin-top: 20px;
	border-radius: 10px;
	background: #e6f7fb;
}

.rental-search {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	grid-gap: 30px;
	padding: 20px;
	margin-bottom: 50px;
	border-radius: 10px;
	background: #e6f7fb;
}

@media(max-width: 1024px) {
	.rental-search {
		flex-direction: column;
		margin: 10px 0 30px 0;
		grid-gap: 20px;
		align-items: flex-start;
		padding: 0;
		background: unset;
		border-radius: unset;
	}
}

.rental-search h4 {
	margin: 0;
}

.rental-search form {
	display: flex;
}

.rental-search form input {
	border-radius: 5px;
	background: white;
	width: 300px;
    font-weight: 500;
}

@media(max-width: 1024px) {
	.rental-search form input {
		width: auto;
		align-items: flex-start;
		box-shadow: 0 0 25px -5px rgba(0, 0, 0, 0.1);
	}
}

.rental-search button {
	min-width: fit-content;
	border-radius: 5px;
	font-size: 18px!important;
	margin-left: 10px;
	width: fit-content;
	padding: 14px 20px;
	transition: ease .2s;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 0px 40px -5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.product-image-link img {
    width: 100%;
    height: 300px;
    display: block;
	object-fit: contain;
	border-bottom: solid 1px #eee;
	padding: 10px;
}

.product-content {
    padding: 25px 20px;
    flex-grow: 1;
}

.product-content h3 {
    margin: 0 0 10px 0;
    color: #003366;
	font-size: 20px;
    font-weight: 800;
    line-height: 1em;
}

.product-desc {
    font-size: 15px;
    color: #003366;
    line-height: 1.6;
    margin-bottom: 0;
}

.product-button {
    display: block;
    text-align: center;
    background: #00b8d9;
    color: #fff;
    padding: 0.75rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 12px 12px;
    transition: background 0.2s ease;
}
.product-button:hover {
    background: #009bb7;
	color: white;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.ts-wrapper.multi .ts-control > div, .ts-dropdown [data-selectable].option, .ts-control input, .no-results {
	font-size: 18px!important;
}

.ts-control {
	border: solid 1px #ddd!important;
	border-radius: 3px!important;
}

/* Checklist style */
.needs-category-list li {
    margin-bottom: 15px;
}

.needs-category-list a {
	transition: ease .2s;
}

.needs-category-list li::marker {
	color: white;
}

.needs-category-list label {
    display: flex;
    align-items: center;
	width: fit-content;
	line-height: 1.2em;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

.needs-category-list label:hover {
    color: #00b8d9;
}

.needs-category-list input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    min-width: 18px;
    min-height: 18px;
    border: 2px solid #003166;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    background: white;
    margin-bottom: 3px !important;
}

.needs-category-list input[type="radio"]:checked {
    border-color: #003166;
    background-color: #003166;
}

.needs-category-list input[type="radio"]:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
}

.rental-product-single-layout .product-price {
	font-size: 20px;
}

@media(max-width: 900px) {
	.related-rental-products {
		margin-top: 20px!important;
		padding: 0!important;
	}
	
	.related-rental-products h3, .product-enquiry h2, .product-title {
		line-height: 1.2em;
	}
}


/*
/* Single Rental Product Page
*/

input.gform_button {
	padding: 14px 24px!important;
	border-radius: 5px!important;
	font-size: 18px!important;
}

.gform_required_legend {
	display: none;
}

.product-price {
    font-weight: 500;
    font-size: 0.95rem;
	padding: 15px 10px;
    color: #003366;
}

.product-price span {
    float: right;
    font-weight: bold;
    color: #003366;
}

.product-card .product-price {
	padding: 1rem 20px;
	background: #e6f7fb;
}

.rental-product-single-layout {
    display: flex;
    grid-gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: Arial, sans-serif;
}

.product-image {
    flex: 1;
}

.rental-product-image {
    width: 100%;
    height: auto;
	max-height: 660px;
    border-radius: 8px;
    object-fit: contain;
}

.no-image {
    background-color: #f5f5f5;
    color: #999;
    padding: 80px 0;
    text-align: center;
    border-radius: 8px;
    font-style: italic;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 40px;
}

@media(max-width: 1024px) {
	.product-details {
		margin-left: 0;
	}
}

.product-title {
    font-size: 2rem;
    color: #003166;
    margin-bottom: 20px;
    font-weight: 800;
}

.product-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #003166;
}

.price-amount {
    font-weight: 900;
}

.product-stores strong,
.product-needs-categories strong {
    color: #003166;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.store-list,
.needs-category-list {
    margin-top: 10px;
}

.store-badge,
.needs-category-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    color: #fff;
}

.store-badge {
    background-color: #00b8d9;
}

.store-badge:hover,
.store-badge:focus {
    background-color: #007a99;
}

.needs-category-badge {
    background-color: #003366;
}

.needs-category-badge:hover,
.needs-category-badge:focus {
    opacity: 0.8;
}

.product-enquiry {
    margin-top: 50px;
}

/* Related products grid uses exact archive styles */
.related-rental-products {
    max-width: 1200px;
    margin: 120px 40px;
    padding: 0 20px;
}

@media(max-width: 1024px) {
	.related-rental-products {
		margin: 0;
	}
}

.related-rental-products h3 {
    margin: 0 0 10px 0;
    color: #003366;
	font-size: 20px;
    font-weight: 800;
    line-height: 1em;
}

.related-rental-products .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media(max-width: 1024px) {
	.related-rental-products .product-grid {
		grid-template-columns: repeat(2, 1fr)
	}
}

@media(max-width: 767px) {
	.related-rental-products .product-grid {
		grid-template-columns: repeat(1, 1fr)
	}
}

.related-rental-products .product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 0px 40px -5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-stores, .product-needs-categories {
    margin-top: 30px;
}

.store-list a, .needs-category-list a {
    margin-top: 10px;
}

.product-stores:hover a, .product-needs-categories:hover a {
    color: white!important
}


/* Responsive */

@media (max-width: 768px) {
    .rental-product-single-layout {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .rental-product-single-layout .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rental-product-single-layout {
        padding: 0;
    }
}

@media (max-width: 600px) {
    .rental-product-single-layout .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== ADDITIONAL: Rent button + accordion (small, safe additions) ====== */

.rent-product-section {
	display: flex;
    flex-direction: column;
    margin-top: 10px;
    background: #e6f7fb;
    padding: 15px 20px;
	border-radius: 10px;
    color: #003366;
}

.rent-btn {
    display: inline-block;
    background: #fcb900;
    color: #003166;
    padding: 14px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 12px 0;
    font-weight: 600;
	font-size: 17px!important;
    transition: 0.3s ease;
}
.rent-btn:hover,
.rent-btn:focus {
    background: #e4aa0a;
    color: #003166;
}

.rent-form-wrap {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.45s ease;
    /* keep a little spacing for interior content */
    padding-top: 0;
    margin-top: 0;
}
.rent-form-wrap.open {
    /* large value to permit gravity form height */
    max-height: 2200px;
    margin-top: 10px;
	padding: 10px;
    border-radius: 10px;
}

.rent-form-wrap h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: #003166;
}
.rent-form-wrap .ginput_container input, .rent-form-wrap .ginput_container select, .rent-form-wrap .ginput_container textarea {
	background: white!important;
	border-color: rgba(0,0,0,.06);
}
	
.rent-form-wrap .ginput_container select {
	height: 45px;
	padding: 9px 12px
}

.mobility-scooter-notice {
    margin-top: 1.5em;
    padding: 1em;
    background-color: #f7f7f7;
    border-left: 4px solid #FFD400;
    font-size: 14px;
    color: #004a70;
	margin-bottom: 20px;
}