.erp-rental-form{padding:16px;border:1px solid #d8e1d8;border-radius:12px;margin:15px 0;background:#fafcf9}.erp-rental-form p{margin:0 0 12px}.erp-rental-form label{display:block;font-weight:600;margin-bottom:4px}.erp-rental-form input,.erp-rental-form select{width:100%;max-width:340px;padding:10px;border:1px solid #aab9ab;border-radius:5px}.erp-rental-form .erp-rental-note{font-size:13px;color:#536458}

.erp-policy-box{margin:14px 0;padding:14px;border:1px solid #d7dfd7;border-radius:8px;background:#fbfcfa;font-size:14px;line-height:1.5}.erp-policy-box p{margin:6px 0 10px}.erp-policy-box summary{cursor:pointer;text-decoration:underline}.erp-policy-items{margin:10px 0 4px;padding-left:22px}.erp-policy-items li{margin-bottom:7px}.erp-policy-checkout{margin:16px 0}.erp-policy-checkout h3{font-size:18px}.erp-policy-accept{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:1.4}.erp-policy-accept input{flex:none;margin-top:4px}

/* Compact, hover/focus/click accessible cancellation information on product pages. */
.erp-policy-inline{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin:10px 0 14px;color:#26382f;font-size:13px;line-height:1.45}
.erp-policy-tip-wrap{position:relative;display:inline-flex;align-items:center;z-index:10}
.erp-policy-tip-button{display:inline-flex!important;align-items:center;justify-content:center;width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;padding:0!important;border:1px solid #647a69!important;border-radius:50%!important;background:#fff!important;color:#26382f!important;font-size:14px!important;font-weight:700!important;line-height:1!important;cursor:pointer}
.erp-policy-tip-button:focus-visible{outline:3px solid #b8643d;outline-offset:2px}
.erp-policy-popover{box-sizing:border-box;display:none;position:absolute;left:50%;top:calc(100% + 9px);transform:translateX(-50%);width:min(320px,calc(100vw - 36px));max-height:min(360px,65vh);overflow:auto;padding:14px 16px;background:#fff;border:1px solid #ced9cf;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.16);color:#25352b;font-size:13px;line-height:1.45;text-align:left;z-index:100}
.erp-policy-popover strong{display:block;margin-bottom:8px}
.erp-policy-popover .erp-policy-items{margin:0;padding-left:18px}.erp-policy-popover .erp-policy-items li{margin-bottom:7px}
@media(hover:hover) and (pointer:fine){.erp-policy-tip-wrap:hover .erp-policy-popover{display:block}}
.erp-policy-tip-wrap.erp-tip-open .erp-policy-popover,.erp-policy-tip-wrap:focus-within .erp-policy-popover{display:block}
@media(max-width:650px){.erp-policy-popover{left:auto;right:-7px;transform:none;width:min(310px,calc(100vw - 42px))}}

/* Short product popover; avoid internal scrolling and blocking booking controls. */
.erp-policy-popover{width:min(300px,calc(100vw - 28px));max-height:none;overflow:visible;padding:12px 14px}
.erp-policy-tip-items{margin:6px 0 0;padding-left:18px}
.erp-policy-tip-items li{margin:0 0 7px}
.erp-policy-tip-items li:last-child{margin-bottom:0}
.erp-policy-accept.erp-policy-invalid{border:1px solid #b42318;background:#fff5f4;border-radius:6px;padding:9px}
.erp-policy-inline-error{display:block;color:#b42318;font-size:13px;line-height:1.4;margin:7px 0 0;font-weight:600}
.erp-policy-inline-error[hidden]{display:none}
@media(max-width:650px){.erp-policy-popover{right:-12px;width:min(285px,calc(100vw - 32px))}}

/* 0.3.1: enforce short and readable popup even with theme CSS specificity. */
.erp-policy-tip-wrap .erp-policy-popover{max-height:none!important;overflow:visible!important;width:min(320px,calc(100vw - 36px))!important;padding:12px 14px!important}
.erp-policy-tip-wrap .erp-policy-popover .erp-policy-tip-items{margin:7px 0 0!important;padding-left:18px!important}
.erp-policy-tip-wrap .erp-policy-popover .erp-policy-items{margin:7px 0 0!important;padding-left:18px!important}
.erp-policy-tip-wrap .erp-policy-popover .erp-policy-items li:nth-child(n+4){display:none!important}
@media(max-width:650px){.erp-policy-tip-wrap .erp-policy-popover{width:min(300px,calc(100vw - 30px))!important}}
/* Delivery selector and consistent checkout errors below sticky headers */
.erp-delivery-fieldset{border:1px solid #d8dfd9;border-radius:8px;margin:12px 0;padding:12px 14px}
.erp-delivery-fieldset legend{font-weight:600;padding:0 6px}
.erp-delivery-fieldset>label{display:block;margin:7px 0;cursor:pointer}
.erp-delivery-location[hidden]{display:none!important}
.erp-delivery-location{padding:8px 0}
.erp-delivery-location input{width:100%;max-width:440px;margin:7px 0}
.erp-delivery-location small{display:block;line-height:1.5;color:#556359}
.erp-delivery-price{font-weight:700;margin:8px 0 0;color:#26382f}
.erp-checkout-payment-error{background:#fff4ea;border-left:4px solid #b8643d;padding:12px;margin:10px 0 14px;font-weight:600;line-height:1.5}
body.woocommerce-checkout .woocommerce-NoticeGroup,body.woocommerce-checkout .woocommerce-error,body.woocommerce-checkout .woocommerce-message{scroll-margin-top:150px}

/* 0.3.3 pickup/delivery radio controls: override the product theme's global input width. */
.erp-rental-form .erp-delivery-fieldset>label.erp-pickup-choice,
.erp-rental-form .erp-delivery-fieldset>label.erp-delivery-choice{display:flex!important;align-items:flex-start;gap:10px;line-height:1.45;font-size:14px;font-weight:500;margin:12px 0!important;cursor:pointer}
.erp-rental-form .erp-delivery-fieldset>label input[type="radio"]{appearance:auto!important;display:inline-block!important;position:static!important;flex:0 0 17px!important;width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;min-height:17px!important;padding:0!important;margin:2px 0 0!important;border-radius:50%!important;box-shadow:none!important;vertical-align:middle!important}
.erp-rental-form .erp-delivery-fieldset>label span{display:block;flex:1;min-width:0}
.erp-rental-form .erp-delivery-fieldset.erp-half-pickup-only>legend,
.erp-rental-form .erp-delivery-fieldset.erp-half-pickup-only>label.erp-pickup-choice{display:none!important}
.erp-rental-form .erp-delivery-fieldset.erp-half-pickup-only{padding-top:12px}
.erp-rental-form .erp-pickup-location[hidden]{display:none!important}
.erp-rental-form .erp-pickup-location>label{display:block;margin-bottom:5px;font-weight:600}
.erp-rental-form .erp-pickup-location select{max-width:100%;width:100%}
.erp-rental-form .erp-pickup-status{color:#b42318;font-size:13px;margin-top:6px}

.erp-rental-form .erp-pickup-map-link{display:inline-flex;margin:4px 0 10px;font-weight:600;text-decoration:underline;min-height:32px;align-items:center}.erp-rental-form .erp-pickup-map-link[hidden]{display:none!important}

/* 0.3.8: align delivery fields in classic WooCommerce checkout, also on mobile. */
body.woocommerce-checkout .woocommerce-additional-fields #erp_delivery_hotel_field,
body.woocommerce-checkout .woocommerce-additional-fields #erp_delivery_address_field,
body.woocommerce-checkout .woocommerce-additional-fields #erp_delivery_maps_field,
body.woocommerce-checkout .woocommerce-additional-fields #erp_delivery_notes_field{width:100%!important;float:none!important;clear:both;box-sizing:border-box}
body.woocommerce-checkout #erp_delivery_hotel_field input,
body.woocommerce-checkout #erp_delivery_address_field input,
body.woocommerce-checkout #erp_delivery_maps_field input,
body.woocommerce-checkout #erp_delivery_notes_field textarea{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box}

/* 0.3.19: full-day pickup/return time selection, both collection and on-site pickup. */
.erp-rental-form .erp-full-hours[hidden], .erp-rental-form .erp-delivery-hours-help[hidden]{display:none!important}
.erp-rental-form .erp-full-hours{padding:10px 12px;margin:12px 0;border:1px solid #d8dfd9;border-radius:8px;background:#fff}
.erp-rental-form .erp-hours-heading{font-weight:700;margin-bottom:10px;color:#26382f}
.erp-rental-form .erp-hours-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.erp-rental-form .erp-hours-row p{min-width:0}
.erp-rental-form .erp-hours-row select{width:100%;max-width:none;box-sizing:border-box}
.erp-rental-form .erp-hours-help,.erp-rental-form .erp-delivery-hours-help{font-size:13px;line-height:1.5;color:#536458}
.erp-rental-form .erp-delivery-hours-help{font-weight:600;color:#704d29}
@media(max-width:560px){.erp-rental-form .erp-hours-row{grid-template-columns:1fr}}

.erp-time-availability {font-size:.9rem;line-height:1.45;margin:.6em 0;}
.erp-time-availability.erp-slot-error {color:#a22;}

/* 0.3.23: explain disabled delivery/collection slots immediately beside selectors. */
.erp-rental-form .erp-slot-blocked-help{font-size:13px;line-height:1.55;color:#543c29;background:#fff9f2;border-left:3px solid #ad754e;padding:10px 12px;margin:4px 0 12px;border-radius:0 5px 5px 0}
.erp-rental-form .erp-slot-blocked-help[hidden]{display:none!important}

/* 0.3.27: ERP booking fields are a full-width first row in the native WooCommerce
   form, even when Elementor Add To Cart uses its Inline/flex layout.
   Keep quantity and submit alongside each other on the following row.
   Scoped to products where ERP injects its booking form: no global cart styles. */
form.cart:has(> .erp-rental-form){display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;column-gap:12px!important;row-gap:12px!important}
form.cart:has(> .erp-rental-form)> .erp-rental-form{flex:0 0 100%!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0 0 4px!important}
form.cart:has(> .erp-rental-form)> .quantity{flex:0 0 auto!important;width:auto!important;min-width:0!important;float:none!important;margin:0!important;align-self:center!important}
form.cart:has(> .erp-rental-form)> button.single_add_to_cart_button{flex:0 1 auto!important;width:auto!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:44px!important;float:none!important;margin:0!important;align-self:center!important;white-space:normal!important}

/* 0.3.28: dynamic rental accessory selector, kept separate from the Elementor cart button. */
form.cart:has(> .erp-rental-form)> .erp-accessory-options{flex:0 0 100%!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;margin:3px 0 6px!important}
.erp-accessory-options{border:1px solid #d7dfd7;border-radius:8px;background:#fbfcfa;padding:12px 14px;margin:14px 0;color:#26382f}
.erp-accessory-options legend{font-weight:700;padding:0 6px}
.erp-accessory-intro,.erp-accessory-hint{font-size:13px;line-height:1.5;color:#4e5e52;margin:5px 0 12px}
.erp-accessory-row{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:12px;align-items:center;padding:9px 0;border-top:1px solid #e2e9e2}
.erp-accessory-row label{display:block;margin:0;font-weight:600;font-size:14px;line-height:1.4;color:#26382f}
.erp-accessory-row small{display:block;margin-top:3px;font-size:12px;font-weight:400;color:#536458}
.erp-accessory-row input[type="number"]{width:72px!important;min-width:0!important;max-width:72px!important;box-sizing:border-box;border:1px solid #aab9ab;border-radius:5px;padding:7px 9px;margin:0}
.erp-accessory-summary{font-weight:700;color:#26382f;font-size:14px;margin:12px 0 6px}
@media(max-width:480px){.erp-accessory-options{padding:10px}.erp-accessory-row{gap:8px;grid-template-columns:minmax(0,1fr) 65px}.erp-accessory-row input[type="number"]{width:65px!important;max-width:65px!important}}
