/* WordPress / WooCommerce pieces that Big Cartel didn't have, styled to match. */
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed!important;left:12px;top:12px;width:auto;height:auto;clip:auto;z-index:100001;background:#fff;color:#111;padding:10px 14px;outline:2px solid #008d26}

/* Product pictures */
.sph-gallery-main{position:relative}
.sph-gallery-main .gallery-link[hidden]{display:none!important}
.sph-gallery-main img{width:100%;height:auto;display:block;background:#fff;border-radius:8px}
.sph-gallery .product-thumbnails--list{--border-radius:6px;--active-slide-border-width:2px;--active-slide-border-width-offset:2px;--thumbnail-active-color:#008d26;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:12px;padding:0}
.sph-gallery .product-thumbnails--item{width:auto}
.sph-gallery .product-thumbnails--item{pointer-events:auto}
.sph-gallery .mobile-buttons-indicator{display:none;align-items:center;justify-content:center;gap:16px;margin-top:10px;font-weight:700}
.sph-gallery .change-slide{font-size:28px;line-height:1;padding:4px 12px;min-width:44px;min-height:44px}
@media (max-width:800px){
  .sph-gallery .mobile-buttons-indicator{display:flex}
  .sph-gallery .product-thumbnails--list{grid-template-columns:repeat(5,minmax(0,1fr))}
}

/* Product form */
.sph-qty{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.sph-qty label{font-weight:700}
.sph-qty input{width:90px;height:52px;background:#fff;text-align:center;padding:0 8px}
.product-details .select{background:#fff}
.inventory-status-message{margin-top:10px;text-align:center;color:var(--inventory-status-text-color,#AF0000);font-weight:700}
.product-thumbnails--item img{object-fit:cover}
.related-products-container{clear:both;padding:0 32px}
@media (max-width:800px){.related-products-container{padding:0 16px}}

/* Messages */
.centered-message{text-align:center;margin:24px auto;max-width:640px;padding:16px;background:#fff;border:1px solid #008d26;border-radius:8px}
ul.errors{list-style:none;margin:0 auto 20px;max-width:640px;padding:12px 16px;background:#fff3f3;border:1px solid #AF0000;color:#AF0000;border-radius:6px}

/* Contact form (white fields like the Big Cartel head code) */
.contact-form{max-width:640px;margin:0 auto}
.contact-form-block{margin-bottom:16px}
.contact-label{display:block;font-weight:700;margin-bottom:6px}
.contact-form input,.contact-form textarea{width:100%;background:#fff;border:1px solid #111;color:#111}
.contact-form textarea{min-height:160px}
.contact-form .button{border-radius:10px;background:#008d26;font-weight:700}

/* Policy and other text pages */
main#main.custom-content > ul{list-style:disc;padding-left:24px;max-width:900px;margin:0 auto 16px}
main#main.custom-content > p{max-width:900px;margin-left:auto;margin-right:auto}

/* WooCommerce cart, checkout and account pages: undo the Neat reset inside them */
body#cart main#main,body#checkout main#main,body.woocommerce-account main#main{padding-left:16px;padding-right:16px}
main#main .woocommerce,main#main .wp-block-woocommerce-cart,main#main .wp-block-woocommerce-checkout{max-width:1100px;margin:0 auto 48px;background:#fff;border-radius:12px;padding:24px;border:1px solid rgba(0,141,38,.2)}
main .woocommerce input:not([type=checkbox]):not([type=radio]),main .woocommerce select,main .woocommerce textarea,
.wp-block-woocommerce-checkout input:not([type=checkbox]):not([type=radio]),.wp-block-woocommerce-checkout select{border:1px solid #767676;background:#fff;border-radius:4px}
.wp-block-woocommerce-checkout input[type=checkbox],.wp-block-woocommerce-checkout input[type=radio],
.wp-block-woocommerce-cart input[type=checkbox],main .woocommerce input[type=checkbox],main .woocommerce input[type=radio]{-webkit-appearance:auto;appearance:auto}
.wc-block-components-button:not(.is-link),main .woocommerce a.button,main .woocommerce button.button{background:#008d26!important;color:#fff!important;border-radius:10px!important;font-weight:700!important}
.wc-block-components-button:not(.is-link):hover,main .woocommerce a.button:hover,main .woocommerce button.button:hover{background:#006d1d!important}
main .woocommerce ul,.wp-block-woocommerce-cart ul,.wp-block-woocommerce-checkout ul{list-style:none}
.woocommerce-notices-wrapper{max-width:900px;margin:0 auto}
.woocommerce-message,.woocommerce-info,.woocommerce-error{background:#fff;border-left:4px solid #008d26;padding:12px 16px;margin:0 0 16px;list-style:none}
.woocommerce-error{border-left-color:#AF0000}

/* Logged-in admins: make room for the WordPress admin bar (custom.css sets html margin-top 0). */
html:has(body.admin-bar){margin-top:32px !important}
@media screen and (max-width:782px){html:has(body.admin-bar){margin-top:46px !important}}

/* Product picture viewer (same page, like Big Cartel's image viewer). */
.sph-viewer{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center}
.sph-viewer[hidden]{display:none}
.sph-viewer img{max-width:94vw;max-height:90vh;object-fit:contain;cursor:zoom-out}
.sph-viewer button{position:absolute;background:rgba(0,0,0,.4);color:#fff;border:0;font-size:40px;line-height:1;width:52px;height:52px;border-radius:50%;cursor:pointer}
.sph-viewer-close{top:14px;right:14px}
.sph-viewer-prev{left:14px;top:50%;transform:translateY(-50%)}
.sph-viewer-next{right:14px;top:50%;transform:translateY(-50%)}

/* Local pickup banner (same as CardVault), above the shipping announcement. */
.sph-pickup-banner{background:#176443;color:#fff;text-align:center;padding:9px 16px;font:400 14px/1.4 Arial,sans-serif;border-bottom:1px solid #ffffff22}
.sph-pickup-banner strong{font-weight:700}
.sph-pickup-banner span{display:inline-block;margin-left:12px;font-weight:700}
@media screen and (max-width:600px){.sph-pickup-banner{font-size:13px}.sph-pickup-banner span{display:block;margin:3px 0 0}}

/* Empty cart */
.wp-block-woocommerce-empty-cart-block>.wp-block-separator,
.wp-block-woocommerce-empty-cart-block>.wp-block-separator~h2,
.wp-block-woocommerce-empty-cart-block>.wp-block-woocommerce-product-new,
.wp-block-woocommerce-empty-cart-block .wc-block-grid{display:none!important}
.wp-block-woocommerce-empty-cart-block p a,main .woocommerce .return-to-shop a.button{display:inline-flex;justify-content:center;align-items:center;min-height:46px;padding:12px 28px;border:2px solid #008d26;border-radius:9px;background:#008d26;color:#fff!important;font-size:16px;font-weight:700;text-decoration:none!important;line-height:1.4;margin-top:6px}
.wp-block-woocommerce-empty-cart-block p a:hover,.wp-block-woocommerce-empty-cart-block p a:focus{background:#006d1d;border-color:#006d1d}
.product-form .add-to-cart-button,body.woocommerce .product-form button.button.add-to-cart-button{background:#008d26!important;color:#fff!important;border:0;border-radius:10px!important;font-weight:700!important}
.product-form .add-to-cart-button:not(:disabled):hover,.product-form .add-to-cart-button:not(:disabled):focus{background:#006d1d!important}
.product-form .add-to-cart-button:disabled{background:#8a8a8a!important;opacity:1}
.sph-cart-summary-active .wp-block-woocommerce-cart-order-summary-subtotal-block,.sph-cart-summary-active .wp-block-woocommerce-cart-order-summary-shipping-block,.sph-cart-summary-active .wp-block-woocommerce-cart-order-summary-fee-block,.sph-cart-summary-active .wp-block-woocommerce-cart-order-summary-taxes-block,.sph-cart-summary-active .wc-block-components-totals-shipping,.sph-cart-summary-active .wc-block-components-totals-fees,.sph-cart-summary-active .wc-block-components-totals-taxes,.sph-cart-summary-active .wc-block-components-totals-footer-item{display:none!important}
.sph-cart-subtotal{padding:20px 0;border-bottom:1px solid #dce4dc}
.sph-cart-subtotal-line{margin:0!important;font-size:20px;line-height:1.5}
.sph-cart-subtotal-line strong{font-weight:700}
.sph-cart-subtotal-note{margin:4px 0 0!important;font-size:15px;line-height:1.5;color:#526b61}
.wc-block-cart .wc-block-cart-items th,.wc-block-cart .wc-block-cart__totals-title{font-size:15px!important}
.wc-block-cart .wc-block-components-product-name{font-size:19px!important;font-weight:700}
.wc-block-cart .wc-block-cart-item__prices,.wc-block-cart .wc-block-cart-item__total,.wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price{font-size:17px!important}
.wc-block-cart .wc-block-components-product-metadata{font-size:15px!important;line-height:1.5}
.wc-block-cart .wc-block-components-quantity-selector input{font-size:17px!important}
.wc-block-cart .wc-block-components-totals-coupon,.wc-block-cart .wc-block-components-panel__button{font-size:16px!important}
.wp-block-woocommerce-checkout .wc-block-components-express-payment-continue-rule{font-size:16px!important}
.wp-block-woocommerce-checkout .wc-block-components-checkbox label,.wp-block-woocommerce-checkout .wc-block-components-checkbox__label{font-size:16px!important}
.wp-block-woocommerce-checkout .wc-block-components-radio-control__label:not(.sph-pickup-lines),.wp-block-woocommerce-checkout .wc-block-components-radio-control__secondary-label:not(.sph-pickup-lines){font-size:16px!important}
.wp-block-woocommerce-checkout{--sph-pickup-size:16px}
.wp-block-woocommerce-checkout .wc-block-components-radio-control__description,.wp-block-woocommerce-checkout .wc-block-components-radio-control__secondary-description,.wp-block-woocommerce-checkout .wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__description{font-size:15px!important;line-height:1.5}
.wp-block-woocommerce-checkout .wc-block-checkout__terms,.wp-block-woocommerce-checkout .wc-block-checkout__terms span{font-size:15px!important;line-height:1.5}
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description,.wp-block-woocommerce-checkout .wc-block-components-product-metadata{font-size:15px!important;line-height:1.5}
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__individual-prices,.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__total-price{font-size:16px!important}
.wp-block-woocommerce-checkout .wc-block-components-product-name{font-size:16px!important}
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button,.wp-block-woocommerce-checkout .wc-block-components-panel__button{font-size:16px!important}
.wp-block-woocommerce-checkout .wc-block-components-totals-item__label,.wp-block-woocommerce-checkout .wc-block-components-totals-item__value{font-size:17px!important}
.wp-block-woocommerce-checkout .wc-block-components-totals-item__description,.wp-block-woocommerce-checkout .wc-block-components-totals-shipping .wc-block-components-totals-item__description{font-size:15px!important;line-height:1.5}
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{font-size:22px!important}
.wp-block-woocommerce-checkout .wc-block-checkout__add-note .wc-block-components-checkbox__label{font-size:16px!important}
.sph-clear-cart-row{display:flex;justify-content:flex-end;margin:0 0 12px}
.sph-clear-cart{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 20px;border:2px solid #008d26;border-radius:9px;background:#fff;color:#008d26!important;font-size:16px;font-weight:700;text-decoration:none!important}
.sph-clear-cart:hover,.sph-clear-cart:focus{background:#008d26;color:#fff!important}
