/* Compatibility with Pivot's custom stylesheet registration in functions.php. */
@import url('../../../pivot-new/style/css/custom.css');

/* Pivot's legacy navigation script offsets the wrapper; Astro already reserves its height. */
body.tt-astro-shop .main-container{margin-top:0!important}
body.tt-astro-shop .tt-shop-breadcrumbs{position:relative;display:block;float:none;width:100%;height:auto;min-height:43px;max-height:none;box-sizing:border-box;margin:0;padding:8px 24px 12px;background:#fff;color:#777;overflow:visible;font-family:'Open Sans',sans-serif;font-size:12px;font-weight:400;line-height:23px;letter-spacing:0;text-transform:none}
body.tt-astro-shop .tt-shop-breadcrumbs a{color:#275f87;font-family:inherit;font-size:12px;font-weight:400;letter-spacing:0;text-transform:none}
body.tt-astro-shop .tt-shop-breadcrumbs a:hover,body.tt-astro-shop .tt-shop-breadcrumbs a:focus-visible{color:#5f7b8e;text-decoration:underline}
body.tt-astro-shop .tt-shop-breadcrumbs>span:last-child{font-weight:700}
body.tt-astro-shop .tt-breadcrumb-separator{font-weight:400}
@media(max-width:767px){body.tt-astro-shop .tt-shop-breadcrumbs{padding-inline:20px}}

/* Space WooCommerce forward buttons from the content above. */
body.tt-astro-shop .button.wc-forward{margin-top:9px}


/* Contract and optional digital-content activation: keep Pivot typography. */
.tt-digital-consent{clear:both;margin:16px 0 22px}
.tt-digital-consent .form-row{padding:0;margin-bottom:8px}
.tt-digital-consent label{display:block;line-height:1.65;font-weight:400;cursor:pointer}
.tt-digital-consent-help{font-size:13px;line-height:1.65;margin:8px 0 0 22px;color:#555}
.tt-contract-page{max-width:100%;overflow-wrap:anywhere}
.tt-contract-page h6{font-size:16px;line-height:1.5;font-weight:700;margin:28px 0 12px}
.tt-contract-page p,.tt-contract-page li{font-size:14px;line-height:1.85}
.tt-contract-page li{padding-left:0}
.tt-contract-page .tt-contract-text>h2{display:none}
.tt-withdrawal{padding:24px 0 0;border-top:1px solid #e3d9ce;margin-top:30px;scroll-margin-top:110px}
.tt-withdrawal form{box-sizing:border-box;width:100%;max-width:none;margin:0}
.tt-withdrawal label{display:block;margin-bottom:6px}
.tt-withdrawal input{box-sizing:border-box;width:100%;height:auto;min-height:42px;padding:9px 12px}
.tt-withdrawal button{max-width:100%;white-space:normal;height:auto;padding:12px 20px;line-height:1.5}
.tt-withdrawal dd{margin-bottom:12px;overflow-wrap:anywhere}
.tt-contract-summary{margin:24px 0}

/* Align both checkout declarations; Pivot floats the native terms label right. */
body.tt-astro-shop #payment .woocommerce-terms-and-conditions-wrapper>.form-row{float:none;clear:both;width:100%;padding:0;margin:16px 0}
body.tt-astro-shop #payment .woocommerce-terms-and-conditions-wrapper label.checkbox,
body.tt-astro-shop #payment .tt-digital-consent label.checkbox{float:none;display:block;position:relative;width:auto;margin:0;padding:0 0 0 24px;font-size:14px;font-weight:400;line-height:1.75;text-align:left}
body.tt-astro-shop #payment .woocommerce-terms-and-conditions-wrapper label.checkbox input[type=checkbox],
body.tt-astro-shop #payment .tt-digital-consent label.checkbox input[type=checkbox]{position:absolute;left:0;top:5px;margin:0;width:13px;height:13px}
body.tt-astro-shop #payment .tt-digital-consent-help{margin-left:24px}


/* The old page-builder content supplied its own container and heading. */
body.tt-astro-shop .tt-contract-page{box-sizing:border-box;width:100%;max-width:1170px;margin:0 auto;padding:40px 20px 60px}
body.tt-astro-shop .tt-contract-page>h1{font-size:40px;line-height:1.25;margin:0 0 24px;font-weight:300}
@media(max-width:767px){body.tt-astro-shop .tt-contract-page{padding-top:25px}body.tt-astro-shop .tt-contract-page>h1{font-size:30px}}


/* Full-width Pivot background with the form aligned to the text container. */
body.tt-astro-shop .tt-contract-section{padding:0}
body.tt-astro-shop .tt-withdrawal{background:transparent!important;overflow:visible}
body.tt-astro-shop .tt-withdrawal-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
body.tt-astro-shop .tt-withdrawal-form>p{min-width:0;margin:0}
body.tt-astro-shop .tt-withdrawal-form>p:nth-of-type(3),
body.tt-astro-shop .tt-withdrawal-form>button{grid-column:1/-1}
body.tt-astro-shop .tt-withdrawal-form>button{justify-self:start;margin-top:4px}
@media(max-width:767px){body.tt-astro-shop .tt-withdrawal-form{grid-template-columns:minmax(0,1fr)}}

body.tt-astro-shop .tt-contract-page .tt-policy-staging-note{background:#f7f3ee;border-left:3px solid #c09b76;padding:13px 16px;margin:0 0 30px}

/* Mobile recommendations: one full-width card per row, including even items. */
@media(max-width:768px){
body.tt-astro-shop .cross-sells ul.products>li:nth-child(n),
body.tt-astro-shop .upsells ul.products>li:nth-child(n){float:none;width:100%;max-width:100%;margin-left:0;margin-right:0;box-sizing:border-box}
}

/* Match the News archive pagination on WooCommerce shop and taxonomy archives. */
body.tt-astro-shop ul.pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;width:100%;height:auto;max-height:none;clear:both;overflow:visible;margin:45px 0 0;padding:0;border:0;list-style:none}
body.tt-astro-shop ul.pagination>li{display:block;float:none;margin:0;padding:0;border:0;background:transparent;list-style:none}
body.tt-astro-shop ul.pagination>li>a,
body.tt-astro-shop ul.pagination>li>span{display:grid;place-items:center;float:none;min-width:40px;height:40px;box-sizing:border-box;margin:0;padding:0 10px;border:1px solid #e7e0d9;border-radius:6px!important;color:#275f87;background:#fff;font-size:14px;font-weight:400;line-height:normal;letter-spacing:normal;text-decoration:none;text-shadow:none;box-shadow:none}
body.tt-astro-shop ul.pagination>li>a:hover,
body.tt-astro-shop ul.pagination>li>a:focus-visible{color:#275f87;background:#fff;border-color:#e7e0d9;text-decoration:none}
body.tt-astro-shop ul.pagination>li.active>a,
body.tt-astro-shop ul.pagination>li.active>span,
body.tt-astro-shop ul.pagination>li>[aria-current=page]{background:#2c3e50;border-color:#2c3e50;color:#fff}
body.tt-astro-shop ul.pagination>li>a:focus-visible{outline:2px solid #a78360;outline-offset:3px}


/* Account address headings share WooCommerce's .title class with Pivot hero headers. */
body.tt-astro-shop .woocommerce-Address-title.title{height:auto;min-height:0;padding:0;overflow:visible;background:transparent}
body.tt-astro-shop .woocommerce-Address-title.title:before{content:none;display:none}

/* Keep WooCommerce password toggles clear of Pivot's 155px button minimum. */
body.tt-astro-shop .password-input{position:relative;display:block;width:100%}
body.tt-astro-shop .password-input>input{box-sizing:border-box;width:100%;padding-right:44px!important}
body.tt-astro-shop .password-input .show-password-input{position:absolute;top:50%;right:6px;left:auto;transform:translateY(-50%);display:block;width:32px;min-width:32px;height:32px;min-height:32px;margin:0;padding:0;border:0;border-radius:4px;background-color:transparent;box-shadow:none;line-height:1;cursor:pointer}
body.tt-astro-shop .password-input .show-password-input:focus-visible{outline:2px solid #a78360;outline-offset:2px}

/* TT MINI CART ACTIONS START */
body.tt-astro-shop .widget_shopping_cart .buttons,
body.tt-astro-shop .widget_shopping_cart .woocommerce-mini-cart__buttons{display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:100%}
body.tt-astro-shop .widget_shopping_cart .buttons a.button,
body.tt-astro-shop .widget_shopping_cart .woocommerce-mini-cart__buttons a.button{display:inline-flex;align-items:center;float:none;clear:both;width:fit-content;min-width:0;max-width:100%;margin:0;white-space:normal}
/* TT MINI CART ACTIONS END */
