/* TN Hemp fix45 (preview). Desktop rules live only in min-width:768px; phone rules only in max-width:767px. */

/* ================= shared (both sizes, behavior only) ================= */
.t44-hero .t44-fontbtn .t45-aa{font-family:Georgia,"Times New Roman",serif;font-weight:700;font-size:15px;letter-spacing:-.02em;color:#fff;line-height:1}
.t41 .t44-tell .t44-donebar{flex-wrap:wrap}
.t41 .t44-tell.is-done .t44-ok{display:inline-flex;align-items:center;gap:4px;background:#e7f6ec;color:#1F7A3F;border:1px solid #bfe5cc;border-radius:999px;padding:5px 12px;font-weight:800;font-size:14px;line-height:1.2}
.t41 .t44-tell .t44-edit.t45-editbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 18px;border:2px solid #0b2a55;border-radius:999px;background:#fff;color:#0b2a55;font-weight:800;font-size:15px;text-decoration:none;cursor:pointer;transition:background .15s,color .15s,transform .1s}
.t41 .t44-tell .t44-edit.t45-editbtn:hover{background:#0b2a55;color:#fff}
.t41 .t44-tell .t44-edit.t45-editbtn:active{transform:scale(.97)}
.t41 .t44-tell.is-editing .t44-donebar .t44-edit{display:none}
/* Minimized (not finished yet): show the bar with the button only */
.t41 .t44-tell.t45-min .t44-donebar{display:flex;align-items:center;gap:8px;margin:6px 0 2px}
.t41 .t44-tell.t45-min:not(.is-done) .t44-ok{display:none}
.t41 .t44-tell.t45-min form#t41-about-form{display:none}
/* Save feedback */
#t41-about-form .save-row button[type=submit],.t45-wt-save{transition:background .15s,transform .08s}
#t41-about-form .save-row button[type=submit]:active,.t45-wt-save:active{transform:scale(.96)}
#t41-about-form .save-row button.t45-busy,.t45-wt-save.t45-busy{opacity:.85;cursor:progress}
#t41-about-form .save-row button.t45-saved,.t45-wt-save.t45-saved{background:#1F7A3F!important;border-color:#1F7A3F!important;color:#fff!important}
.t44-formerr{color:#b42318;font-weight:700;margin:8px 0 0;font-size:14px}
/* inline weight editor in the dog guide */
.t45-wt{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin:0}
.t45-wt-l{font-weight:800;color:#0b2a55;font-size:15px}
.t45-wt-box{display:inline-flex;align-items:center;border:2px solid #c9d9e8;border-radius:999px;background:#fff;padding:0 12px 0 4px;min-height:44px}
.t45-wt-box input{width:76px;border:0!important;background:transparent!important;font-size:17px;font-weight:800;color:#0b2a55;padding:6px 6px!important;box-shadow:none!important;outline:none;-moz-appearance:textfield}
.t45-wt-box input::-webkit-outer-spin-button,.t45-wt-box input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.t45-wt-box:focus-within{border-color:#0b2a55}
.t45-wt-u{color:#5C6F86;font-weight:700}
.t45-wt-save{min-height:44px;padding:0 20px;border-radius:999px;border:2px solid #0b2a55;background:#0b2a55;color:#fff;font-weight:800;font-size:15px;cursor:pointer}
.t45-wt-msg{font-size:13px;font-weight:700;color:#1F7A3F;flex-basis:100%}
.t45-wt-msg.is-err{color:#b42318}
.t45-wt-msg:empty{display:none}
/* Free bottle card → gift section highlight */
.t45-flash{animation:t45flash 1.6s ease}
@keyframes t45flash{0%,100%{box-shadow:inherit}25%,60%{box-shadow:0 0 0 4px #E0A458,0 12px 30px rgba(224,164,88,.35)}}
.t44-cp.is-how{cursor:pointer}
/* account menu kept on screen */
.tnh42-account-menu.t45-fixed{position:fixed!important;left:auto;max-width:calc(100vw - 24px);z-index:1000}
.t45-nowrap{white-space:nowrap}
.t45-offer-img{display:none}
/* the gift is listed once (in the totals), not again under "Your pup's items" */
.tnh120-break .tnh120-break-off{display:none!important}
.tnh42-pg-actions.is-lookup .t45-wt{display:none!important}
/* landings under the sticky header */
[id]{scroll-margin-top:84px}

/* ================= DESKTOP (≥768px) ================= */
@media (min-width:768px){
  /* #21: 100% now looks like the old layout at 80% zoom */
  html{zoom:.8}
  .t41 .t44-tell .t44-donebar{justify-content:space-between}
  .t41 .t44-tell .t44-edit.t45-editbtn{margin-left:auto}
  /* #8 look up another dog: slider row on top, then dose (wider) + dropper side by side, no empty column */
  .tnh42-personal.tnh42-generic .guide-workspace{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;align-items:start!important}
  .tnh42-personal.tnh42-generic .guide-workspace > .weight-control{width:100%!important;max-width:none!important;grid-column:1 / -1!important}
  .tnh42-personal.tnh42-generic .tnh42-guide-cols{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)!important}
  .tnh42-personal.tnh42-generic .tnh42-guide-col--dose .dose-control{width:100%!important;max-width:none!important}
  .tnh42-pg-actions{flex-wrap:wrap}
}

/* ================= PHONE (≤767px) ================= */
@media (max-width:767px){
  [id]{scroll-margin-top:72px}

  /* Tell us bar: full-width Edit answers */
  .t41 .t44-tell .t44-donebar{gap:8px}
  .t41 .t44-tell .t44-edit.t45-editbtn{flex:1 1 100%;width:100%}

  /* ---- dog guide, every instance: Start low → Low/Mid/Strong → droppers (text under) → amounts → note ---- */
  html body .dose-control.t45-phone-order{display:flex!important;flex-direction:column!important;grid-template-areas:none!important;grid-template-columns:none!important;gap:10px!important;row-gap:10px!important;padding:12px!important;align-items:stretch!important}
  html body .dose-control.t45-phone-order > *{grid-area:auto!important;margin-top:0!important;margin-bottom:0!important}
  html body .dose-control.t45-phone-order .dose-intro{order:1;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;padding:10px 12px!important}
  html body .dose-control.t45-phone-order .dose-intro strong{font-size:15px!important}
  html body .dose-control.t45-phone-order .dose-intro span{font-size:13px!important;line-height:1.4!important}
  html body .dose-control.t45-phone-order .dose-switch{order:2;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  html body .dose-control.t45-phone-order .dose-switch .dose-level{min-height:44px;padding:6px 4px!important;font-size:13px!important;line-height:1.15}
  html body .dose-control.t45-phone-order .dropper-zone{order:3;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;margin:0!important;padding:2px 0 0!important;min-height:0!important;width:100%}
  html body .dose-control.t45-phone-order #droppers{display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;zoom:.8;min-height:0!important;max-width:100%;padding:0!important;gap:6px!important}
  html body .dose-control.t45-phone-order #droppers .dropper+.dropper{margin-left:0!important}
  html body .dose-control.t45-phone-order #dropperCopy{order:2;margin:0!important;text-align:center!important;font-size:14px!important;line-height:1.35!important;max-width:100%;overflow-wrap:anywhere}
  html body .dose-control.t45-phone-order .tnh-daily-basis{order:4;font-size:16px!important;margin:0!important}
  html body .dose-control.t45-phone-order .result-grid{order:5;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:0!important}
  html body .dose-control.t45-phone-order .result-grid>div{padding:7px 8px!important}
  html body .dose-control.t45-phone-order .result-grid span{font-size:11px!important;line-height:1.2!important}
  html body .dose-control.t45-phone-order .result-grid strong{font-size:16px!important;line-height:1.2!important}
  html body .dose-control.t45-phone-order .guide-note{order:6;font-size:11.5px!important;line-height:1.4!important;padding:0 2px!important}
  html body .dose-control.t45-phone-order .tnh42-pg-actions{order:7}
  .tnh42-guide-cols{display:block!important}
  .tnh42-guide-col--drop.t45-zone-out{padding:0!important;margin:0!important;min-height:0!important;background:none!important;border:0!important}
  .tnh42-guide-col--drop.t45-zone-out:empty{display:none!important}
  .tnh42-pg-actions{display:flex!important;flex-direction:column!important;gap:8px!important;margin:10px 0 0!important}
  .tnh42-pg-actions .tnh42-pg-btn{min-height:44px;width:100%}
  .t45-wt{justify-content:flex-start;flex-wrap:wrap}
  .t45-wt-l{flex:1 1 100%}
  .t45-wt-box{flex:1 1 auto;min-width:0}
  .t45-wt-box input{width:100%}
  .t45-wt-save{flex:0 0 auto}

  /* #23 member guide intro: heading full width, short text, then the photo + name/weight row */
  .tnh42-personal .guide-heading{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important}
  .tnh42-personal .guide-heading > *{grid-column:auto!important}
  .tnh42-personal .guide-heading h2{font-size:26px!important;line-height:1.15!important;margin:0!important;word-break:normal;overflow-wrap:normal}
  .tnh42-personal .guide-heading p{font-size:14px!important;line-height:1.4!important;margin:0!important}
  .tnh42-personal .guide-heading .tnh42-pg{order:9;display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;margin:4px 0 0!important;grid-row:auto!important}
  .tnh42-personal .tnh42-pg img,.tnh42-personal .tnh42-pg .ph{width:52px!important;height:52px!important;flex:0 0 52px!important;border-width:2px!important}
  .tnh42-personal .tnh42-pg .ph svg{width:28px!important;height:28px!important}
  .tnh42-personal .tnh42-pg .who{margin:0!important;font-size:16px!important;font-weight:800}
  .tnh42-personal .guide-panel{padding:14px 12px!important}
  .tnh42-personal .guide-section,.guide-section.tnh42-personal{padding:16px 0!important}
  .guide-section .guide-heading h2{font-size:26px;line-height:1.15}

  /* #22 account menu */
  .tnh42-account-menu{max-width:calc(100vw - 24px)}

  /* #25 join section: both pack photos above their own price, tighter */
  .t41j .deal{display:block!important}
  .t41j .deal > img.bot{display:none!important}
  .t41j .prices2{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;align-items:stretch}
  .t41j .t45-offer{display:flex!important;flex-direction:column;align-items:center}
  .t41j .t45-offer-img{display:block;width:100%;max-width:150px;aspect-ratio:1/1;height:auto;object-fit:cover;border-radius:14px;margin:0 auto 6px;background:#fff}
  .t41j h2{margin:4px 0 10px!important;line-height:1.15!important}
  .t41j .t41j-join{margin:0 0 8px!important}
  .t41j .perks{margin-top:10px!important}
  .t41j-in{gap:14px!important}

  /* #19 cart: compact rows */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr.cart_item{display:grid!important;grid-template-columns:80px minmax(0,1fr) auto!important;grid-template-rows:auto!important;grid-template-areas:"thumb name name" "thumb price remove" "thumb qty sub"!important;column-gap:12px!important;row-gap:4px!important;align-items:center;padding:12px!important;margin:0 0 10px!important;text-align:left!important}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr.cart_item td{display:block!important;padding:0!important;border:0!important;text-align:left!important;background:none!important;width:auto!important;min-width:0}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr.cart_item td::before{display:none!important;content:none!important}
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-thumbnail{grid-area:thumb;align-self:start;width:80px!important}
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-thumbnail a,body.woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-thumbnail .tnh39-art{display:block!important;width:80px!important;height:80px!important;padding:0!important;margin:0!important;border-radius:12px;overflow:hidden;background:#fff}
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-thumbnail img{width:80px!important;height:80px!important;max-width:80px!important;object-fit:contain!important;border-radius:12px;margin:0!important;transform:none!important}
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-name{grid-area:name;font-size:15px!important;line-height:1.3!important}
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-name a{font-size:15px!important;line-height:1.3!important;text-align:left!important;display:inline}
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-name .tnh40-meta{display:block;text-align:left!important;font-size:12.5px!important;margin-top:2px!important;line-height:1.35}
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-price{grid-area:price;font-size:13px!important}
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-quantity{grid-area:qty}
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-subtotal{grid-area:sub;text-align:right!important;font-weight:800;font-size:17px}
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-remove{grid-area:remove}
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-remove a.remove{display:inline-block!important;width:auto!important;height:auto!important;font-size:13px!important;line-height:1.2!important;padding:4px 0!important;text-align:left!important;text-indent:0!important}
  body.woocommerce-cart .woocommerce-cart-form .tnh110-qty{display:inline-flex!important;align-items:center;transform:none;gap:2px!important;width:auto!important;min-width:0!important;max-width:100%;padding:0 2px!important;height:auto!important}
  body.woocommerce-cart .woocommerce-cart-form .tnh110-qty .tnh110-step{width:40px!important;min-width:40px!important;height:44px!important;min-height:44px;padding:0!important}
  body.woocommerce-cart .woocommerce-cart-form .tnh110-qty .quantity,body.woocommerce-cart .woocommerce-cart-form .tnh110-qty input.qty{width:38px!important;min-width:38px!important;padding:0!important;text-align:center;font-size:16px!important;line-height:44px;height:44px;display:block}
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item td.product-remove{justify-self:end}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-price .tnh110-each{white-space:nowrap}

  /* #20 tighter vertical rhythm on every phone page (tap targets stay ≥44px) */
  .section{padding-top:30px!important;padding-bottom:30px!important}
  .section h2{margin-bottom:10px}
  main p{margin-top:0;margin-bottom:.7em}
  main h1,main h2{line-height:1.15}
  .tnh40-hero{padding:16px 16px!important;margin-bottom:12px!important}
  .tnh39-cart .wrap{padding-top:10px!important}
  .cart-collaterals{margin-top:12px!important}
  .cart_totals h2{margin:0 0 8px!important}
  .cart_totals table td,.cart_totals table th{padding-top:6px!important;padding-bottom:6px!important}
  .t41 .card,.t41 .sect{margin-bottom:12px!important}
  .t41 .card{padding:14px!important}
  .t41 .card h2{margin:0 0 8px!important}
  .t41 .t44-hero{margin-bottom:12px!important}
  .t41 .row2,.t41 .bgrid,.t41 .bottom2{gap:12px!important;margin-bottom:12px!important}
  .t41 .t44-cp{padding:10px 12px!important;margin-bottom:8px!important}
  .t41 .tellus .q{margin-bottom:10px!important}
  .t41 .tellus .fields{gap:8px!important}
  .woocommerce form .form-row{margin-bottom:8px!important}
  .woocommerce-checkout h3{margin:12px 0 8px!important}
  .faq-section details{padding-top:10px!important;padding-bottom:10px!important}
  .t41 .photocard .addbig{min-height:0!important;height:auto!important;padding:16px 12px!important;aspect-ratio:auto!important}
  .t41 .photocard .addbig i{font-size:26px!important;line-height:1!important;margin:0 0 4px!important}
  .t41 .photocard .priv{margin-bottom:8px!important}
  .t41 .tnh120-soon-grid{gap:8px!important}
  .t41 .tnh120-soon-b{min-height:0!important;padding:8px!important;height:auto!important;aspect-ratio:auto!important}
  .t41 .tnh120-soon-b img{width:56px!important;height:56px!important}
  .t41 .tnh42-show-stage img{width:120px!important;height:120px!important}
  .t41 .w-badges .badges li{margin-bottom:6px!important}
  .t41 .bottom2 .tiles .tile{min-height:0!important;padding:10px!important}
  /* Clubhouse guide: weight is known, so the size picker stays hidden (as in fix44) */
  .t44-guide:not(.tnh42-generic) .dog-size-jumps{display:none!important}
  .dogs-section .wrap > *,.testing-section .wrap > *{margin-bottom:14px}
  /* home: the two pack cards side by side, tall photos capped */
  html body #shop .pack-art-grid.pack-art-grid,html body #shop .pack-art-grid.tnh42-packs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;overflow:visible!important;margin-left:0!important;margin-right:0!important;padding:4px 0 10px!important;width:auto!important}
  html body #shop .pack-art-grid .pack-art-card.pack-art-card picture,html body #shop .pack-art-grid .pack-art-card.pack-art-card img{width:100%!important;max-width:100%!important;height:auto!important}
  html body #shop .pack-art-grid .pack-art-card.pack-art-card{min-width:0!important;width:auto!important;flex:none!important;margin:0!important}
  .shop-section .pack-art-card picture,.shop-section .pack-art-card img{height:auto!important;max-width:100%}
  .shop-section .shop-wrap-v7{padding-top:0!important}
  .lifestyle-strip .lifestyle-image img{max-height:230px!important;object-fit:cover!important;width:100%}
  .lifestyle-strip .lifestyle-image{max-height:230px!important;overflow:hidden}
  .tnh40-band img{max-height:250px!important;width:auto!important;object-fit:contain;margin-left:auto;margin-right:auto}
  .hero-v9-mobile-img{max-height:340px!important;object-fit:cover!important;width:100%}
}
/* narrow phones (360): header fits without sideways scroll */
@media (max-width:400px){
  .site-header .nav-wrap{margin-left:12px!important;margin-right:12px!important;gap:6px!important}
  .site-header .nav-actions{gap:8px!important}
  .site-header .tnh120-auth{margin-right:0!important;gap:6px!important}
  .site-header .tnh120-joinbtn{padding:8px 10px!important}
  .site-header .menu-button{padding:9px 8px!important}
}
