/* Purchase controls only; keep the juvenile theme's page styling intact. */
.novel-purchase-links.yz-store-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 28px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  letter-spacing: 0;
}

.yz-store-panel .yz-store-header {
  margin: 0 0 24px;
  text-align: center;
}

.yz-store-panel .yz-store-heading {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.yz-store-panel .yz-store-subheading {
  margin: 6px 0 0;
  color: #626a72;
  font-size: 12px;
  line-height: 1.5;
}

.yz-store-panel .yz-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yz-store-panel .yz-store-item {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.yz-store-panel a.yz-store-button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 60px;
  height: 100%;
  margin: 0;
  padding: 10px 8px;
  border: 1px solid var(--yz-store-brand-border, #b8bfc5);
  border-radius: 8px;
  background: var(--yz-store-brand-background, #f4f5f6);
  color: var(--yz-store-brand-color, #38424a);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.yz-store-panel .yz-store-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.yz-store-panel .yz-store-arrow {
  flex: 0 0 16px;
  color: var(--yz-store-brand-color, #647078);
  font-size: 18px;
  line-height: 1;
  text-align: center;
  transition: transform 0.2s ease;
}

.site .novel-purchase-links.yz-store-panel a.yz-store-button:focus {
  outline: 2px solid var(--yz-store-brand-focus-color, var(--yz-store-brand-color, #627c89));
  outline-offset: 3px;
  background: var(--yz-store-brand-background, #f4f5f6);
  color: var(--yz-store-brand-color, #38424a);
  text-decoration: none;
}

.site .novel-purchase-links.yz-store-panel a.yz-store-button:focus:not(:focus-visible) {
  outline: none;
}

.site .novel-purchase-links.yz-store-panel a.yz-store-button:focus-visible {
  outline: 2px solid var(--yz-store-brand-focus-color, var(--yz-store-brand-color, #627c89));
  outline-offset: 3px;
  border-color: var(--yz-store-brand-hover-border, #9aabb2);
  background: var(--yz-store-brand-hover-background, #e9eef0);
  color: var(--yz-store-brand-color, #29353c);
  text-decoration: none;
}

@media (any-hover: hover) {
  .yz-store-panel a.yz-store-button:hover {
    text-decoration: none;
  }

  .yz-store-panel a.yz-store-button:hover .yz-store-arrow {
    transform: translateX(2px);
  }
}

@media (min-width: 600px) {
  .novel-purchase-links.yz-store-panel {
    padding: 32px;
  }

  .yz-store-panel .yz-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .yz-store-panel a.yz-store-button {
    gap: 10px;
    padding: 14px 18px;
  }

  .yz-store-panel .yz-store-arrow {
    flex-basis: 20px;
    font-size: 20px;
  }
}

@media (min-width: 900px) {
  .yz-store-panel .yz-store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .yz-store-panel a.yz-store-button,
  .yz-store-panel .yz-store-arrow {
    transition: none;
  }

  .yz-store-panel a.yz-store-button:hover .yz-store-arrow {
    transform: none;
  }
}
