/* Store picker layout. Woo block classes draw buttons, fields and radio options; this file only places them. */

.abt-store-pick { margin-top: 8px; font-size: 14px; line-height: 1.4; }
.abt-store-pick__desc { margin: 0 0 12px; }
.abt-store-pick__actions { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.abt-store-pick__chosen + .abt-store-pick__actions { margin-top: 12px; }
.abt-store-pick__label { display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.abt-store-pick__brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.abt-store-pick__actions:has(.abt-store-pick__brands) { display: block; }
.abt-store-pick__brand { position: relative; }
.abt-store-pick__brand .abt-store-pick__button { width: 100%; padding-left: 10px; padding-right: 10px; }
.abt-store-pick__brand .wc-block-components-button__text { width: 100%; }
.abt-store-pick__brand [aria-haspopup] .abt-store-pick__label { justify-content: flex-start; }
.abt-store-pick__brand [aria-haspopup] svg { margin-left: auto; }
.abt-store-pick .abt-store-pick__brand img { height: 20px; width: auto; }
.abt-store-pick__menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 10; min-width: 100%; padding: 4px 0; background: #fff; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.abt-store-pick__menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; border: 0; background: none; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
.abt-store-pick__menu button:hover, .abt-store-pick__menu button:focus-visible { background: rgba(0, 0, 0, 0.05); }
.abt-store-pick__chosen { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.abt-store-pick__store strong { display: block; font-weight: 500; }
.abt-store-pick .abt-store-pick__logo { height: 16px; width: auto; margin-right: 6px; vertical-align: -3px; }
.abt-store-pick__change { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
.abt-store-pick__change:hover { text-decoration: underline; }
.abt-store-pick__change[hidden] { display: none; }
.abt-store-pick__status { display: block; color: var(--abt-notice, #ca3500); }
.abt-store-pick__status:empty { display: none; }
label img.abt-store-pick__title-logo { height: 20px; width: auto; margin-left: 6px; vertical-align: middle; }

html.abt-store-dialog-open { overflow: hidden; }
.abt-store-dialog { width: min(720px, calc(100vw - 48px)); height: min(600px, calc(100vh - 64px)); padding: 0; border: 0; border-radius: 4px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); flex-direction: column; }
.abt-store-dialog[open] { display: flex; animation: abt-store-dialog-rise 0.3s ease-out; }
.abt-store-dialog:focus { outline: none; }
.abt-store-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.abt-store-dialog[open]::backdrop { animation: abt-store-dialog-fade 0.3s ease-out; }
.abt-store-dialog.is-closing { animation: abt-store-dialog-leave 0.3s ease-in forwards; }
.abt-store-dialog.is-closing::backdrop { animation: abt-store-dialog-fadeout 0.3s ease-in forwards; }
@keyframes abt-store-dialog-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes abt-store-dialog-leave { to { opacity: 0; transform: translateY(-24px); } }
@keyframes abt-store-dialog-fade { from { opacity: 0; } }
@keyframes abt-store-dialog-fadeout { to { opacity: 0; } }
.abt-store-dialog__close { position: absolute; top: 12px; right: 16px; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.abt-store-dialog__search { padding: 60px 24px 16px; }
.abt-store-dialog__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.abt-store-dialog__keyword { position: relative; margin: 0; }
.abt-store-dialog__keyword > svg { position: absolute; left: 12px; top: 15px; z-index: 1; pointer-events: none; }
.abt-store-dialog #abt-store-keyword { padding-left: 42px; }
.abt-store-dialog .abt-store-dialog__keyword label { left: 43px; }
.abt-store-dialog__list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 24px 16px; }
.abt-store-dialog__more { margin: 12px 0 0; }
.abt-store-dialog__state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; opacity: 0.7; }
.abt-store-dialog__spinner { width: 24px; height: 24px; border: 2px solid rgba(0, 0, 0, 0.15); border-top-color: currentColor; border-radius: 50%; animation: abt-store-dialog-spin 0.8s linear infinite; }
@keyframes abt-store-dialog-spin { to { transform: rotate(360deg); } }
.abt-store-dialog__footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid rgba(0, 0, 0, 0.15); }
.abt-store-dialog__footer[hidden] { display: none; }

@media (max-width: 600px) {
	.abt-store-pick__brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.abt-store-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
	.abt-store-dialog__row { grid-template-columns: 1fr; }
}
