/* AuthorStore frontend + module base styles */
.authorstore-page,
.authorstore-module,
.authorstore-page *,
.authorstore-module * {
  box-sizing: border-box;
}

.authorstore-page,
.authorstore-module {
  max-width: 100%;
  background: #fff;
  overflow-wrap: anywhere;
  word-break: normal;
}

.authorstore-page h1,
.authorstore-page h2,
.authorstore-page h3,
.authorstore-page h4,
.authorstore-module h1,
.authorstore-module h2,
.authorstore-module h3,
.authorstore-module h4,
.authorstore-page p,
.authorstore-module p,
.authorstore-page a,
.authorstore-module a,
.authorstore-description,
.authorstore-purchase-instructions,
.authorstore-category-description,
.authorstore-book-meta,
.authorstore-subtitle,
.authorstore-help {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.authorstore-book-grid,
.authorstore-author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  min-width: 0;
}

.authorstore-book-card,
.authorstore-author-card,
.authorstore-genre-card,
.authorstore-order-summary,
.authorstore-fieldset {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: .5rem;
}

.authorstore-book-card img,
.authorstore-author-card img,
.authorstore-book-cover,
.authorstore-author-photo {
  max-width: 100%;
  height: auto;
}

.authorstore-book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.authorstore-book-detail,
.authorstore-author-header {
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 100%;
}

.authorstore-book-main,
.authorstore-author-header > div {
  min-width: 0;
  max-width: 100%;
}

.authorstore-book-cover-large,
.authorstore-author-photo-large {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.authorstore-button {
  display: inline-block;
  max-width: 100%;
  padding: .55rem .9rem;
  border: 1px solid currentColor;
  border-radius: .35rem;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.authorstore-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  min-width: 0;
}

.authorstore-contact-form,
.authorstore-form,
.authorstore-order-form,
.authorstore-search-form {
  display: grid;
  gap: 1rem;
  max-width: 780px;
  min-width: 0;
}

.authorstore-contact-form input,
.authorstore-contact-form textarea,
.authorstore-form input,
.authorstore-form select,
.authorstore-form textarea,
.authorstore-search-form input,
.authorstore-search-form select,
.authorstore-search-form button {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.authorstore-form label {
  display: grid;
  gap: .35rem;
  font-weight: 600;
  min-width: 0;
}

.authorstore-form input,
.authorstore-form select,
.authorstore-form textarea {
  padding: .65rem;
  border: 1px solid #ccc;
  border-radius: .4rem;
}

.authorstore-form input[type="file"] {
  padding: .5rem 0;
}

.authorstore-form label.authorstore-checkbox-label,
.authorstore-checkbox-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .55rem;
  font-weight: 600;
  line-height: 1.35;
}
.authorstore-form label.authorstore-checkbox-label input[type="checkbox"],
.authorstore-checkbox-label input[type="checkbox"] {
  display: inline-block;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 0;
  margin: .18rem 0 0;
  padding: 0;
}
.authorstore-checkbox-fieldset {
  display: grid;
  gap: .65rem;
}
.authorstore-genre-hidden {
  display: none !important;
}
.authorstore-genre-menu.is-expanded .authorstore-genre-hidden {
  display: list-item !important;
}
.authorstore-show-all-genres {
  display: block;
  width: 100%;
  margin-top: .75rem;
  padding: .65rem .85rem;
  border: 1px solid var(--as-border, #ddd);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.authorstore-show-all-genres:hover,
.authorstore-show-all-genres:focus {
  background: #f7f7f7;
}


.authorstore-search-form {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  margin: 1rem 0;
}

.authorstore-search-form select {
  min-height: 2.4rem;
}

.authorstore-genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  min-width: 0;
}

.authorstore-genre-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.authorstore-genre-list li {
  display: flex;
  gap: .5rem;
  justify-content: space-between;
  align-items: baseline;
  min-width: 0;
  padding: .25rem 0;
}

.authorstore-genre-list a {
  min-width: 0;
}

.authorstore-count {
  flex: 0 0 auto;
  opacity: .75;
}

.authorstore-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.authorstore-table {
  width: 100%;
  border-collapse: collapse;
}

.authorstore-table th,
.authorstore-table td {
  border-bottom: 1px solid #ddd;
  padding: .65rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.authorstore-order-summary {
  margin-bottom: 1rem;
  background: #fafafa;
}

.authorstore-help {
  font-size: .9rem;
  opacity: .8;
  margin-top: -.5rem;
}

.authorstore-author-photo-preview {
  max-width: 180px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.authorstore-description,
.authorstore-purchase-instructions {
  line-height: 1.55;
}

@media (max-width: 700px) {
  .authorstore-book-detail,
  .authorstore-author-header {
    grid-template-columns: 1fr;
  }

  .authorstore-search-form {
    grid-template-columns: 1fr;
  }
}

.authorstore-notice{padding:0.75rem 1rem;margin:0 0 1rem;border:1px solid #d6b45f;background:#fff;border-radius:6px;}
.authorstore-inline-form{display:inline-block;margin:0 .25rem .25rem 0;}
.authorstore-button-small{font-size:.875rem;padding:.35rem .65rem;}

/* AuthorStore 0.1.14 preview/edit actions */
.authorstore-preview-notice {
  margin-bottom: 1rem;
}
.authorstore-preview-actions,
.authorstore-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.authorstore-preview-notice .authorstore-preview-actions {
  margin-bottom: 0;
}

/* AuthorStore 0.1.15 clean browse/genre menu */
.authorstore-browse-menu {
  padding: 0;
  border: 0;
}
.authorstore-vertical-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.authorstore-vertical-menu .authorstore-menu-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
}
.authorstore-vertical-menu .authorstore-menu-item:last-child {
  border-bottom: 0;
}
.authorstore-vertical-menu a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding: .55rem 0;
  text-decoration: none;
  line-height: 1.3;
}
.authorstore-vertical-menu a:hover,
.authorstore-vertical-menu a:focus {
  text-decoration: underline;
}
.authorstore-menu-count {
  flex: 0 0 auto;
  opacity: .7;
  font-size: .9em;
}
.authorstore-menu-item-all a,
.authorstore-menu-item-authors a {
  font-weight: 700;
}

/* AuthorStore 0.1.16 public listing/search pages */
.authorstore-page-header {
  margin-bottom: 1rem;
}
.authorstore-page-intro {
  max-width: 70ch;
  opacity: .82;
}
.authorstore-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  align-items: end;
  margin: 1rem 0 1.5rem;
}
.authorstore-filter-field {
  display: grid;
  gap: .25rem;
  font-weight: 600;
  min-width: 0;
}
.authorstore-filter-field input,
.authorstore-filter-field select {
  width: 100%;
  max-width: 100%;
}
.authorstore-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.authorstore-bio-snippet,
.authorstore-genre-actions,
.authorstore-pen-name {
  overflow-wrap: anywhere;
}


/* AuthorStore 0.1.17 New Books module image/excerpt layout */
.authorstore-new-book-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.authorstore-book-cover-link {
  display: block;
  text-decoration: none;
}

.authorstore-new-book-card .authorstore-book-cover {
  margin-bottom: .25rem;
}

.authorstore-book-title {
  margin: .15rem 0 0;
}

.authorstore-book-excerpt {
  margin: 0;
  font-size: .95rem;
  line-height: 1.45;
}

.authorstore-new-books-button {
  margin-top: auto;
  align-self: flex-start;
}


/* AuthorStore 0.1.20 Indie Bookstore listings theme foundation */
:where(.authorstore-page, .authorstore-module) {
  --as-navy: #183949;
  --as-teal: #245868;
  --as-burgundy: #7d2634;
  --as-gold: #c99a3f;
  --as-cream: #ffffff;
  --as-soft: #ffffff;
  --as-ink: #17222a;
  --as-muted: #65727d;
  --as-border: rgba(24, 57, 73, .14);
  --as-shadow: 0 16px 38px rgba(24, 57, 73, .12);
  color: var(--as-ink);
}

.authorstore-hero-header,
.authorstore-listing-filter-panel,
.authorstore-genre-strip,
.authorstore-detail-section,
.authorstore-author-hero {
  border: 1px solid var(--as-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 57, 73, .06);
}

.authorstore-hero-header {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
}
.authorstore-hero-header::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 140px;
  height: 140px;
  border: 2px solid rgba(201,154,63,.25);
  border-radius: 50%;
}
.authorstore-kicker {
  margin: 0 0 .35rem;
  color: var(--as-burgundy);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}
.authorstore-page-header h1,
.authorstore-section-heading h2,
.authorstore-book-page h1,
.authorstore-author-page h1 {
  color: var(--as-navy);
  line-height: 1.08;
}
.authorstore-page-intro,
.authorstore-category-description {
  color: var(--as-muted);
}

.authorstore-listing-filter-panel {
  padding: 1rem;
  background: #fff;
}
.authorstore-filter-field input,
.authorstore-filter-field select,
.authorstore-form input,
.authorstore-form select,
.authorstore-form textarea,
.authorstore-contact-form input,
.authorstore-contact-form textarea {
  border-color: var(--as-border);
  background: #fff;
  border-radius: 12px;
  min-height: 44px;
}
.authorstore-filter-field input:focus,
.authorstore-filter-field select:focus,
.authorstore-form input:focus,
.authorstore-form select:focus,
.authorstore-form textarea:focus {
  outline: 2px solid rgba(201,154,63,.35);
  border-color: var(--as-gold);
}
.authorstore-filter-keyword {
  grid-column: span 2;
}

.authorstore-button {
  border: 0;
  background: var(--as-burgundy);
  color: #fff;
  border-radius: 999px;
  padding: .68rem 1.05rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(125,38,52,.16);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.authorstore-button:hover,
.authorstore-button:focus {
  color: #fff;
  background: #641d29;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(125,38,52,.22);
}
.authorstore-button-secondary {
  background: #fff;
  color: var(--as-navy);
  border: 1px solid var(--as-border);
  box-shadow: none;
}
.authorstore-button-secondary:hover,
.authorstore-button-secondary:focus {
  background: var(--as-soft);
  color: var(--as-navy);
}
.authorstore-link {
  color: var(--as-teal);
  font-weight: 700;
}

.authorstore-genre-strip {
  padding: 1rem;
  margin: 1.2rem 0;
}
.authorstore-section-heading {
  margin-bottom: .8rem;
}
.authorstore-section-heading h2 {
  margin: 0;
}
.authorstore-genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.authorstore-genre-pill,
.authorstore-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.2;
  white-space: normal;
}
.authorstore-genre-pill {
  padding: .55rem .85rem;
  border: 1px solid var(--as-border);
  background: #fff;
  color: var(--as-navy);
  font-weight: 800;
}
.authorstore-genre-pill:hover,
.authorstore-genre-pill.is-active {
  background: var(--as-navy);
  color: #fff;
  text-decoration: none;
}
.authorstore-results-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  margin: 1rem 0;
  color: var(--as-muted);
}

.authorstore-listing-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.authorstore-listing-card,
.authorstore-book-card,
.authorstore-author-card,
.authorstore-genre-card {
  border: 1px solid var(--as-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24,57,73,.07);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.authorstore-listing-card:hover,
.authorstore-book-card:hover,
.authorstore-author-card:hover,
.authorstore-genre-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--as-shadow);
  border-color: rgba(201,154,63,.45);
}
.authorstore-card-media {
  position: relative;
  background: #fff;
}
.authorstore-card-media .authorstore-book-cover,
.authorstore-listing-card > a .authorstore-book-cover {
  border-radius: 0;
}
.authorstore-card-body {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1rem;
  min-width: 0;
}
.authorstore-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.authorstore-badge {
  padding: .32rem .55rem;
  font-size: .78rem;
  font-weight: 800;
}
.authorstore-badge-genre {
  color: var(--as-teal);
  background: rgba(36,88,104,.09);
}
.authorstore-badge-format {
  color: var(--as-burgundy);
  background: rgba(125,38,52,.08);
}
.authorstore-badge-promoted {
  color: #3d2600;
  background: linear-gradient(135deg, #f4d58a, var(--as-gold));
  box-shadow: 0 8px 18px rgba(201,154,63,.24);
}
.authorstore-card-media .authorstore-badge-promoted,
.authorstore-book-gallery .authorstore-badge-promoted {
  position: absolute;
  top: .75rem;
  left: .75rem;
}
.authorstore-is-promoted {
  border-color: rgba(201,154,63,.55);
  box-shadow: 0 12px 30px rgba(201,154,63,.14);
}
.authorstore-book-title,
.authorstore-book-title a,
.authorstore-listing-card h2,
.authorstore-listing-card h3 {
  color: var(--as-navy);
  text-decoration: none;
}
.authorstore-book-title a:hover,
.authorstore-listing-card h2 a:hover,
.authorstore-listing-card h3 a:hover {
  color: var(--as-burgundy);
}
.authorstore-book-meta,
.authorstore-author-line,
.authorstore-book-excerpt,
.authorstore-subtitle,
.authorstore-bio-snippet {
  color: var(--as-muted);
}
.authorstore-price {
  color: var(--as-burgundy);
  font-weight: 900;
  font-size: 1.05rem;
  margin: 0;
}
.authorstore-price-muted {
  color: var(--as-muted);
}
.authorstore-card-footer {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.authorstore-cover-missing,
.authorstore-author-photo-missing {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: #fff;
  color: rgba(24,57,73,.55);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.authorstore-cover-missing-large {
  min-height: 360px;
  border-radius: 18px;
}

.authorstore-book-detail,
.authorstore-author-hero {
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
}
.authorstore-book-gallery,
.authorstore-author-portrait {
  position: relative;
}
.authorstore-book-cover-large,
.authorstore-author-photo-large {
  border-radius: 18px;
  box-shadow: var(--as-shadow);
  background: #fff;
}
.authorstore-detail-main,
.authorstore-author-summary {
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--as-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24,57,73,.06);
}
.authorstore-detail-price {
  font-size: 1.45rem;
}
.authorstore-detail-actions {
  padding: .75rem 0;
}
.authorstore-detail-section {
  padding: 1rem;
  margin: 1rem 0;
  background: #fff;
}
.authorstore-author-panel {
  background: #fff;
}
.authorstore-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .75rem;
  margin: 0;
}
.authorstore-info-grid > div {
  padding: .75rem;
  border: 1px solid var(--as-border);
  border-radius: 12px;
  background: #fff;
}
.authorstore-info-grid dt {
  color: var(--as-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 900;
}
.authorstore-info-grid dd {
  margin: .2rem 0 0;
  font-weight: 800;
  color: var(--as-navy);
}

.authorstore-author-photo,
.authorstore-author-photo-large {
  object-fit: cover;
}
.authorstore-author-photo {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}
.authorstore-author-photo-large {
  aspect-ratio: 1 / 1;
}
.authorstore-genre-directory .authorstore-genre-card {
  padding: 1.15rem;
}
.authorstore-genre-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Module layout helpers for Gantry sidebars and horizontal sections */
.authorstore-module-layout-vertical .authorstore-book-grid,
.authorstore-module-layout-vertical .authorstore-author-grid {
  grid-template-columns: 1fr;
}
.authorstore-module-layout-horizontal .authorstore-book-grid,
.authorstore-module-layout-horizontal .authorstore-author-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.authorstore-module-layout-compact .authorstore-book-grid,
.authorstore-module-layout-compact .authorstore-author-grid {
  grid-template-columns: 1fr;
  gap: .55rem;
}
.authorstore-module-layout-compact .authorstore-book-card,
.authorstore-module-layout-compact .authorstore-author-card {
  box-shadow: none;
  border-radius: 12px;
  padding: .75rem;
}
.authorstore-genre-menu.authorstore-module-card {
  padding: 1rem;
  border: 1px solid var(--as-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24,57,73,.06);
}
.authorstore-vertical-menu a {
  color: var(--as-navy);
}
.authorstore-vertical-menu a:hover,
.authorstore-vertical-menu a:focus {
  color: var(--as-burgundy);
}

@media (max-width: 760px) {
  .authorstore-filter-keyword {
    grid-column: span 1;
  }
  .authorstore-book-detail,
  .authorstore-author-hero {
    grid-template-columns: 1fr;
  }
  .authorstore-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* AuthorStore 0.1.21 square image areas
   Listing/module/book image areas are now square rather than portrait. */
.authorstore-card-media,
.authorstore-book-cover-link,
.authorstore-book-gallery {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.authorstore-book-cover,
.authorstore-card-media .authorstore-book-cover,
.authorstore-listing-card > a .authorstore-book-cover,
.authorstore-new-book-card .authorstore-book-cover,
.authorstore-book-cover-large {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}

.authorstore-book-cover-link {
  width: 100%;
  display: block;
  background: #fff;
}

.authorstore-cover-missing,
.authorstore-cover-missing-large {
  min-height: 0;
  aspect-ratio: 1 / 1;
  width: 100%;
}

/* Keep the large book detail image inside the square area. */
.authorstore-book-gallery .authorstore-book-cover-large {
  border-radius: 18px;
}

/* AuthorStore 0.1.26 horizontal genre icons + promoted books modules */
.authorstore-genre-menu-layout-horizontal_icons.authorstore-module-card,
.authorstore-genre-menu-layout-horizontal_pills.authorstore-module-card {
  padding: 1rem;
}

.authorstore-genre-menu-layout-horizontal_icons,
.authorstore-genre-menu-layout-horizontal_pills,
.authorstore-genre-menu-layout-horizontal_icons.authorstore-module,
.authorstore-genre-menu-layout-horizontal_pills.authorstore-module {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.authorstore-genre-icon-strip,
.authorstore-genre-pill-strip {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: stretch;
  padding: 0;
  margin: 0;
  list-style: none;
}

.authorstore-genre-icon-distribution-even .authorstore-genre-icon-strip {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(var(--as-genre-count, 4), minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
}

.authorstore-genre-icon-distribution-fit .authorstore-genre-icon-strip {
  justify-content: flex-start;
}

.authorstore-genre-icon-strip .authorstore-menu-item,
.authorstore-genre-pill-strip .authorstore-menu-item {
  margin: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.authorstore-genre-icon-distribution-fit .authorstore-genre-icon-strip .authorstore-menu-item {
  flex: 0 1 auto;
}

.authorstore-genre-icon-strip .authorstore-menu-item a {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .95rem .8rem;
  border: 1px solid var(--as-border, rgba(0,0,0,.12));
  border-radius: 18px;
  background: #fff;
  color: var(--as-navy, #183949);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(24,57,73,.06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.authorstore-genre-icon-strip .authorstore-menu-item a:hover,
.authorstore-genre-icon-strip .authorstore-menu-item a:focus {
  transform: translateY(-2px);
  border-color: rgba(179,132,54,.55);
  box-shadow: 0 12px 30px rgba(24,57,73,.1);
}

.authorstore-genre-icon {
  overflow: hidden;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(179,132,54,.28);
  box-shadow: none;
  font-size: 1.45rem;
  line-height: 1;
}

.authorstore-genre-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.authorstore-genre-icon-strip .authorstore-genre-label {
  display: block;
  text-align: center;
  font-weight: 900;
  line-height: 1.2;
}

.authorstore-genre-icon-strip .authorstore-menu-count {
  min-width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--as-burgundy, #7c2638);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.authorstore-genre-pill-strip .authorstore-menu-item a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .95rem;
  border: 1px solid var(--as-border, rgba(0,0,0,.12));
  border-radius: 999px;
  background: #fff;
  color: var(--as-navy, #183949);
  text-decoration: none;
  font-weight: 800;
}

.authorstore-genre-pill-strip .authorstore-menu-count {
  color: var(--as-muted, #64748b);
  font-size: .85em;
}

.authorstore-genre-compact-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.authorstore-promoted-books {
  position: relative;
}

.authorstore-promoted-books-grid {
  align-items: stretch;
}

.authorstore-promoted-book-card {
  position: relative;
  border-color: rgba(179,132,54,.45);
  background: #fff;
}

.authorstore-promoted-book-card .authorstore-badge-promoted {
  margin-bottom: .5rem;
}

.authorstore-promoted-card-body {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
  height: 100%;
}

.authorstore-promoted-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: .5rem;
}

.authorstore-promoted-button {
  white-space: nowrap;
}

.authorstore-module-layout-horizontal .authorstore-promoted-books-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.authorstore-module-layout-hero .authorstore-promoted-books-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.authorstore-module-layout-hero .authorstore-promoted-book-card {
  display: grid;
  grid-template-columns: minmax(110px, 170px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.authorstore-module-layout-hero .authorstore-book-cover-link {
  min-height: 100%;
}

.authorstore-module-layout-vertical .authorstore-promoted-books-grid,
.authorstore-module-layout-compact .authorstore-promoted-books-grid {
  grid-template-columns: 1fr;
}

.authorstore-module-layout-compact .authorstore-promoted-book-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: .75rem;
  padding: .75rem;
  box-shadow: none;
}

.authorstore-module-layout-compact .authorstore-promoted-book-card .authorstore-book-cover-link {
  align-self: start;
}

.authorstore-module-layout-compact .authorstore-promoted-book-card .authorstore-book-title {
  font-size: 1rem;
}

.authorstore-module-layout-compact .authorstore-promoted-book-card .authorstore-book-excerpt,
.authorstore-module-layout-compact .authorstore-promoted-book-card .authorstore-badge-promoted {
  display: none;
}

@media (max-width: 900px) {
  .authorstore-genre-icon-distribution-even .authorstore-genre-icon-strip {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  }
}

@media (max-width: 640px) {
  .authorstore-genre-icon-distribution-even .authorstore-genre-icon-strip,
  .authorstore-genre-icon-distribution-fit .authorstore-genre-icon-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .authorstore-genre-icon-strip .authorstore-menu-item a {
    min-width: 0;
  }
  .authorstore-module-layout-hero .authorstore-promoted-book-card,
  .authorstore-module-layout-compact .authorstore-promoted-book-card {
    grid-template-columns: 1fr;
  }
  .authorstore-promoted-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* AuthorStore 0.1.24 module image shape controls
   Module cards now default to shorter horizontal image areas so side/homepage modules do not become too tall.
   The component book/listing pages can still use their own larger styling. */
.authorstore-new-books.authorstore-image-shape-landscape .authorstore-book-cover-link,
.authorstore-promoted-books.authorstore-image-shape-landscape .authorstore-book-cover-link {
  aspect-ratio: 16 / 9;
  max-height: 170px;
}
.authorstore-new-books.authorstore-image-shape-wide .authorstore-book-cover-link,
.authorstore-promoted-books.authorstore-image-shape-wide .authorstore-book-cover-link {
  aspect-ratio: 3 / 2;
  max-height: 190px;
}
.authorstore-new-books.authorstore-image-shape-square .authorstore-book-cover-link,
.authorstore-promoted-books.authorstore-image-shape-square .authorstore-book-cover-link {
  aspect-ratio: 1 / 1;
  max-height: 220px;
}
.authorstore-new-books.authorstore-image-shape-portrait .authorstore-book-cover-link,
.authorstore-promoted-books.authorstore-image-shape-portrait .authorstore-book-cover-link {
  aspect-ratio: 2 / 3;
  max-height: 260px;
}
.authorstore-new-books .authorstore-book-cover-link .authorstore-book-cover,
.authorstore-promoted-books .authorstore-book-cover-link .authorstore-book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.authorstore-module-layout-vertical.authorstore-new-books.authorstore-image-shape-landscape .authorstore-book-cover-link,
.authorstore-module-layout-vertical.authorstore-promoted-books.authorstore-image-shape-landscape .authorstore-book-cover-link {
  max-height: 145px;
}
.authorstore-module-layout-compact.authorstore-new-books .authorstore-book-cover-link,
.authorstore-module-layout-compact.authorstore-promoted-books .authorstore-book-cover-link {
  aspect-ratio: 1 / 1;
  max-height: none;
}


/* AuthorStore 0.1.25 compact white module cards
   New Books and Promoted Books use image/title links only; buttons are removed to keep module height short. */
.authorstore-new-books .authorstore-book-card,
.authorstore-promoted-books .authorstore-book-card {
  background: #fff;
  border: 1px solid var(--as-border, rgba(24, 57, 73, .14));
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(24, 57, 73, .08);
  overflow: hidden;
}
.authorstore-new-books .authorstore-book-title,
.authorstore-promoted-books .authorstore-book-title {
  font-size: 1rem;
  line-height: 1.25;
  margin: .35rem 0 0;
}
.authorstore-new-books .authorstore-book-title a,
.authorstore-promoted-books .authorstore-book-title a {
  text-decoration: none;
}
.authorstore-new-books .authorstore-book-meta,
.authorstore-promoted-books .authorstore-book-meta,
.authorstore-new-books .authorstore-book-excerpt,
.authorstore-promoted-books .authorstore-book-excerpt {
  font-size: .88rem;
}
.authorstore-new-books .authorstore-book-card {
  padding: .7rem;
}
.authorstore-promoted-books .authorstore-promoted-book-card {
  padding: .7rem;
}
.authorstore-new-books .authorstore-book-cover-link,
.authorstore-promoted-books .authorstore-book-cover-link {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.authorstore-promoted-card-footer:empty {
  display: none;
}
.authorstore-promoted-card-footer {
  min-height: 0;
  padding-top: .15rem;
}
.authorstore-new-books-button,
.authorstore-promoted-button {
  display: none !important;
}


/* AuthorStore 0.1.28: keep horizontal genre icon layouts horizontal.
   This overrides Gantry/list styles and prevents the icon strip from reverting to a vertical menu. */
.authorstore-genre-menu-layout-horizontal_icons .authorstore-genre-icon-strip {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: repeat(var(--as-genre-count, 4), minmax(0, 1fr)) !important;
  gap: .75rem !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}
.authorstore-genre-menu-layout-horizontal_icons .authorstore-genre-icon-strip > .authorstore-menu-item {
  display: block !important;
  width: auto !important;
  max-width: none !important;
}
.authorstore-genre-menu-layout-horizontal_icons .authorstore-genre-icon-strip > .authorstore-menu-item > a {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
}
.authorstore-genre-menu-layout-horizontal_icons.authorstore-genre-icon-distribution-fit .authorstore-genre-icon-strip {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}
.authorstore-genre-menu-layout-horizontal_icons.authorstore-genre-icon-distribution-fit .authorstore-genre-icon-strip > .authorstore-menu-item {
  flex: 0 1 128px !important;
}
@media (max-width: 900px) {
  .authorstore-genre-menu-layout-horizontal_icons .authorstore-genre-icon-strip {
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)) !important;
  }
}
@media (max-width: 520px) {
  .authorstore-genre-menu-layout-horizontal_icons .authorstore-genre-icon-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* AuthorStore 0.1.31: Author Showcase module */
.authorstore-author-showcase {
  width: 100%;
}
.authorstore-showcase-list {
  display: grid;
  gap: 1rem;
}
.authorstore-showcase-card {
  display: grid;
  grid-template-columns: minmax(96px, 140px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid #e8e0d3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .08);
  overflow: hidden;
}
.authorstore-showcase-author-photo-link,
.authorstore-showcase-book-cover-link {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #efe7db;
}
.authorstore-showcase-author-photo {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: block;
  object-fit: cover;
}
.authorstore-showcase-kicker,
.authorstore-showcase-latest-label {
  margin: 0 0 .25rem;
  font-size: .74rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a5b2e;
  font-weight: 700;
}
.authorstore-showcase-author-name {
  margin: 0 0 .45rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.15;
}
.authorstore-showcase-author-name a,
.authorstore-showcase-book-title a {
  color: inherit;
  text-decoration: none;
}
.authorstore-showcase-bio,
.authorstore-showcase-excerpt,
.authorstore-showcase-meta {
  margin: 0 0 .55rem;
  color: #4b5563;
  font-size: .94rem;
  line-height: 1.5;
}
.authorstore-showcase-latest-book {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  margin-top: .65rem;
  padding-top: .75rem;
  border-top: 1px solid #f0e8dc;
}
.authorstore-showcase-book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: #fff;
}
.authorstore-showcase-book-title {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  line-height: 1.2;
}
.authorstore-showcase-meta span + span::before {
  content: "•";
  display: inline-block;
  margin: 0 .38rem;
  color: #b08952;
}
.authorstore-showcase-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .15rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: #182f45;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
}
.authorstore-module-layout-horizontal .authorstore-showcase-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.authorstore-module-layout-vertical .authorstore-showcase-card,
.authorstore-module-layout-compact .authorstore-showcase-card {
  grid-template-columns: 1fr;
}
.authorstore-module-layout-vertical .authorstore-showcase-author-photo {
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.authorstore-module-layout-compact .authorstore-showcase-card {
  padding: .75rem;
  gap: .6rem;
  box-shadow: none;
}
.authorstore-module-layout-compact .authorstore-showcase-latest-book {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: .6rem;
}
.authorstore-module-layout-compact .authorstore-showcase-bio,
.authorstore-module-layout-compact .authorstore-showcase-excerpt,
.authorstore-module-layout-compact .authorstore-showcase-kicker {
  display: none;
}
@media (max-width: 640px) {
  .authorstore-showcase-card {
    grid-template-columns: 1fr;
  }
  .authorstore-showcase-author-photo {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}


/* AuthorStore 0.1.32 book reviews and author image upload/display */
.authorstore-review-summary {
  margin: 0.35rem 0 0.8rem;
}
.authorstore-review-link,
.authorstore-review-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  text-decoration: none;
}
.authorstore-author-photo-small {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 999px;
  margin: 0 0 0.75rem;
}

.authorstore-my-author-profile {
  margin-top: 1rem;
}
.authorstore-my-author-details {
  margin: 1rem 0;
}
.authorstore-my-author-details a {
  overflow-wrap: anywhere;
}
.authorstore-my-author-bio {
  margin-top: 1rem;
}
.authorstore-muted {
  color: var(--as-muted);
  font-weight: 600;
}


/* AuthorStore 0.1.39: roomier author showcase + configurable New Books grid */
.authorstore-author-showcase .authorstore-showcase-card {
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.authorstore-author-showcase .authorstore-showcase-author-photo-link {
  width: 100%;
  align-self: start;
}
.authorstore-author-showcase .authorstore-showcase-author-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  height: auto;
  object-fit: cover;
}
.authorstore-author-showcase .authorstore-showcase-content {
  min-width: 0;
}
.authorstore-author-showcase .authorstore-showcase-latest-book {
  grid-template-columns: minmax(76px, 110px) minmax(0, 1fr);
}
.authorstore-author-showcase .authorstore-showcase-button {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  border-radius: 8px !important;
  padding: .62rem 1rem !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  max-width: 100%;
}
.authorstore-module-layout-horizontal.authorstore-new-books .authorstore-new-books-grid,
.authorstore-module-layout-feature_card.authorstore-new-books .authorstore-new-books-grid,
.authorstore-new-books .authorstore-new-books-grid {
  grid-template-columns: repeat(var(--as-newbooks-columns, 3), minmax(0, 1fr));
}
@media (max-width: 900px) {
  .authorstore-module-layout-horizontal.authorstore-new-books .authorstore-new-books-grid,
  .authorstore-module-layout-feature_card.authorstore-new-books .authorstore-new-books-grid,
  .authorstore-new-books .authorstore-new-books-grid {
    grid-template-columns: repeat(var(--as-newbooks-tablet-columns, 2), minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .authorstore-author-showcase .authorstore-showcase-card {
    grid-template-columns: 1fr;
  }
  .authorstore-author-showcase .authorstore-showcase-author-photo {
    aspect-ratio: 16 / 9;
  }
  .authorstore-author-showcase .authorstore-showcase-button {
    white-space: normal;
  }
  .authorstore-module-layout-horizontal.authorstore-new-books .authorstore-new-books-grid,
  .authorstore-module-layout-feature_card.authorstore-new-books .authorstore-new-books-grid,
  .authorstore-new-books .authorstore-new-books-grid {
    grid-template-columns: 1fr;
  }
}


/* AuthorStore 0.1.41: robust Author Showcase layout reset
   Keeps the module white by default and prevents Joomla template button/image styles
   from squashing the showcase cards. */
.authorstore-author-showcase,
.authorstore-author-showcase * {
  box-sizing: border-box;
}
.authorstore-author-showcase {
  width: 100% !important;
  max-width: 100% !important;
  background: #fff !important;
  color: inherit;
}
.authorstore-author-showcase .authorstore-showcase-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.authorstore-author-showcase.authorstore-module-layout-horizontal .authorstore-showcase-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
}
.authorstore-author-showcase .authorstore-showcase-card {
  display: grid !important;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) !important;
  gap: 1.5rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 1.35rem !important;
  overflow: visible !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .07) !important;
}
.authorstore-author-showcase .authorstore-showcase-author-photo-link {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 260px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
}
.authorstore-author-showcase .authorstore-showcase-author-photo {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.authorstore-author-showcase .authorstore-showcase-content,
.authorstore-author-showcase .authorstore-showcase-book-details {
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
.authorstore-author-showcase .authorstore-showcase-author-name,
.authorstore-author-showcase .authorstore-showcase-book-title,
.authorstore-author-showcase .authorstore-showcase-bio,
.authorstore-author-showcase .authorstore-showcase-excerpt,
.authorstore-author-showcase .authorstore-showcase-meta {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}
.authorstore-author-showcase .authorstore-showcase-latest-book {
  display: grid !important;
  grid-template-columns: minmax(86px, 120px) minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-top: .85rem !important;
  padding-top: .9rem !important;
  border-top: 1px solid #e5e7eb !important;
}
.authorstore-author-showcase .authorstore-showcase-book-cover-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 120px !important;
  aspect-ratio: 2 / 3 !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
}
.authorstore-author-showcase .authorstore-showcase-book-cover {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 2 / 3 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.authorstore-author-showcase a.authorstore-showcase-button,
.authorstore-author-showcase .authorstore-showcase-button,
.authorstore-author-showcase .authorstore-showcase-button:link,
.authorstore-author-showcase .authorstore-showcase-button:visited {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: .25rem 0 0 !important;
  padding: .65rem 1rem !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #182f45 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  white-space: normal !important;
}
.authorstore-author-showcase.authorstore-module-layout-vertical .authorstore-showcase-card,
.authorstore-author-showcase.authorstore-module-layout-compact .authorstore-showcase-card {
  grid-template-columns: 1fr !important;
}
.authorstore-author-showcase.authorstore-module-layout-vertical .authorstore-showcase-author-photo-link,
.authorstore-author-showcase.authorstore-module-layout-compact .authorstore-showcase-author-photo-link {
  max-width: 100% !important;
}
.authorstore-author-showcase.authorstore-module-layout-vertical .authorstore-showcase-author-photo,
.authorstore-author-showcase.authorstore-module-layout-compact .authorstore-showcase-author-photo {
  aspect-ratio: 1 / 1 !important;
}
.authorstore-author-showcase.authorstore-module-layout-compact .authorstore-showcase-card {
  padding: 1rem !important;
  gap: .85rem !important;
  box-shadow: none !important;
}
.authorstore-author-showcase.authorstore-module-layout-compact .authorstore-showcase-latest-book {
  grid-template-columns: 76px minmax(0, 1fr) !important;
  gap: .75rem !important;
}
@media (max-width: 760px) {
  .authorstore-author-showcase .authorstore-showcase-card,
  .authorstore-author-showcase.authorstore-module-layout-horizontal .authorstore-showcase-card {
    grid-template-columns: 1fr !important;
  }
  .authorstore-author-showcase .authorstore-showcase-author-photo-link {
    max-width: 100% !important;
  }
  .authorstore-author-showcase .authorstore-showcase-author-photo {
    aspect-ratio: 16 / 9 !important;
  }
}
@media (max-width: 460px) {
  .authorstore-author-showcase .authorstore-showcase-latest-book {
    grid-template-columns: 1fr !important;
  }
  .authorstore-author-showcase .authorstore-showcase-book-cover-link {
    max-width: 140px !important;
  }
}


/* AuthorStore 0.1.42: reliable New Books columns/rows + clean promoted modules */
.authorstore-new-books.authorstore-module,
.authorstore-promoted-books.authorstore-module {
  background: #fff !important;
}
.authorstore-new-books .authorstore-new-books-grid {
  display: grid !important;
  grid-template-columns: repeat(var(--as-newbooks-columns, 3), minmax(0, 1fr)) !important;
  gap: 1rem !important;
  align-items: stretch !important;
}
.authorstore-new-books .authorstore-new-book-card {
  width: 100% !important;
  min-width: 0 !important;
}
.authorstore-promoted-books .authorstore-badge-promoted,
.authorstore-badge-promoted {
  display: none !important;
}
.authorstore-promoted-books .authorstore-promoted-book-card,
.authorstore-promoted-books .authorstore-promoted-clean,
.authorstore-promoted-book-card.authorstore-promoted-clean {
  border-color: var(--as-border, rgba(24,57,73,.14)) !important;
  box-shadow: 0 8px 22px rgba(24,57,73,.08) !important;
  background: #fff !important;
}
@media (max-width: 900px) {
  .authorstore-new-books .authorstore-new-books-grid {
    grid-template-columns: repeat(var(--as-newbooks-tablet-columns, 2), minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  .authorstore-new-books .authorstore-new-books-grid {
    grid-template-columns: 1fr !important;
  }
}


/* AuthorStore 0.1.43: portrait, non-cropping book covers in New Books and Promoted/Featured modules.
   Front covers are portrait artwork, so use a 2:3 frame and contain instead of cover. */
.authorstore-new-books.authorstore-module,
.authorstore-promoted-books.authorstore-module {
  background: #fff !important;
}
.authorstore-new-books .authorstore-book-cover-link,
.authorstore-promoted-books .authorstore-book-cover-link,
.authorstore-new-books.authorstore-image-shape-landscape .authorstore-book-cover-link,
.authorstore-promoted-books.authorstore-image-shape-landscape .authorstore-book-cover-link,
.authorstore-new-books.authorstore-image-shape-wide .authorstore-book-cover-link,
.authorstore-promoted-books.authorstore-image-shape-wide .authorstore-book-cover-link,
.authorstore-new-books.authorstore-image-shape-square .authorstore-book-cover-link,
.authorstore-promoted-books.authorstore-image-shape-square .authorstore-book-cover-link,
.authorstore-new-books.authorstore-image-shape-portrait .authorstore-book-cover-link,
.authorstore-promoted-books.authorstore-image-shape-portrait .authorstore-book-cover-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 2 / 3 !important;
  width: 100% !important;
  max-height: none !important;
  overflow: hidden !important;
  background: #fff !important;
}
.authorstore-new-books .authorstore-book-cover-link .authorstore-book-cover,
.authorstore-promoted-books .authorstore-book-cover-link .authorstore-book-cover {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}
.authorstore-module-layout-compact.authorstore-new-books .authorstore-book-cover-link,
.authorstore-module-layout-compact.authorstore-promoted-books .authorstore-book-cover-link {
  aspect-ratio: 2 / 3 !important;
}


/* AuthorStore 0.1.44 fixed upload image guides and simple book module cards */
.authorstore-image-cropper{margin:1rem 0 1.25rem;padding:1rem;border:1px solid #e5e7eb;border-radius:14px;background:#fff!important;}
.authorstore-crop-stage{position:relative;width:min(100%,360px);margin:.75rem 0;overflow:hidden;background:#f8fafc;border:2px dashed #cbd5e1;border-radius:14px;touch-action:none;display:flex;align-items:center;justify-content:center;}
.authorstore-crop-square{aspect-ratio:1/1;}
.authorstore-crop-portrait{aspect-ratio:2/3;max-width:300px;}
.authorstore-crop-stage::after{content:"";position:absolute;inset:0;border:1px solid rgba(15,23,42,.18);box-shadow:inset 0 0 0 999px rgba(255,255,255,.08);pointer-events:none;}
.authorstore-crop-image{display:none;position:absolute;left:0;top:0;transform-origin:0 0;max-width:none!important;width:auto!important;height:auto!important;user-select:none;-webkit-user-drag:none;}
.authorstore-cropper-active .authorstore-crop-image{display:block;}
.authorstore-crop-zoom-label{display:flex!important;gap:.75rem;align-items:center;max-width:360px;}
.authorstore-crop-zoom{width:100%;}
.authorstore-author-photo-preview{width:160px!important;height:160px!important;object-fit:cover!important;border-radius:50%!important;background:#fff!important;}

.authorstore-new-books .authorstore-book-grid,
.authorstore-promoted-books .authorstore-book-grid{display:grid!important;gap:1rem!important;align-items:stretch!important;}
.authorstore-new-books.authorstore-module-layout-horizontal .authorstore-book-grid{grid-template-columns:repeat(var(--as-newbooks-columns,3),minmax(0,1fr))!important;}
.authorstore-promoted-books.authorstore-module-layout-horizontal .authorstore-book-grid{grid-template-columns:repeat(var(--as-promotedbooks-columns,4),minmax(0,1fr))!important;}
.authorstore-new-books .authorstore-book-card,
.authorstore-promoted-books .authorstore-book-card{display:grid!important;grid-template-rows:5fr auto!important;gap:.6rem!important;min-width:0!important;padding:.75rem!important;background:#fff!important;border:1px solid #e5e7eb!important;border-radius:14px!important;box-shadow:none!important;overflow:hidden!important;}
.authorstore-new-books .authorstore-book-cover-link,
.authorstore-promoted-books .authorstore-book-cover-link{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;aspect-ratio:2/3!important;max-height:none!important;background:#fff!important;overflow:hidden!important;border-radius:8px!important;}
.authorstore-new-books .authorstore-book-cover,
.authorstore-promoted-books .authorstore-book-cover{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;background:#fff!important;border-radius:0!important;}
.authorstore-new-books .authorstore-book-title,
.authorstore-promoted-books .authorstore-book-title{font-size:1rem!important;line-height:1.25!important;margin:0!important;text-align:center!important;}
.authorstore-new-books .authorstore-book-title a,
.authorstore-promoted-books .authorstore-book-title a{text-decoration:none!important;color:inherit!important;}
.authorstore-new-books .authorstore-price,
.authorstore-promoted-books .authorstore-price{display:block!important;margin:.25rem 0 0!important;text-align:center!important;font-weight:700!important;color:#111827!important;background:transparent!important;border:0!important;padding:0!important;}
.authorstore-new-books .authorstore-book-meta,
.authorstore-promoted-books .authorstore-book-meta,
.authorstore-new-books .authorstore-book-excerpt,
.authorstore-promoted-books .authorstore-book-excerpt{display:none!important;}
@media(max-width:760px){.authorstore-new-books.authorstore-module-layout-horizontal .authorstore-book-grid{grid-template-columns:repeat(var(--as-newbooks-tablet-columns,2),minmax(0,1fr))!important;}.authorstore-promoted-books.authorstore-module-layout-horizontal .authorstore-book-grid{grid-template-columns:repeat(var(--as-promotedbooks-tablet-columns,2),minmax(0,1fr))!important;}}
@media(max-width:520px){.authorstore-new-books.authorstore-module-layout-horizontal .authorstore-book-grid,.authorstore-promoted-books.authorstore-module-layout-horizontal .authorstore-book-grid{grid-template-columns:1fr!important;}}

/* AuthorStore 0.1.45 reviews and multi-genre form polish */
.authorstore-review-summary { margin: .75rem 0 1rem; }
.authorstore-review-link { font-weight: 700; text-decoration: none; }
.authorstore-review-list { display: grid; gap: 1rem; }
.authorstore-review-card { background: #fff; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; padding: 1rem; }
.authorstore-review-card h3 { margin-top: 0; margin-bottom: .35rem; }
.authorstore-review-rating { font-weight: 700; margin: .25rem 0 .6rem; }
.authorstore-review-byline { font-size: .9rem; opacity: .75; margin-bottom: 0; }
.authorstore-review-form select[multiple],
.authorstore-book-form select[multiple] { min-height: 12rem; }

/* AuthorStore 0.1.48 stable browse-genre page and vertical results */
.authorstore-browse-genre-section,
.authorstore-genre-results-section { background: #fff !important; }
.authorstore-genre-directory-pills { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 1.25rem; }
.authorstore-genre-directory-pills .authorstore-genre-pill { display: inline-flex; align-items: center; gap: .45rem; }
.authorstore-genre-directory-pills .authorstore-menu-count { font-size: .85em; opacity: .7; }
.authorstore-vertical-book-list { display: grid; gap: 1rem; margin-top: 1rem; }
.authorstore-book-list-item { display: grid; grid-template-columns: minmax(110px, 150px) minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1rem; background: #fff !important; border: 1px solid rgba(0,0,0,.12); border-radius: 14px; }
.authorstore-book-list-cover .authorstore-book-cover,
.authorstore-book-list-cover .authorstore-cover-missing { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; background: #fff; border-radius: 8px; }
.authorstore-book-list-body { min-width: 0; }
.authorstore-book-list-body .authorstore-book-title { margin-top: 0; }
@media (max-width: 620px) {
  .authorstore-book-list-item { grid-template-columns: 1fr; }
  .authorstore-book-list-cover { max-width: 180px; }
}
/* AuthorStore 0.1.50: cleaner Browse Genres search/header panel */
.authorstore-genres-page .authorstore-genre-search-panel { background: #fff !important; }
.authorstore-genres-page .authorstore-selected-genre-inline { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(0,0,0,.08); }
.authorstore-genres-page .authorstore-selected-genre-inline h2 { margin: .15rem 0 .35rem; }
.authorstore-genres-page .authorstore-empty-state { margin-top: 1rem; padding: 1rem 1.25rem; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; }

/* AuthorStore 0.1.52: book detail cover images are portrait covers, not square crops. */
.authorstore-book-detail-page .authorstore-book-gallery {
  aspect-ratio: auto !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: 340px !important;
  background: transparent !important;
}
.authorstore-book-detail-page .authorstore-book-gallery .authorstore-book-cover-large {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
  border-radius: 12px !important;
}
.authorstore-book-detail-page .authorstore-book-gallery .authorstore-cover-missing-large {
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  min-height: 0 !important;
  background: #fff !important;
}
@media (max-width: 760px) {
  .authorstore-book-detail-page .authorstore-book-gallery {
    max-width: 300px !important;
  }
}


/* AuthorStore 0.1.53: neutralise warm/yellow shadows and borders. */
:where(.authorstore-page, .authorstore-module) {
  --as-shadow: 0 12px 30px rgba(15, 23, 42, .08);
  --as-border: rgba(15, 23, 42, .12);
}

.authorstore-hero-header,
.authorstore-listing-filter-panel,
.authorstore-genre-strip,
.authorstore-detail-section,
.authorstore-author-hero,
.authorstore-listing-card,
.authorstore-book-card,
.authorstore-author-card,
.authorstore-genre-card,
.authorstore-search-box,
.authorstore-card,
.authorstore-panel,
.authorstore-box,
.authorstore-review-card,
.authorstore-book-list-item,
.authorstore-module .authorstore-showcase-card {
  border-color: rgba(15, 23, 42, .12) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06) !important;
}

.authorstore-listing-card:hover,
.authorstore-book-card:hover,
.authorstore-author-card:hover,
.authorstore-genre-card:hover,
.authorstore-is-promoted:hover,
.authorstore-module .authorstore-showcase-card:hover {
  border-color: rgba(15, 23, 42, .16) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08) !important;
}

.authorstore-hero-header::after {
  border-color: rgba(15, 23, 42, .10) !important;
}

.authorstore-filter-field input:focus,
.authorstore-filter-field select:focus,
.authorstore-form input:focus,
.authorstore-form select:focus,
.authorstore-form textarea:focus,
.authorstore-contact-form input:focus,
.authorstore-contact-form textarea:focus {
  outline-color: rgba(15, 23, 42, .18) !important;
  border-color: rgba(15, 23, 42, .24) !important;
}

.authorstore-badge-promoted {
  background: #f3f4f6 !important;
  color: #374151 !important;
  box-shadow: none !important;
}

.authorstore-is-promoted {
  border-color: rgba(15, 23, 42, .12) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06) !important;
}

.authorstore-notice {
  border-color: rgba(15, 23, 42, .12) !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05) !important;
}


/* Author profile mini contact form */
.authorstore-mini-contact {
  margin-top: 1.25rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.authorstore-mini-contact h2 {
  margin: 0 0 .35rem;
  font-size: 1.25rem;
}

.authorstore-mini-contact .authorstore-help {
  margin: 0 0 .9rem;
}

.authorstore-mini-contact-form {
  display: grid;
  gap: .85rem;
}

.authorstore-mini-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

@media (max-width: 640px) {
  .authorstore-mini-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* v0.1.59 author directory list view */
.authorstore-author-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.authorstore-author-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.authorstore-author-list-main h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.authorstore-author-list-main .authorstore-pen-name,
.authorstore-author-list-main .authorstore-bio-snippet {
  margin: 0 0 4px;
}

.authorstore-author-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .authorstore-author-list-item {
    grid-template-columns: 1fr;
  }
  .authorstore-author-list-actions {
    justify-content: flex-start;
    white-space: normal;
  }
}

/* v0.1.60 sidebar link and advertiser modules */
.authorstore-sidebar-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.authorstore-sidebar-card-title {
  margin: 0 0 8px;
  color: #1f1f1f;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.authorstore-sidebar-card-text {
  margin: 0 0 14px;
  color: #555;
  font-size: 14px;
  line-height: 1.45;
}

.authorstore-sidebar-card-meta {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.authorstore-sidebar-card-button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #222;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
}

.authorstore-sidebar-card-button:hover,
.authorstore-sidebar-card-button:focus,
.authorstore-advertiser-link:hover .authorstore-sidebar-card-button,
.authorstore-advertiser-link:focus .authorstore-sidebar-card-button {
  background: #d10d73;
  color: #fff !important;
  text-decoration: none !important;
}

.authorstore-advertiser-module {
  padding: 0;
  overflow: hidden;
}

.authorstore-advertiser-link {
  display: block;
  padding: 20px;
  color: inherit;
  text-decoration: none !important;
  background: #fff;
}

.authorstore-advertiser-link:hover,
.authorstore-advertiser-link:focus {
  color: inherit;
  text-decoration: none !important;
}

.authorstore-advertiser-logo-wrap {
  margin: 0 0 14px;
  text-align: center;
}

.authorstore-advertiser-logo {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  margin: 0 auto;
}

.authorstore-advertiser-name {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.authorstore-advertiser-benefits {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: #3f3f46;
  font-size: 14px;
  line-height: 1.45;
}

.authorstore-advertiser-benefits li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 22px;
}

.authorstore-advertiser-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #d10d73;
  font-weight: 900;
}

.authorstore-advertiser-accent-black .authorstore-advertiser-benefits li::before,
.authorstore-advertiser-accent-black .authorstore-sidebar-card-button:hover,
.authorstore-advertiser-accent-black .authorstore-sidebar-card-button:focus,
.authorstore-advertiser-accent-black .authorstore-advertiser-link:hover .authorstore-sidebar-card-button,
.authorstore-advertiser-accent-black .authorstore-advertiser-link:focus .authorstore-sidebar-card-button {
  background: #222;
  color: #fff !important;
}

.authorstore-advertiser-accent-grey .authorstore-advertiser-benefits li::before {
  color: #6b7280;
}

.authorstore-advertiser-accent-grey .authorstore-sidebar-card-button:hover,
.authorstore-advertiser-accent-grey .authorstore-sidebar-card-button:focus,
.authorstore-advertiser-accent-grey .authorstore-advertiser-link:hover .authorstore-sidebar-card-button,
.authorstore-advertiser-accent-grey .authorstore-advertiser-link:focus .authorstore-sidebar-card-button {
  background: #4b5563;
}
.authorstore-advertiser-accent-black .authorstore-advertiser-benefits li::before {
  background: transparent;
  color: #222 !important;
}

/* v0.1.61 author listing module: match the standard sidebar menu modules. */
.authorstore-authorlisting-menu.authorstore-module-card {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.authorstore-authorlisting-menu .authorstore-module-heading {
  margin: 0 0 .65rem;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--as-navy, #1f2937);
}

.authorstore-authorlisting-menu .authorstore-module-intro {
  margin: 0 0 .75rem;
  color: #4b5563;
  font-size: .92rem;
  line-height: 1.45;
}

.authorstore-authorlisting-menu .authorstore-authorlisting-links {
  margin: 0;
  padding: 0;
}

.authorstore-authorlisting-menu .authorstore-vertical-menu .authorstore-menu-item {
  border-bottom: 0;
}

.authorstore-authorlisting-menu .authorstore-vertical-menu a {
  padding: .55rem 0;
  color: var(--as-navy, #1f2937);
  font-weight: 700;
}

.authorstore-authorlisting-menu .authorstore-vertical-menu a:hover,
.authorstore-authorlisting-menu .authorstore-vertical-menu a:focus {
  color: var(--as-burgundy, #d10d73);
  text-decoration: underline;
}


/* AuthorStore 0.1.62 cart/order shipping layout */
.authorstore-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}
.authorstore-cart-summary,
.authorstore-cart-form .authorstore-fieldset,
.authorstore-cart-totals {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.authorstore-cart-form .authorstore-fieldset { padding: 18px; margin-bottom: 18px; }
.authorstore-cart-totals { padding: 14px 16px; margin: 12px 0; }
.authorstore-cart-totals p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.authorstore-cart-totals p:last-child { margin-bottom: 0; }
.authorstore-cart-total { border-top: 1px solid #e5e7eb; padding-top: 10px; font-size: 1.08rem; }
.authorstore-form label.authorstore-checkline,
.authorstore-checkline { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .55rem; line-height: 1.35; }
.authorstore-form label.authorstore-checkline input[type="checkbox"],
.authorstore-checkline input[type="checkbox"] { width: auto; min-width: 0; max-width: none; min-height: 0; margin: .2rem 0 0; padding: 0; }
.authorstore-fixed-payment { padding: .75rem .9rem; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
@media (max-width: 800px) { .authorstore-cart-layout { grid-template-columns: 1fr; } }

/* AuthorStore 0.1.68: pagination and cleaned genre filter heading */
.authorstore-pagination {
  margin: 24px 0 0;
  display: flex;
  justify-content: center;
}
.authorstore-pagination .pagination,
.authorstore-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.authorstore-pagination li,
.authorstore-pagination .page-item {
  margin: 0;
}
.authorstore-pagination a,
.authorstore-pagination span,
.authorstore-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #e1e5ea;
  border-radius: 8px;
  background: #fff;
  color: #222;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(15,23,42,.05);
}
.authorstore-pagination a:hover,
.authorstore-pagination a:focus,
.authorstore-pagination .page-link:hover,
.authorstore-pagination .page-link:focus {
  border-color: #c8ced6;
  color: #111;
  text-decoration: none;
}
.authorstore-pagination .active a,
.authorstore-pagination .active span,
.authorstore-pagination .page-item.active .page-link {
  background: #222;
  border-color: #222;
  color: #fff;
}
.authorstore-filter-heading {
  width: 100%;
  flex: 1 1 100%;
  margin: 0 0 8px;
  padding: 0 0 12px;
  border-bottom: 1px solid #edf0f3;
}
.authorstore-filter-heading h2 {
  margin: 0 0 4px;
}
.authorstore-filter-heading .authorstore-category-description {
  margin: 0;
}


/* AuthorStore 0.1.70: Author Showcase author images use the same square author image frame and avoid chopping off legacy photos. */
.authorstore-author-showcase .authorstore-showcase-author-photo-link {
  aspect-ratio: 1 / 1 !important;
  max-width: 220px !important;
  width: 100% !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.authorstore-author-showcase .authorstore-showcase-author-photo {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}
.authorstore-author-showcase.authorstore-module-layout-vertical .authorstore-showcase-author-photo,
.authorstore-author-showcase.authorstore-module-layout-compact .authorstore-showcase-author-photo {
  aspect-ratio: 1 / 1 !important;
}
@media (max-width: 760px) {
  .authorstore-author-showcase .authorstore-showcase-author-photo-link {
    max-width: 220px !important;
  }
  .authorstore-author-showcase .authorstore-showcase-author-photo {
    aspect-ratio: 1 / 1 !important;
  }
}


/* AuthorStore 0.1.71: responsive New Books module grid.
   Removes reliance on fixed inline columns and ensures the module collapses on smaller screens. */
.authorstore-new-books .authorstore-new-books-grid {
  display: grid !important;
  gap: 1rem !important;
  grid-template-columns: repeat(var(--as-newbooks-columns, 3), minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: 100% !important;
}
.authorstore-new-books .authorstore-new-book-card {
  min-width: 0 !important;
  max-width: 100% !important;
}
@media (max-width: 900px) {
  .authorstore-new-books.authorstore-module-layout-horizontal .authorstore-new-books-grid,
  .authorstore-new-books .authorstore-new-books-grid {
    grid-template-columns: repeat(var(--as-newbooks-tablet-columns, 2), minmax(0, 1fr)) !important;
  }
}
@media (max-width: 560px) {
  .authorstore-new-books.authorstore-module-layout-horizontal .authorstore-new-books-grid,
  .authorstore-new-books .authorstore-new-books-grid {
    grid-template-columns: 1fr !important;
  }
  .authorstore-new-books .authorstore-new-book-card {
    width: 100% !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* AuthorStore 0.1.72 account type chooser */
.authorstore-account-choice-intro {
  margin-bottom: 18px;
}
.authorstore-account-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.authorstore-account-choice-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.authorstore-account-choice-card h2 {
  margin: 0;
  font-size: 1.2rem;
}
.authorstore-account-choice-card p {
  margin: 0 0 8px;
}
.authorstore-account-choice-card .authorstore-button,
.authorstore-account-choice-card button.authorstore-button {
  margin-top: auto;
  width: 100%;
}
@media (max-width: 900px) {
  .authorstore-account-choice-grid {
    grid-template-columns: 1fr;
  }
}

/* AuthorStore 0.1.73: author profile sharing tools */
.authorstore-share-profile {
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--as-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}
.authorstore-share-profile label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 800;
  color: var(--as-navy);
}
.authorstore-copy-link-row {
  display: flex;
  gap: .6rem;
  align-items: stretch;
}
.authorstore-copy-link-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: .65rem .75rem;
  border: 1px solid var(--as-border);
  border-radius: 10px;
  background: #fff;
  color: var(--as-ink);
}
.authorstore-copy-profile-button {
  flex: 0 0 auto;
  border-radius: 10px;
  white-space: nowrap;
}
.authorstore-copy-profile-button.is-copied {
  background: #1f7a4d;
}
.authorstore-copy-help {
  margin: .55rem 0 0;
  font-size: .92rem;
}
@media (max-width: 640px) {
  .authorstore-copy-link-row {
    flex-direction: column;
  }
  .authorstore-copy-profile-button {
    width: 100%;
  }
}

/* AuthorStore 0.1.74: book sharing tools on My Books */
.authorstore-my-books-table td:last-child {
  min-width: 280px;
}
.authorstore-share-book {
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid var(--as-border);
}
.authorstore-share-book label {
  display: block;
  margin-bottom: .35rem;
  font-size: .9rem;
  font-weight: 800;
  color: var(--as-navy);
}
.authorstore-copy-link-row-small {
  gap: .45rem;
}
.authorstore-copy-link-row-small input {
  min-height: 36px;
  padding: .45rem .55rem;
  font-size: .88rem;
}
.authorstore-copy-link-button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.authorstore-copy-link-button.is-copied {
  background: #1f7a4d;
}
@media (max-width: 760px) {
  .authorstore-my-books-table,
  .authorstore-my-books-table thead,
  .authorstore-my-books-table tbody,
  .authorstore-my-books-table tr,
  .authorstore-my-books-table th,
  .authorstore-my-books-table td {
    display: block;
    width: 100%;
  }
  .authorstore-my-books-table thead {
    position: absolute;
    left: -9999px;
  }
  .authorstore-my-books-table tr {
    margin-bottom: 1rem;
    padding: .85rem;
    border: 1px solid var(--as-border);
    border-radius: 12px;
    background: #fff;
  }
  .authorstore-my-books-table td {
    border: 0;
    padding: .35rem 0;
  }
  .authorstore-my-books-table td:last-child {
    min-width: 0;
  }
}

/* Compact book list used on public author profiles. Keeps the author page from
   inheriting large module/card cover sizing. */
.authorstore-author-books-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.authorstore-author-book-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: .95rem;
  border: 1px solid var(--as-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .055);
}
.authorstore-author-book-thumb {
  display: block;
  width: 86px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f7f8;
  border: 1px solid var(--as-border);
}
.authorstore-author-book-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.authorstore-author-book-info {
  min-width: 0;
}
.authorstore-author-book-info .authorstore-book-title {
  margin: 0 0 .45rem;
  font-size: 1.05rem;
}
.authorstore-author-book-info .authorstore-book-excerpt {
  margin: .5rem 0 .6rem;
}
@media (max-width: 560px) {
  .authorstore-author-book-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: .75rem;
    padding: .8rem;
  }
  .authorstore-author-book-thumb {
    width: 64px;
  }
}


/* AuthorStore 0.1.94: compact panel layout for Featured Books listing. */
.authorstore-featured-books-page .authorstore-listing-grid {
  grid-template-columns: 1fr !important;
  gap: .85rem !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card {
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: stretch !important;
  padding: .75rem !important;
  border-radius: 16px !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-card-media {
  align-self: start !important;
  background: #fff !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-book-cover {
  width: 92px !important;
  height: 138px !important;
  aspect-ratio: 2 / 3 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff !important;
  border-radius: 10px !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-cover-missing {
  width: 92px !important;
  min-height: 138px !important;
  height: 138px !important;
  border-radius: 10px !important;
  font-size: .68rem !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-card-body {
  padding: .15rem 0 !important;
  gap: .28rem !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-book-title {
  margin: 0 !important;
  font-size: clamp(1rem, 2.3vw, 1.2rem) !important;
  line-height: 1.2 !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-featured-kicker,
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-author-line,
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-book-excerpt {
  margin: 0 !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-featured-kicker {
  color: var(--as-muted, #64748b) !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-book-excerpt {
  font-size: .92rem !important;
  line-height: 1.35 !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-card-footer {
  justify-content: flex-start !important;
  margin-top: .35rem !important;
}
@media (max-width: 560px) {
  .authorstore-featured-books-page .authorstore-featured-panel-card {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: .75rem !important;
  }
  .authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-book-cover,
  .authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-cover-missing {
    width: 76px !important;
    height: 114px !important;
    min-height: 114px !important;
  }
  .authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-book-excerpt {
    display: none !important;
  }
}

/* AuthorStore 0.1.95: force featured books into a true list/panel layout and restore author photos in list view. */
.authorstore-featured-books-page .authorstore-featured-panel-list,
.authorstore-featured-books-page .authorstore-book-grid,
.authorstore-book-grid.authorstore-featured-panel-list {
  display: flex !important;
  flex-direction: column !important;
  gap: .85rem !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card,
.authorstore-book-grid.authorstore-featured-panel-list .authorstore-book-card {
  display: grid !important;
  grid-template-columns: 90px minmax(0, 1fr) !important;
  gap: .9rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
  padding: .75rem .85rem !important;
  border: 1px solid var(--as-border, #e5e7eb) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05) !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-card-media,
.authorstore-book-grid.authorstore-featured-panel-list .authorstore-card-media {
  width: 90px !important;
  max-width: 90px !important;
  margin: 0 !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-book-cover,
.authorstore-book-grid.authorstore-featured-panel-list .authorstore-book-cover {
  width: 90px !important;
  height: 132px !important;
  object-fit: contain !important;
  background: #fff !important;
  border-radius: 9px !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-card-body,
.authorstore-book-grid.authorstore-featured-panel-list .authorstore-card-body {
  padding: 0 !important;
  min-width: 0 !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-book-title,
.authorstore-book-grid.authorstore-featured-panel-list .authorstore-book-title {
  margin: 0 0 .2rem !important;
  font-size: 1.08rem !important;
  line-height: 1.2 !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-book-excerpt,
.authorstore-book-grid.authorstore-featured-panel-list .authorstore-book-excerpt {
  margin: .35rem 0 !important;
  font-size: .9rem !important;
  line-height: 1.35 !important;
}
.authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-card-footer,
.authorstore-book-grid.authorstore-featured-panel-list .authorstore-card-footer {
  justify-content: flex-start !important;
  gap: .65rem !important;
  margin-top: .35rem !important;
}
.authorstore-author-list-item {
  grid-template-columns: 74px minmax(0, 1fr) auto !important;
}
.authorstore-author-list-photo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--as-border, #e5e7eb);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--as-navy, #183949);
  font-weight: 900;
  font-size: 1.35rem;
}
.authorstore-author-list-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.authorstore-author-list-photo.is-missing span,
.authorstore-author-list-photo span {
  display: inline-block;
}
@media (max-width: 640px) {
  .authorstore-featured-books-page .authorstore-featured-panel-card,
  .authorstore-book-grid.authorstore-featured-panel-list .authorstore-book-card {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: .75rem !important;
  }
  .authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-card-media,
  .authorstore-book-grid.authorstore-featured-panel-list .authorstore-card-media,
  .authorstore-featured-books-page .authorstore-featured-panel-card .authorstore-book-cover,
  .authorstore-book-grid.authorstore-featured-panel-list .authorstore-book-cover {
    width: 72px !important;
    max-width: 72px !important;
    height: 108px !important;
  }
  .authorstore-author-list-item {
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }
  .authorstore-author-list-photo {
    width: 58px;
    height: 58px;
  }
  .authorstore-author-list-actions {
    grid-column: 2;
  }
}


/* AuthorStore 0.1.97: use horizontal panel/list layout for Latest Added and All Books as well as Featured Books. */
.authorstore-books-panel-page .authorstore-listing-grid,
.authorstore-books-panel-page .authorstore-book-grid,
.authorstore-book-grid.authorstore-books-panel-list {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: .85rem !important;
}
.authorstore-books-panel-page .authorstore-books-panel-card,
.authorstore-book-grid.authorstore-books-panel-list .authorstore-book-card {
  display: grid !important;
  grid-template-columns: 90px minmax(0, 1fr) !important;
  gap: .9rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: .75rem .85rem !important;
  border: 1px solid var(--as-border, #e5e7eb) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05) !important;
}
.authorstore-books-panel-page .authorstore-books-panel-card .authorstore-card-media,
.authorstore-book-grid.authorstore-books-panel-list .authorstore-card-media {
  width: 90px !important;
  max-width: 90px !important;
  margin: 0 !important;
}
.authorstore-books-panel-page .authorstore-books-panel-card .authorstore-book-cover,
.authorstore-book-grid.authorstore-books-panel-list .authorstore-book-cover {
  width: 90px !important;
  height: 132px !important;
  object-fit: contain !important;
  background: #fff !important;
  border-radius: 9px !important;
}
.authorstore-books-panel-page .authorstore-books-panel-card .authorstore-cover-missing,
.authorstore-book-grid.authorstore-books-panel-list .authorstore-cover-missing {
  width: 90px !important;
  min-height: 132px !important;
  height: 132px !important;
}
.authorstore-books-panel-page .authorstore-books-panel-card .authorstore-card-body,
.authorstore-book-grid.authorstore-books-panel-list .authorstore-card-body {
  padding: 0 !important;
  min-width: 0 !important;
}
.authorstore-books-panel-page .authorstore-books-panel-card .authorstore-book-title,
.authorstore-book-grid.authorstore-books-panel-list .authorstore-book-title {
  margin: 0 0 .2rem !important;
  font-size: 1.08rem !important;
  line-height: 1.2 !important;
}
.authorstore-books-panel-page .authorstore-books-panel-card .authorstore-featured-kicker,
.authorstore-books-panel-page .authorstore-books-panel-card .authorstore-author-line,
.authorstore-books-panel-page .authorstore-books-panel-card .authorstore-book-excerpt {
  margin: .25rem 0 !important;
}
.authorstore-books-panel-page .authorstore-books-panel-card .authorstore-card-footer,
.authorstore-book-grid.authorstore-books-panel-list .authorstore-card-footer {
  justify-content: flex-start !important;
  gap: .65rem !important;
  margin-top: .35rem !important;
}
@media (max-width: 640px) {
  .authorstore-books-panel-page .authorstore-books-panel-card,
  .authorstore-book-grid.authorstore-books-panel-list .authorstore-book-card {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: .75rem !important;
  }
  .authorstore-books-panel-page .authorstore-books-panel-card .authorstore-card-media,
  .authorstore-book-grid.authorstore-books-panel-list .authorstore-card-media,
  .authorstore-books-panel-page .authorstore-books-panel-card .authorstore-book-cover,
  .authorstore-book-grid.authorstore-books-panel-list .authorstore-book-cover,
  .authorstore-books-panel-page .authorstore-books-panel-card .authorstore-cover-missing {
    width: 72px !important;
    max-width: 72px !important;
    height: 108px !important;
    min-height: 108px !important;
  }
  .authorstore-books-panel-page .authorstore-books-panel-card .authorstore-book-excerpt {
    display: none !important;
  }
}


.authorstore-featured-authors-showcase-page .authorstore-featured-author-showcases { display: grid; gap: 1.5rem; }
.authorstore-showcase-card { display: grid; grid-template-columns: 170px 1fr; gap: 1.5rem; align-items: center; padding: 1.5rem; border: 1px solid rgba(0,0,0,.12); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.authorstore-showcase-photo img { width: 170px; height: 170px; object-fit: cover; border-radius: 14px; display: block; }
.authorstore-showcase-initial { width: 170px; height: 170px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 4rem; background: rgba(0,0,0,.06); }
.authorstore-showcase-kicker, .authorstore-showcase-label { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; opacity: .75; margin-bottom: .4rem; }
.authorstore-showcase-card h2 { margin: 0 0 .35rem; }
.authorstore-showcase-pen, .authorstore-showcase-meta { opacity: .75; }
.authorstore-showcase-spotlight { position: relative; overflow: hidden; }
.authorstore-showcase-spotlight .authorstore-showcase-layout { display: grid; grid-template-columns: 170px 1fr; gap: 1.5rem; align-items: center; }
.authorstore-showcase-spotlight blockquote { margin: .75rem 0; font-size: 1.1rem; line-height: 1.5; }
@media (max-width: 700px) {
  .authorstore-showcase-card, .authorstore-showcase-spotlight .authorstore-showcase-layout { grid-template-columns: 1fr; }
  .authorstore-showcase-photo img, .authorstore-showcase-initial { width: 120px; height: 120px; }
}


/* AuthorStore 0.1.99: separate showcase image treatments.
   Book covers must display as portrait covers without cropping; author photos stay square. */
.authorstore-author-showcase .authorstore-showcase-author-photo-link,
.authorstore-featured-author-showcase .authorstore-showcase-photo {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
}
.authorstore-author-showcase .authorstore-showcase-author-photo,
.authorstore-featured-author-showcase .authorstore-showcase-photo img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.authorstore-author-showcase .authorstore-showcase-book-cover-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 2 / 3 !important;
  max-width: 130px !important;
  background: #fff !important;
}
.authorstore-author-showcase .authorstore-showcase-book-cover {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 2 / 3 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}
@media (max-width: 760px) {
  .authorstore-author-showcase .authorstore-showcase-author-photo {
    aspect-ratio: 1 / 1 !important;
  }
}

/* AuthorStore 0.1.100: final book-cover portrait override.
   Book artwork must never inherit square author/profile image cropping. */
.authorstore-page .authorstore-card-media,
.authorstore-page .authorstore-book-cover-link,
.authorstore-page .authorstore-book-gallery,
.authorstore-books-page .authorstore-card-media,
.authorstore-books-page .authorstore-book-cover-link,
.authorstore-book-page .authorstore-book-gallery {
  aspect-ratio: 2 / 3 !important;
  background: #fff !important;
}
.authorstore-page .authorstore-card-media,
.authorstore-books-page .authorstore-card-media,
.authorstore-page .authorstore-book-cover-link,
.authorstore-books-page .authorstore-book-cover-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.authorstore-page .authorstore-book-cover,
.authorstore-books-page .authorstore-book-cover,
.authorstore-page .authorstore-card-media .authorstore-book-cover,
.authorstore-books-page .authorstore-card-media .authorstore-book-cover,
.authorstore-page .authorstore-book-cover-link .authorstore-book-cover,
.authorstore-books-page .authorstore-book-cover-link .authorstore-book-cover,
.authorstore-page .authorstore-book-cover-large,
.authorstore-book-page .authorstore-book-cover-large {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 2 / 3 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
  border-radius: 8px !important;
}
.authorstore-book-page .authorstore-book-gallery {
  aspect-ratio: auto !important;
  overflow: visible !important;
}
.authorstore-book-page .authorstore-book-cover-large {
  height: auto !important;
  max-height: none !important;
}
.authorstore-page .authorstore-cover-missing,
.authorstore-page .authorstore-cover-missing-large,
.authorstore-books-page .authorstore-cover-missing {
  aspect-ratio: 2 / 3 !important;
  min-height: 0 !important;
}
/* Author images deliberately stay square. */
.authorstore-author-photo,
.authorstore-author-photo-small,
.authorstore-author-list-photo,
.authorstore-showcase-photo,
.authorstore-showcase-author-photo-link {
  aspect-ratio: 1 / 1 !important;
}
