/* A core button block placed on a composed page is an OMEGA button. The one
   exception is the home hero's category strip, which is a run of flat grid
   cells and restyles itself in home.css. */
.omega-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid var(--omega-stone);
  background: var(--omega-stone);
  color: var(--omega-bark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.omega-button:hover,
.wp-block-button__link:hover {
  background: transparent;
  color: var(--omega-stone);
}

.omega-button:disabled,
.omega-button[aria-disabled="true"] {
  border-color: var(--omega-hair);
  background: var(--omega-raise);
  color: var(--omega-sand);
  cursor: not-allowed;
}

.omega-button--ghost {
  background: transparent;
  color: var(--omega-stone);
}

.omega-button--ghost:hover {
  background: var(--omega-stone);
  color: var(--omega-bark);
}

.omega-field {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--omega-hair);
  border-radius: 0;
  background: transparent;
}

.omega-field::placeholder {
  color: var(--omega-sand);
  opacity: 1;
}

.omega-field:focus {
  border-color: var(--omega-stone);
  outline: 2px solid var(--omega-ember);
  outline-offset: 2px;
}

.omega-field:disabled {
  border-style: dashed;
  background: var(--omega-bark);
  color: var(--omega-sand);
  cursor: not-allowed;
}

.omega-field[aria-invalid="true"] {
  border-color: var(--omega-ember);
}

.omega-field[aria-invalid="false"] {
  border-color: var(--omega-bronze);
}

.omega-price {
  font-family: var(--omega-sans);
  font-size: var(--omega-fs-price-sm);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--omega-ls-price);
}

.omega-price del {
  color: var(--omega-sand);
}

.omega-price ins {
  text-decoration: none;
}

.omega-caption {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  line-height: 1.05;
}

.omega-badge {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid currentColor;
  color: var(--omega-bronze);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.omega-empty-state {
  display: grid;
  min-height: 360px;
  padding: 48px;
  border: 1px solid var(--omega-hair);
  place-content: center;
  text-align: center;
}

.omega-empty-state h2 {
  margin-bottom: 16px;
  font-size: 48px;
}

.omega-empty-state p {
  max-width: 480px;
  color: var(--omega-sand);
}

/* WooCommerce prints notices at the top of whatever surface raised them, as a
   direct child of the page. They sit in the page column like everything else. */
.woocommerce-notices-wrapper:not(:empty) {
  padding: 24px var(--omega-gutter) 0;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
}

.woocommerce-notices-wrapper li {
  list-style: none;
}

/* The button inside a notice ("View basket") is a link, not the page's action:
   it takes the quiet treatment rather than the filled one. */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  flex: none;
  padding: 10px 18px;
  border: 1px solid var(--omega-hair);
  border-radius: 0;
  background: transparent;
  color: var(--omega-stone);
  font-family: var(--omega-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.omega-cart-empty {
  padding: 56px var(--omega-gutter) 88px;
}

.omega-cart-empty__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
}

.omega-cart-empty__secondary {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--omega-ember);
  color: var(--omega-paper);
  font-size: 15px;
  font-weight: 500;
}

/* select2 stays for the country and state controls; only its palette moves. */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-dropdown {
  border: 1px solid var(--omega-hair);
  border-radius: 0;
  background: var(--omega-olive);
  color: var(--omega-stone);
}

.select2-container--default .select2-selection--single {
  height: 54px;
  padding: 0 8px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--omega-stone);
  line-height: 54px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--omega-stone);
  color: var(--omega-ink);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid var(--omega-hair);
  border-radius: 0;
  background: var(--omega-raise);
  color: var(--omega-stone);
  list-style: none;
}

.woocommerce-message {
  border-color: var(--omega-bronze);
}

.woocommerce-error {
  border-color: var(--omega-ember);
}

body.omega-workshop .woocommerce-message,
body.omega-workshop .woocommerce-info,
body.omega-workshop .woocommerce-error {
  padding: 20px;
  border-width: 1px;
  border-style: solid;
  border-radius: 0;
  background: var(--omega-raise);
  color: var(--omega-stone);
}

body.omega-workshop .woocommerce-message::before,
body.omega-workshop .woocommerce-info::before,
body.omega-workshop .woocommerce-error::before {
  display: none;
  content: none;
}

.omega-loading-block {
  min-height: 14px;
  background: var(--omega-raise);
}

[dir="rtl"] .omega-button,
[dir="rtl"] .omega-price,
[dir="rtl"] .omega-badge {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

[dir="rtl"] .omega-caption {
  font-family: "Amiri", serif;
}
