/* NIBRAS book typography and two stacked editions; scoped to sales surfaces. */
.gra-editions{display:flex;flex-direction:column;gap:10px;margin-top:2px;text-align:start;color:#1B2A4A}
.gra-book-body .gra-grades{min-height:44px!important;margin:0 0 12px!important}
.gra-edition{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px 12px;padding:14px;border:1px solid #e7e1d4;border-radius:14px;background:#fff;min-width:0}
.gra-edition-interactive{background:#fbf7ee;border-color:#eadcb8}
.gra-edition-top{display:flex;flex-direction:column;gap:2px;min-width:0}
.gra-edition-name{display:flex;align-items:center;gap:7px}
.gra-edition-name h4{font-size:15px!important;line-height:1.5;margin:0!important;font-weight:700}
.gra-ic{display:inline-flex;width:19px;height:19px;flex:none;color:#aa8640}.gra-ic svg{width:100%;height:100%}
.gra-edition-price{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap;padding-inline-start:26px}
.gra-edition-price b{font-size:20px;font-weight:700;color:#1B2A4A;line-height:1.3}
.gra-edition-price small{font-size:12px;color:#556174;font-weight:600}
.gra-edition-action{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 18px;border-radius:12px;border:1px solid #1B2A4A;background:#1B2A4A;color:#fff!important;font:600 14px/1.5 'Readex Pro',sans-serif;text-align:center;cursor:pointer;text-decoration:none!important;white-space:nowrap}
.gra-edition-action:hover{filter:brightness(1.12)}
.gra-edition-more{grid-column:1/-1;border-top:1px dashed #e2d9c3;padding-top:6px}
.gra-edition-more summary{cursor:pointer;font-size:12.5px;color:#85601b;list-style:none;display:inline-flex;align-items:center;gap:6px;min-height:28px}
.gra-edition-more summary::-webkit-details-marker{display:none}
.gra-edition-more summary::after{content:"▾";font-size:12px;line-height:1}
.gra-edition-more[open] summary::after{transform:rotate(180deg)}
.gra-edition-more p{font-size:12.5px!important;line-height:1.8!important;color:#556174;margin:4px 0 0!important;min-height:0!important}
.gra-edition-ctas{display:flex;flex-direction:column;gap:8px;min-width:0}
.gra-edition-sample{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:6px 12px;white-space:nowrap;border-radius:10px;border:1px solid #d9cba6;background:#fff;color:#1B2A4A!important;font:500 13px/1.6 'Readex Pro',sans-serif;text-decoration:none!important}
.gra-edition-sample .gra-ic{width:17px;height:17px}
.gra-edition-sample:hover{background:#fdf9ef;border-color:#aa8640}
.gra-edition-action:focus-visible,.gra-edition-sample:focus-visible,.gra-edition-more summary:focus-visible,.op-choice summary:focus-visible{outline:3px solid #c69d4b;outline-offset:3px}
.gra-edition-action:disabled{opacity:.45;cursor:not-allowed}
.gra-edition-unavailable{grid-column:1/-1;color:#687286;font-size:13px;background:#f3f3f0;border-radius:9px;padding:10px 12px;margin:0}
.gra-ref-reminder{font-size:12px!important;line-height:1.8!important;margin:2px 0 0!important;overflow-wrap:anywhere;color:#655024!important}
.op-wrap{width:min(680px,calc(100% - 32px));margin-top:32px}
.op-brand h1{font-size:clamp(22px,4vw,30px);line-height:1.8;margin:0}
.op-brand .op-sub{font-size:14px;font-weight:400;color:#556174}
.op-offer{color:#63583e;font-size:13px;font-weight:400;margin-bottom:22px}
.op-offer span{font-weight:600;background:#eee2c5}
.op-choice{border:1px solid #ddd8ce;border-radius:14px;padding:15px 18px;background:#fff;margin:16px 0}
.op-choice summary{font-size:14px;font-weight:600;cursor:pointer;min-height:26px}
.op-choice .op-step{margin-top:20px}.op-choice .op-step h2{font-size:15px!important}
.op-selected{background:#fff;border:1px solid #e2ddd2;border-radius:18px;padding:22px;margin:20px 0;scroll-margin-top:30px}
.op-book-summary{display:flex;align-items:center;gap:22px;padding-bottom:8px}
.op-book-summary img{width:100px;height:142px;object-fit:contain;flex:none}
.op-book-summary h2{font-size:18px;line-height:1.8;margin:0}
.op-book-summary p{font-size:12px;line-height:1.9;color:#647084;margin:6px 0 0}
.op-ref-field{margin:20px 0}.op-ref-field label{display:block;font-size:13px;font-weight:600;margin-bottom:7px}
.op-ref-field input{box-sizing:border-box;width:100%;border:1px solid #b7b3aa;background:#fff;color:#1B2A4A;padding:10px 13px;min-height:46px;border-radius:10px;font-size:16px}
.op-ref-field input:focus{outline:2px solid #aa8640;outline-offset:2px}
.op-ref-field p{font-size:11px;line-height:1.9;color:#647084;margin:6px 0}
#graRefError{color:#a22720}
#graPicker [hidden],.gra-editions [hidden]{display:none!important}
@media(max-width:420px){.op-selected{padding:16px}.op-book-summary{gap:14px}.op-book-summary img{width:76px;height:108px}.op-book-summary h2{font-size:16px}.gra-edition-head h4{font-size:16px}.gra-edition-price{font-size:16px}}
@media(max-width:700px){.gra-book-cards .gra-book-card{display:flex;flex-direction:column}.gra-book-cards .gra-cover{min-height:0;padding:18px 16px}.gra-book-cards .gra-cover img{height:210px;width:auto;max-width:100%;max-height:none}.gra-book-cards .gra-book-body{padding:16px 14px 18px}.gra-book-body .gra-grades{min-height:0!important}}
@media(max-width:360px){.gra-edition{padding:12px}.gra-edition-action{padding:9px 12px}}

/* v10.26 (26 Nov 2026): «الجمعة البيضاء» — offer tag, struck old price, offer bar with countdown */
.gra-edition-price.is-offer{flex-wrap:wrap;row-gap:2px}
.gra-offer-tag{display:inline-block;background:#C9A227;color:#1B2A4A;font-weight:700;font-size:12px;line-height:1.6;border-radius:30px;padding:1px 10px;white-space:nowrap}
.gra-edition-price .gra-offer-tag{flex-basis:auto;margin-inline-end:4px;align-self:center}
.gra-was{color:#7b8494;font-weight:400;font-size:.8em;text-decoration:line-through;text-decoration-thickness:1.5px;text-decoration-color:#C84C19;margin-inline-end:3px}
.gra-edition-price .gra-was{font-size:15px}
.package .gra-was{font-size:.62em}
.gra-offer-bar{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;background:#1B2A4A;color:#fff;border-radius:16px;padding:14px 20px;margin:0 0 18px;box-shadow:0 6px 18px rgba(27,42,74,.16)}
.gra-offer-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.gra-offer-head{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap;margin:0!important;font-size:14px;line-height:1.6}
.gra-offer-until{color:#E9EDF5;font-weight:500}
.gra-offer-line{margin:0!important;font-size:15px;line-height:1.7;color:#fff;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px}
.gra-offer-pr{display:inline-flex;align-items:baseline;gap:7px}
.gra-offer-pr b{font-size:19px;font-weight:700;color:#fff}
.gra-offer-pr s{color:#AEB7C7;font-size:14px;text-decoration-color:#F2B33A;text-decoration-thickness:1.5px}
.gra-offer-line small{color:#C9D0DC;font-size:13px}
.gra-offer-dot{color:#C9A227;font-size:9px;align-self:center}
.gra-cd{display:flex;gap:6px;direction:inherit;flex:none}
.gra-cd-u{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:52px;background:#fff;color:#1B2A4A;border-radius:10px;padding:5px 6px 4px;line-height:1.15}
.gra-cd-u b{font-family:Alexandria,'Readex Pro',sans-serif;font-weight:800;font-size:20px;font-variant-numeric:tabular-nums;letter-spacing:.5px}
.gra-cd-u small{font-size:11px;color:#556174;font-weight:600;margin-top:1px}
.gra-offer-bar.is-compact{padding:10px 14px;margin:8px 0 0;border-radius:12px;box-shadow:none}
.gra-offer-bar.is-compact .gra-cd-u{min-width:44px;padding:3px 5px}
.gra-offer-bar.is-compact .gra-cd-u b{font-size:16px}
.op-main .gra-offer-bar,#graPicker .gra-offer-bar{margin:18px 0 6px}
@media(max-width:560px){
 .gra-offer-bar{padding:12px 14px;gap:10px}
 .gra-cd{width:100%;justify-content:space-between}
 .gra-cd-u{flex:1;min-width:0}
}

.gra-was,.gra-offer-pr b,.gra-offer-pr s,.gra-edition-price b,[data-gra-price]{unicode-bidi:isolate;display:inline-block}
.package .gra-was{margin-inline-end:7px}

/* v10.28 (27 Nov 2026): بانر الجمعة البيضاء المعتمد «2 + label»: أصفر سادة تحت الترويسة، «البيضاء» أبيض على ملصق كحلي */
.gra-offer-bar.gra-wf{display:block;background:#FFE08F;color:#1B2A4A;border-radius:0;margin:0;padding:14px 16px;box-shadow:none;border-bottom:2px solid #1B2A4A}
.gra-wf-in{max-width:1180px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px 26px;flex-wrap:wrap}
.gra-wf-a{display:flex;flex-direction:column;gap:2px}
.gra-wf-h{margin:0!important;font-family:Alexandria,'Readex Pro',sans-serif;font-weight:800;font-size:34px;line-height:1.25;color:#1B2A4A}
.gra-wf-lbl{display:inline-block;background:#1B2A4A;color:#fff;border-radius:12px;padding:0 12px;line-height:1.35}
.gra-wf-sub{margin:0!important;color:#C84C19;font-size:17px;font-weight:700}
.gra-wf-p{display:flex;gap:10px}
.gra-wf-card{background:#fff;border:2px solid #fff;border-radius:14px;padding:6px 14px;text-align:center;min-width:128px;box-shadow:0 3px 0 rgba(27,42,74,.18)}
.gra-wf-k{display:block;font-size:16px;font-weight:600;color:#1B2A4A}
.gra-wf-pr{margin:0!important;display:flex;align-items:baseline;justify-content:center;gap:6px}
.gra-wf-pr b{font-family:Alexandria,sans-serif;font-weight:800;font-size:36px;line-height:1.1;color:#1B2A4A}
.gra-wf-pr s{font-size:20px;color:#7b8494;text-decoration-color:#C84C19;text-decoration-thickness:2px}
.gra-wf-pr small{font-size:14px}
.gra-wf-z{display:flex;flex-direction:column;align-items:center;gap:6px}
.gra-wf .gra-cd-u{background:#1B2A4A;color:#fff;min-width:54px}
.gra-wf .gra-cd-u b{font-size:24px;color:#fff}.gra-wf .gra-cd-u small{color:#DCE3F0}
.gra-wf-go{display:inline-block;background:#C84C19;color:#fff!important;text-decoration:none;font-weight:700;font-size:18px;border-radius:12px;padding:8px 18px;border:2px solid #1B2A4A;box-shadow:0 3px 0 #1B2A4A}
@media(max-width:760px){
 .gra-wf-in{flex-direction:column;text-align:center;gap:10px}
 .gra-wf-a{align-items:center}.gra-wf-h{font-size:30px}
 .gra-wf-p{width:100%;justify-content:center}.gra-wf-card{flex:1;min-width:0;max-width:200px}
 .gra-wf-pr b{font-size:30px}
 .gra-wf .gra-cd{width:auto}
}

/* v10.30 (28 نوفمبر 2026): بطاقة الكتاب الضيقة (آيباد، نصف شاشة الكمبيوتر، جوال صغير) — كان زر «اطلب نسختك» يغطي شارة العرض والسعر واسم النسخة.
   إذا لم يبقَ للاسم والسعر 150px بجانب الزرين، ينزل الزران تحتهما بعرض البطاقة. */
.gra-edition{display:flex;flex-wrap:wrap;align-items:center}
.gra-edition-top{flex:1000 1 150px;min-width:auto}
.gra-edition-ctas{flex:1 0 auto}
.gra-edition-more,.gra-edition-unavailable{flex:1 0 100%}
/* طلبها 28 نوفمبر: لا شارة. السعر في سطر، وتحته «عروض الجمعة البيضاء حتى 4 ديسمبر» بخط رمادي صغير بلا خلفية */
.gra-edition-price{white-space:nowrap}
.gra-offer-note{margin:2px 0 0!important;padding-inline-start:26px;font-size:12.5px!important;line-height:1.6!important;font-weight:400;color:#6B7487;background:none;min-height:0!important}
.gra-offer-note>span{display:block;white-space:nowrap}
