
/* WordPress + WooCommerce fidelity corrections based on the accepted HTML sketches. */
.top nav.nav ul.menu, .top nav.nav > ul { display:flex; flex-direction:row; align-items:center; gap:28px; list-style:none; padding:0; margin:0 }
.top nav.nav ul.menu > li, .top nav.nav > ul > li {list-style:none;padding:0;margin:0}
.top nav.nav a {white-space:nowrap}
@media(max-width:1015px){.top nav.nav ul.menu,.top nav.nav > ul{flex-direction:column;align-items:stretch;gap:0}}

/* Contact Form 7 emits a form without the .form class used by the original sketch. */
.ccard .wpcf7 form.wpcf7-form {display:grid;gap:18px;margin:0}
.ccard .wpcf7 form.wpcf7-form .two {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.ccard .wpcf7 .two > div {min-width:0}
.ccard .wpcf7 label{display:block;font-weight:600;font-size:.9375rem;margin:0 0 6px}
.ccard .wpcf7 .wpcf7-form-control-wrap{display:block; margin-top:6px}
.ccard .wpcf7 input:not([type=checkbox]):not([type=submit]),
.ccard .wpcf7 select,.ccard .wpcf7 textarea {display:block;box-sizing:border-box;width:100%;min-width:0;border:1px solid #8fa0b0;border-radius:2px;background:#fff;color:var(--ink);font:400 1rem/1.4 var(--font-b);padding:11px 14px;min-height:48px}
.ccard .wpcf7 textarea {min-height:120px;resize:vertical}
.ccard .wpcf7 .wpcf7-submit {display:inline-flex!important;width:auto!important;max-width:max-content!important;min-height:48px!important;padding:12px 26px!important;background:var(--ink)!important;border:1px solid var(--ink)!important;color:white!important;font:600 1rem/1.2 var(--font-d)!important;cursor:pointer!important;border-radius:2px!important}
.ccard .wpcf7 .wpcf7-submit:hover{background:var(--gold)!important;color:var(--ink)!important}
.ccard .wpcf7 .wpcf7-acceptance .wpcf7-list-item {margin:0;display:flex;align-items:center;gap:9px}
.ccard .wpcf7 .wpcf7-acceptance label{display:flex;align-items:center;gap:10px;font-weight:400;font-size:.875rem}
.ccard .wpcf7 .wpcf7-acceptance input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:none;margin:0;accent-color:var(--ink)}
.ccard .wpcf7 form.wpcf7-form p {margin:0}
.ccard .wpcf7 form.wpcf7-form > p:has(input[type=submit]) {justify-self:start}
.ccard .wpcf7 .wpcf7-not-valid-tip{font-size:.8125rem}
@media(max-width:619px){.ccard .wpcf7 form.wpcf7-form .two{grid-template-columns:1fr}}

/* WooCommerce catalog: avoid default float layout conflicting with the HTML sketch. */
.zb-woocommerce-shell .woocommerce-notices-wrapper{grid-column:1/-1}
.zb-woocommerce-shell .shop{align-items:start}
.zb-woocommerce-shell .zb-catalog-content {min-width:0}
.zb-woocommerce-shell ul.products{clear:both;list-style:none;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0;padding:0}
.zb-woocommerce-shell ul.products li.product {float:none!important;width:auto!important;margin:0!important;min-width:0}
.zb-woocommerce-shell ul.products .prod .ph {aspect-ratio:1; background:var(--sky-1)}
.zb-woocommerce-shell ul.products .prod img {width:100%!important;height:100%!important;object-fit:contain;margin:0!important}
.zb-woocommerce-shell ul.products .prod h3 {font:600 1.0625rem/1.3 var(--font-b);padding:0;margin:4px 0 8px}
.zb-woocommerce-shell ul.products .prod .price {display:block;color:var(--ink);font:600 1.0625rem/1.3 var(--font-d)}
.zb-woocommerce-shell .woocommerce-ordering{float:right;margin:8px 0 20px}
.zb-woocommerce-shell .woocommerce-result-count{float:left;margin:16px 0 20px}
.zb-woocommerce-shell .woocommerce-pagination{clear:both}
@media(max-width:900px){.zb-woocommerce-shell ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.zb-woocommerce-shell ul.products{grid-template-columns:1fr}}


/* Shared CF7 form design in Contacts and both homepage/service CTAs. */
.ccard .wpcf7 .zb-contact-fields, .card .wpcf7 .zb-contact-fields {display:grid;gap:18px}
.ccard .wpcf7 .zb-contact-fields>.two, .card .wpcf7 .zb-contact-fields>.two {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.ccard .wpcf7 .zb-contact-fields>.two>div, .card .wpcf7 .zb-contact-fields>.two>div {min-width:0}
.ccard .wpcf7 .zb-contact-fields label,.card .wpcf7 .zb-contact-fields label {display:block;font-weight:600;font-size:.875rem;line-height:1.4}
.ccard .wpcf7 .zb-contact-fields .wpcf7-form-control-wrap,.card .wpcf7 .zb-contact-fields .wpcf7-form-control-wrap {display:block;margin-top:7px}
.ccard .wpcf7 .zb-contact-fields input:not([type=checkbox]):not([type=submit]),.ccard .wpcf7 .zb-contact-fields select,.ccard .wpcf7 .zb-contact-fields textarea,
.card .wpcf7 .zb-contact-fields input:not([type=checkbox]):not([type=submit]),.card .wpcf7 .zb-contact-fields select,.card .wpcf7 .zb-contact-fields textarea {box-sizing:border-box;width:100%;max-width:100%;min-width:0;padding:10px 12px;min-height:43px;border:1px solid #a6b5c4;background:#fff;color:#1f2d3d;border-radius:0;font-size:1rem}
.ccard .wpcf7 .zb-contact-fields textarea,.card .wpcf7 .zb-contact-fields textarea {height:120px;min-height:120px}
.ccard .wpcf7 .zb-contact-submit input[type=submit],.card .wpcf7 .zb-contact-submit input[type=submit] {width:auto!important;min-width:0!important;max-width:max-content!important;display:inline-flex!important;min-height:40px!important;padding:9px 21px!important;background:#1f2d3d!important;color:white!important;border:1px solid #1f2d3d!important;border-radius:0!important;cursor:pointer}
.ccard .wpcf7 .zb-contact-consent,.card .wpcf7 .zb-contact-consent {font-size:.8125rem}
.ccard .wpcf7 .zb-contact-consent label,.card .wpcf7 .zb-contact-consent label {display:inline-flex;align-items:center;gap:8px;font-weight:400}
.ccard .wpcf7 .zb-contact-consent input[type=checkbox],.card .wpcf7 .zb-contact-consent input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0}
.ccard .wpcf7 .wpcf7-form p,.card .wpcf7 .wpcf7-form p{margin:0}
html {scroll-behavior:smooth;scroll-padding-top:85px}
#pakalpojumi,#par,#sakums {scroll-margin-top:85px}
@media(max-width:640px){.ccard .wpcf7 .zb-contact-fields>.two,.card .wpcf7 .zb-contact-fields>.two {grid-template-columns:1fr!important}}

/* Only actual page links receive the persistent active border. Anchor links are transient. */
.top nav.nav li:has(> a[href*="#pakalpojumi"]) > a:not(:hover),
.top nav.nav li:has(> a[href*="#par"]) > a:not(:hover) { border-bottom-color:transparent !important; }
.top nav.nav li:has(> a[href*="#pakalpojumi"]) > a:hover,
.top nav.nav li:has(> a[href*="#par"]) > a:hover { border-bottom-color:var(--gold-d) !important; }
.top nav.nav .current-menu-item > a[href*="#pakalpojumi"],
.top nav.nav .current-menu-item > a[href*="#par"] {border-bottom-color:transparent}
