/*
Theme Name: Turf Equipment Rentals
Theme URI: https://www.turfequipmentrentals.com/
Description: Custom block theme rebuilt from the original Turf Equipment Rentals site (Machinio). Includes the equipment listings system (rental + for sale), contact/subscribe forms, and a one-click importer for all original pages, listings, news posts and images (Appearance → Import Site Content).
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ter
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }

/* ---------- Header ---------- */
.ter-topbar {
	background: var(--wp--preset--color--primary);
	position: sticky; top: 0; z-index: 100;
}
.admin-bar .ter-topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .ter-topbar { top: 46px; } }
.ter-topbar .wp-block-navigation { font-size: 14px; font-weight: 700; text-transform: uppercase; }
.ter-topbar .wp-block-navigation .wp-block-navigation-item__content { color: #fff; padding: 12px 0; }
.ter-topbar .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent); }
.ter-topbar .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--primary) !important; border: 0 !important;
	min-width: 260px !important; padding: 6px 0; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.ter-topbar .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 18px !important; font-weight: 500; text-transform: none; font-size: 14px;
}
.ter-topbar .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: rgba(255,255,255,.1); }
.ter-topbar .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--primary) !important; color: #fff !important; }
.ter-topbar .wp-block-navigation__responsive-container-open svg { fill: #fff; }
.ter-join { color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.ter-join:hover { color: var(--wp--preset--color--accent); }

.ter-header-main { background: #fff; }
.ter-header-phone a { color: var(--wp--preset--color--contrast); font-size: 15px; display: inline-flex; align-items: center; gap: 14px; }
.ter-header-phone svg { width: 26px; height: 40px; fill: var(--wp--preset--color--primary); }
.ter-header-main .wp-block-site-logo img { width: 110px; height: auto; }
.ter-icons { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.ter-icons a {
	width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--wp--preset--color--primary);
	display: inline-flex; align-items: center; justify-content: center; color: var(--wp--preset--color--primary); transition: .2s;
}
.ter-icons a svg { width: 16px; height: 16px; fill: currentColor; }
.ter-icons a:hover, .ter-icons a.ter-search-icon { background: var(--wp--preset--color--primary); color: #fff; }
@media (max-width: 781px) {
	.ter-header-main .ter-header-phone, .ter-header-main .ter-icons { display: none; }
	.ter-header-main .wp-block-site-logo img { width: 80px; }
}

/* ---------- Hero slider ---------- */
.ter-hero { position: relative; overflow: hidden; }
.ter-hero .ter-slide { position: absolute !important; inset: 0; opacity: 0; transition: opacity 1s ease; margin: 0 !important; }
.ter-hero .ter-slide.is-active { position: relative !important; opacity: 1; z-index: 1; }
.ter-hero .ter-slide h1, .ter-hero .ter-slide h2 { text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.ter-hero .ter-slide p { text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.ter-hero-bar {
	position: absolute !important; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0 !important;
	display: flex; justify-content: space-between; align-items: center; padding: 14px 30px;
	color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1px; pointer-events: none;
}
.ter-hero-bar a { color: #fff; pointer-events: auto; }
.ter-hero-controls { display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.ter-hero-controls button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 22px; line-height: 1; padding: 4px; }
.ter-hero-controls .ter-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; padding: 0; }
.ter-hero-controls .ter-dot.is-active { background: #fff; }
@media (max-width: 781px) { .ter-hero-bar .ter-hide-sm { display: none; } .ter-hero-bar { justify-content: center; } }

/* ---------- Quick links ---------- */
.ter-quicklinks { gap: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.ter-hero + .ter-quicklinks, .ter-hero { margin-top: 0 !important; margin-bottom: 0 !important; }
.ter-hero-bar svg { width: 16px; height: 16px; fill: #fff; vertical-align: -3px; margin-right: 6px; }
.ter-quicklinks > .wp-block-column { margin: 0 !important; }
.ter-quicklink { position: relative; }
.ter-quicklink h3 a { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.ter-quicklink h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.ter-quicklink .wp-block-cover__image-background { transition: transform .5s; }
.ter-quicklink:hover .wp-block-cover__image-background { transform: scale(1.05); }

/* ---------- Search bar ---------- */
.ter-searchbar .wp-block-search__inside-wrapper { background: #fff; border: 0 !important; box-shadow: 0 2px 10px rgba(0,0,0,.12); padding: 0 !important; }
.ter-searchbar .wp-block-search__input { border: 0; padding: 14px 16px; font-size: 14px; }
.ter-searchbar .wp-block-search__button { margin: 0; background: var(--wp--preset--color--primary); color: #fff; padding: 0 30px; border-radius: 0; }

/* ---------- Section heading with lines ---------- */
.ter-line-heading { display: flex; align-items: center; gap: 24px; }
.ter-line-heading::before, .ter-line-heading::after { content: ""; flex: 1; height: 2px; background: var(--wp--preset--color--primary); opacity: .7; }

/* ---------- Blue boxes ---------- */
.ter-bluebox { border-radius: 10px; }
.ter-bluebox h2 a, .ter-bluebox h3 a { color: #fff; }
.ter-bluebox h2 a:hover, .ter-bluebox h3 a:hover { color: var(--wp--preset--color--accent); }
.ter-cards > .wp-block-column { display: flex; }
.ter-cards > .wp-block-column > .ter-bluebox { flex: 1; }
.is-style-outline-light .wp-block-button__link { background: transparent !important; border: 1px solid #fff !important; color: #fff !important; }
.is-style-outline-light .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--primary) !important; }

/* ---------- Partners marquee ---------- */
.ter-marquee { overflow: hidden; }
.ter-marquee-track { display: flex; gap: 24px; width: max-content; animation: ter-marquee 35s linear infinite; }
.ter-marquee:hover .ter-marquee-track { animation-play-state: paused; }
.ter-marquee-track figure { margin: 0; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.08); width: 180px; height: 90px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.ter-marquee-track img { max-width: 100%; max-height: 70px; object-fit: contain; }
@keyframes ter-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Pill buttons ---------- */
.is-style-pill .wp-block-button__link { border-radius: 40px !important; min-width: 200px; text-align: center; font-weight: 700; letter-spacing: .5px; }

/* ---------- Inner pages ---------- */
.ter-page-title { border-bottom: 3px solid var(--wp--preset--color--primary); padding-bottom: 6px; }
.ter-content-box { background: #fff; }
.ter-content-box h3, .ter-content-box h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ter-content-box p { margin-top: 0; }

/* ---------- Footer ---------- */
.ter-footer-main { color: #999; }
.ter-footer-main h4 { color: var(--wp--preset--color--contrast); font-size: 18px; font-weight: 700; text-transform: uppercase; display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.ter-footer-main h4 svg { width: 16px; height: 16px; fill: var(--wp--preset--color--contrast); }
.ter-footer-main .ter-label { font-size: 13px; text-transform: uppercase; margin: 0; color: #999; }
.ter-footer-main p { color: var(--wp--preset--color--contrast); font-size: 15px; margin-top: 2px; }
.ter-footer-main a { color: var(--wp--preset--color--contrast); }
.ter-explore { list-style: none; padding: 0; margin: 0; }
.ter-explore li { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; }
.ter-explore li::before { content: "\25B8"; margin-right: 8px; color: var(--wp--preset--color--contrast); }
.ter-footer-bottom { color: #fff; font-size: 14px; }
.ter-footer-bottom a { color: #fff; }
.ter-footer-bottom .ter-icons a { border: 0; width: 26px; height: 26px; color: #fff; background: none; }
.ter-footer-bottom .ter-icons a:hover { color: var(--wp--preset--color--accent); background: none; }

/* ---------- Forms ---------- */
.ter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ter-form .ter-full { grid-column: 1 / -1; }
.ter-form label { display: block; font-size: 14px; margin-bottom: 4px; color: var(--wp--preset--color--contrast); }
.ter-form input[type=text], .ter-form input[type=email], .ter-form input[type=tel], .ter-form textarea {
	width: 100%; box-sizing: border-box; border: 1px solid #dee2e6; padding: 10px 12px; font: inherit; font-size: 15px; background: #fff; border-radius: 2px;
}
.ter-form textarea { min-height: 120px; resize: vertical; }
.ter-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ter-btn, .ter-form button {
	background: var(--wp--preset--color--primary); color: #fff; border: 0; padding: 10px 28px; font: inherit; font-size: 15px; cursor: pointer; border-radius: 4px; display: inline-block; text-align: center;
}
.ter-btn:hover, .ter-form button:hover { background: #0f3a63; color: #fff; }
.ter-notice { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; }
.ter-notice.ok { background: #e6f2e1; color: #2d5a1e; }
.ter-notice.err { background: #f8d7da; color: #721c24; }
@media (max-width: 600px) { .ter-form { grid-template-columns: 1fr; } }

.ter-subscribe { display: flex; border-radius: 40px; box-shadow: 0 4px 14px rgba(0,0,0,.12); overflow: hidden; background: #fff; max-width: 380px; }
.ter-subscribe input[type=email] { flex: 1; border: 0; padding: 14px 18px; font: inherit; font-size: 14px; min-width: 0; }
.ter-subscribe button { align-self: stretch; margin: 0; min-height: 48px; border-radius: 40px; background: #6a8fb3; color: #fff; border: 0; padding: 0 28px; cursor: pointer; font: inherit; font-size: 14px; }
.ter-subscribe button:hover { background: var(--wp--preset--color--primary); }

.ter-contact-box { background: #1b1b1b; color: #fff; border-radius: 6px; padding: 26px; }
.ter-contact-box .ter-ci { margin-bottom: 18px; }
.ter-contact-box .ter-ci strong { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 400; color: #ccc; }
.ter-contact-box .ter-ci strong svg { width: 14px; height: 14px; fill: var(--wp--preset--color--accent); }
.ter-contact-box a, .ter-contact-box .ter-ci span { color: #fff; font-weight: 700; font-size: 14px; }

/* ---------- Equipment ---------- */
.ter-eq-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .ter-eq-wrap { grid-template-columns: 1fr; } }
.ter-eq-side { background: #fff; border-radius: 6px; padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.ter-eq-side summary { list-style: none; cursor: pointer; }
.ter-eq-side summary::-webkit-details-marker { display: none; }
@media (max-width: 900px) { .ter-eq-side summary h4::after { content: " ▾"; } .ter-eq-side:not([open]) h4 { margin: 0; } }
.ter-eq-side h4 { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--wp--preset--color--contrast); }
.ter-eq-side ul { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow: auto; }
.ter-eq-side li a { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; color: #333; font-size: 14px; line-height: 1.35; }
.ter-eq-side li a::before { content: ""; flex: 0 0 16px; height: 16px; border: 1px solid #888; border-radius: 3px; margin-top: 1px; }
.ter-eq-side li a.is-current::before { background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.2 11.3 2.9 8l1-1 2.3 2.3 5.9-5.9 1 1z'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--wp--preset--color--primary); }
.ter-eq-side li a:hover { color: var(--wp--preset--color--primary); }
.ter-eq-side li a .ter-count { color: #999; margin-left: auto; }
.ter-eq-side li.ter-child a { padding-left: 22px; }
.ter-eq-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.ter-eq-head h1 { margin: 0; font-size: 28px; }
.ter-eq-crumbs { font-size: 14px; color: #555; margin-bottom: 8px; }
.ter-eq-crumbs a { color: var(--wp--preset--color--contrast); font-weight: 500; }
.ter-eq-bar { display: grid; grid-template-columns: 1fr 200px; gap: 16px; margin: 10px 0 18px; padding-top: 8px; border-top: 3px solid var(--wp--preset--color--primary); }
.ter-eq-bar form { display: flex; }
.ter-eq-bar input[type=search] { flex: 1; border: 1px solid #ccc; padding: 9px 12px; font: inherit; font-size: 15px; min-width: 0; }
.ter-eq-bar form button { background: var(--wp--preset--color--primary); color: #fff; border: 0; padding: 0 14px; cursor: pointer; }
.ter-eq-bar select { border: 1px solid #ccc; padding: 9px 12px; font: inherit; font-size: 15px; background: #fff; border-radius: 4px; }
@media (max-width: 600px) { .ter-eq-bar { grid-template-columns: 1fr; } }
.ter-eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.ter-card { background: #fff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.ter-card-img { display: block; aspect-ratio: 4/3; background: #111; overflow: hidden; }
.ter-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ter-card:hover .ter-card-img img { transform: scale(1.04); }
.ter-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.ter-card h3 { font-size: 18px; margin: 0 0 8px; line-height: 1.25; }
.ter-card h3 a { color: var(--wp--preset--color--contrast); }
.ter-card h3 a:hover { color: var(--wp--preset--color--primary); }
.ter-card p { font-size: 13px; color: #555; margin: 0 0 12px; }
.ter-card .ter-price { font-weight: 700; color: var(--wp--preset--color--contrast); font-size: 16px; margin-top: auto; }
.ter-card .ter-btn { align-self: flex-start; margin-top: auto; padding: 12px 22px; }
.ter-card .ter-price + .ter-btn { margin-top: 12px; }
.ter-pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.ter-pager a, .ter-pager span { padding: 6px 12px; border: 1px solid #ccc; background: #fff; color: #333; border-radius: 3px; }
.ter-pager .current { background: var(--wp--preset--color--primary); color: #fff; border-color: var(--wp--preset--color--primary); }
.ter-empty { background: #fff; padding: 30px; border-radius: 6px; text-align: center; }

.ter-single { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .ter-single { grid-template-columns: 1fr; } }
.ter-gallery-main { background: #111; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.ter-gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ter-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ter-thumbs button { width: 70px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: #fff; }
.ter-thumbs button.is-active { border-color: var(--wp--preset--color--primary); }
.ter-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ter-panel { background: #fff; border-radius: 6px; padding: 20px 22px; margin-bottom: 20px; }
.ter-panel h1 { font-size: 26px; margin: 0 0 10px; font-weight: 500; }
.ter-panel .ter-bigprice { color: var(--wp--preset--color--primary); font-size: 34px; font-weight: 700; margin: 0 0 14px; }
.ter-panel .ter-btn { display: block; width: 100%; box-sizing: border-box; padding: 12px; }
.ter-panel .ter-call { text-align: center; margin: 16px 0 0; font-size: 14px; }
.ter-panel .ter-call a { color: var(--wp--preset--color--contrast); }
.ter-panel h2 { font-size: 20px; font-weight: 500; margin: 0 0 10px; }
.ter-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.ter-specs td { padding: 12px 0; border-bottom: 1px solid #e5e5e5; }
.ter-specs td:first-child { color: #666; width: 45%; }
.ter-eq-meta { font-size: 13px; color: #666; margin-bottom: 8px; }
.ter-eq-meta a { color: var(--wp--preset--color--primary); }

/* ---------- Blog ---------- */
.ter-post-card { background: #fff; border-radius: 8px; overflow: hidden; height: 100%; }
.ter-post-card .wp-block-post-featured-image { margin: 0; }
.ter-post-body { background: #fff; }
.ter-post-body img { max-width: 100%; height: auto; }

/* Links on dark photo sections */
.wp-block-cover p a:not(.wp-block-button__link) { color: var(--wp--preset--color--accent); text-decoration: underline; }

/* ---------- Mobile header + menu ---------- */
@media (max-width: 599px) {
	/* "Join email list" on the left, menu button on the right */
	.ter-topbar { justify-content: space-between !important; padding-top: 4px !important; padding-bottom: 4px !important; }
	.ter-topbar > .wp-block-navigation { order: 2; margin-left: auto; }
	.ter-topbar .wp-block-navigation__responsive-container-open { padding: 8px 0; }
	.ter-topbar .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
}

/* Full-screen menu: left-aligned list, submenus fold open/closed */
.ter-topbar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important; padding-top: 56px !important;
}
.ter-topbar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch !important; width: 100%; gap: 0 !important;
}
.ter-topbar .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	width: 100%; flex-direction: row !important; flex-wrap: wrap; align-items: center !important;
	border-bottom: 1px solid rgba(255,255,255,.18);
}
.ter-topbar .is-menu-open .wp-block-navigation-item__content { padding: 14px 4px !important; font-size: 16px; flex: 1; text-align: left; }
.ter-topbar .is-menu-open .wp-block-navigation__submenu-icon {
	display: flex !important; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 !important; padding: 0;
	color: #fff; background: none; border: 0; cursor: pointer;
}
.ter-topbar .is-menu-open .wp-block-navigation__submenu-icon svg { width: 16px; height: 16px; stroke: currentColor; transition: transform .2s; }
.ter-topbar .is-menu-open .ter-open > .wp-block-navigation__submenu-icon svg { transform: rotate(180deg); }
.ter-topbar .is-menu-open .wp-block-navigation__submenu-container {
	display: none !important; position: static !important; width: 100% !important; min-width: 0 !important;
	background: transparent !important; box-shadow: none !important; padding: 0 0 10px 14px !important;
	opacity: 1 !important; visibility: visible !important; height: auto !important; gap: 0 !important;
}
.ter-topbar .is-menu-open .ter-open > .wp-block-navigation__submenu-container { display: flex !important; flex-direction: column; align-items: stretch !important; }
.ter-topbar .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 4px !important; font-size: 15px; font-weight: 400; text-transform: none; opacity: .92;
}
.ter-topbar .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: none; opacity: 1; }
.ter-topbar .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { width: 100%; justify-content: flex-start !important; align-items: flex-start !important; }
.ter-topbar .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { text-align: left !important; width: 100%; }

/* Service cards with photo on top */
.ter-service-card { overflow: hidden; display: flex; flex-direction: column; }
.ter-service-card > * { margin-block-start: 0 !important; }
.ter-service-card .ter-card-photo { margin: 0; overflow: hidden; }
.ter-service-card .ter-card-photo img { width: 100%; display: block; transition: transform .5s; }
.ter-service-card:hover .ter-card-photo img { transform: scale(1.04); }

/* White bar between the hero slideshow and the three category tiles */
.ter-hero + .ter-quicklinks { border-top: 10px solid #fff; }
.ter-powered { color: var(--wp--preset--color--lime); font-weight: 700; }

/* ---------- Accessibility & legal ---------- */
.ter-subscribe button { background: var(--wp--preset--color--primary); }
.ter-subscribe button:hover { background: #0f3a63; }
.ter-footer-main .ter-label { color: #666; }
.ter-consent { font-size: 12px; color: #555; margin: 8px 0 0; }
.ter-consent a { text-decoration: underline; }
.ter-disclaimer { font-size: 12px; color: #555; text-align: center; margin: 10px 0 0; }
.ter-post-body p a, .ter-content-box p a, .ter-content-box li a, .ter-desc a, .ter-eq-desc a { text-decoration: underline; }
.ter-footer-bottom p a { text-decoration: underline; text-underline-offset: 2px; }
/* WordPress wraps shortcode output in paragraphs; keep the subscribe field and button side by side */
.ter-subscribe p { display: contents; }
.ter-subscribe br { display: none; }
.ter-footer-bottom a.ter-powered { color: var(--wp--preset--color--lime); text-decoration: none; font-weight: 700; }
.ter-footer-bottom a.ter-powered:hover, .ter-footer-bottom a.ter-powered:focus { color: #fff; text-decoration: underline; }

/* ---------- Pop-up quote form ---------- */
.ter-quote { border: 0; border-radius: 10px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.ter-quote::backdrop { background: rgba(10, 25, 40, .6); }
.ter-quote-inner { position: absolute; top: 8px; right: 8px; margin: 0; }
.ter-quote-close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: #555; padding: 4px 10px; }
.ter-quote-close:hover { color: var(--wp--preset--color--primary); }
.ter-quote-body { padding: 26px 26px 22px; }
.ter-quote-body h2 { margin: 0 0 6px; font-size: 24px; color: var(--wp--preset--color--primary); }
.ter-quote-machine { margin: 0 0 16px; padding: 10px 12px; background: #eef4fa; border-left: 4px solid var(--wp--preset--color--primary); font-size: 15px; }
.ter-quote-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.ter-quote-actions a { color: var(--wp--preset--color--primary); font-weight: 700; }
.ter-quote .ter-form { gap: 10px 14px; }
.ter-quote .ter-form textarea { min-height: 80px; }
.ter-card .ter-btn { margin-top: auto; }
