.astrav-block {
  --astrav-color: #4d96cc;
  --astrav-border: #4d96cc;
  --astrav-radius: 10px;
  --astrav-columns: 3;
  --astrav-mobile-columns: 2;
  --astrav-gap: 10px;
  --astrav-image-size: 60px;
  margin: 18px 0 22px;
  clear: both;
  width: 100%; max-width: 100%; min-width: 0;
  box-sizing: border-box;
}
.astrav-block .astrav-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; line-height: 1.4; color: inherit; overflow-wrap: anywhere; }
.astrav-block .astrav-options {
  display: grid;
  grid-template-columns: repeat(var(--astrav-effective-columns, var(--astrav-columns)), minmax(0, 1fr));
  align-items: stretch; gap: var(--astrav-gap); min-width: 0; width: 100%; max-width: 100%;
}
.astrav-block .astrav-option {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 48px; min-width: 0; width: 100%; max-width: 100%; margin: 0;
  padding: 10px 12px; box-sizing: border-box;
  border: 1px solid var(--astrav-border); border-radius: var(--astrav-radius);
  background: transparent; color: var(--astrav-color); font-family: inherit;
  font-size: 13px; font-weight: 400; line-height: 1.4;
  text-align: center; text-decoration: none; white-space: normal;
  overflow-wrap: anywhere; word-break: normal;
  transition: background-color .15s, box-shadow .15s;
}
.astrav-block a.astrav-option:hover, .astrav-block a.astrav-option:focus-visible {
  color: var(--astrav-color); background: rgba(77, 150, 204, .08); text-decoration: none;
  outline: 2px solid var(--astrav-border); outline-offset: 2px;
}
.astrav-block .astrav-caption { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; width: 100%; }
.astrav-block .astrav-option-label, .astrav-block .astrav-option-name, .astrav-block .astrav-option-sku {
  display: block; min-width: 0; max-width: 100%; white-space: normal;
  overflow-wrap: anywhere; word-break: normal; text-overflow: clip;
}
.astrav-block .astrav-option-name, .astrav-block .astrav-option-sku { font-size: .9em; color: inherit; }
.astrav-block .astrav-has-image { gap: 8px; }
.astrav-block .astrav-option img.astrav-thumbnail {
  display: block; flex: 0 0 auto; width: var(--astrav-image-size); height: var(--astrav-image-size);
  max-width: 100%; margin: 0; object-fit: contain; opacity: 1;
}
/* Only the unavailable product's image is dimmed; captions and links stay usable. */
.astrav-block .astrav-option img.astrav-image-unavailable { opacity: 0.7; }
.astrav-block .astrav-image-top { flex-direction: column; justify-content: flex-start; }
.astrav-block .astrav-image-bottom { flex-direction: column-reverse; justify-content: flex-start; }
.astrav-block .astrav-image-left { flex-direction: row; text-align: left; }
.astrav-block .astrav-image-right { flex-direction: row-reverse; text-align: left; }
.astrav-block .astrav-image-left .astrav-caption, .astrav-block .astrav-image-right .astrav-caption { flex: 1 1 0; width: 0; }
.astrav-block.astrav-layout-list .astrav-options { grid-template-columns: repeat(var(--astrav-effective-columns, var(--astrav-list-columns, 1)), minmax(0, 1fr)); }
.astrav-block.astrav-layout-list .astrav-option { align-items: flex-start; justify-content: flex-start; text-align: left; min-height: 36px; padding: 9px 0; border: 0; border-bottom: 1px solid #dbe6e9; border-radius: 0; }
.astrav-block.astrav-layout-list .astrav-image-left, .astrav-block.astrav-layout-list .astrav-image-right { align-items: center; }
.astrav-block .astrav-select { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; padding: 10px 12px; border: 1px solid var(--astrav-border); border-radius: var(--astrav-radius); background: transparent; color: inherit; white-space: normal; }
.astrav-block .astrav-toggle {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; margin: 10px 0 0; padding: 6px 10px;
  border: 1px solid var(--astrav-border); border-radius: 5px; background: transparent;
  color: var(--astrav-color); font: inherit; font-size: 13px; line-height: 1.4; cursor: pointer; white-space: normal;
}
.astrav-block .astrav-toggle-sign { font-size: 19px; line-height: 1; }
.astrav-block .astrav-toggle:focus-visible { outline: 2px solid var(--astrav-border); outline-offset: 2px; }
.astrav-block .astrav-toggle:hover { background: rgba(77, 150, 204, .08); }
.astrav-block [hidden], .astrav-async[hidden] { display: none !important; }
.astrav-block.astrav-block-compact { --astrav-gap: 6px; --astrav-image-size: 38px; margin: 10px 0; }
.astrav-block-compact .astrav-title { font-size: 12px; margin-bottom: 6px; }
.astrav-block-compact .astrav-option { min-height: 32px; padding: 6px; font-size: 11px; border-radius: 5px; }
.astrav-block-compact .astrav-select { font-size: 12px; padding: 7px; }
@media (max-width: 600px) {
  .astrav-block .astrav-options { grid-template-columns: repeat(var(--astrav-effective-columns, var(--astrav-mobile-columns)), minmax(0, 1fr)); }
  .astrav-block.astrav-layout-list .astrav-options { grid-template-columns: repeat(var(--astrav-effective-columns, var(--astrav-list-mobile-columns, 1)), minmax(0, 1fr)); }
  .astrav-block { --astrav-gap: 8px; }
  .astrav-block .astrav-option { padding: 9px 8px; }
  .astrav-block-compact .astrav-option { padding: 6px; }
}
