.casio-az-delivery-note { margin: 7px 0 0; color: #607089; font-size: 13px; line-height: 1.35; }
.casio-az-delivery-note.is-loading { color: #64748b; }
.casio-az-delivery-note.is-success { color: #18794e; }
.casio-az-delivery-note.is-error { color: #b4232d; }
.casio-az-delivery-note.is-info { color: #166b80; }
.casio-az-delivery-note.is-manual { display: inline-flex; align-items: center; min-height: 30px; margin-top: 9px; padding: 5px 10px; border: 1px solid #f2d49b; border-radius: 8px; color: #85550b; background: #fff8e8; font-weight: 600; }
.casio-az-postcode-example { margin: 5px 0 0; color: #667085; font-size: 12px; line-height: 1.35; }
html.casio-az-delivery-zero .wc-block-components-totals-shipping,
html.casio-az-delivery-zero .woocommerce-checkout-review-order-table .woocommerce-shipping-totals.shipping { display: none !important; }
.casio-az-state-native { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.casio-az-city-native { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.casio-az-city-display { display: block; width: 100%; box-sizing: border-box; }
.casio-az-state-search { display: block; width: 100%; min-height: 52px; box-sizing: border-box; padding: 20px 40px 7px 12px; border: 1px solid #202b40; border-radius: 4px; color: #17233a; background: #fff; font: inherit; }
.casio-az-state-search:focus { border-color: #3fa7bd; outline: 2px solid rgba(63, 167, 189, .18); outline-offset: 0; }
.casio-az-state-search:invalid:not(:focus) { border-color: #cc1818; }
.casio-az-picker-input { cursor: pointer; }
.casio-az-picker-input--locality { padding-right: 42px !important; background-color: #fff; background-image: linear-gradient(45deg, transparent 50%, #344054 50%), linear-gradient(135deg, #344054 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.casio-az-state-wrap { position: relative; }
.casio-az-state-wrap > .select2-container,
.casio-az-state-wrap > svg,
.casio-az-state-wrap .wc-block-components-select__expand { display: none !important; }
.casio-az-state-wrap::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #344054; border-bottom: 2px solid #344054; transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.casio-az-delivery-order-details { margin-top: 28px; padding: 20px; border: 1px solid #dce5ec; border-radius: 12px; background: #f7fafc; }
.casio-az-delivery-order-details h2 { margin-top: 0; }

.casio-az-picker-overlay { position: fixed; z-index: 999990; inset: 0; visibility: hidden; opacity: 0; background: rgba(9, 26, 52, .22); backdrop-filter: blur(2px); transition: opacity .18s ease, visibility .18s ease; }
.casio-az-picker-overlay.is-open { visibility: visible; opacity: 1; }
.casio-az-picker { --casio-blue: #063e9f; --casio-cyan: #3fa7bd; position: fixed; z-index: 999999; display: flex; visibility: hidden; flex-direction: column; max-width: calc(100vw - 24px); max-height: min(430px, calc(100vh - 24px)); overflow: hidden; border: 1px solid #d7e2ec; border-radius: 18px; opacity: 0; background: #fff; box-shadow: 0 24px 70px rgba(11, 31, 59, .24), 0 4px 16px rgba(11, 31, 59, .12); transform: translateY(8px) scale(.985); transform-origin: top center; transition: opacity .16s ease, transform .16s ease, visibility .16s ease; font-family: inherit; }
.casio-az-picker.is-open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.casio-az-picker > header { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 14px 15px 13px 19px; color: #fff; background: linear-gradient(120deg, var(--casio-blue), #0753bb 68%, var(--casio-cyan)); }
.casio-az-picker > header > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.casio-az-picker > header span { color: #bfeefa; font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1.2; }
.casio-az-picker > header strong { overflow: hidden; font-size: 17px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.casio-az-picker > header button { appearance: none; display: grid; width: 40px; height: 40px; margin: 0 0 0 12px; padding: 0; flex: 0 0 40px; place-items: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12); box-shadow: none; cursor: pointer; font: 300 28px/1 inherit; }
.casio-az-picker > header button:hover,
.casio-az-picker > header button:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .22); outline: none; }
.casio-az-picker__query { display: flex; min-height: 48px; margin: 12px 14px 0; padding: 0 14px; align-items: center; gap: 11px; border: 1px solid #cfdae5; border-radius: 12px; color: #17233a; background: #fff; box-shadow: inset 0 1px 2px rgba(11, 31, 59, .04); }
.casio-az-picker__query i { position: relative; width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid var(--casio-cyan); border-radius: 50%; }
.casio-az-picker__query i::after { content: ''; position: absolute; right: -5px; bottom: -3px; width: 6px; height: 2px; border-radius: 2px; background: var(--casio-cyan); transform: rotate(45deg); }
.casio-az-picker__query input { appearance: none; width: 100%; min-width: 0; height: 42px; margin: 0; padding: 0; border: 0 !important; border-radius: 0; outline: 0 !important; color: #17233a; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 15px; font-weight: 650; }
.casio-az-picker__query input::-webkit-search-cancel-button { cursor: pointer; }
.casio-az-picker__summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 18px; border-bottom: 1px solid #e7edf3; color: #344054; background: #f7fafc; }
.casio-az-picker__summary span { flex: 0 0 auto; color: var(--casio-blue); font-size: 12px; font-weight: 800; }
.casio-az-picker__summary small { overflow: hidden; color: #66758c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.casio-az-picker__results { padding: 8px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #b7c6d3 transparent; scrollbar-width: thin; }
.casio-az-picker__option,
.casio-az-picker__custom { appearance: none; display: flex; width: 100%; min-height: 58px; margin: 0; padding: 10px 11px 10px 13px; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid #edf1f5; border-radius: 10px; color: #13233d; background: #fff; box-shadow: none; text-align: left; cursor: pointer; font: inherit; transition: color .14s ease, background .14s ease, transform .14s ease; }
.casio-az-picker__option:hover,
.casio-az-picker__option:focus-visible { color: var(--casio-blue); background: #edf8fb; outline: none; transform: translateX(2px); }
.casio-az-picker__option > span,
.casio-az-picker__custom > span:last-child { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.casio-az-picker__option strong,
.casio-az-picker__custom strong { overflow: hidden; font-size: 14px; font-weight: 750; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.casio-az-picker__option small,
.casio-az-picker__custom small { overflow: hidden; color: #66758c; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.casio-az-picker__option > i { flex: 0 0 auto; color: var(--casio-cyan); font-size: 18px; font-style: normal; }
.casio-az-picker__option.is-disabled strong,
.casio-az-picker__option.is-disabled small { color: #a23b43; }
.casio-az-picker__custom { min-height: 68px; margin-bottom: 8px; border: 1px solid #efd59d; background: #fff8e8; }
.casio-az-picker__custom:hover,
.casio-az-picker__custom:focus-visible { border-color: #d8a94f; background: #fff2d5; outline: none; }
.casio-az-picker__edit { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; color: #fff; background: #c88917; font-size: 24px; font-weight: 400; line-height: 1; }
.casio-az-picker__custom small { color: #85550b; white-space: normal; }
.casio-az-picker__empty { margin: 8px; padding: 22px 14px; border: 1px dashed #cad7e2; border-radius: 12px; color: #64748b; background: #f8fafc; text-align: center; font-size: 13px; }

@media (max-width: 900px) {
	html.casio-az-picker-open { overflow: hidden; }
	.casio-az-picker { right: 12px !important; bottom: max(12px, env(safe-area-inset-bottom)) !important; left: 12px !important; top: auto !important; width: auto !important; max-width: none; max-height: min(70vh, 620px); border-radius: 22px; transform: translateY(24px) scale(1); transform-origin: bottom center; }
	.casio-az-picker.is-open { transform: translateY(0) scale(1); }
	.casio-az-picker > header { min-height: 80px; padding-right: 18px; padding-left: 22px; }
	.casio-az-picker > header strong { font-size: 19px; }
	.casio-az-picker__option,
	.casio-az-picker__custom { min-height: 64px; padding: 12px 14px; }
	.casio-az-picker__option strong,
	.casio-az-picker__custom strong { font-size: 16px; }
	.casio-az-picker__option small,
	.casio-az-picker__custom small { font-size: 12px; }
}

@media (max-width: 600px) {
	.casio-az-state-search { min-height: 56px; }
	.casio-az-picker { right: 0 !important; bottom: 0 !important; left: 0 !important; max-height: min(76vh, 650px); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
	.casio-az-picker__summary { align-items: flex-start; flex-direction: column; gap: 3px; }
	.casio-az-picker__summary small { max-width: 100%; white-space: normal; }
}

@media (max-width: 900px) {
	.casio-az-picker.has-virtual-keyboard { top: calc(var(--casio-picker-viewport-top, 0px) + 8px) !important; bottom: auto !important; height: calc(var(--casio-picker-viewport-height, 100vh) - 16px); max-height: calc(var(--casio-picker-viewport-height, 100vh) - 16px); border-radius: 20px; }
	.casio-az-picker.has-virtual-keyboard > header { min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
	.casio-az-picker.has-virtual-keyboard > header strong { font-size: 17px; }
	.casio-az-picker.has-virtual-keyboard .casio-az-picker__query { margin-top: 8px; }
	.casio-az-picker.has-virtual-keyboard .casio-az-picker__summary { padding-top: 7px; padding-bottom: 7px; }
}

@media (prefers-reduced-motion: reduce) {
	.casio-az-picker,
	.casio-az-picker-overlay,
	.casio-az-picker__option { transition: none; }
}
