.uck-dr-purchase{--dr-border:#dce0e3;--dr-muted:#6a7279;--dr-selected:#287c32;position:relative;width:100%;margin:0 0 12px;color:inherit}
[data-tk-theme=dark] .uck-dr-purchase{--dr-border:#41464c;--dr-muted:#abb2ba;--dr-selected:#ebba69}
.uck-dr-purchase fieldset{min-width:0;margin:0;padding:0 17px 4px;border:1px solid var(--dr-border);border-radius:5px}
.uck-dr-purchase legend{display:flex;align-items:center;gap:8px;width:100%;padding:0;margin:0;font-size:14px;font-weight:600;line-height:24px}
.uck-dr-purchase legend::after{content:"";order:1;flex:1;border-top:1px solid var(--dr-border)}
.uck-dr-purchase legend>span{order:0}
.uck-dr-purchase legend>.uck-dr-terms-link{order:2}
.uck-dr-purchase label{display:flex;align-items:center;gap:11px;min-height:44px;margin:0;padding:9px 0;cursor:pointer;font-size:14px;line-height:1.5}
.uck-dr-purchase label+label{border-top:1px solid var(--dr-border)}
.uck-dr-purchase input[type=radio]{width:16px;height:16px;margin:0;flex:none;accent-color:var(--dr-selected)}
.uck-dr-purchase label:has(input:checked){color:var(--dr-selected);font-weight:600}
.uck-dr-purchase label:has(input:disabled){opacity:.5;cursor:not-allowed}
.uck-dr-full,.uck-dr-amount{margin-left:auto;white-space:nowrap;font-weight:600}
.uck-dr-terms-link{border:0;background:none;color:inherit;padding:0;font:inherit;font-size:12px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.uck-dr-purchase legend>.uck-dr-terms-link{position:static;display:inline-flex;align-items:center;gap:4px;flex:none;min-height:24px;padding:0;border:0;border-radius:0;box-shadow:none;line-height:24px;font-weight:400;color:var(--dr-muted);background:transparent}
.uck-dr-helper,.uck-dr-login,.uck-dr-notice{font-size:13px;line-height:1.5;color:var(--dr-muted);margin:8px 0 0}
.uck-dr-purchase [hidden],button.uck-dr-checkout[hidden],.uck-dr-is-deposit .single_add_to_cart_button{display:none!important}
form.cart:has(.uck-dr-purchase){flex-wrap:wrap}
form.cart:has(.uck-dr-purchase) .quantity{display:none}
form.cart:has(.uck-dr-purchase) :is(.single_add_to_cart_button,.uck-dr-checkout){box-sizing:border-box;width:100%;flex:1 0 100%;height:52px;min-height:52px;padding:0 22px;border:0;border-radius:4px;font-size:16px;font-weight:600;line-height:52px;text-align:center;margin:0}
/* Reserve the existing helper slot so changing payment choice cannot move the CTA. */
.uck-dr-purchase:not([data-stocked="1"]):not([data-restricted="1"]) .uck-dr-helper[hidden]{display:block!important;visibility:hidden}
/* Owner review: retain the native badge content but hide its complete product-page block. */
.single-product .summary #text-5 fieldset{display:none}

.single-product .summary form.cart :is(.single_add_to_cart_button,.uck-dr-checkout)::before{content:"";display:inline-block;width:1em;height:1em;margin-inline-end:.5em;vertical-align:-.13em;background-color:currentColor;pointer-events:none;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3M12 14v3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3M12 14v3'/%3E%3C/svg%3E") center/contain no-repeat}
/* Approved short terms: visual hierarchy only, shared by product and deposit checkout. */
#uck-dr-terms{--terms-muted:#505961;--terms-line:#e3e5e7;--terms-gold:#946413;--terms-tint:#fcf8ef;width:min(696px,calc(100vw - 30px));max-height:85vh;overflow:auto;box-sizing:border-box;padding:30px 32px 12px;border:1px solid var(--terms-line);border-radius:14px;background:#fff;color:#24292d;font-size:15px;line-height:1.65}
[data-tk-theme=dark] #uck-dr-terms{--terms-muted:#c3c8ce;--terms-line:#434950;--terms-gold:#ebba69;--terms-tint:#33312c;background:#292e34;color:#eceeef;color-scheme:dark}
#uck-dr-terms::backdrop{background:#0009}
#uck-dr-terms h2{font-size:25px;line-height:1.3;letter-spacing:-.5px;font-weight:650;margin:0 40px 22px 0}
#uck-dr-terms h3{font-size:16px;line-height:1.5;font-weight:600;margin:0 0 7px}
#uck-dr-terms p{font-size:15px;line-height:1.65;color:var(--terms-muted);margin:0}
#uck-dr-terms strong{font-weight:600;color:inherit}
#uck-dr-terms .uck-dr-terms-intro{background:var(--terms-tint);border-left:3px solid var(--terms-gold);padding:15px 18px;border-radius:0 6px 6px 0;margin-bottom:6px}
#uck-dr-terms .uck-dr-terms-section{display:grid;grid-template-columns:22px minmax(0,1fr);gap:14px;padding:20px 0}
#uck-dr-terms .uck-dr-terms-section+.uck-dr-terms-section{border-top:1px solid var(--terms-line)}
#uck-dr-terms .uck-dr-terms-section>svg{width:19px;height:19px;margin-top:4px;color:var(--terms-gold)}
#uck-dr-terms .uck-dr-terms-section p+p{margin-top:10px}
#uck-dr-terms .uck-dr-close{float:right;display:flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:0;background:transparent;border:0;border-radius:6px;color:inherit;font-size:26px;line-height:1;padding:0}
#uck-dr-terms .uck-dr-close:hover{background:var(--terms-tint)}
@media(max-width:480px){#uck-dr-terms{padding:22px 20px 6px}#uck-dr-terms h2{font-size:22px}#uck-dr-terms .uck-dr-terms-section{gap:10px}#uck-dr-terms .uck-dr-close{width:36px;height:36px}}
/* Keep the approved text controls readable under the native dark button rules. */
[data-tk-theme=dark] .uck-dr-purchase legend>.uck-dr-terms-link{background:transparent!important;color:var(--dr-muted)!important;border:0!important}
[data-tk-theme=dark] .uck-dr-purchase label:has(input:checked){color:var(--dr-selected)!important}
[data-tk-theme=dark] .uck-dr-purchase legend{color:var(--tk-text,#edeef0)!important}
#uck-dr-terms h2,#uck-dr-terms h3{color:inherit}
.uck-dr-terms-link:focus-visible,.uck-dr-close:focus-visible{outline:2px solid currentColor;outline-offset:4px}
@media(max-width:480px){.uck-dr-purchase legend{font-size:13px}.uck-dr-purchase legend>.uck-dr-terms-link{font-size:11px}.uck-dr-helper{font-size:12px}}

/* Purchase header: only the label underlines on interaction, never the icon. */
.uck-dr-purchase legend>.uck-dr-terms-link,.uck-dr-purchase legend>.uck-dr-terms-link>span{text-decoration:none}
.uck-dr-purchase legend>.uck-dr-terms-link:is(:hover,:focus)>span:last-child{text-decoration:underline;text-underline-offset:3px}

/* Checkout acknowledgment: inline modal link, without altering the checkbox. */
.woocommerce-checkout a.uck-dr-inline-terms{display:inline-block;white-space:nowrap;color:#1e68c4;background:transparent!important;border:0;border-radius:0;box-shadow:none;padding:0;font:inherit;line-height:inherit;text-decoration:underline;text-decoration-thickness:.75px;text-underline-offset:.12em}
[data-tk-theme=dark] .woocommerce-checkout a.uck-dr-inline-terms{color:#ecedef}
.woocommerce-checkout a.uck-dr-inline-terms:hover{color:#1e68c4;text-decoration-thickness:2px}
[data-tk-theme=dark] .woocommerce-checkout a.uck-dr-inline-terms:hover{color:#ecedef}
.woocommerce-checkout a.uck-dr-inline-terms:focus-visible{outline:2px solid currentColor;outline-offset:3px;text-decoration-thickness:2px}
