/* Shop pages of the reproduced titles (public/ria-shop.js). Sizes in px: the
   themes set the root font size to 10px. Colours follow each theme. */

/* Offers */
.rs-save{display:inline-block;margin:6px auto 0;background:#e3f4ea;color:#1f6b45;font-weight:700;font-size:13px;padding:3px 10px;border-radius:999px}

/* Product page: one subscription per order, tabs that work */
.rs-product form.cart .quantity{display:none!important}
.rs-pay{margin:14px 0 0;font-size:14px;line-height:1.5;color:#333}
.rs-pay span{display:block;color:#666;font-size:13px}
.rs-upsell{display:block;margin:12px 0 0;padding:12px 14px;border:1px solid #f0d58a;background:#fff8e6;color:#1d1d1f!important;text-decoration:none!important;font-size:14px;line-height:1.45}
.rs-upsell:hover{border-color:var(--primarycolor,#c00)}
.rs-product .woocommerce-tabs ul.tabs li.active a{color:var(--primarycolor,#c00);border-bottom:2px solid var(--primarycolor,#c00)}

/* Cart: nothing that does nothing here */
.rs-cart td.product-quantity .quantity{pointer-events:none}
.rs-cart td.product-quantity .qty-btn,.rs-cart td.product-quantity .minus,.rs-cart td.product-quantity .plus{display:none!important}
.rs-cart td.product-quantity input.qty{border:0;background:transparent;text-align:center;width:40px;-moz-appearance:textfield}
.rs-cart tr td.actions,.rs-cart .woocommerce-shipping-destination,.rs-cart .woocommerce-shipping-calculator{display:none!important}
.rs-upsell-cart{display:flex;gap:16px;align-items:center;justify-content:space-between;border:1px solid #f0d58a;background:#fff8e6;padding:14px 18px;margin:0 0 16px;font-size:14px;line-height:1.45}
.rs-upsell-cart div{display:grid;gap:2px}
.rs-upsell-cart strong{font-size:16px}
.rs-upsell-cart .button{white-space:nowrap}
.rs-next{border:1px solid #e3e3e6;background:#fff;padding:16px 18px;margin:16px 0 0;font-size:14px;line-height:1.5}
.rs-next h3{font-size:16px;margin:0 0 8px}
.rs-next ol{margin:0;padding-left:20px;display:grid;gap:4px}
.rs-small{font-size:13px;color:#666;margin:8px 0 0}
@media (min-width:900px){
  .rs-cart .cart-collaterals{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:24px;align-items:start}
  .rs-cart .cart-collaterals .cart_totals{grid-column:2;grid-row:1 / span 3;width:auto!important;float:none!important}
  .rs-cart .cart-collaterals .rs-upsell-cart,.rs-cart .cart-collaterals .rs-next{grid-column:1;margin:0}
}
/* Phones: the theme labels each total cell, the headers then appear twice */
@media (max-width:768px){
  .rs-cart .cart_totals table th{display:none}
  .rs-upsell-cart{flex-direction:column;align-items:stretch}
}

/* Checkout */
.rs-checkout .woocommerce-form-coupon-toggle,.rs-checkout form.checkout_coupon,.rs-checkout .ria-register-link{display:none!important}
.rs-checkout li.wc_payment_method{cursor:pointer;border-left:3px solid transparent;transition:background .15s,border-color .15s}
.rs-checkout li.wc_payment_method.rs-selected{border-left-color:var(--primarycolor,#c00);background:#fafafb}
.rs-checkout li.wc_payment_method.rs-selected>label,.rs-checkout li.wc_payment_method.rs-selected label[for^=payment_method]{color:var(--primarycolor,#c00)}
.rs-field-error{display:block;color:#a3122a;font-size:13px;font-weight:600;margin-top:4px}
.rs-checkout .woocommerce-invalid input.input-text,.rs-checkout .woocommerce-invalid select{border-color:#a3122a!important}
.rs-more-cards{margin:-6px 0 12px;font-size:13px}
.rs-more-cards summary{cursor:pointer;color:#555;margin-bottom:6px}
.rs-mini-summary{display:none}
@media (min-width:1000px){
  .rs-checkout #order_review{position:sticky;top:16px}
}
@media (max-width:999px){
  .rs-mini-summary{display:flex;gap:10px;align-items:center;justify-content:space-between;border:1px solid #e3e3e6;background:#fff;padding:12px 64px 12px 14px;margin:0 0 14px;font-size:14px}
  .rs-mini-summary span{flex:1;min-width:0}
  .rs-mini-summary strong{white-space:nowrap}
  .rs-mini-summary a{white-space:nowrap;font-size:13px}
}
/* Cart: thumbnail and checkout button sized the same on every theme */
.rs-cart td.product-thumbnail img{width:96px!important;max-width:96px;height:auto}
.rs-cart .wc-proceed-to-checkout a.checkout-button{display:block;padding:14px 18px!important;font-size:16px;font-weight:700;text-align:center;line-height:1.3}
/* Empty cart: the offers */
.rs-empty-offers{margin:24px 0 0;text-align:center}
.rs-empty-offers h2{font-size:22px;font-weight:700;margin:0 0 14px}
.rs-offer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,280px));gap:16px;justify-content:center}
.rs-offer{display:grid;gap:8px;justify-items:center;border:1px solid #e3e3e6;background:#fff;padding:16px;color:#1d1d1f!important;text-decoration:none!important;transition:border-color .15s}
.rs-offer:hover{border-color:var(--primarycolor,#c00)}
.rs-offer img{width:100%;max-width:200px;height:auto}
.rs-offer-name{font-weight:700;font-size:16px}
.rs-offer-price{font-size:18px;font-weight:700}
.rs-offer-price small{font-size:13px;font-weight:400;color:#666}
.rs-offer .rs-save{margin:0}

/* The captured theme hides native checkboxes for a decorator that is absent
   here. Keep the actual checkout agreement visible and keyboard accessible. */
.rs-checkout #terms{display:inline-block!important;appearance:auto!important;-webkit-appearance:checkbox!important;position:static!important;opacity:1!important;visibility:visible!important;width:20px!important;height:20px!important;min-width:20px;margin:0 10px 0 0!important;vertical-align:middle;cursor:pointer;accent-color:var(--primarycolor,#c00)}
.rs-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox{display:block!important;text-align:left;cursor:pointer;line-height:1.6}
.rs-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox br{display:none}
.rs-checkout #terms:focus-visible{outline:2px solid var(--primarycolor,#c00);outline-offset:3px}
.rs-checkout .woocommerce-terms-and-conditions-link{text-decoration:underline!important}

/* Keep the delivery control native and its disclosure accessible. */
.rs-checkout #ship-to-different-address-checkbox{display:inline-block!important;appearance:auto!important;-webkit-appearance:checkbox!important;position:static!important;opacity:1!important;visibility:visible!important;width:20px!important;height:20px!important;min-width:20px;margin:0 10px 0 0!important;vertical-align:middle;cursor:pointer;accent-color:var(--primarycolor,#c00)}
.rs-checkout #ria-shipping-address[hidden]{display:none!important}
.rs-checkout #ria-shipping-address:not([hidden]){display:block!important}
.rs-checkout #ria-shipping-address input{max-width:100%;box-sizing:border-box}

/* The theme's Bootstrap form-row gutters clip the payment footer. */
.rs-checkout .place-order{display:block!important;width:100%!important;box-sizing:border-box;margin:0!important;padding:24px!important;background:#fff;border-top:1px solid #e6e7eb}
.rs-checkout .place-order .form-row{display:block!important;margin:0!important;padding:0!important}
.rs-checkout .place-order>p{margin:0!important;padding:0!important}
.rs-checkout .place-order>p:has(noscript),.rs-checkout .place-order>p:has(input[type=hidden]),.rs-checkout .place-order>p:empty{display:none!important}
.rs-checkout .place-order .ria-payment-security{display:flex;align-items:center;gap:8px;font-size:13px;line-height:20px;color:#53615a;margin-bottom:16px!important}
.rs-checkout .place-order .ria-payment-security svg{flex:0 0 16px}
.rs-checkout .woocommerce-terms-and-conditions-wrapper{margin:0 0 20px!important}
.rs-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox{display:flex!important;align-items:flex-start;gap:10px;margin:0!important;font-size:14px;line-height:22px;font-weight:400}
.rs-checkout .woocommerce-terms-and-conditions-checkbox-text{flex:1;min-width:0}
.rs-checkout .woocommerce-terms-and-conditions-checkbox-text .required{margin-left:3px}
.rs-checkout .place-order #terms{flex:0 0 20px;margin:1px 0 0!important}
.rs-checkout .woocommerce-terms-and-conditions{padding:12px 14px!important;margin:0 0 16px!important;background:#f6f7f8;border-radius:4px;font-size:13px;line-height:20px}
.rs-checkout .woocommerce-terms-and-conditions p{margin:0!important}
.rs-checkout #place_order{display:flex!important;align-items:center;justify-content:center;gap:10px;width:100%!important;min-height:52px;box-sizing:border-box;float:none!important;margin:0!important;padding:14px 18px!important;border-radius:4px;font-size:16px!important;font-weight:700;line-height:24px;text-align:center}
.rs-checkout #place_order:disabled{opacity:1!important;background:#922b2b!important;color:#fff!important;cursor:progress}
.rs-checkout #place_order[aria-busy=true]::before{content:"";width:16px;height:16px;flex:0 0 16px;box-sizing:border-box;border:2px solid #ffffff66;border-top-color:#fff;border-radius:50%;animation:mesures-payment-spin .8s linear infinite}
@keyframes mesures-payment-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.rs-checkout #place_order[aria-busy=true]::before{animation:none}}
@media(max-width:600px){.rs-checkout .place-order{padding:18px!important}}
