/* Approved single-cover book presentation, scoped to collection format panels. */
.ys-book-formats{direction:rtl;max-width:520px;width:100%;margin:28px auto 36px;text-align:center;color:#304a38;font-family:'Yoanna Baloo',Tahoma,Arial,sans-serif;font-weight:444;box-sizing:border-box}
.ys-book-formats *{box-sizing:border-box}
.ys-book-formats .ys-book-cover{margin:0 auto 24px;max-width:270px;width:78%}
.ys-book-formats .ys-book-cover a{display:block;border-radius:5px;min-height:44px}
.ys-book-formats .ys-book-cover img{display:block;width:100%;height:auto;border:1px solid #d6dfce;border-radius:4px;box-shadow:0 12px 28px #304a3826}
.ys-book-formats .ys-book-cover figcaption{font-size:13px;color:#61715a;margin:12px 0 0}
.ys-book-formats .ys-book-format-options{display:flex;justify-content:center;border:1px solid #d6dfce;border-radius:18px;overflow:hidden;background:#fff}
.ys-book-formats .ys-book-format{flex:1;min-width:0;padding:18px 12px;display:flex;flex-direction:column;align-items:center;gap:5px}
.ys-book-formats .ys-book-format+.ys-book-format{border-inline-start:1px solid #d6dfce;background:#f7f9f4}
.ys-book-formats .ys-book-format-label{font-size:17px;line-height:1.6}
.ys-book-formats .ys-book-format-detail{font-size:13px;color:#61715a;line-height:1.8}
.ys-book-formats .ys-book-format-price{font-size:29px;line-height:1.5;font-weight:444;color:#304a38;margin-top:4px}
.ys-book-formats .ys-book-format-price span{font-size:16px}
.ys-book-formats .ys-book-format-note{font-size:13px;color:#61715a;margin:12px 0 0}
.ys-book-formats a:focus-visible{outline:3px solid #345d40;outline-offset:5px}
.ys-book-formats:has(.ys-book-format-options--three){max-width:920px}
.ys-book-formats .ys-book-format-options--three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;border:0;background:transparent;border-radius:0;overflow:visible;text-align:right}
.ys-book-formats .ys-book-format-options--three .ys-book-format--card{border:1px solid #d6dfce;border-radius:16px;background:#fff;padding:18px;align-items:stretch}
.ys-book-formats .ys-book-format-options--three .ys-book-format--card+.ys-book-format--card{border-inline-start:1px solid #d6dfce;background:#fff}
.ys-book-formats .ys-book-format-options--three .ys-book-format-detail{min-height:2.6em}
.ys-book-formats .ys-book-format-options--three button{min-height:44px;border:1px solid #d6dfce;border-radius:10px;background:#f7f9f4;color:#61715a;font:inherit;cursor:not-allowed}
@media(max-width:900px){.ys-book-formats .ys-book-format-options--three{grid-template-columns:repeat(2,minmax(0,1fr))}.ys-book-formats .ys-book-format-options--three .ys-book-format--card:last-child{grid-column:1/-1}}
@media(max-width:600px){.ys-book-formats .ys-book-format-options--three{grid-template-columns:1fr}.ys-book-formats .ys-book-format-options--three .ys-book-format--card:last-child{grid-column:auto}}
@media(max-width:380px){.ys-book-formats .ys-book-format{padding:14px 8px}.ys-book-formats .ys-book-format-label{font-size:15px;min-height:3.2em}.ys-book-formats .ys-book-format-detail{font-size:12px;min-height:3.6em}}

/* ======================================================================
   Zeina & Yazan — unified page polish (only when ys-collection--zy).
   Preserve RR1/RR2 styles, WordPress content and purchase state.
   ====================================================================== */

/* Give the collection content the full available width and calmer rhythm. */
.ys-page main.ys-catalog--book-sidebar.ys-collection--zy {
    padding-top: 18px;
    padding-bottom: 56px;
    background: #ffffff;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy > .ys-samples-inner {
    display: block;
    width: min(1080px, calc(100% - 40px));
    max-width: 1080px;
    margin-inline: auto;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-sidebar-heading {
    width: 100%;
    min-width: 0;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-sample-heading {
    margin: 0 0 12px;
    text-align: center;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-sample-heading h1 {
    margin: 0;
    color: #2f503b;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: clamp(26px, 2.7vw, 32px);
    font-weight: 700;
    line-height: 1.5;
}

/* The page introduction, accordions, offers and songs toggle share 920px. */
.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-learning {
    width: 100%;
    max-width: 920px;
    margin: 10px auto 16px;
    color: #365342;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-weight: 400;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-learning-content {
    width: 100%;
    max-width: 100%;
    direction: rtl;
    box-sizing: border-box;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-learning-content > p:first-child {
    max-width: 800px;
    margin: 0 auto 18px;
    color: #506655;
    font-size: 16px;
    line-height: 1.95;
    text-align: center;
}

/* Accessible native <details>; only appearance is changed. */
.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-panel {
    width: 100%;
    margin: 0 0 9px;
    border: 1px solid #dbe6d8;
    border-radius: 13px;
    background: #fffdfa;
    box-shadow: 0 2px 7px rgb(47 80 59 / 3%);
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-panel > summary {
    min-height: 55px;
    padding: 13px 22px;
    background: #f4f7f1;
    color: #31543d;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    text-align: right;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-panel > summary:hover,
.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-panel[open] > summary {
    background: #edf3e9;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-panel-body {
    padding: 20px 25px 23px;
    font-size: 15px;
    line-height: 1.95;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-panel-body p {
    margin: 0 0 12px;
    line-height: 1.95;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-panel-body iframe {
    max-width: 100%;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-glyph-identity {
    display: none;
}

/* Product cards: four legible cards in a single row on desktop. */
.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-book-formats {
    width: 100%;
    max-width: 920px;
    margin: 16px auto 16px;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-weight: 400;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-book-formats .ys-zy-purchase {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-purchase-heading {
    margin: 0 auto 7px !important;
    font-size: clamp(21px, 2.2vw, 25px) !important;
    line-height: 1.55 !important;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-purchase-intro {
    margin: 0 auto 17px;
    color: #596c5d;
    font-size: 15px;
    line-height: 1.8;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-purchase-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option {
    min-height: 246px;
    padding: 19px 13px 15px;
    gap: 9px;
    border-radius: 13px;
    border-color: #dce5d9;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option-title {
    font-size: 18px !important;
    line-height: 1.5 !important;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option-detail {
    font-size: 14px;
    line-height: 1.8;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option-price,
.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option--complete .ys-zy-option-price {
    padding-top: 11px;
    font-size: 24px;
    line-height: 1.45;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option-price small {
    font-size: 14px;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option-badge {
    font-size: 11px;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option-button {
    min-height: 44px;
    padding: 10px 7px;
    font-size: 14px;
    line-height: 1.6;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-purchase-note {
    margin: 12px auto 0;
    color: #637767;
    font-size: 13px;
}

/* The song list toggle is the same width as the other sections.
   Override the width:100% !important from Additional CSS only on this page. */
.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-book-songs-toggle {
    display: block !important;
    width: min(920px, 100%) !important;
    max-width: 920px !important;
    margin: 18px auto 28px !important;
    clear: both;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-book-songs-toggle > summary {
    display: block !important;
    min-height: 52px;
    padding: 12px 22px;
    border: 1px solid #b9cdb7;
    border-radius: 13px;
    background: #eaf1e7;
    color: #2e533c;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
    cursor: pointer;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-book-songs-toggle > summary:hover,
.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-book-songs-toggle[open] > summary {
    background: #dae9d7;
    border-color: #9ebc9e;
}

.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-book-songs-toggle > summary:focus-visible {
    outline: 3px solid #42684d;
    outline-offset: 3px;
}

/* Tablet: two columns, without changing the card content. */
@media (max-width: 820px) {
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-purchase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option {
        min-height: 225px;
    }
}

@media (max-width: 520px) {
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy > .ys-samples-inner {
        width: calc(100% - 24px);
    }
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-learning-content > p:first-child {
        font-size: 15px;
        line-height: 1.85;
    }
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-panel > summary {
        padding: 12px 14px;
        font-size: 15px;
    }
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-panel-body {
        padding: 16px;
        font-size: 14px;
    }
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-purchase-heading {
        font-size: 21px !important;
    }
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-purchase-intro {
        font-size: 14px;
    }
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option {
        min-height: 230px;
        padding: 15px 9px;
        gap: 8px;
    }
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option-title {
        font-size: 15px !important;
    }
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option-detail {
        font-size: 13px;
    }
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option-price,
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option--complete .ys-zy-option-price {
        font-size: 20px;
    }
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option-price small {
        font-size: 12px;
    }
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option-button {
        font-size: 12px;
    }
}

/* Very narrow screens: use one card per row to preserve readable buttons. */
@media (max-width: 360px) {
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-purchase-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option {
        min-height: 205px;
    }
}


/* ===============================================================
   Reem & Rand 1: four purchase cards, same calm design as ZY.
   Does NOT alter the intro, ZY, RR2, payments, or song cards.
   =============================================================== */
.ys-page .ys-catalog--book-sidebar .ys-book-formats--rr1 {
    width: min(920px, 100%);
    max-width: 920px;
    margin: 18px auto 28px;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-weight: 400;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-purchase {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    direction: rtl;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-purchase-heading {
    margin: 0 auto 7px !important;
    padding: 0 !important;
    color: #365b43;
    font-size: clamp(21px, 2.2vw, 25px);
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-purchase-intro {
    margin: 0 auto 17px;
    color: #596c5d;
    font-size: 15px;
    line-height: 1.85;
    text-align: center;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-purchase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 246px;
    padding: 19px 13px 15px;
    gap: 9px;
    border: 1px solid #dce5d9;
    border-radius: 13px;
    background: #fffdfa;
    text-align: center;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-option--complete {
    border: 1.5px solid #83a68b;
    background: #f1f7ed;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-option-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    background: #dcebdd;
    color: #40674a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-option-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #365744;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-option-detail {
    margin: 0;
    color: #64766a;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-option-price {
    margin: auto 0 0;
    padding-top: 11px;
    color: #315740;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    white-space: nowrap;
    text-align: center;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-option-price small {
    font-size: 14px;
    font-weight: 500;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-price-pending {
    color: #657669;
    white-space: normal;
    font-size: 13px;
    font-weight: 500;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-option-button {
    width: 100%;
    min-height: 44px;
    margin: 3px 0 0;
    padding: 10px 7px;
    border: 1px solid #dce4db;
    border-radius: 8px;
    background: #f0f3ee;
    color: #718073;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    opacity: 1;
    cursor: not-allowed;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-option--complete .ys-rr1-option-button {
    border-color: #c0d4bd;
    background: #e2ede0;
    color: #647d68;
}
.ys-page .ys-book-formats--rr1 .ys-rr1-purchase-note {
    margin: 12px auto 0;
    color: #637767;
    font-size: 13px;
    line-height: 1.75;
}
@media (max-width: 820px) {
    .ys-page .ys-book-formats--rr1 .ys-rr1-purchase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}
@media (max-width: 480px) {
    .ys-page .ys-book-formats--rr1 .ys-rr1-option {
        padding: 15px 9px;
        min-height: 220px;
    }
    .ys-page .ys-book-formats--rr1 .ys-rr1-option-title { font-size: 15px; }
    .ys-page .ys-book-formats--rr1 .ys-rr1-option-detail { font-size: 12px; }
    .ys-page .ys-book-formats--rr1 .ys-rr1-option-price { font-size: 20px; }
    .ys-page .ys-book-formats--rr1 .ys-rr1-option-price small { font-size: 12px; }
    .ys-page .ys-book-formats--rr1 .ys-rr1-option-button { font-size: 12px; }
    .ys-page .ys-book-formats--rr1 .ys-rr1-purchase-intro { font-size: 14px; }
}
@media (max-width: 350px) {
    .ys-page .ys-book-formats--rr1 .ys-rr1-purchase-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .ys-page .ys-book-formats--rr1 .ys-rr1-option { min-height: 190px; }
}

/* =====================================================================
   Reem & Rand 2 — coordinated typography and visual rhythm.
   Scoped exclusively to the RR2 catalog (its three-format options).
   Keeps existing book content, PDF, audio, prices, and checkout status.
   ===================================================================== */

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) {
    padding-top: 18px;
    padding-bottom: 56px;
    background: #ffffff;
    color: #365342;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) > .ys-samples-inner {
    display: block;
    width: min(1080px, calc(100% - 40px));
    max-width: 1080px;
    margin-inline: auto;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-sidebar-heading {
    width: 100%;
    min-width: 0;
}

/* Match the title shown on the Zeina & Yazan page. */
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-sample-heading {
    margin: 0 0 12px;
    text-align: center;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-sample-heading h1 {
    margin: 0;
    color: #2f503b;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: clamp(26px, 2.7vw, 32px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
}

/* Intro, disclosure panels, and their contained media. */
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-learning {
    width: 100%;
    max-width: 920px;
    margin: 10px auto 16px;
    color: #365342;
    text-align: right;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-weight: 400;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-learning-content {
    width: 100%;
    max-width: 100%;
    direction: rtl;
    box-sizing: border-box;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-learning-content > p:first-child {
    max-width: 800px;
    margin: 0 auto 18px;
    color: #506655;
    font-size: 16px;
    line-height: 1.95;
    text-align: center;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-lead {
    color: #365342;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.9;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-intro {
    color: #506655;
    font-size: 16px;
    line-height: 1.95;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-learning-content h2 {
    color: #31543d;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 700;
    line-height: 1.6;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-disclosures {
    gap: 9px;
    margin-top: 18px;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-panel {
    width: 100%;
    margin: 0 0 9px;
    border: 1px solid #dbe6d8;
    border-radius: 13px;
    background: #fffdfa;
    box-shadow: 0 2px 7px rgb(47 80 59 / 3%);
    overflow: hidden;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-panel > summary {
    min-height: 55px;
    padding: 13px 22px;
    background: #f4f7f1;
    color: #31543d;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    text-align: right;
    cursor: pointer;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-panel > summary:hover,
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-panel[open] > summary {
    background: #edf3e9;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-panel-body {
    padding: 20px 25px 23px;
    color: #354c3d;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.95;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-panel-body p {
    margin: 0 0 12px;
    line-height: 1.95;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-panel-body :is(iframe, audio) {
    max-width: 100%;
}

/* Keep any existing cover/preview but allow comfortable positioning. */
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-glyph-identity {
    display: none;
}

/* Three RR2 offer cards using the same design language as ZY. */
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-formats {
    width: 100%;
    max-width: 920px;
    margin: 16px auto 16px;
    color: #365342;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-weight: 400;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-options--three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    border: 0;
    background: transparent;
    overflow: visible;
    text-align: center;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-options--three .ys-book-format--card,
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-options--three .ys-book-format--card + .ys-book-format--card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 234px;
    padding: 20px 16px 16px;
    border: 1px solid #dce5d9;
    border-radius: 13px;
    background: #fffdfa;
    box-shadow: none;
    text-align: center;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-options--three .ys-book-format--card:last-child {
    background: #f1f7ed;
    border-color: #83a68b;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-label {
    min-height: 0;
    color: #365744;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.6;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-detail {
    min-height: 0;
    color: #64766a;
    font-size: 15px;
    line-height: 1.8;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-price {
    margin: auto 0 0;
    padding-top: 10px;
    color: #315740;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-price span {
    font-size: 14px;
    font-weight: 500;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-options--three button {
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    padding: 9px 8px;
    border: 1px solid #dce4db;
    border-radius: 8px;
    background: #f0f3ee;
    color: #718073;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    opacity: 1;
    cursor: not-allowed;
}

/* A light 'Show songs' button matching ZY; overrides Additional CSS. */
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-songs-toggle {
    display: block !important;
    width: min(920px, 100%) !important;
    max-width: 920px !important;
    margin: 18px auto 28px !important;
    clear: both;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-songs-toggle > summary {
    display: block !important;
    min-height: 52px;
    padding: 12px 22px;
    border: 1px solid #b9cdb7;
    border-radius: 13px;
    background: #eaf1e7;
    color: #2e533c;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
    cursor: pointer;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-songs-toggle > summary:hover,
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-songs-toggle[open] > summary {
    background: #dae9d7;
    border-color: #9ebc9e;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-songs-toggle > summary:focus-visible {
    outline: 3px solid #42684d;
    outline-offset: 3px;
}

/* Phones and tablets. */
@media (max-width: 820px) {
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-options--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-options--three .ys-book-format--card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) > .ys-samples-inner {
        width: calc(100% - 24px);
    }
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-learning-content > p:first-child {
        font-size: 15px;
        line-height: 1.85;
    }
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-panel > summary {
        padding: 12px 14px;
        font-size: 15px;
    }
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-rr2-panel-body {
        padding: 16px;
        font-size: 14px;
    }
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-options--three {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-options--three .ys-book-format--card,
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-options--three .ys-book-format--card + .ys-book-format--card {
        min-height: 205px;
        padding: 17px 13px;
    }
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three) .ys-book-format-options--three .ys-book-format--card:last-child {
        grid-column: auto;
    }
}


/* ======================================================================
   Reem & Rand 1 — match the Zeina & Yazan page typography and spacing.
   Scoped to RR1 only; no product/pricing/checkout behavior is changed.
   ====================================================================== */
#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) {
    padding-top: 18px;
    padding-bottom: 56px;
    background: #ffffff;
    color: #365342;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) > .ys-samples-inner {
    display: block;
    width: min(1080px, calc(100% - 40px));
    max-width: 1080px;
    margin-inline: auto;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-sidebar-heading {
    width: 100%;
    min-width: 0;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-sample-heading {
    margin: 0 0 12px;
    text-align: center;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-sample-heading h1 {
    margin: 0;
    color: #2f503b;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: clamp(26px, 2.7vw, 32px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-rr2-learning {
    width: 100%;
    max-width: 920px;
    margin: 10px auto 16px;
    color: #365342;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-weight: 400;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-rr2-learning-content {
    width: 100%;
    max-width: 100%;
    direction: rtl;
    box-sizing: border-box;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-rr2-learning-content > p:first-child {
    max-width: 800px;
    margin: 0 auto 18px;
    color: #506655;
    font-size: 16px;
    line-height: 1.95;
    text-align: center;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-rr2-panel {
    width: 100%;
    margin: 0 0 9px;
    border: 1px solid #dbe6d8;
    border-radius: 13px;
    background: #fffdfa;
    box-shadow: 0 2px 7px rgb(47 80 59 / 3%);
    overflow: hidden;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-rr2-panel > summary {
    min-height: 55px;
    padding: 13px 22px;
    background: #f4f7f1;
    color: #31543d;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    text-align: right;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-rr2-panel > summary:hover,
#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-rr2-panel[open] > summary {
    background: #edf3e9;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-rr2-panel-body {
    padding: 20px 25px 23px;
    font-size: 15px;
    line-height: 1.95;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-rr2-panel-body p {
    margin: 0 0 12px;
    line-height: 1.95;
}

/* Preserve book width and hide the secondary decorative caption, as in ZY. */
#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-book-formats--rr1 {
    width: 100%;
    max-width: 920px;
    margin: 16px auto 16px;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-glyph-identity {
    display: none;
}

/* The same gentle, full-width song toggle as ZY; override Additional CSS. */
#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-book-songs-toggle {
    display: block !important;
    width: min(920px, 100%) !important;
    max-width: 920px !important;
    margin: 18px auto 28px !important;
    clear: both;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-book-songs-toggle > summary {
    display: block !important;
    min-height: 52px;
    padding: 12px 22px;
    border: 1px solid #b9cdb7;
    border-radius: 13px;
    background: #eaf1e7;
    color: #2e533c;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
    cursor: pointer;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-book-songs-toggle > summary:hover,
#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-book-songs-toggle[open] > summary {
    background: #dae9d7;
    border-color: #9ebc9e;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-book-songs-toggle > summary:focus-visible {
    outline: 3px solid #42684d;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) > .ys-samples-inner {
        width: calc(100% - 24px);
    }
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-rr2-panel > summary {
        font-size: 15px;
        padding: 13px 16px;
    }
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-rr2-panel-body {
        padding: 16px;
    }
}


/* =============================================================
   RR2 BOOK PAGE — content and preview refinement (31 Oct 2026)
   Only the Reem & Rand 2 collection, identified by its three
   book-format cards. Other collection pages are not affected.
   ============================================================= */

/* Keep the short lead below the title; hide only the redundant
   second, long introductory paragraph. No content is deleted. */
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-learning-content > p.ys-rr2-intro,
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-learning-content > p:nth-of-type(2) {
    display: none !important;
}

/* One clear, comfortable typography and content width. */
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-learning-content > p:first-of-type {
    max-width: 780px;
    margin: 2px auto 22px !important;
    color: #435c4b;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 2;
    text-align: center;
}

/* The first accordion: neat, legible song index with no content lost. */
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-panel:first-of-type .ys-rr2-panel-body {
    padding: 24px 26px 27px;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-panel:first-of-type .ys-rr2-panel-body > p {
    margin: 0 0 17px;
    color: #425c48;
    font-size: 15px;
    line-height: 1.95;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-song-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ys-rr2-song;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-song-list > li {
    position: relative;
    min-width: 0;
    min-height: 118px;
    margin: 0;
    padding: 16px 48px 15px 17px;
    border: 1px solid #e4eae1;
    border-radius: 13px;
    background: #f9fbf7;
    color: #3e5745;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.85;
    text-align: right;
    overflow-wrap: anywhere;
    counter-increment: ys-rr2-song;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-song-list > li::before {
    content: counter(ys-rr2-song);
    position: absolute;
    top: 16px;
    right: 13px;
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid #d9e5d6;
    border-radius: 50%;
    background: #ebf2e8;
    color: #426447;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-song-list > li > strong {
    display: block;
    margin: 0 0 6px;
    color: #2f533c;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-song-list > li > span {
    display: block;
    margin: 0;
    color: #4a604d;
    font-size: 13.5px;
    line-height: 1.75;
}

/* The second accordion: generous, centered PDF preview. This
   works with the current iframe and does not change PDF files. */
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-panel:nth-of-type(2) .ys-rr2-panel-body {
    padding: 24px;
    text-align: center;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-panel:nth-of-type(2) iframe[src*=".pdf"],
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-panel:nth-of-type(2) object[type="application/pdf"] {
    display: block;
    width: 100% !important;
    max-width: 780px !important;
    height: 670px !important;
    margin: 12px auto 20px !important;
    border: 1px solid #d9e4d8 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 8px 25px rgb(48 74 56 / 8%);
    box-sizing: border-box;
}

/* Also support legacy page-image previews, if those are used. */
#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-sample-pages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    max-width: 900px;
    margin: 16px auto 24px;
    padding: 0;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-sample-pages figure {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid #dce7d9;
    border-radius: 13px;
    background: #fcfdfb;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-sample-pages img {
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 7px;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-sample-pages figcaption {
    margin-top: 11px;
    color: #526a57;
    font-size: 13px;
    line-height: 1.7;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-sample-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 44px;
    margin: 8px auto 12px;
    padding: 9px 24px;
    border: 1px solid #b4cbb1;
    border-radius: 10px;
    background: #e9f1e7;
    color: #31563f;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    text-decoration: none;
}

#ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
  .ys-rr2-sample-link:hover {
    background: #dbead8;
}

@media (max-width: 700px) {
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
      .ys-rr2-song-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
      .ys-rr2-song-list > li {
        min-height: 0;
        padding: 14px 46px 14px 14px;
    }

    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
      .ys-rr2-panel:first-of-type .ys-rr2-panel-body,
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
      .ys-rr2-panel:nth-of-type(2) .ys-rr2-panel-body {
        padding: 15px;
    }

    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
      .ys-rr2-panel:nth-of-type(2) iframe[src*=".pdf"],
    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
      .ys-rr2-panel:nth-of-type(2) object[type="application/pdf"] {
        height: 540px !important;
    }

    #ys-main.ys-catalog--book-sidebar:has(.ys-book-format-options--three)
      .ys-rr2-sample-pages {
        grid-template-columns: minmax(0, 1fr);
        max-width: 400px;
    }
}


/* ================================================================
   Unified "open book sample in a separate window" link — all 3 books
   Scope: links to preview PDFs inside book disclosure panels only.
   Does not change PDF files, store buttons, or other site links.
   ================================================================ */
#ys-main.ys-catalog--book-sidebar .ys-rr2-panel-body a:is(
    [href*="rr1-book-sample.pdf"],
    [href*="rr2-book-sample.pdf"],
    [href*="zy-book-sample.pdf"],
    .ys-rr2-sample-link
),
#ys-main.ys-catalog--book-sidebar .ys-rr2-panel-body a[target="_blank"][href*=".pdf"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    max-width: calc(100% - 12px) !important;
    min-height: 46px !important;
    margin: 14px auto 16px !important;
    padding: 10px 22px !important;
    border: 1px solid #b8ceb9 !important;
    border-radius: 18px !important;
    background: #FFFFFF !important;
    color: #111111 !important;
    font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-align: center !important;
    direction: rtl;
    box-sizing: border-box !important;
    box-shadow: none !important;
    cursor: pointer;
}
#ys-main.ys-catalog--book-sidebar .ys-rr2-panel-body a:is(
    [href*="rr1-book-sample.pdf"],
    [href*="rr2-book-sample.pdf"],
    [href*="zy-book-sample.pdf"],
    .ys-rr2-sample-link
):is(:visited, :hover, :focus-visible),
#ys-main.ys-catalog--book-sidebar .ys-rr2-panel-body a[target="_blank"][href*=".pdf"]:is(:visited, :hover, :focus-visible) {
    color: #111111 !important;
    text-decoration: none !important;
}
#ys-main.ys-catalog--book-sidebar .ys-rr2-panel-body a:is(
    [href*="rr1-book-sample.pdf"],
    [href*="rr2-book-sample.pdf"],
    [href*="zy-book-sample.pdf"],
    .ys-rr2-sample-link
):hover,
#ys-main.ys-catalog--book-sidebar .ys-rr2-panel-body a[target="_blank"][href*=".pdf"]:hover {
    background: #FFE0C7 !important;
    border-color: #98b99c !important;
}
#ys-main.ys-catalog--book-sidebar .ys-rr2-panel-body a:is(
    [href*="rr1-book-sample.pdf"],
    [href*="rr2-book-sample.pdf"],
    [href*="zy-book-sample.pdf"],
    .ys-rr2-sample-link
):focus-visible,
#ys-main.ys-catalog--book-sidebar .ys-rr2-panel-body a[target="_blank"][href*=".pdf"]:focus-visible {
    outline: 3px solid #174F37 !important;
    outline-offset: 3px !important;
}
@media (max-width: 600px) {
    #ys-main.ys-catalog--book-sidebar .ys-rr2-panel-body a:is(
        [href*="rr1-book-sample.pdf"],
        [href*="rr2-book-sample.pdf"],
        [href*="zy-book-sample.pdf"],
        .ys-rr2-sample-link
    ),
    #ys-main.ys-catalog--book-sidebar .ys-rr2-panel-body a[target="_blank"][href*=".pdf"] {
        font-size: 14px !important;
        padding: 10px 16px !important;
    }
}

/* Approved final-sale options: three choices, or two for RR2. */
#ys-main .ys-book-formats .ys-zy-purchase-grid,
#ys-main .ys-book-formats .ys-rr1-purchase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
#ys-main .ys-book-format-options--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
#ys-main .ys-book-formats a.ys-delivery-contact,
#ys-main .ys-book-formats a.ys-delivery-contact:visited,
#ys-main .ys-book-formats a.ys-delivery-contact:hover {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px auto;
    padding: 12px 16px;
    min-height: 44px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    background: #426B52;
    color: #FFE0CD;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
}
#ys-main .ys-book-formats a.ys-delivery-contact:focus-visible {
    outline: 3px solid #426B52;
    outline-offset: 3px;
}
@media (max-width: 650px) {
    #ys-main .ys-book-formats .ys-zy-purchase-grid,
    #ys-main .ys-book-formats .ys-rr1-purchase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 380px) {
    #ys-main .ys-book-formats .ys-zy-purchase-grid,
    #ys-main .ys-book-formats .ys-rr1-purchase-grid,
    #ys-main .ys-book-format-options--two {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* Approved paper-book purchase dialog. */
.ys-paper-open:not(:disabled) { cursor: pointer !important; }
dialog.ys-paper-dialog {
    width: min(620px, calc(100vw - 28px));
    max-width: 620px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    margin: auto;
    padding: 27px;
    box-sizing: border-box;
    border: 1px solid #dce4d8;
    border-radius: 22px;
    background: #fffaf4;
    color: #304d3b;
    box-shadow: 0 18px 48px #304d3b26;
    font-family: 'Yoanna Cairo', Tahoma, sans-serif;
    text-align: right;
}
dialog.ys-paper-dialog:not([open]) { display: none; }
dialog.ys-paper-dialog::backdrop { background: rgb(30 45 35 / 42%); }
.ys-paper-dialog *, .ys-paper-dialog *::before, .ys-paper-dialog *::after { box-sizing: border-box; }
.ys-paper-dialog [hidden] { display: none !important; }
.ys-paper-dialog .ys-paper-close { position: absolute; inset-inline-end: 12px; top: 10px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #657267; font-size: 27px; cursor: pointer; }
.ys-paper-dialog .ys-paper-close:hover { background: #edf3e9; }
.ys-paper-dialog h2 { margin: 10px 0 8px; padding-inline-end: 22px; color: #426B52; font-family: inherit; font-size: 22px; font-weight: 700; line-height: 1.6; }
.ys-paper-dialog .ys-paper-product { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #dce4d8; }
.ys-paper-dialog .ys-paper-product-name { margin: 0; font-size: 15px; font-weight: 700; }
.ys-paper-dialog .ys-paper-product-detail { margin: 3px 0 0; color: #657267; font-size: 13px; }
.ys-paper-dialog .ys-paper-product-price { color: #426B52; font-size: 22px; font-weight: 700; white-space: nowrap; }
.ys-paper-dialog .ys-paper-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ys-paper-dialog .ys-paper-options legend { width: 100%; margin: 0 0 12px; padding: 0; font-size: 14px; font-weight: 700; }
.ys-paper-dialog .ys-paper-option { display: flex; align-items: flex-start; gap: 10px; min-height: 122px; margin: 0; padding: 17px 14px; border: 1px solid #dce4d8; border-radius: 13px; background: #fffdfa; cursor: pointer; }
.ys-paper-dialog .ys-paper-option:hover { border-color: #91ac94; }
.ys-paper-dialog .ys-paper-option:has(input:checked) { border: 2px solid #426B52; padding: 16px 13px; background: #edf3e9; }
.ys-paper-dialog .ys-paper-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 5px 0 0; accent-color: #426B52; }
.ys-paper-dialog .ys-paper-option > span { display: grid; gap: 7px; min-width: 0; }
.ys-paper-dialog .ys-paper-option strong { color: #304d3b; font-size: 14px; font-weight: 700; line-height: 1.7; }
.ys-paper-dialog .ys-paper-option small { color: #657267; font-size: 12px; line-height: 1.9; }
.ys-paper-dialog .ys-paper-option b { font-size: 12px; font-weight: 700; }
.ys-paper-dialog .ys-paper-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-height: 27px; margin: 20px 0 12px; font-size: 13px; }
.ys-paper-dialog .ys-paper-summary bdi { color: #426B52; font-size: 20px; font-weight: 700; }
.ys-paper-dialog .ys-paper-submit { display: block; width: 100%; min-height: 48px; margin: 0; padding: 12px; border: 0; border-radius: 10px; background: #426B52; color: #FFE0CD; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.ys-paper-dialog .ys-paper-submit:disabled { opacity: .48; cursor: not-allowed; }
.ys-paper-dialog .ys-paper-order-note { margin: 10px 0 0; font-size: 12px; line-height: 1.9; color: #657267; }
.ys-paper-dialog .ys-paper-help { margin-top: 18px; padding-top: 17px; border-top: 1px solid #dce4d8; text-align: center; }
.ys-paper-dialog .ys-paper-help p { margin: 0 0 8px; color: #657267; font-size: 12px; line-height: 1.9; }
.ys-paper-dialog .ys-paper-delivery-fee { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.ys-paper-dialog form:has(input[name="ys_paper_choice"][value$="-pickup"]:checked) .ys-paper-delivery-fee { display: none; }
.ys-paper-dialog .ys-paper-help a { display: inline-block; min-height: 44px; padding: 10px 18px; border-radius: 8px; background: #426B52; color: #FFE0CD; font-size: 15px; font-weight: 700; text-decoration: none; }
.ys-paper-current-choice { margin-bottom: 16px; padding: 14px; border: 1px solid #dce4d8; border-radius: 10px; background: #fffaf4; color: #304d3b; }
.ys-paper-current-choice p { margin: 0 0 8px; }
.ys-paper-current-choice .ys-paper-edit { min-height: 44px; padding: 8px 14px; border: 1px solid #426B52; border-radius: 8px; background: #426B52; color: #FFE0CD; font-family: inherit; cursor: pointer; }
.ys-paper-fallback { display: grid; gap: 8px; margin: 8px 0; }
.ys-paper-fallback select { width: 100%; font-family: inherit; }
@media (max-width: 480px) {
    dialog.ys-paper-dialog { padding: 21px 16px; border-radius: 17px; }
    .ys-paper-dialog h2 { font-size: 19px; }
    .ys-paper-dialog .ys-paper-options { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .ys-paper-dialog .ys-paper-option { min-height: 0; padding: 13px; }
    .ys-paper-dialog .ys-paper-option:has(input:checked) { padding: 12px; }
    .ys-paper-dialog .ys-paper-option > span { gap: 3px; }
}


/* Yoanna Songs | Three collection pages | approved color system */
/* Expandable section headings only; retain native details behavior. */
#ys-main.ys-catalog--book-sidebar .ys-rr2-panel > summary,
#ys-main.ys-catalog--book-sidebar .ys-book-songs-toggle > summary,
.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-rr2-panel > summary,
.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-book-songs-toggle > summary {
  background: #FFAE78 !important;
  border: 1.5px solid #C96E3D !important;
  color: #000000 !important;
}
#ys-main.ys-catalog--book-sidebar .ys-rr2-panel > summary:hover,
#ys-main.ys-catalog--book-sidebar .ys-rr2-panel[open] > summary,
#ys-main.ys-catalog--book-sidebar .ys-book-songs-toggle > summary:hover,
#ys-main.ys-catalog--book-sidebar .ys-book-songs-toggle[open] > summary {
  background: #F59B65 !important;
  border-color: #B75E30 !important;
  color: #000000 !important;
}
/* All product cards stay white, with a light sage outline. */
#ys-main.ys-catalog--book-sidebar .ys-book-format-options--three .ys-book-format--card,
#ys-main.ys-catalog--book-sidebar .ys-book-format-options--three .ys-book-format--card:last-child,
.ys-page .ys-book-formats--rr1 .ys-rr1-option,
.ys-page .ys-book-formats--rr1 .ys-rr1-option--complete,
.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-purchase .ys-zy-option {
  background: #FFFFFF !important;
  border-color: #C7D8B8 !important;
}
/* Apply green only to enabled purchase controls; keep disabled/unavailable controls unchanged. */
#ys-main.ys-catalog--book-sidebar .ys-book-format-options--three :is(a[href],button):not([disabled]):not(:disabled):not([aria-disabled="true"]):not(.ys-unavailable),
.ys-page .ys-book-formats--rr1 .ys-rr1-option-button:not([disabled]):not(:disabled):not([aria-disabled="true"]):not(.ys-unavailable),
.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-option-button:not([disabled]):not(:disabled):not([aria-disabled="true"]):not(.ys-unavailable) {
  background: #547B59 !important;
  border-color: #547B59 !important;
  color: #FFFFFF !important;
}
#ys-main.ys-catalog--book-sidebar .ys-book-format-options--three :is(a[href],button):not([disabled]):not(:disabled):not([aria-disabled="true"]):not(.ys-unavailable):hover,
.ys-page .ys-book-formats--rr1 .ys-rr1-option-button:not([disabled]):not(:disabled):not([aria-disabled="true"]):not(.ys-unavailable):hover,
.ys-page .ys-catalog--book-sidebar.ys-collection--zy .ys-zy-option-button:not([disabled]):not(:disabled):not([aria-disabled="true"]):not(.ys-unavailable):hover {
  background: #365D3B !important;
  border-color: #365D3B !important;
}

/* Minimal decorative ornaments: two faint, non-interactive shapes beside each collection heading. */
@media (min-width: 801px) {
#ys-main.ys-catalog--book-sidebar .ys-sample-heading { position: relative; isolation: isolate; }
#ys-main.ys-catalog--book-sidebar .ys-sample-heading::before,
#ys-main.ys-catalog--book-sidebar .ys-sample-heading::after {
  content: ''; position: absolute; top: 50%; width: 54px; height: 54px;
  transform: translateY(-50%); background-position: center; background-size: contain;
  background-repeat: no-repeat; opacity: .36; pointer-events: none; z-index: -1;
}
#ys-main.ys-catalog--book-sidebar .ys-sample-heading::before { left: max(8px, calc(50% - 290px)); }
#ys-main.ys-catalog--book-sidebar .ys-sample-heading::after { right: max(8px, calc(50% - 290px)); }
#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-sample-heading::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20d%3D%22M20%2076Q17%2020%2079%2015Q85%2069%2020%2076Z%22%20fill%3D%22%23EFB989%22%20stroke%3D%22%23DA9E6B%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M18%2082Q44%2049%2074%2025%22%20stroke%3D%22%23BD885F%22%20stroke-width%3D%222.5%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E"); }
#ys-main.ys-catalog--book-sidebar:has(.ys-book-formats--rr1) .ys-sample-heading::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23E6AE78%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2219%22%20fill%3D%22%23F9E2C3%22%2F%3E%3Cpath%20d%3D%22M50%2012v12M50%2076v12M12%2050h12M76%2050h12M23%2023l9%209M68%2068l9%209M77%2023l-9%209M32%2068l-9%209%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
#ys-main.ys-catalog--book-sidebar.ys-collection--zy .ys-sample-heading::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20d%3D%22M51%2088Q45%2064%2052%2044%22%20stroke%3D%22%239FB69B%22%20stroke-width%3D%223%22%20fill%3D%22none%22%2F%3E%3Cpath%20d%3D%22M50%2074Q29%2054%2024%2070Q33%2083%2050%2074ZM51%2067Q75%2048%2079%2064Q68%2077%2051%2067Z%22%20fill%3D%22%23C6D8BA%22%2F%3E%3Cg%20fill%3D%22%23F5D0AC%22%20stroke%3D%22%23E6B68F%22%20stroke-width%3D%221.5%22%3E%3Cellipse%20cx%3D%2250%22%20cy%3D%2228%22%20rx%3D%229%22%20ry%3D%2217%22%2F%3E%3Cellipse%20cx%3D%2250%22%20cy%3D%2228%22%20rx%3D%229%22%20ry%3D%2217%22%20transform%3D%22rotate%2872%2050%2043%29%22%2F%3E%3Cellipse%20cx%3D%2250%22%20cy%3D%2228%22%20rx%3D%229%22%20ry%3D%2217%22%20transform%3D%22rotate%28144%2050%2043%29%22%2F%3E%3Cellipse%20cx%3D%2250%22%20cy%3D%2228%22%20rx%3D%229%22%20ry%3D%2217%22%20transform%3D%22rotate%28216%2050%2043%29%22%2F%3E%3Cellipse%20cx%3D%2250%22%20cy%3D%2228%22%20rx%3D%229%22%20ry%3D%2217%22%20transform%3D%22rotate%28288%2050%2043%29%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2243%22%20r%3D%228%22%20fill%3D%22%23E7B06F%22%2F%3E%3C%2Fsvg%3E"); }
#ys-main.ys-catalog--book-sidebar.ys-collection--zy .ys-sample-heading::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20110%20100%22%3E%3Cpath%20d%3D%22M19%2083Q51%2053%2089%2018%22%20fill%3D%22none%22%20stroke%3D%22%2391AA89%22%20stroke-width%3D%223%22%2F%3E%3Cg%20fill%3D%22%23C7D8B8%22%20stroke%3D%22%239CB69A%22%20stroke-width%3D%221.5%22%3E%3Cpath%20d%3D%22M35%2069Q12%2059%2022%2045Q43%2050%2035%2069Z%22%2F%3E%3Cpath%20d%3D%22M50%2056Q39%2030%2055%2027Q65%2046%2050%2056Z%22%2F%3E%3Cpath%20d%3D%22M64%2042Q85%2031%2087%2045Q74%2057%2064%2042Z%22%2F%3E%3Cpath%20d%3D%22M43%2063Q66%2064%2066%2078Q49%2080%2043%2063Z%22%2F%3E%3C%2Fg%3E%3Cellipse%20cx%3D%2267%22%20cy%3D%2256%22%20rx%3D%227%22%20ry%3D%2210%22%20fill%3D%22%23B4C7A7%22%20transform%3D%22rotate%2825%2067%2056%29%22%2F%3E%3C%2Fsvg%3E"); }
#ys-main.ys-catalog--book-sidebar:not(:has(.ys-book-formats--rr1)):not(.ys-collection--zy) .ys-sample-heading::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20120%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%239CB69A%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M8%2082Q59%2077%20110%2085%22%2F%3E%3Cpath%20d%3D%22M54%2082l-3-10m13%2010l-2-10%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M37%2053Q38%2035%2056%2035Q76%2036%2080%2054L91%2058L79%2062Q68%2077%2050%2070Q37%2066%2037%2053Z%22%20fill%3D%22%23B8CDB4%22%20stroke%3D%22%238DA98B%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M46%2055Q55%2045%2069%2056Q57%2067%2046%2055Z%22%20fill%3D%22%23DAE6D4%22%2F%3E%3Ccircle%20cx%3D%2272%22%20cy%3D%2247%22%20r%3D%222.2%22%20fill%3D%22%23698B6E%22%2F%3E%3C%2Fsvg%3E"); }
#ys-main.ys-catalog--book-sidebar:not(:has(.ys-book-formats--rr1)):not(.ys-collection--zy) .ys-sample-heading::after { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23E6AE78%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2219%22%20fill%3D%22%23F9E2C3%22%2F%3E%3Cpath%20d%3D%22M50%2012v12M50%2076v12M12%2050h12M76%2050h12M23%2023l9%209M68%2068l9%209M77%2023l-9%209M32%2068l-9%209%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
}
@media (max-width: 800px) {
  #ys-main.ys-catalog--book-sidebar .ys-sample-heading::before,
  #ys-main.ys-catalog--book-sidebar .ys-sample-heading::after { content: none; }
}

/* Unified reference layout. Exclusively the three collection landing pages. */
.ys-page main.ys-book-reference {background:#fff !important;color:#111111;padding:18px 0 36px;overflow:hidden;}
.ys-page main.ys-book-reference > .ys-samples-inner {display:block!important;width:min(1100px,calc(100% - 48px))!important;max-width:1100px!important;margin-inline:auto;}
.ys-book-reference .ys-book-hero {display:grid;grid-template-columns:minmax(0,1.8fr) minmax(220px,1fr);gap:28px;align-items:center;direction:rtl;padding:0 0 16px;}
.ys-book-reference .ys-book-hero-copy {text-align:center;min-width:0;}
.ys-page .ys-book-reference .ys-book-hero h1 {display:inline-block;margin:0 0 12px;padding:9px 22px;border-radius:28px;background:#F4EBBE;color:#174F37;font-size:26px;font-weight:700;line-height:1.6;}
.ys-book-reference .ys-book-lead {color:#111111;font-size:17px;font-weight:500;line-height:1.8;margin:0 auto 14px;max-width:680px;}
.ys-book-reference .ys-book-badges {display:flex;justify-content:center;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0;}
.ys-book-reference .ys-book-badges li {background:#F4EBBE;border-radius:24px;padding:6px 12px;color:#111111;font-size:15px;line-height:1.7;}
.ys-book-reference .ys-book-hero-cover {margin:0;text-align:center;}
.ys-book-reference .ys-book-hero-cover img {border:1px solid #B9CDAF;border-radius:12px;padding:8px;background:#FFFFFF;box-sizing:border-box;display:block;width:min(100%,215px);height:auto;max-height:285px;object-fit:contain;margin:auto;filter:drop-shadow(0 7px 8px #29473520);}
.ys-book-reference .ys-book-offers {width:100%;margin:8px auto 18px;}
.ys-page .ys-book-reference .ys-book-section-title {display:flex;align-items:center;justify-content:center;gap:18px;margin:0 0 14px;color:#111111;font-size:23px;line-height:1.6;}
.ys-book-reference .ys-book-section-title span {background:#F4EBBE;border-radius:26px;padding:5px 24px;}
.ys-book-reference .ys-book-section-title::before,.ys-book-reference .ys-book-section-title::after {content:'';flex:1;max-width:250px;height:1px;background:#B9CDAF;}
.ys-book-reference .ys-book-offers-grid {display:grid;grid-template-columns:repeat(var(--ys-offer-count),minmax(0,1fr));gap:14px;align-items:stretch;direction:rtl;max-width:1100px;margin:auto;}
.ys-book-reference .ys-book-offers-grid:has(> :nth-child(2):last-child) {max-width:840px;}
.ys-book-reference .ys-book-offer {display:grid;grid-template-columns:minmax(0,1fr) 85px;gap:12px;padding:16px 14px;background:#fff;border:1px solid #d8e4cf;border-radius:24px;box-shadow:0 3px 7px #2947350c;min-width:0;transition:box-shadow .18s,border-color .18s;}
.ys-book-reference .ys-book-offer:hover {border-color:#9ab787;box-shadow:0 4px 10px #29473514;}
.ys-book-reference .ys-book-offer-copy {display:flex;flex-direction:column;align-items:stretch;min-width:0;}
.ys-page .ys-book-reference .ys-book-offer h3 {margin:0 0 8px;color:#111111;font-size:18px;font-weight:700;line-height:1.8;}
.ys-book-reference .ys-book-offer p {margin:0 0 12px;color:#111111;font-size:15px;line-height:1.8;}
.ys-book-reference .ys-book-offer-price {align-self:center;margin:auto 0 12px;padding:3px 16px;border-radius:24px;background:#FFE0C7;color:#111111;font-size:23px;line-height:1.5;font-weight:700;}
.ys-book-reference .ys-book-offer-price .amount {color:inherit;font:inherit;}
.ys-book-reference .ys-book-offer-image {align-self:center;width:100%;height:auto;max-height:125px;object-fit:contain;filter:drop-shadow(0 3px 4px #29473518);}
.ys-page .ys-book-reference .ys-book-buy {display:block;width:100%;min-height:44px;padding:8px 16px;margin:0;border:1px solid #174F37;border-radius:28px;background:#FFDAB9;color:#111111;font-family:inherit;font-size:17px;font-weight:600;line-height:1.6;cursor:pointer;transition:background-color .18s;}
.ys-page .ys-book-reference .ys-book-buy:not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible) {background:#F2F4BE;border-color:#F2F4BE;color:#111111;}
.ys-page .ys-book-reference .ys-book-buy:disabled {background:#edf1e9;color:#535c50;border-color:#d8e4cf;cursor:not-allowed;}
.ys-book-reference .ys-package-unavailable-reason {font-size:14px;color:#444;line-height:1.7;}
.ys-book-reference :is(.ys-book-buy,.ys-book-play):focus-visible {outline:3px solid #174F37;outline-offset:4px;}
.ys-book-reference .ys-book-player {display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.5fr);gap:18px;align-items:center;border:1px solid #d8e4cf;border-radius:24px;padding:14px 18px;margin:18px auto;max-width:940px;background:#fff;box-shadow:0 3px 7px #2947350c;color:#111111;}
.ys-page .ys-book-reference .ys-book-player h2 {color:#111111;font-size:20px;line-height:1.7;margin:0 0 3px;}
.ys-book-reference .ys-book-player p {color:#111111;font-size:16px;line-height:1.8;margin:0;}
.ys-book-reference .ys-book-player-controls {display:flex;align-items:center;gap:14px;min-width:0;direction:ltr;}
.ys-book-reference .ys-book-player-native audio {display:block;width:100%;max-width:100%;}
.ys-book-reference .ys-book-player-native:has(audio:not([controls])) {display:none;}
.ys-book-reference .ys-book-player-native {flex:1;min-width:0;}
.ys-book-reference .ys-book-play {flex:0 0 48px;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:#174F37;color:#fff;font-size:21px;cursor:pointer;}
.ys-book-reference .ys-book-player-custom {flex:1;min-width:0;display:flex;gap:14px;align-items:center;}
.ys-book-reference .ys-book-player-custom input {min-width:0;width:100%;accent-color:#174F37;}
.ys-book-reference .ys-book-player-custom output {flex-shrink:0;font-size:14px;color:#111111;}
.ys-book-reference [hidden] {display:none!important;}
/* Existing PDF and full sample lists stay available below the compact player. */
#ys-main.ys-book-reference .ys-book-existing-content {display:block;width:100%;max-width:1100px;margin:8px auto 14px;color:#111111;}
#ys-main.ys-book-reference .ys-book-existing-content .ys-rr2-learning-content {width:100%;max-width:100%;margin:auto;}
.ys-book-reference .ys-book-existing-content .ys-rr2-panel {border:1px solid #d8e4cf!important;border-radius:16px!important;background:#fff!important;margin:12px 0!important;overflow:hidden;}
.ys-page .ys-book-reference .ys-book-existing-content .ys-rr2-panel > summary {background:#FFFFFF!important;color:#111111!important;min-height:48px;padding:12px 18px!important;font-size:16px!important;border-radius:18px!important;}
.ys-book-reference .ys-book-existing-content :is(iframe,audio) {max-width:100%;}
.ys-page .ys-book-reference .ys-catalog-controls {display:block!important;position:static!important;width:100%!important;max-width:100%!important;margin:14px 0 10px!important;padding:0!important;}
.ys-page .ys-book-reference .ys-sidebar-heading {position:static!important;width:100%!important;max-width:100%!important;background:none!important;border:0!important;padding:0!important;}
.ys-book-reference .ys-sidebar-heading::before,.ys-book-reference .ys-sidebar-heading::after {display:none!important;}
.ys-book-reference .ys-sidebar-tools {justify-content:center;}
.ys-book-reference .ys-filter-panel {max-width:100%;}
@media(max-width:1024px) {
 .ys-page .ys-book-reference .ys-book-hero h1 {font-size:22px;}
 .ys-book-reference .ys-book-hero {gap:20px;grid-template-columns:minmax(0,1.6fr) minmax(180px,1fr);}
 .ys-book-reference .ys-book-offers-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .ys-book-reference .ys-book-offer:last-child:nth-child(3) {grid-column:1/-1;width:calc(50% - 7px);justify-self:center;}
 .ys-book-reference .ys-book-player {gap:18px;padding:18px;}
}
@media(max-width:767px) {
 .ys-page main.ys-book-reference > .ys-samples-inner {width:calc(100% - 32px)!important;}
 .ys-book-reference .ys-book-hero {grid-template-columns:1fr;gap:16px;padding-bottom:14px;}
 .ys-page .ys-book-reference .ys-book-hero h1 {font-size:20px;padding:8px 16px;margin-bottom:10px;}
 .ys-book-reference .ys-book-lead {font-size:16px;line-height:1.8;}
 .ys-book-reference .ys-book-badges {gap:8px;}
 .ys-book-reference .ys-book-badges li {font-size:14px;padding:6px 10px;}
 .ys-book-reference .ys-book-hero-cover img {width:185px;max-height:250px;}
 .ys-page .ys-book-reference .ys-book-section-title {font-size:21px;gap:12px;}
 .ys-book-reference .ys-book-section-title span {padding:7px 20px;}
 .ys-book-reference .ys-book-offers-grid {grid-template-columns:1fr;}
 .ys-book-reference .ys-book-offer:last-child:nth-child(3) {grid-column:auto;width:auto;}
 .ys-book-reference .ys-book-offer {grid-template-columns:minmax(0,1fr) 75px;gap:10px;padding:14px;}
 .ys-book-reference .ys-book-player {grid-template-columns:1fr;gap:14px;text-align:center;padding:18px 14px;}
 .ys-book-reference .ys-book-player-controls {gap:10px;}
 .ys-book-reference .ys-book-player-custom {flex-direction:column;gap:4px;}
}
@media(prefers-reduced-motion:reduce) {.ys-book-reference :is(.ys-book-offer,.ys-book-buy) {transition:none;}}/* Override older page-level summary colors without touching the global header/footer. */
#ys-main.ys-book-reference.ys-catalog--book-sidebar .ys-book-existing-content .ys-rr2-panel > summary,
#ys-main.ys-book-reference.ys-catalog--book-sidebar .ys-book-songs-toggle > summary {
 background:#FFFFFF!important;color:#111111!important;border:1px solid #d8e4cf!important;
 font-size:16px!important;line-height:1.8!important;box-shadow:none!important;
}
#ys-main.ys-book-reference.ys-catalog--book-sidebar .ys-book-existing-content .ys-rr2-panel > summary:hover,
#ys-main.ys-book-reference.ys-catalog--book-sidebar .ys-book-songs-toggle > summary:hover {background:#F2F4BE!important;}
.ys-page #ys-main.ys-book-reference .ys-book-offer h3 {font-size:18px!important;}
.ys-page #ys-main.ys-book-reference .ys-book-offer p {font-size:15px!important;}
.ys-page #ys-main.ys-book-reference .ys-book-player h2 {font-size:20px!important;font-weight:700;}
.ys-book-reference .ys-book-offer-price {direction:ltr;unicode-bidi:isolate;}.ys-book-reference .ys-book-offers-grid {grid-auto-rows:1fr;}#ys-main.ys-book-reference {padding-top:18px!important;}
@media(max-width:767px) {
 .ys-book-reference .ys-book-offer:last-child:nth-child(3) {justify-self:stretch;width:100%;}
}
#ys-main.ys-book-reference .ys-rr2-panel > summary::marker,
#ys-main.ys-book-reference .ys-book-songs-toggle > summary::marker {color:#174F37;}

.ys-page #ys-main.ys-book-reference .ys-book-existing-content :is(p,li,span,strong) {color:#111111;}

/* Compact information cards with the approved outline icons. */
#ys-main.ys-book-reference .ys-book-info-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start;width:100%;direction:rtl;}
#ys-main.ys-book-reference .ys-book-info-grid > .ys-rr2-panel {min-width:0;margin:0!important;border-radius:24px!important;box-shadow:0 3px 7px #2947350c;}
#ys-main.ys-book-reference.ys-catalog--book-sidebar .ys-book-info-grid > .ys-rr2-panel > summary {
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:164px;padding:16px 12px!important;
 border:0!important;border-radius:24px!important;text-align:center!important;box-sizing:border-box;
 font-size:17px!important;font-weight:700;white-space:normal;
}
#ys-main.ys-book-reference .ys-book-info-grid .ys-rr2-panel-body {min-width:0;overflow-wrap:anywhere;}
#ys-main.ys-book-reference .ys-book-info-grid iframe {width:100%!important;max-width:100%!important;}
@media(max-width:1024px) {
 #ys-main.ys-book-reference .ys-book-info-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 #ys-main.ys-book-reference .ys-book-info-grid > .ys-rr2-panel:last-child {grid-column:1/-1;width:calc(50% - 7px);justify-self:center;}
}
@media(max-width:767px) {
 #ys-main.ys-book-reference .ys-book-info-grid {grid-template-columns:1fr;}
 #ys-main.ys-book-reference .ys-book-info-grid > .ys-rr2-panel:last-child {grid-column:auto;width:100%;justify-self:stretch;}
 #ys-main.ys-book-reference.ys-catalog--book-sidebar .ys-book-info-grid > .ys-rr2-panel > summary {min-height:154px;padding:14px 12px!important;}
}

#ys-main.ys-book-reference .ys-book-info-icon {display:block;flex-shrink:0;width:38px;height:38px;color:#174F37;}
#ys-main.ys-book-reference .ys-book-info-caption {display:block;max-width:100%;line-height:1.7;}
#ys-main.ys-book-reference .ys-book-preview-window {display:inline-block;max-width:100%;margin-top:8px;padding:5px 9px;border:1px solid #b8ceb9;border-radius:12px;background:#fff;color:#111111;font-size:14px;line-height:1.8;text-decoration:none;overflow-wrap:anywhere;}
#ys-main.ys-book-reference .ys-book-preview-window:is(:hover,:focus-visible) {background:#F2F4BE;color:#111111;}
