.duke-ordering { --duke-accent: #295441; margin: 1.5em 0 2em; padding: clamp(18px, 3vw, 30px); border: 1px solid #d8e0d8; border-radius: 12px; background: #fafcf9; color: #24312a; }
.duke-order-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.duke-order-heading h2 { margin: 0 0 6px; font-size: 1.5em; }
.duke-order-heading p { margin: 0; }
.duke-step { display: grid; place-items: center; background: var(--duke-accent); color: white; border-radius: 50%; min-width: 36px; height: 36px; font-weight: bold; }
.duke-methods { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.duke-methods label { padding: 14px 18px; border: 1px solid #bccbbf; border-radius: 8px; background: white; cursor: pointer; }
.duke-methods label:has(input:checked) { border-color: var(--duke-accent); background: #edf4ee; }
.duke-methods label:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.duke-shipping-reason { font-size: .9em; margin: -8px 0 18px; }
.duke-item-method { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #d8e0d8; }
.duke-item-method label { display: grid; gap: 5px; font-size: .9em; }
.duke-item-method select { min-height: 42px; padding: 8px 12px; background: white; color: #24312a; border: 1px solid #abb8ac; border-radius: 5px; }
.duke-item-methods { margin-bottom: 22px; }
.duke-item-availability { flex: 1; min-width: 0; line-height: 1.6; }
.duke-item-method > label { flex-shrink: 0; }
@media (max-width: 650px) { .duke-item-method { align-items: flex-start; flex-direction: column; gap: 8px; } }
.duke-fields-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.duke-fields-grid label { font-weight: 600; }
.duke-fields-grid input, .duke-fields-grid select { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 10px; border: 1px solid #abb8ac; border-radius: 5px; background: white; color: #24312a; }
.duke-calendar-hint, .duke-save-hint { font-size: .9em; margin: 12px 0; }
.duke-order-feedback { margin: 16px 0; padding: 12px 16px; border-left: 3px solid #438052; background: #eff7ef; }
.duke-order-feedback p { margin: 4px 0; }
.duke-order-feedback.duke-has-errors { border-color: #b66319; background: #fff3e5; }
.duke-order-feedback a, .duke-item-availability a { color: #6b3515; text-decoration: underline; }
.duke-availability-badge { display: inline-block; padding: 4px 10px; margin: 6px 0; border-radius: 15px; font-size: .8em; font-weight: 600; background: #e8f1e7; color: #274c2d; }
.duke-shipping_only { background: #e8eef9; color: #264575; }
.duke-both { background: #f5ebdd; color: #68481d; }
.duke-needs-details { opacity: .6; }
.duke-cart-timer { padding: 14px 18px; border: 1px solid #b66319; border-radius: 6px; background: #fff3e5; color: #54300f; }
.duke-ordering :focus-visible { outline: 3px solid #426eae; outline-offset: 2px; }
@media (max-width: 650px) { .duke-fields-grid { grid-template-columns: 1fr; } .duke-methods label { flex: 1 1 100%; } }
/* WordPress supplies the datepicker script; keep its popup readable across themes. */
#ui-datepicker-div { display: none; width: 19em; max-width: calc(100vw - 24px); padding: 12px; border: 1px solid #abb8ac; border-radius: 8px; background: white; color: #24312a; box-shadow: 0 5px 22px #0003; z-index: 10000 !important; font: 16px/1.5 sans-serif; }
#ui-datepicker-div .ui-datepicker-header { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; }
#ui-datepicker-div .ui-datepicker-title { order: -1; width: 100%; text-align: center; font-weight: bold; }
#ui-datepicker-div .ui-datepicker-prev, #ui-datepicker-div .ui-datepicker-next { padding: 6px; cursor: pointer; color: #295441; }
#ui-datepicker-div table { width: 100%; border-collapse: collapse; margin: 0; }
#ui-datepicker-div td, #ui-datepicker-div th { padding: 2px; text-align: center; border: 0; }
#ui-datepicker-div td a, #ui-datepicker-div td span { display: block; padding: 6px 3px; text-decoration: none; }
#ui-datepicker-div td a { background: #e8f1e7; color: #274c2d; border-radius: 4px; }
#ui-datepicker-div .ui-state-disabled { opacity: .35; }
#ui-datepicker-div .ui-state-active { background: #295441; color: white; }
/* Scope rate layout to our pickup row; themes otherwise add list bullets and radio ornaments. */
.duke-pickup-totals ul.duke-pickup-rates { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.duke-pickup-totals ul.duke-pickup-rates > li { list-style: none !important; margin: 0; padding: 0; }
.duke-pickup-totals ul.duke-pickup-rates > li::before { content: none !important; display: none !important; }
.duke-pickup-totals .duke-pickup-rate-label { display: inline; margin: 0; padding: 0; }
.duke-pickup-totals input[type="hidden"] { display: none !important; }
/* Remove only empty theme wrappers; retain order notes and extension fields. */
body.duke-pickup-checkout #customer_details .duke-empty-shipping-column,
body.duke-pickup-checkout .duke-orphan-payment-separator { display: none !important; }
body.duke-pickup-checkout #customer_details.duke-single-billing-column { display: block; }
body.duke-pickup-checkout #customer_details.duke-single-billing-column > .col-1 { width: 100% !important; max-width: 100%; float: none; margin-right: 0; box-sizing: border-box; }
