/**
 * MyBookTable 4 Frontend Styles
 * Modern, elegant, theme-independent design
 */

/* ===================================
   THEME INDEPENDENCE & RESETS
   =================================== */

/* Main Container - Break out of theme constraints */
.mbt-book-page {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    box-sizing: border-box;
    line-height: 1.6;
    background: transparent;
    clear: both;
    overflow-x: hidden;
}

.mbt-book-page *,
.mbt-book-page *::before,
.mbt-book-page *::after {
    box-sizing: border-box;
}

/* Reset common theme overrides */
.mbt-book-page h1,
.mbt-book-page h2,
.mbt-book-page h3,
.mbt-book-page h4,
.mbt-book-page h5,
.mbt-book-page h6 {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.mbt-book-page p {
    margin: 0 0 1em 0;
    line-height: 1.7;
}

.mbt-book-page a {
    color: inherit;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.mbt-book-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   HERO BANNER - Full Width
   =================================== */

.mbt-hero-banner {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e8e8e8;
    padding: 60px 0 50px 0;
    margin-bottom: 50px;
}

.mbt-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    align-items: start;
}

.mbt-hero-cover {
    position: sticky;
    top: 40px;
}

.mbt-cover-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.mbt-cover-image:hover {
    transform: translateY(-5px);
}

.mbt-cover-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.mbt-cover-placeholder .dashicons {
    font-size: 100px;
    color: #bbb;
}

.mbt-hero-content {
    padding-top: 20px;
}

.mbt-hero-title {
    font-size: 3em;
    font-weight: 800;
    margin: 0 0 30px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.mbt-hero-tagline {
    font-size: 24px !important;
    font-weight: 500;
    margin: 0 0 30px 0;
    font-style: italic;
    line-height: 1.4;
}

.mbt-hero-description {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 40px;
}

.mbt-hero-description p:last-child {
    margin-bottom: 0;
}

.mbt-hero-button {
    margin-top: 40px;
}

.mbt-order-button {
    display: inline-block;
    padding: 18px 48px;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    border: none;
}

.mbt-order-button:hover {
    transform: translateY(-3px);
    color: white;
}

.mbt-preorder-button {
    /* Color controlled by template customization */
}

.mbt-preorder-button:hover {
    /* Hover color controlled by template customization */
}

.mbt-magnet-button {
    background: #ef4444;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.mbt-magnet-button:hover {
    background: #dc2626;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.4);
}

/* Content Wrapper */
.mbt-content {
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 40px;
    line-height: 1.8;
    font-size: 1.05em;
}

/* ===================================
   SECTION HEADINGS
   =================================== */

.mbt-book-page .mbt-section-heading,
.mbt-section-heading {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
}

.mbt-order-button,
.mbt-sample-button {
    display: inline-block;
    padding: 18px 48px;
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    border: none;
}

.mbt-order-button:hover,
.mbt-sample-button:hover {
    transform: translateY(-3px);
    color: white !important;
}

/* ===================================
   PURCHASE OPTIONS - Elegant Tabs
   =================================== */

.mbt-purchase-section {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 40px;
    scroll-margin-top: 100px;
}

.mbt-purchase-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

/* Left Tabs */
.mbt-purchase-tabs {
    background: #fafafa;
    border-right: 1px solid #e8e8e8;
    padding: 20px 0;
}

.mbt-purchase-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.mbt-purchase-tab:hover {
    background: #f0f0f0;
}

.mbt-purchase-tab.mbt-tab-active {
    background: white;
    font-weight: 600;
}

.mbt-tab-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}

.mbt-purchase-tab.mbt-tab-active .mbt-tab-icon {
    opacity: 1;
}

.mbt-tab-label {
    font-size: 0.95em;
}

/* Right Content */
.mbt-purchase-content {
    padding: 40px;
}

.mbt-format-content {
    display: none;
}

.mbt-format-content.mbt-content-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mbt-format-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.mbt-format-info-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.mbt-format-cover {
    flex-shrink: 0;
}

.mbt-format-cover img {
    width: 80px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Format-specific aspect ratios */
.mbt-format-content[data-format="ebook"] .mbt-format-cover img,
.mbt-format-content[data-format="paperback"] .mbt-format-cover img,
.mbt-format-content[data-format="hardcover"] .mbt-format-cover img,
.mbt-format-content[data-format="special"] .mbt-format-cover img {
    aspect-ratio: 2/3;
    object-fit: cover;
}

.mbt-format-content[data-format="audiobook"] .mbt-format-cover img {
    aspect-ratio: 1/1;
    object-fit: cover;
}

.mbt-format-title {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.mbt-format-meta-display {
    font-size: 0.95em;
}

.mbt-format-pricing {
    text-align: right;
    flex-shrink: 0;
}

.mbt-price-regular {
    font-size: 2em;
    font-weight: 600;
}

.mbt-price-strikethrough {
    text-decoration: line-through;
    font-size: 1.3em;
    display: block;
    margin-bottom: 5px;
}

.mbt-price-sale {
    font-size: 2.5em;
    font-weight: 900;
    color: #ef4444;
}

/* Retailer Buttons */
.mbt-retailer-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mbt-retailer-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 50px;
}

.mbt-retailer-button:hover {
    background: #fafafa;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.mbt-retailer-logo {
    max-height: 32px;
    max-width: 160px;
    width: auto;
    height: auto;
}

.mbt-retailer-text {
    font-size: 0.95em;
    font-weight: 600;
}

.mbt-custom-button {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.mbt-custom-button:hover {
    background: #2d3748;
    border-color: #2d3748;
}

.mbt-custom-button .mbt-retailer-text {
    color: white;
}

/* Amazon Affiliate Disclaimer - Smaller & More Discreet */
.mbt-affiliate-disclaimer {
    margin-top: 24px;
    padding: 10px 14px;
    background: #fafafa;
    border-left: 2px solid #d1d5db;
    border-radius: 6px;
}

.mbt-affiliate-disclaimer small {
    font-size: 0.7em;
    line-height: 1.4;
    display: block;
}

/* ===================================
   REVIEWS & ENDORSEMENTS - CAROUSEL
   =================================== */

.mbt-reviews-section {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 40px;
}

.mbt-reviews-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile controls hidden on desktop */
.mbt-carousel-controls-mobile {
    display: none !important;
}

/* Desktop dots visible */
.mbt-desktop-dots {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

/* Desktop: show desktop dots, hide mobile controls */
@media (min-width: 769px) {
    .mbt-carousel-controls-mobile {
        display: none !important;
    }
    
    .mbt-desktop-dots {
        display: flex !important;
    }
}

.mbt-carousel-prev-mobile,
.mbt-carousel-next-mobile {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.mbt-carousel-prev-mobile:hover,
.mbt-carousel-next-mobile:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.mbt-carousel-prev-mobile:hover .dashicons,
.mbt-carousel-next-mobile:hover .dashicons {
    color: white;
}

.mbt-carousel-prev-mobile .dashicons,
.mbt-carousel-next-mobile .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    transition: color 0.2s ease;
}

.mbt-carousel-prev,
.mbt-carousel-next {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.mbt-carousel-prev:hover,
.mbt-carousel-next:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.mbt-carousel-prev:hover .dashicons,
.mbt-carousel-next:hover .dashicons {
    color: white;
}

.mbt-carousel-prev .dashicons,
.mbt-carousel-next .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.mbt-reviews-carousel {
    flex: 1;
    overflow: hidden;
    padding: 10px 0;
}

.mbt-reviews-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

/* Carousel card sizing — scoped so it never bleeds into grid mode */
.mbt-reviews-carousel-container .mbt-review-card {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
}

.mbt-review-card {
    background: white;
    padding: 30px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.mbt-reviews-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.mbt-review-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.mbt-quote-icon {
    margin-bottom: 18px;
}

.mbt-quote-icon .dashicons {
    font-size: 34px;
    color: #e8e8e8;
}

.mbt-review-quote {
    font-size: 1.05em;
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 22px 0;
    flex: 1;
}

.mbt-review-attribution {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.mbt-reviewer-photo {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.mbt-reviewer-info {
    flex: 1;
}

.mbt-reviewer-name {
    font-weight: 600;
    font-size: 0.95em;
    display: block;
    font-style: normal;
}

.mbt-reviewer-source {
    font-size: 0.85em;
}

.mbt-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.mbt-dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    max-width: 12px;
    max-height: 12px;
    border-radius: 50%;
    background: #e8e8e8;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
}

.mbt-dot:hover {
    background: #9ca3af;
}

.mbt-dot.mbt-dot-active {
    background: #1a1a1a;
}

/* ===================================
   AWARDS & RECOGNITION
   =================================== */

.mbt-awards-section {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 40px;
}

.mbt-awards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.mbt-award-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: all 0.3s ease;
    width: 280px;
}

.mbt-award-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.mbt-award-badge {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
}

.mbt-award-badge img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.mbt-award-title {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 8px;
    text-align: center;
}

.mbt-award-year {
    font-size: 0.9em;
    margin-bottom: 12px;
    text-align: center;
}

.mbt-award-description {
    font-size: 0.9em;
    line-height: 1.6;
    text-align: center;
}
    font-size: 0.9em;
    color: #9ca3af;
    line-height: 1.6;
}

/* ===================================
   SAMPLES SECTION
   =================================== */

.mbt-samples-section {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto 100px auto !important;
    padding: 0 40px !important;
}

.mbt-sample-item {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
    max-width: 100%;
}

.mbt-sample-kindle,
.mbt-sample-audiobook-layout {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Sample Chapter with PDF Thumbnail */
.mbt-sample-chapter {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.mbt-chapter-thumbnail {
    flex-shrink: 0;
    width: 200px;
    position: relative;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mbt-thumbnail-clickable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mbt-thumbnail-clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.mbt-thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85em;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mbt-thumbnail-clickable:hover .mbt-thumbnail-overlay {
    opacity: 1;
}

.mbt-thumbnail-overlay .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.mbt-chapter-canvas {
    width: 100%;
    height: auto;
    display: block;
}

.mbt-chapter-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.mbt-chapter-loading .dashicons {
    font-size: 48px;
    color: #d1d5db;
}

.mbt-chapter-content {
    flex: 1;
}

/* Audiobook Sample with Cover */
.mbt-sample-audiobook-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.mbt-audiobook-cover {
    flex-shrink: 0;
    width: 200px;
}

.mbt-audiobook-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    aspect-ratio: 1/1;
    object-fit: cover;
}

.mbt-audiobook-content {
    flex: 1;
}

.mbt-audiobook-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
}

.mbt-audiobook-icon img {
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

/* Old background style - removed */
.mbt-sample-audiobook {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    border: none;
    position: relative;
    overflow: hidden;
}

.mbt-audiobook-overlay {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.92) 0%, rgba(45, 55, 72, 0.92) 100%);
    padding: 40px;
    backdrop-filter: blur(5px);
}

.mbt-sample-audiobook .mbt-sample-title {
    color: white;
}

.mbt-sample-audiobook .mbt-sample-description {
    color: rgba(255, 255, 255, 0.9);
}

.mbt-sample-audiobook .mbt-audio-player {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.mbt-sample-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
}

.mbt-sample-description {
    line-height: 1.7;
    margin-bottom: 15px;
}

.mbt-sample-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #1a1a1a;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    height: 48px;
    line-height: 1;
}

.mbt-sample-button:hover {
    background: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}

.mbt-audio-player,
.mbt-audio-embed {
    width: 100%;
    margin-top: 20px;
}

.mbt-kindle-preview {
    margin-top: 20px;
}

.mbt-kindle-preview iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mbt-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 8px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Override WordPress video wrapper - FORCE with !important */
.mbt-video-container .wp-video {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    max-width: none !important;
}

.mbt-video-container .wp-video video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.mbt-video-container iframe,
.mbt-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.mbt-sample-video {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.mbt-video-container video {
    background: #000;
    object-fit: contain;
}

/* ===================================
   EMAIL SIGNUP
   =================================== */

.mbt-email-signup-section {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 40px;
}

.mbt-email-signup-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.mbt-email-signup-headline {
    font-size: 2em;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.mbt-email-signup-description {
    font-size: 1.1em;
    color: #e5e7eb;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}

.mbt-email-signup-form {
    max-width: 600px;
    margin: 0 auto;
}

/* ── API subscribe form (inline layout) ──────────────────────────────────── */
.mbt-api-form-wrap {
    max-width: 680px;
    margin: 0 auto;
}
.mbt-subscribe-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}
.mbt-subscribe-row input[type="text"],
.mbt-subscribe-row input[type="email"] {
    flex: 1 1 180px;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid rgba(128,128,128,0.35);
    border-radius: 6px;
    font-size: 15px;
    background: rgba(255,255,255,0.07);
    color: inherit;
}
.mbt-subscribe-btn {
    flex-shrink: 0;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.mbt-subscribe-btn:disabled { opacity: 0.6; cursor: default; }
.mbt-subscribe-message {
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
}
.mbt-subscribe-error   { color: #e53e3e; }
.mbt-subscribe-success { font-weight: 600; }
@media (max-width: 540px) {
    .mbt-subscribe-row { flex-direction: column; }
    .mbt-subscribe-btn { width: 100%; }
}

/* ===================================
   CROSS-SELL BOOKS
   =================================== */

.mbt-cross-sell-section {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 40px;
}

.mbt-cross-sell-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.mbt-cross-sell-item {
    text-align: center;
    transition: transform 0.3s ease;
    width: 220px;
}

.mbt-cross-sell-item:hover {
    transform: translateY(-5px);
}

.mbt-cross-sell-item a {
    display: block;
    text-decoration: none;
}

.mbt-cross-sell-cover {
    margin-bottom: 12px;
    position: relative;
}

.mbt-cross-sell-cover img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.mbt-cross-sell-item:hover .mbt-cross-sell-cover img {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.mbt-cross-sell-title {
    font-size: 14px !important;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.mbt-cross-sell-author {
    font-size: 0.85em;
}

/* Price Overlay */
.mbt-cross-sell-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(26, 26, 26, 0.92);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Coming Soon / Free Labels */
.mbt-cross-sell-label {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mbt-label-coming-soon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.mbt-label-free {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

/* ===================================
   BOOK DETAILS - More Discreet
   =================================== */

.mbt-book-details-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 40px;
}

.mbt-section-heading.mbt-details-heading {
    font-size: 1.5em;
}

.mbt-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.mbt-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Block-layout variant for multi-line values like CIP data */
.mbt-detail-item--block {
    grid-column: 1 / -1;
}

.mbt-detail-cip {
    font-size: 0.82em;
    opacity: 0.8;
    font-family: Georgia, serif;
    line-height: 1.6;
    white-space: pre-line;
}

.mbt-detail-label {
    font-weight: 600;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mbt-detail-value {
    font-size: 0.9em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

.mbt-publisher-link {
    transition: color 0.2s;
}

.mbt-publisher-link:hover {
}

.mbt-publisher-link .dashicons {
    font-size: 14px;
}

/* Content Warnings - More Discreet */
.mbt-content-warnings {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fef3c7;
    border-left: 2px solid #f59e0b;
    border-radius: 6px;
}

.mbt-warnings-title {
    font-size: 0.85em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mbt-warnings-title .dashicons {
    font-size: 14px;
}

.mbt-warnings-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mbt-warning-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: white;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    color: #92400e;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .mbt-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 30px;
    }
    
    .mbt-hero-cover {
        max-width: 300px;
        margin: 0 auto;
        position: static;
    }
    
    .mbt-hero-title {
        font-size: 2.2em;
        text-align: center;
    }
    
    .mbt-hero-tagline {
        text-align: center;
    }
    
    .mbt-hero-button {
        text-align: center;
    }
    
    .mbt-order-button {
        display: block;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .mbt-purchase-container {
        grid-template-columns: 1fr;
    }
    
    .mbt-purchase-tabs {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
    }
    
    .mbt-purchase-tab {
        flex-direction: column;
        min-width: 100px;
        padding: 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
        text-align: center;
        gap: 8px;
    }
    
    .mbt-purchase-tab.mbt-tab-active {
        border-left: none;
    }
    
    .mbt-tab-icon {
        width: 24px;
        height: 24px;
    }
    
    .mbt-tab-label {
        font-size: 0.85em;
    }
    
    .mbt-purchase-content {
        padding: 30px 20px;
    }
    
    .mbt-format-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .mbt-format-pricing {
        text-align: left;
    }
    
    .mbt-retailer-buttons {
        grid-template-columns: 1fr;
    }
    
    .mbt-purchase-section,
    .mbt-content,
    .mbt-reviews-section,
    .mbt-awards-section,
    .mbt-samples-section,
    .mbt-email-signup-section,
    .mbt-cross-sell-section,
    .mbt-book-details-section {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .mbt-hero-banner {
        padding: 60px 0;
        margin-bottom: 60px;
    }
    
    .mbt-hero-title {
        font-size: 1.8em;
    }
    
    .mbt-hero-tagline {
        font-size: 20px !important;
    }
    
    .mbt-section-heading {
        font-size: 1.8em;
    }
    
    .mbt-reviews-grid,
    .mbt-awards-grid,
    .mbt-cross-sell-grid {
        grid-template-columns: 1fr;
    }
    
    .mbt-email-signup-box {
        padding: 40px 30px;
    }
    
    /* Purchase Options - Stack and scroll tabs horizontally */
    .mbt-purchase-section {
        padding: 0 20px;
    }
    
    .mbt-purchase-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .mbt-purchase-tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 5px;
        gap: 4px;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        scrollbar-width: thin;
    }
    
    .mbt-purchase-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .mbt-purchase-tabs::-webkit-scrollbar-track {
        background: #f0f0f0;
    }
    
    .mbt-purchase-tabs::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
    
    .mbt-purchase-tab {
        min-width: auto;
        flex: 1 1 0;
        padding: 10px 8px;
        border-left: none;
        border-bottom: 3px solid transparent;
        justify-content: center;
        font-size: 0.8em;
        gap: 6px;
    }
    
    .mbt-tab-icon {
        width: 16px;
        height: 16px;
    }
    
    .mbt-tab-label {
        font-size: 0.9em;
        white-space: nowrap;
    }
    
    .mbt-purchase-tab.mbt-tab-active {
        border-left: none;
    }
    
    .mbt-purchase-content {
        padding: 30px 20px;
    }
}
    
    /* Endorsements - 1 card at a time on mobile, fade transition */
    @media (max-width: 768px) {
        .mbt-reviews-section {
            padding: 0 20px !important;
        }
        
        .mbt-reviews-carousel-container {
            padding: 0 !important;
            gap: 0 !important;
            display: block !important;
        }
        
        .mbt-reviews-carousel {
            position: relative !important;
            min-height: 400px !important;
            width: 100% !important;
            max-width: 100% !important;
            overflow: visible !important;
            padding: 0 !important;
            margin: 0 !important;
        }
        
        .mbt-reviews-track {
            position: relative !important;
            transform: none !important;
            transition: none !important;
            min-height: 400px !important;
            gap: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            padding: 0 !important;
            margin: 0 !important;
        }
        
        .mbt-reviews-carousel-container .mbt-review-card {
            position: absolute !important;
            left: 0 !important;
            right: 0 !important;
            top: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            padding: 30px 28px !important;
            opacity: 0 !important;
            transition: opacity 0.5s ease !important;
            flex: none !important;
        }
        
        .mbt-reviews-carousel-container .mbt-review-card.mbt-active {
            opacity: 1 !important;
            position: relative !important;
        }
    }
    
    /* Keep desktop as flex (normal sliding) */
    @media (min-width: 769px) {
        .mbt-reviews-carousel-container .mbt-review-card {
            flex: 0 0 calc(50% - 15px) !important;
            max-width: calc(50% - 15px) !important;
            position: relative !important;
        }
    }
    
    /* Mobile: hide desktop arrows and desktop dots, show mobile controls */
    @media (max-width: 768px) {
        /* Hide desktop arrow buttons on mobile */
        .mbt-reviews-carousel-container .mbt-carousel-prev,
        .mbt-reviews-carousel-container .mbt-carousel-next {
            display: none !important;
        }
        
        /* Hide desktop dots on mobile */
        .mbt-desktop-dots {
            display: none !important;
        }
        
        /* Show mobile controls - arrows flanking dots */
        .mbt-carousel-controls-mobile {
            display: flex !important;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin-top: 25px;
        }
        
        .mbt-carousel-prev-mobile,
        .mbt-carousel-next-mobile {
            flex-shrink: 0;
        }
        
        .mbt-carousel-controls-mobile .mbt-carousel-dots {
            margin: 0 !important;
            display: flex !important;
            gap: 8px;
        }
    }
    
    /* Sample Chapter - Stack vertically on tablet/mobile only */
    @media (max-width: 992px) {
        .mbt-sample-chapter {
            flex-direction: column !important;
            max-width: 1100px;
            gap: 20px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .mbt-chapter-thumbnail {
            width: 180px !important;
            max-width: 180px !important;
            margin: 0 auto !important;
            order: -1;
        }
        
        .mbt-chapter-content {
            text-align: center;
            width: 100%;
        }
        
        .mbt-sample-buttons {
            justify-content: center;
        }
    }
    
    /* Audiobook Sample - Stack vertically on tablet/mobile only */
    @media (max-width: 992px) {
        .mbt-sample-audiobook-layout {
            flex-direction: column !important;
            gap: 20px;
            max-width: 1100px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .mbt-audiobook-cover {
            width: 180px !important;
            max-width: 180px !important;
            margin: 0 auto !important;
            order: -1;
        }
        
        .mbt-audiobook-content {
            text-align: center;
            width: 100%;
        }
        
        .mbt-audiobook-player {
            max-width: 100%;
        }
    }
    
    /* Reader Magnet - Reduce padding on tablet/mobile only */
    @media (max-width: 992px) {
        .mbt-reader-magnet-section {
            padding: 0 15px;
        }
        
        .mbt-reader-magnet-box {
            padding: 30px 15px !important;
        }
        
        .mbt-reader-magnet-content {
            flex-direction: column !important;
            gap: 25px;
        }
        
        .mbt-reader-magnet-cover {
            width: 160px !important;
            margin: 0 auto !important;
        }
        
        .mbt-reader-magnet-text {
            width: 100%;
        }
    }
}

/* Sample Buttons */
.mbt-sample-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* PDF Lightbox Modal */
.mbt-pdf-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mbt-pdf-modal {
    background: white;
    border-radius: 12px;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.mbt-pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e8e8e8;
}

.mbt-pdf-title {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0;
}

.mbt-pdf-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    position: relative;
    z-index: 100;
}

.mbt-pdf-close:hover {
    background: #f0f0f0;
}

.mbt-pdf-close .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.mbt-pdf-body {
    flex: 1;
    overflow: auto;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mbt-pdf-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px 24px;
    background: #f8f8f8;
    border-radius: 50px;
}

.mbt-pdf-prev,
.mbt-pdf-next {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.mbt-pdf-prev:hover,
.mbt-pdf-next:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.mbt-pdf-prev:hover .dashicons,
.mbt-pdf-next:hover .dashicons {
    color: white;
}

.mbt-pdf-prev .dashicons,
.mbt-pdf-next .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.mbt-pdf-page-info {
    font-size: 1em;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

#mbt-pdf-canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mbt-pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1em;
}

/* Force hide Genesis/theme headers and breadcrumbs for book pages */
/* Hide common header patterns across themes */
body.single-mbt_book article > header:first-child,
body.single-mbt_book .entry > header:first-child,
body.single-mbt_book .post > header:first-child,
body.single-mbt_book article > .entry-header:first-child,
body.single-mbt_book .hentry > header:first-child,
body.single-mbt_book .genesis-entry-header,
body.single-mbt_book header.entry-header,
body.single-mbt_book header.mbt_book-title,
body.single-mbt_book .entry-title,
body.single-mbt_book h1.entry-title,
body.single-mbt_book .page-header,
body.single-mbt_book article > h1:first-child,
body.single-mbt_book .breadcrumb,
body.single-mbt_book .genesis-breadcrumb {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Cross-sell placeholder for books without covers */
.mbt-cross-sell-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #e8e8e8 0%, #d1d5db 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mbt-cross-sell-placeholder .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
}

.mbt-cross-sell-cover,
.mbt-cross-sell-cover img {
    aspect-ratio: 2/3;
    object-fit: cover;
}

/* Reader Magnet CTA */
.mbt-reader-magnet-section {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 40px;
}

.mbt-reader-magnet-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.mbt-reader-magnet-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.mbt-reader-magnet-cover {
    flex-shrink: 0;
    width: 200px;
}

.mbt-reader-magnet-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    aspect-ratio: 2/3;
    object-fit: cover;
}

.mbt-reader-magnet-text {
    flex: 1;
    text-align: center;
}

.mbt-magnet-logo {
    margin-bottom: 30px;
}

.mbt-magnet-logo img {
    max-height: 40px;
    width: auto;
    margin: 0 auto;
    opacity: 0.8;
}

.mbt-magnet-headline {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px !important;
}

.mbt-magnet-book-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px !important;
    font-style: italic;
}

.mbt-magnet-description {
    font-size: 1.05em;
    margin-bottom: 40px;
    line-height: 1.7;
}

.mbt-magnet-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.02em;
}

.mbt-magnet-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mbt-reader-magnet-content {
        flex-direction: column;
        text-align: center;
    }
    
    .mbt-reader-magnet-cover {
        width: 150px;
        margin: 0 auto;
    }
}

/* Custom typography improvements */
.mbt-book-page p {
    margin: 0.5em 0 1em !important;
    line-height: 1.5 !important;
}

.mbt-sample-title {
    font-size: 1.56em !important;
}

/* Extra small screens - super compact tabs */
@media (max-width: 400px) {
    .mbt-purchase-tab {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 4px;
        font-size: 0.7em;
        gap: 4px;
    }
    
    .mbt-tab-icon {
        width: 14px;
        height: 14px;
    }
    
    .mbt-tab-label {
        font-size: 0.85em;
    }
}

/* ===================================
   INTERIOR GALLERY
   =================================== */

.mbt-interior-gallery-section {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 40px;
}

.mbt-gallery-description {
    text-align: center;
    font-size: 1.05em;
    margin-bottom: 40px;
}

.mbt-interior-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.mbt-gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1/1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mbt-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.mbt-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mbt-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mbt-gallery-item:hover .mbt-gallery-overlay {
    opacity: 1;
}

.mbt-gallery-overlay .dashicons {
    color: white;
    font-size: 48px;
    width: 48px;
    height: 48px;
}

/* Gallery Lightbox */
.mbt-gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mbt-gallery-lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mbt-gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.mbt-gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.mbt-gallery-close .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.mbt-gallery-prev,
.mbt-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.mbt-gallery-prev {
    left: 20px;
}

.mbt-gallery-next {
    right: 20px;
}

.mbt-gallery-prev:hover,
.mbt-gallery-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.mbt-gallery-prev .dashicons,
.mbt-gallery-next .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.mbt-gallery-image-container {
    max-width: 80%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mbt-gallery-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.mbt-gallery-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .mbt-interior-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .mbt-gallery-prev,
    .mbt-gallery-next {
        width: 50px;
        height: 50px;
    }
    
    .mbt-gallery-prev {
        left: 10px;
    }
    
    .mbt-gallery-next {
        right: 10px;
    }
    
    .mbt-gallery-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

/* Hero Gallery Preview Thumbnails */
.mbt-hero-gallery-preview {
    margin-top: 10px;
}

.mbt-hero-gallery-label {
    font-size: 0.6em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    text-align: center;
}

.mbt-hero-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.mbt-hero-gallery-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #f5f5f5;
    width: calc(25% - 2.25px); /* 4 columns */
}

.mbt-hero-gallery-hidden {
    display: none;
    width: 100%;
}

.mbt-hero-gallery-hidden.expanded {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.mbt-hero-gallery-hidden.expanded .mbt-hero-gallery-thumb {
    width: calc(25% - 2.25px);
}

.mbt-gallery-see-more {
    width: 100%;
    margin-top: 8px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mbt-gallery-see-more:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.mbt-gallery-see-more .mbt-chevron {
    transition: transform 0.3s ease;
}

.mbt-gallery-see-more.expanded .mbt-chevron {
    transform: rotate(180deg);
}

.mbt-hero-gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1;
}

.mbt-hero-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Email description center */
.mbt-email-description {
    text-align: center;
}

/* Publisher link styling */
.mbt-publisher-link {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.mbt-publisher-link:hover {
    color: #1d4ed8;
}

/* ===================================
   ABOUT THE AUTHOR
   =================================== */

.mbt-about-author-section {
    max-width: 1100px;
    margin: 0 auto 100px auto;
    padding: 0 40px;
}

.mbt-about-author-content {
    display: flex;
    gap: 30px;
    align-items: start;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
}

/* Only show grid if image exists */
.mbt-about-author-content:has(.mbt-author-image) {
    display: grid;
    grid-template-columns: 180px 1fr;
}

.mbt-author-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.mbt-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mbt-author-bio {
    flex: 1;
    width: 100%;
}

.mbt-author-name {
    font-size: 1.6em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.mbt-author-name a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.mbt-author-name a:hover {
    color: #2563eb;
}

.mbt-author-description {
    font-size: 1em;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 20px;
}

.mbt-author-description p {
    margin-bottom: 1em;
}

.mbt-author-description p:last-child {
    margin-bottom: 0;
}

.mbt-author-link {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95em;
}

.mbt-author-link:hover {
    color: #1d4ed8;
}

@media (max-width: 768px) {
    .mbt-about-author-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 30px 20px;
    }
    
    .mbt-about-author-content:has(.mbt-author-image) {
        display: flex;
    }
    
    .mbt-author-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
}

/* ===================================
   DIRECT EBOOK SALE MODE
   =================================== */

.mbt-direct-checkout {
    text-align: center;
}

.mbt-direct-price-label {
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.mbt-direct-price {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.mbt-gumroad-button,
.mbt-payhip-button,
.mbt-sellfy-button,
.mbt-shopify-button {
    background: #2563eb !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.mbt-gumroad-button:hover,
.mbt-payhip-button:hover,
.mbt-sellfy-button:hover,
.mbt-shopify-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3) !important;
}

/* Platform-specific styling */
.mbt-gumroad-button {
    background: #ff90e8 !important;
}

.mbt-gumroad-button:hover {
    background: #ff6fdd !important;
    box-shadow: 0 8px 20px rgba(255, 144, 232, 0.4) !important;
}

/* Payhip - Override their green styles */
.mbt-payhip-button.payhip-buy-button {
    background: #00a886 !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    padding: 16px 40px !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.mbt-payhip-button.payhip-buy-button:hover {
    background: #008f73 !important;
    box-shadow: 0 8px 20px rgba(0, 168, 134, 0.4) !important;
}

.mbt-sellfy-button {
    background: #21c5bd !important;
    border: none !important;
    cursor: pointer !important;
}

.mbt-sellfy-button:hover {
    background: #1ba8a1 !important;
    box-shadow: 0 8px 20px rgba(33, 197, 189, 0.4) !important;
}

.mbt-shopify-button {
    background: #95bf47 !important;
    border: none !important;
    cursor: pointer !important;
}

.mbt-shopify-button:hover {
    background: #7fa639 !important;
    box-shadow: 0 8px 20px rgba(149, 191, 71, 0.4) !important;
}

/* Powered by platform logo */
.mbt-powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    opacity: 0.5;
}

.mbt-powered-text {
    font-size: 0.6em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mbt-platform-logo {
    height: 14px !important;
    width: auto !important;
    max-width: 100px !important;
    max-height: 14px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Button text wrapper for hover effect */
.mbt-button-text {
    transition: opacity 0.2s ease;
}

/* Progress Step Circles - Default States */
.mbt-step-circle {
    background: #ffffff;
    border: 3px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mbt-step-circle.completed {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 3px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mbt-step-label {
}

.mbt-step-label.completed {
    color: #3b82f6;
}

.mbt-book-status-label {
    color: #3b82f6;
}

.mbt-progress-percentage,
.mbt-stages-complete {
    color: #3b82f6;
}

/* Reader Magnet & Direct Sale Purchase Sections */
.mbt-reader-magnet-section,
.mbt-direct-sale-section {
    max-width: 1100px !important;
    margin: 0 auto 100px auto !important;
    padding: 0 40px !important;
}

.mbt-magnet-content,
.mbt-direct-content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    overflow: visible;
}

/* Special Edition - Special Features */
.mbt-special-features {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.85;
}

.mbt-special-features p {
    margin: 0 0 4px 0;
}

/* ── Reviews Grid Mode ────────────────────────────────────────────────────── */
.mbt-reviews-grid-mode .mbt-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 32px auto 0;
    gap: 24px;
}

.mbt-reviews-grid-mode .mbt-review-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 12px;
    padding: 32px 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mbt-reviews-grid-mode .mbt-review-attribution {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.07);
}

@media (max-width: 640px) {
    .mbt-reviews-grid-mode .mbt-reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Theme spacing reset on book pages ───────────────────────────────────── */
/* Remove theme top/bottom margin/padding on content wrappers.
   Targets generic WP wrappers + Kadence-specific classes seen in inspector.
   Only margin/padding are touched — layout structure is preserved. */
body.single-mbt_book .content-area,
body.single-mbt_book #primary,
body.single-mbt_book .content-container,
body.single-mbt_book .site-container,
body.single-mbt_book .content-wrap,
body.single-mbt_book .site-main,
body.single-mbt_book #main,
body.single-mbt_book .entry-content-wrap,
body.single-mbt_book .entry-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    --global-xxl-spacing: 0px;
    --wp--style--block-gap: 0px;
}
