/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.9
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/

/* A closed desktop submenu must also hide price variants that explicitly
 * declare visibility:visible. Otherwise its transparent prices receive hover
 * over unrelated page content and reopen the menu. Keep native hover/focus
 * opening and the mobile dropdown unchanged. */
@media (min-width: 993px) {
    .main-navigation ul.menu > li.menu-item-has-children:not(:hover):not(:focus-within) > .sub-menu-wrapper .tkpp-value {
        visibility: hidden;
    }
}

/* TKWatch existing top/promotion/footer widgets, 2026-10-24. Content: Appearance > Widgets. */
.top-bar .tkw-top-item { display:inline-flex; align-items:center; gap:7px; vertical-align:middle; white-space:nowrap; }
.top-bar .tkw-top-icon { width:17px; height:17px; flex:0 0 17px; color:#EBBA69; }
.top-bar .tkw-whatsapp-icon { color:#25D366; }
.top-bar .tkw-whatsapp-link { text-decoration:none; }
.top-bar .tkw-whatsapp-link:hover { text-decoration:underline; }
.top-bar .tkw-whatsapp-link:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
.below-content .tkw-benefit-icon { fill:none; }
@media (max-width:767px) {
  .top-bar:has(.tkw-top-item) > .col-full { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-inline:15px; box-sizing:border-box; }
  :root .top-bar .top-bar-left:has(.tkw-top-item),:root .top-bar .top-bar-right:has(.tkw-top-item) { display:flex; width:auto; flex:0 1 auto; }
  .top-bar .top-bar-center { display:none; }
  .top-bar .tkw-top-item { font-size:12px; gap:5px; }
}

/* Native footer widgets: full-width introduction and editable theme-aware media. */
.site-footer > .col-full:has(.tk-footer-intro) { flex-wrap: wrap; }
.site-footer > .col-full > .widget:has(.tk-footer-intro) { flex: 0 0 100%; width: 100%; margin-bottom: 32px; }
.tk-footer-intro { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(128,128,128,.35); }
.tk-footer-brand img { width: 280px; max-width: 100%; height: auto; display: block; }
.tk-footer-brand p { margin: 8px 0 0; font-size: 14px; color: #EBBA69; }
.tk-footer-newsletter { width: 440px; max-width: 100%; }
.tk-footer-newsletter h2 { font: inherit; font-size: 18px; font-weight: 600; margin: 0 0 8px; color: inherit; }
.tk-footer-newsletter p { margin: 0 0 10px; font-size: 14px; }
.tk-footer-newsletter .tk-footer-subscribe { display: flex; gap: 8px; margin: 0 0 8px; }
.tk-footer-subscribe input { flex: 1; width: 0; min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid #8b9198; border-radius: 4px; background: #fff; color: #252a30; }
.tk-footer-subscribe button { padding: 10px 20px; border-radius: 4px; border: 0; background: #EBBA69; color: #191c20; }
.tk-footer-subscribe button:disabled { cursor: not-allowed; opacity: .65; }
.tk-footer-newsletter .tk-footer-privacy { font-size: 12px; margin-bottom: 4px; }
.tk-footer-newsletter .tk-footer-pending { font-size: 11px; margin: 0; }
.tk-footer-rwi a { display: block; margin-bottom: 8px; }
.tk-footer-rwi img { display: block; width: 100%; height: auto; margin: 0; }
.tk-footer-rwi .tk-footer-dark { display: none; }
html[data-tk-theme="dark"] .tk-footer-rwi .tk-footer-light { display: none; }
html[data-tk-theme="dark"] .tk-footer-rwi .tk-footer-dark { display: block; }
html[data-tk-theme="dark"] .tk-footer-subscribe input { background: #2a2f35; color: #f0f1f2; }
.tk-footer-payments { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; align-items: center; }
.tk-footer-payments img { width: 66px; height: auto; margin: 0; display: block; }
@media (max-width: 767px) {
 .tk-footer-intro { flex-direction: column; align-items: flex-start; gap: 24px; }
 .tk-footer-newsletter { width: 100%; }
 .tk-footer-payments { justify-content: flex-start; }
}

/* Owner-requested footer refinements; preserve existing column layout. */
#page .site-footer .tk-footer-brand { width: 280px; max-width: 100%; }
#page .site-footer .tk-footer-brand p { color: #EBBA69; margin: 0 0 0 2.407%; width: 92.879%; font-size: 15.5px; line-height: 1.25; white-space: nowrap; letter-spacing: 0; }
#page .site-footer .tk-footer-newsletter h2 { font-size: 22px; line-height: 1.3; text-transform: none; }
html.tkdm-poc[data-tk-theme="dark"] #page .site-footer .tk-footer-brand p { color: #EBBA69; }
html.tkdm-poc[data-tk-theme="dark"] #page .site-footer :is(#text-9,#text-10,#text-11,#text-16) a { color: #999; }
html.tkdm-poc[data-tk-theme="dark"] #page .site-footer :is(#text-9,#text-10,#text-11,#text-16) a:is(:hover,:focus-visible) { color: #EBBA69; text-decoration: underline; }
#page .site-footer .tk-footer-rwi { width: 73.809524%; }

/* Shared QC and service styling: theme tokens, existing content and motion retained. */
#page .tkw-qc-experience { background-color:var(--tk-surface); }
#page .tkw-qc-experience h2 { color:var(--tk-text); }
#page .tkw-qc-experience p.elementor-heading-title { color:var(--tk-muted); }
html[data-tk-theme="light"] #page .below-content { background:var(--tk-surface); color:var(--tk-text); }
html[data-tk-theme="light"] #page .below-content .widget-title { color:var(--tk-text); }
html[data-tk-theme="light"] #page .below-content a { color:var(--tk-muted); }
#page .tkw-qc-experience .elementor-button { font-weight:700; }
#page .tkw-qc-experience { padding-top:28px; padding-bottom:28px; }
#page .tkw-qc-experience .elementor-widget-image { margin-bottom:0; }
#page .below-content { padding:20px 0; border-top:0; }
#page .below-content > .col-full { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
#page .below-content > .col-full::before,#page .below-content > .col-full::after { display:none; }
#page .below-content .widget { display:grid; grid-template-columns:44px minmax(0,1fr); grid-template-rows:auto auto; gap:4px 10px; align-content:start; width:auto; min-width:0; margin:0; padding:0; position:relative; }
#page .below-content .widget-title { display:block; grid-column:2; grid-row:1; padding:0; margin:0; font-size:15px; line-height:1.35; font-weight:600; }
#page .below-content .textwidget { display:contents; }
#page .below-content .textwidget > p { grid-column:2; grid-row:2; }
#page .below-content .tkw-benefit-icon { position:static; grid-column:1; grid-row:1 / 3; align-self:center; width:44px; height:44px; color:var(--tk-text); stroke:currentColor; fill:none; }
#page .below-content .textwidget,#page .below-content p { padding:0; margin:0; }
#page .below-content a { display:inline-block; font-size:14px; line-height:1.5; }
#page .below-content a:is(:hover,:focus-visible) { text-decoration:underline; text-underline-offset:3px; }
@media(max-width:767px) {
 #page .tkw-qc-experience { padding-top:22px; padding-bottom:22px; }
 #page .tkw-qc-experience > .elementor-container > .elementor-column:first-child > .elementor-widget-wrap { padding-bottom:16px; }
 #page .below-content { padding:18px 0 22px; }
 #page .below-content > .col-full { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
 #page .below-content .widget { grid-template-columns:32px minmax(0,1fr); column-gap:8px; }
 #page .below-content .widget-title { font-size:14px; }
 #page .below-content .tkw-benefit-icon { width:32px; height:32px; }
 #page .below-content a { font-size:13px; }
}

/* Footer: four balanced text columns and a separate, centered RWI badge row. */
#page .site-footer #text-12 { flex:0 0 100%; width:100%; grid-column:1 / -1; margin:24px 0 0; }
#page .site-footer #text-12 .tk-footer-rwi { display:flex; justify-content:center; align-items:center; gap:16px; width:100%; max-width:none; }
#page .site-footer #text-12 .tk-footer-rwi a { flex:0 1 210px; max-width:calc((100% - 16px) / 2); margin:0; }
#page .site-footer #text-12 .tk-footer-rwi img { width:100%; height:auto; }
@media (max-width:992px) {
 #page .site-footer > .col-full { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:24px; }
 #page .site-footer #block-7 { grid-column:1 / -1; }
 #page .site-footer :is(#text-9,#text-10,#text-11,#text-16) { width:auto; min-width:0; margin-bottom:24px; }
 #page .site-footer :is(#text-9,#text-10,#text-11,#text-16) .widget-title { font-size:16px; margin-bottom:12px; }
 #page .site-footer :is(#text-9,#text-10,#text-11,#text-16) li { margin-bottom:8px; font-size:14px; line-height:1.5; }
 #page .site-footer #text-12 { margin-top:8px; margin-bottom:24px; }
}
/* Keep copyright left aligned after the payment widget is deactivated natively. */
#page .copyright #text-13 { text-align:left; }


/* Shared primary actions read the native Shoptimizer Customizer colors. */
html[data-tk-theme="dark"] { --tkw-primary-bg:var(--tk-brand-gold); --tkw-primary-text:var(--tk-bg); --tkw-primary-hover:var(--tk-gold-hover); }
#page .tkw-primary-action .elementor-button {
 display:inline-flex; align-items:center; justify-content:center; gap:8px;
 min-height:44px; padding:10px 14px; font-size:14px; line-height:1.3;
 background:var(--tkw-primary-bg); color:var(--tkw-primary-text); border-radius:4px;
 font-weight:600; text-decoration:none;
}
#page .tkw-primary-action .elementor-button:hover { background:var(--tkw-primary-hover); color:var(--tkw-primary-text); }
#page .tkw-primary-action .elementor-button:focus-visible { outline:2px solid var(--tk-text); outline-offset:3px; }
#page .tkw-qc-experience .tkw-primary-action { width:auto; margin:0 10px 0 0; }
#page .tkw-qc-experience .tkw-primary-action + .tkw-primary-action { margin-right:0; }
#page .tkw-qc-experience .elementor-widget-image { padding:0; background:transparent; }
#page .tkw-qc-experience .elementor-widget-image img { width:100%; height:auto; display:block; }
@media(max-width:767px) {
 #page .tkw-qc-experience .tkw-primary-action { width:calc((100% - 8px)/2); margin:0 8px 0 0; }
 #page .tkw-qc-experience .tkw-primary-action + .tkw-primary-action { margin-right:0; }
 #page .tkw-qc-experience .tkw-primary-action .elementor-button { width:100%; min-height:44px; padding:10px 6px; font-size:13px; white-space:nowrap; }
}
@media(prefers-reduced-motion:reduce) {
 .tkw-qc-experience .elementor-element { animation:none!important; transition:none!important; visibility:visible!important; }
 .tkw-qc-experience .elementor-button:hover { transform:none!important; }
}

/* Native Shoptimizer caret needs the existing dark palette; interaction stays native. */
html.tkdm-poc[data-tk-theme="dark"] #page .main-navigation ul.menu li.menu-item-has-children span.caret::after {
    background-color: var(--tk-text);
}

/* Native menu groups and the three-column Built for Reps feature menu. */
#page .main-navigation .tkw-menu-heading > span:not(.caret) { display:block; padding:10px 0 6px; color:var(--tk-muted); font-size:12px; font-weight:600; letter-spacing:.04em; }
#page .main-navigation .tkw-menu-all { margin-top:8px; border-top:1px solid var(--tk-border); padding-top:8px; }
/* Three decorative diagrams share the native menu's titles, descriptions and links. */
#page .main-navigation .tkw-feature-menu .tkw-feature-card > a {
 display:block; height:100%; white-space:normal; text-decoration:none;
}
#page .main-navigation .tkw-feature-menu .tkw-feature-card > a > span {
 display:flex; flex-direction:column; min-width:0;
}
#page .main-navigation .tkw-feature-menu .tkw-feature-title {
 display:block; font-size:18px; line-height:1.35; font-weight:600; letter-spacing:0;
}
#page .main-navigation .tkw-feature-menu .tkw-feature-art {
 display:flex; align-items:center; justify-content:center; min-width:0; margin-top:16px;
 aspect-ratio:15 / 8; overflow:hidden; background:var(--tk-bg); color:var(--tk-text);
 border:1px solid var(--tk-border); border-radius:4px;
}
#page .main-navigation .tkw-feature-menu .tkw-feature-illustration {
 display:block; width:100%; height:auto; max-height:210px; margin:0;
}
#page .main-navigation .tkw-feature-menu .tkw-feature-card .sub {
 display:block; margin-top:14px; color:var(--tk-muted); font-size:14px;
 font-weight:400; line-height:1.55; white-space:normal; letter-spacing:0;
}
#page .main-navigation .tkw-feature-menu .tkw-feature-card > a:is(:hover,:focus-visible) .tkw-feature-art {
 border-color:currentColor;
}
#page .main-navigation .tkw-feature-menu .tkw-feature-card > a:focus-visible {
 outline:2px solid currentColor; outline-offset:5px;
}
@media(min-width:1200px) {
 /* Fit the native Live Inventory entry without changing the site's content width or type. */
 #page .menu-primary-menu-container > ul > li > a { padding-left:.4em; padding-right:.4em; }
 #page .menu-primary-menu-container > ul > li:first-child > a { padding-left:0; }
 #page .col-full-nav .main-navigation li.full-width > .sub-menu-wrapper { top:100%; }
 #page .main-navigation ul li.tkw-feature-menu.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li {
  width:33.3333%;
 }
}
@media(max-width:1199px) {
 #page .main-navigation .tkw-feature-menu > .sub-menu-wrapper { padding-left:8px; padding-right:8px; }
 #page .main-navigation .tkw-feature-menu .tkw-feature-card > a {
  width:100%; padding:12px 0; border-bottom:1px solid var(--tk-border);
 }
 #page .main-navigation .tkw-feature-menu .tkw-feature-card:last-child > a { border-bottom:0; }
 #page .main-navigation .tkw-feature-menu .tkw-feature-card > a > span {
  display:grid; grid-template-columns:minmax(0,1fr); gap:6px; align-items:start;
 }
 #page .main-navigation .tkw-feature-menu .tkw-feature-title { grid-column:1; grid-row:1; font-size:16px; }
 #page .main-navigation .tkw-feature-menu .tkw-feature-card .sub {
  grid-column:1; grid-row:3; margin:0; font-size:13px; line-height:1.45;
 }
 #page .main-navigation .tkw-feature-menu .tkw-feature-art {
  grid-column:1; grid-row:2; margin:0; width:100%;
 }
}

/* Keep native account paging together and clear of the service footer. */
.woocommerce-MyAccount-content .woocommerce-pagination--without-numbers {
 display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;
 clear:both;margin:24px 0 40px;
}
.woocommerce-MyAccount-content .woocommerce-pagination--without-numbers.woocommerce-Pagination a.woocommerce-button {
 float:none;margin:0;
}
