/* WordPress plugin page: /wordpress-brewing-calculators (wordpress_brewing_calculators.php).
   Builds on embed-calculators.css (cb-shop-*) and shopify-guide.css (cb-guide-*). */

.cb-wp-figure {
  margin: var(--cb-space-md) 0 var(--cb-space-lg);
}

.cb-wp-figure img {
  border: 1px solid var(--cb-border-soft);
  border-radius: var(--cb-radius-lg);
  box-shadow: var(--cb-shadow-card);
  display: block;
  height: auto;
  max-width: 100%;
}

.cb-wp-figure figcaption {
  color: var(--cb-text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: var(--cb-space-xs);
}

.cb-wp-shots {
  display: grid;
  gap: var(--cb-space-lg);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cb-wp-shots .cb-wp-figure {
  margin: 0;
}

.cb-wp-center {
  justify-content: center;
  margin-top: var(--cb-space-lg);
  text-align: center;
}

.cb-wp-options td:first-child,
.cb-wp-options td:last-child {
  white-space: nowrap;
}

.cb-shop-final .cb-shop-actions {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .cb-wp-shots {
    grid-template-columns: minmax(0, 1fr);
  }

  /* shopify-guide.css hides the second column on phones (its iframe ID column);
     here it is the description, so show it and hide the example column instead. */
  .cb-wp-options th:nth-child(2),
  .cb-wp-options td:nth-child(2) {
    display: table-cell;
  }

  .cb-wp-options th:nth-child(3),
  .cb-wp-options td:nth-child(3) {
    display: none;
  }
}
