/*
 * Stripe's Address Element in the checkout's Delivery and Billing sections (static-payment.js addressForm).
 * Its fields are Stripe's frame, dressed by StaticCheckout.appearance(); this file draws only the box around it:
 * the space it holds while Stripe loads (no jump when it arrives), and the edge's refusal under it.
 * Loaded after static-store.css, whose custom properties (--sc-*) it uses.
 */
.static-address-element { position: relative; }

/* Stripe's frame draws the fields; until it is ready the box keeps the address form's height, shimmering. */
.static-address-element.is-loading .static-address-element__frame {
  min-height: 21rem;
  border-radius: var(--sc-radius);
  background: linear-gradient(90deg, var(--sc-panel-strong) 0%, var(--sc-panel) 40%, var(--sc-panel-strong) 80%);
  background-size: 300% 100%;
  animation: static-shimmer 1.4s ease-in-out infinite;
}
@media (min-width: 40em) {
  .static-address-element.is-loading .static-address-element__frame { min-height: 17rem; }
}
@media (prefers-reduced-motion: reduce) {
  .static-address-element.is-loading .static-address-element__frame { animation: none; }
}

/* Woo's company field, the page's own input above Stripe's fields: the same gap as between Stripe's own rows (16px). */
.static-address-element > .static-field--company { margin-bottom: 1rem; }

/* What the edge refused for this address (a postcode it cannot ship to): under the fields, as a field's error. */
.static-address-element__error { margin-top: 0.5rem; }
