/* Easton Franklin Books — base styles from the design, plus WooCommerce bits the design
   doesn't draw (form fields, notices, payment boxes, account pages). Section styles live
   inline in the templates, exactly as in the design. */
body{margin:0;background:#f3f4f1;font-family:'Source Sans 3',system-ui,sans-serif;color:#1b2140;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
a{color:#1d2e7a;text-decoration:none}
a:hover{color:#1f7a33}
input,select,button,textarea{font:inherit}
[hidden]{display:none!important}
img{max-width:100%}
.efb-skip{position:absolute;left:-9999px;top:8px;z-index:200;background:#fff;color:#1d2e7a;padding:10px 14px;border-radius:6px;font-weight:700}
.efb-skip:focus{left:12px}
:focus-visible{outline:2px solid #1d2e7a;outline-offset:2px}

/* Rows and cards drawn by the script (same hovers as the server-drawn ones). */
.efb-row:hover{background:#f7f8fb!important}
.efb-row-t:hover{color:#1d2e7a!important}
.efb-card:hover{border-color:#1d2e7a!important}
.efb-sg:hover,.efb-vrow:hover{background:#f0f3fb!important;color:#1b2140}
.efb-sg-chip:hover{border-color:#1d2e7a!important;color:#1d2e7a}
.efb-sg-all:hover{background:#1f7a33!important;color:#fff}
.efb-btn-green:hover{background:#2a9443!important;color:#fff!important}
.efb-btn-outline:hover{border-color:#1d2e7a!important}

/* Editor text (information pages, notes). */
.efb-prose__body>*:first-child{margin-top:0}
.efb-prose__body>*:last-child{margin-bottom:0}
.efb-prose__body p,.efb-prose__body li{font-size:17px;line-height:1.6;text-wrap:pretty}
.efb-prose__body p{margin:0 0 12px}
.efb-prose__body h2{font-family:Ubuntu,sans-serif;font-weight:500;font-size:24px;color:#1d2e7a;margin:26px 0 10px}
.efb-prose__body h3{font-family:Ubuntu,sans-serif;font-weight:500;font-size:20px;color:#1d2e7a;margin:22px 0 8px}
.efb-prose__body ul,.efb-prose__body ol{margin:0 0 14px;padding-left:22px}
.efb-prose__body li{margin:4px 0}
.efb-prose__body li::marker{color:#1f7a33}
.efb-prose__body a{text-decoration:underline;text-decoration-color:#b8c0e6;text-underline-offset:3px;font-weight:600}
.efb-prose__body img{height:auto;border-radius:6px}
.efb-prose--blue .efb-prose__body,.efb-prose--blue .efb-prose__body h2,.efb-prose--blue .efb-prose__body h3{color:#fff}
.efb-prose--blue .efb-prose__body a{color:#fff}
.efb-notes p{margin:0}
.efb-article p strong{color:#1b2140}

/* WooCommerce form fields in the design's style (checkout, account). */
.woocommerce form .form-row,.efb-cf .form-row{display:flex;flex-direction:column;gap:5px;margin:0;font-weight:600;padding:0}
.efb-cf .form-row label,.woocommerce form .form-row label{font-weight:600;line-height:1.3}
.efb-cf .form-row .optional{display:none}
.efb-cf .form-row .required,.woocommerce form .form-row .required{color:#1b2140;text-decoration:none;border:0}
.efb-cf .woocommerce-input-wrapper{display:flex;flex-direction:column}
.efb-input,.efb-cf input.input-text,.efb-cf select,.woocommerce form .input-text,.woocommerce form select,.woocommerce-page form .input-text{width:100%;min-width:0;border:1px solid #d6d9e6;border-radius:5px;padding:10px 12px;font-size:16px;background:#fff;color:#1b2140;outline-color:#1d2e7a}
.efb-cf .select2-container{width:100%!important}
.efb-cf .select2-container .select2-selection--single{height:44px;border:1px solid #d6d9e6;border-radius:5px}
.efb-cf .select2-container .select2-selection--single .select2-selection__rendered{line-height:42px;padding-left:12px;color:#1b2140}
.efb-cf .select2-container .select2-selection--single .select2-selection__arrow{height:42px}
.efb-err{font-size:14px;font-weight:600;color:#a3121f}
.woocommerce-invalid .efb-input,.woocommerce-invalid input.input-text,.woocommerce-invalid select{border-color:#a3121f!important}
.efb-cf .woocommerce-input-wrapper .description{font-size:13px;color:#5b6385;font-weight:400}

/* Payment choices: the design's option cards. */
.efb-pay-radio{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.efb-pay-card{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;border:2px solid #d6d9e6;background:#fff;border-radius:6px;padding:12px 14px;cursor:pointer;color:#1b2140;font-weight:400}
.efb-pay-radio:checked+.efb-pay-card{border-color:#1d2e7a;background:#f0f3fb}
.efb-pay-radio:focus-visible+.efb-pay-card{outline:2px solid #1d2e7a;outline-offset:2px}
.payment_box{background:#f7f8fb;border-radius:6px;padding:14px 16px;font-size:16px;color:#3a4160;line-height:1.5}
.payment_box p{margin:0 0 8px}.payment_box p:last-child{margin:0}
.payment_box fieldset{border:0;margin:0;padding:0}
.efb-place,#place_order{border:0;background:#1f7a33;color:#fff;font-weight:700;font-size:17px;padding:13px 24px;border-radius:6px;cursor:pointer}
.efb-place:hover,#place_order:hover{background:#2a9443}
.woocommerce-terms-and-conditions-wrapper{font-size:14px;color:#5b6385}
.blockUI.blockOverlay{background:rgba(255,255,255,.6)!important}

/* Notices. */
.woocommerce-error,.woocommerce-message,.woocommerce-info,.woocommerce-NoticeGroup .woocommerce-error{list-style:none;margin:0 0 12px;padding:12px 16px;border-radius:6px;font-size:16px;line-height:1.45}
.woocommerce-error{background:#fdecee;color:#a3121f;font-weight:600}
.woocommerce-error li{margin:2px 0}
.woocommerce-message,.woocommerce-info{background:#f2f8f3;color:#145a24}
.woocommerce-message .button,.woocommerce-info .button{float:right;font-weight:700;color:#145a24;text-decoration:underline}
.efb-notices:empty{display:none}
.woocommerce-NoticeGroup-checkout{flex:1 1 100%}

/* My Account. */
.woocommerce-account .efb-prose{display:block}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0 0 20px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.woocommerce-MyAccount-navigation a{display:block;border:1px solid #d6d9e6;border-radius:20px;padding:7px 14px;font-weight:600;color:#1b2140}
.woocommerce-MyAccount-navigation .is-active a{background:#1d2e7a;border-color:#1d2e7a;color:#fff}
.woocommerce table.shop_table{width:100%;border-collapse:collapse;font-size:16px}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{text-align:left;padding:10px 8px;border-top:1px solid #e2e5dc}
.woocommerce .button,.woocommerce button.button,.woocommerce a.button{display:inline-block;border:0;background:#1d2e7a;color:#fff;font-weight:700;padding:10px 18px;border-radius:5px;cursor:pointer}
.woocommerce .button:hover{background:#1f7a33;color:#fff}
.woocommerce form.login,.woocommerce form.register,.woocommerce form.lost_reset_password,.woocommerce-EditAccountForm,.woocommerce-address-fields{display:flex;flex-direction:column;gap:14px;max-width:520px}
.u-columns.col2-set{display:flex;flex-wrap:wrap;gap:28px}
.u-columns.col2-set>div{flex:1 1 320px;min-width:0}
.u-columns h2,.woocommerce-account h2{font-family:Ubuntu,sans-serif;font-weight:500;color:#1d2e7a}
.woocommerce-form-login__rememberme{display:flex;gap:8px;align-items:center;font-weight:600}
.woocommerce-LostPassword{margin:0}
.woocommerce-password-strength{font-size:14px;margin-top:4px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Phones and narrow tablets. The design has no small-screen rules; these only apply once
   its columns have stacked, so the desktop layout stays exactly the design's. */
@media (max-width:940px){
  [data-efb-shop]>aside{position:static!important;max-height:none!important;overflow:visible!important}
}
@media (max-width:900px){
  [data-efb-viewer]>aside,#sell-form>aside,[data-efb-cart] aside,[data-efb-checkout] aside,.efb-policy>aside{position:static!important}
  [data-efb-viewer] [data-cats-list]{max-height:300px!important}
}
@media (max-width:860px){
  [data-gallery]{position:static!important}
}
@media (max-width:700px){
  body>div>header{position:static!important}
}
@media (max-width:600px){
  [data-gallery]{flex-direction:column-reverse}
  [data-gallery] .efb-thumbs{flex-direction:row!important;flex:0 0 auto!important;overflow-x:auto;padding-bottom:4px}
  [data-gallery] .efb-thumbs>button{flex:0 0 64px;width:64px!important;height:82px!important}
}
@media (max-width:640px){
  /* Home banner: photo on top, text below (the side-by-side panel is too narrow for a headline). */
  [data-efb-hero]{aspect-ratio:auto!important;min-height:0!important;display:flex;flex-direction:column}
  [data-efb-hero]>img{position:static!important;width:100%!important;height:auto!important;aspect-ratio:1.3/1;object-position:left center}
  [data-efb-hero]>div:nth-of-type(1),[data-efb-hero]>div:nth-of-type(2){display:none!important}
  [data-efb-hero]>div:nth-of-type(3){position:static!important;width:100%!important;min-height:300px;justify-content:flex-start!important;padding:18px 20px 58px!important;background:#1d2e7a;border-top:6px solid #1f7a33}
}
@media (max-width:560px){
  .efb-row{flex-wrap:wrap!important;row-gap:8px!important}
  .efb-row>div:nth-of-type(1){flex:1 1 calc(100% - 76px)!important}
  .efb-row-r{flex:1 1 100%!important;justify-content:space-between!important;padding-left:76px}
  .efb-row-r>span,.efb-row-r>div{min-width:0!important;text-align:left!important}
  .efb-row-r>div{align-items:flex-start!important}
  .efb-row-r>div>span{text-align:left!important}
}
/* WooCommerce's show-password toggle (its own stylesheet is off). */
.woocommerce .password-input{position:relative;display:block}
.woocommerce .password-input .input-text{padding-right:44px}
.woocommerce .show-password-input{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;background:none;cursor:pointer;color:#5b6385;padding:0}
.woocommerce .show-password-input::after{content:"👁";font-size:16px;line-height:30px}
.woocommerce .show-password-input.display-password::after{opacity:.5}

/* Book page photos: previous / next arrows + "2 / 8" counter (more than one photo). */
.efb-gal-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:44px;border-radius:50%;border:1px solid #d6d9e6;background:rgba(255,255,255,.94);color:#1d2e7a;display:grid;place-items:center;cursor:pointer;padding:0;box-shadow:0 2px 10px rgba(27,33,64,.18);transition:background .15s,color .15s,box-shadow .15s}
.efb-gal-arrow:hover{background:#1d2e7a;color:#fff;box-shadow:0 3px 12px rgba(27,33,64,.28)}
.efb-gal-arrow:focus-visible{outline:3px solid #1f7a33;outline-offset:2px}
.efb-gal-count{position:absolute;right:12px;bottom:12px;z-index:2;font-size:13px;font-weight:700;padding:3px 9px;border-radius:4px;background:rgba(27,33,64,.78);color:#fff;pointer-events:none}
@media (max-width:600px){.efb-gal-arrow{width:38px;height:38px}}
