 :where(.rea-responsive-shelf,.rea-standalone-cover){
     --border-color-1: var(--triangle-border,#00000075);
    /*all tokens with defaults will be placed here for better control. the overrides from the inline set ones wil overidethese vaues but the main setup will be unified on this block via inheritance. Calculated values wil be the main dfault construction rule for styling*/
     --shelf-gap: 10px;
     --shelf-pad: 0px;
     --shelf-content: 85%;
     --shelf-align: center;
     --shelf-shadow: none;
     --shelf-book-reduc: calc(100% - var(--shelf-content));
     --shelf-offset: calc(var(--shelf-gap)*.75);
     --shelf-offset-x: calc(var(--shelf-offset)*-2);
     --shelf-cover-size: calc((var(--shelf-content) - var(--shelf-book-reduc))*.5);
     --shelf-shadow: 0px 0px 1px var(--triangle-border,#00000075);
     --shelf-book-fs: 10px;
    /*this new var controls the inner gutter curently set on the next div as a padding that ruins the inner desing of the container. remove the inline styles and set the vlues with classes and tokens. padding will be st as another value parameter called gutter. perferently default value 0. user can set top, right, left and bottom values independently on the same string.*/
     --shelf-book-gutter: var(--shelf-pad);
     --shelf-book-gutter-inline: var(--shelf-book-gutter, 0);
     --shelf-book-gutter-top: var(--shelf-book-gutter, 0);
     --shelf-book-gutter-bottom: var(--shelf-book-gutter, 0);
    /*selector for the cover item div wrapper with id that holds title and image div together - removed padding and added font size control token, padding spacing i set through parent flexbox gap. remove inline styles and rely on classes*/
    /* Token Values */
     --triangle-w: calc(var(--shelf-book-fs)*1.5);
     --triangle-h: calc(var(--triangle-w)*.5);
     --triangle-border: color-mix(in srgb, var(--triangle-bg), var(--triangle-text) 50%);
     --triangle-border-w: 0px;
     --triangle-bg: #1f1f1f;
     --triangle-text: #ffffff;
     --shelf-cover-size: calc((var(--shelf-content) - var(--shelf-book-reduc))*.5)!important;
     --shelf-thumb-border-shadow: 0px 0px 10px var(--shelf-thumb-border-color)!important;
     --shelf-thumb-border-color: var(--border-color-1, var(--triangle-border));
     --shelf-row-gap: calc(var(--shelf-gap)*3.8);
     --shelves-section-pad: var(--shelf-row-gap);
     --ts-fs-wp-lg: clamp(1.2em, 1.2rem + ((1vw - 0.2em) * 0.471), 1.5em);
     --ts-fs-wp-md: clamp(0.9em, 0.9rem + ((1vw - 0.2em) * 0.157), 1em);
     --ts-fs-wp-xl: clamp(1.6em, 1.6rem + ((1vw - 0.2em) * 0.314), 1.8em);
     --ts-fs-wp-2xl: clamp(2em, 2rem + ((1vw - 0.2em) * 1.255), 2.8em);
     --shelf-hover-angle: 25deg;
    /* FIX NOTE:CHANGED THE VALUE OF THE ANGLE OF ROTATION. */
     --shelf-paper: #ffffff;
     --shelf-ink: #4f4d4a;
     --shelf-plank-color-bright: color-mix(in srgb, var(--shelf-plank-color), white var(--_bright-prct));
     --shelf-plank-color-bright-2: color-mix(in srgb, var(--shelf-plank-color), white calc(var(--_bright-prct)*1.3));
     --shelf-plank-color-dark: color-mix(in srgb, var(--shelf-plank-color), black var(--_dark-prct));
     --shelf-plank-color-dark-2: color-mix(in srgb, var(--shelf-plank-color), black calc(var(--_dark-prct)*1.3));
     --shelf-plank-bg-grad: linear-gradient(var(--_grad-angle), var(--shelf-plank-color-bright), var(--shelf-plank-color) 30%, var(--shelf-plank-color-dark));
     --shelf-plank-bg-grad-table: linear-gradient(var(--_grad-angle),var(--shelf-plank-color-bright-2),var(--shelf-plank-color));
     --shelf-plank-border: color-mix(in srgb,var(--shelf-plank-color),white 50%);
     --book-front-light-shade: linear-gradient(90deg,rgb(255 255 255 / .1) 1.5%,rgb(0 0 0 / .05) 1.85%,rgb(0 0 0 / 0) 30%,transparent);
     --_metal-surface: #a9adb2;
     --_wood-surface: #92714e;
     --_glass-surface: #b8d3d7bd;
     --_bright-prct:50%;
     --_dark-prct:28%;
     --_grad-angle:180deg;
    /* FIX NOTE:i moved this core value here to be easy to handle, and tweaked a bit so the book doesnt displace when is hovered, but it allways moves when it hovers. it should not move from its left corner position when hovered. so please check why the transfor anchor point is diuspolaced allways. */
     --_book-transform-origin: 30% 50%;
    /* Shared cover fallback and shadow tokens;
     the settings toggle controls activation. */
     --rea-shadow-color: 0 0 0;
     --rea-shadow-opacity: .5;
     --rea-shadow-width: 80%;
     --rea-shadow-height: 8px;
     --rea-shadow-drop: -5px;
     --rea-shadow-blur: 5px;
     --rea-shadow-hover-opacity: .9;
     --rea-shadow-hover-drop: 6px;
     /* --shelf-max-width-range: clamp(85%,min(100%,var(--shelf-width,1280px)), 100%); */
    /*all tokens with defaults will be placed here for better control. the overrides from the inline set ones wil overidethese vaues but the main setup will be unified on this block via inheritance. Calculated values wil be the main dfault construction rule for styling*/
     --shelf-pad: 0px;
     --shelf-content: 85%;
     --shelf-align: center;
     --shelf-shadow: none;
     --shelf-book-reduc: calc(100% - var(--shelf-content));
     --shelf-offset: calc(var(--shelf-gap)*.75);
     --shelf-offset-x: calc(var(--shelf-offset)*-2);
     --shelf-cover-size: calc((var(--shelf-content) - var(--shelf-book-reduc))*.5);
     --shelf-shadow: 0px 0px 1px var(--triangle-border,#00000075);
     --shelf-book-fs: 10px;
    /*this new var controls the inner gutter curently set on the next div as a padding that ruins the inner desing of the container. remove the inline styles and set the vlues with classes and tokens. padding will be st as another value parameter called gutter. perferently default value 0. user can set top, right, left and bottom values independently on the same string.*/
     --shelf-book-gutter: var(--shelf-pad);
     --shelf-book-gutter-inline: var(--shelf-book-gutter, 0);
     --shelf-book-gutter-top: var(--shelf-book-gutter, 0);
     --shelf-book-gutter-bottom: var(--shelf-book-gutter, 0);
    /*selector for the cover item div wrapper with id that holds title and image div together - removed padding and added font size control token, padding spacing i set through parent flexbox gap. remove inline styles and rely on classes*/
    /* Token Values */
     --triangle-w: calc(var(--shelf-book-fs)*1.5);
     --triangle-h: calc(var(--triangle-w)*.5);
     --triangle-border: color-mix(in srgb, var(--triangle-bg), var(--triangle-text) 50%);
     --triangle-border-w: 0px;
     --triangle-bg: #1f1f1f;
     --triangle-text: #ffffff;
     --shelf-cover-size: calc((var(--shelf-content) - var(--shelf-book-reduc))*.5)!important;
     --shelf-thumb-border-shadow: 0px 0px 10px var(--shelf-thumb-border-color)!important;
     --shelf-thumb-border-color: var(--border-color-1, var(--triangle-border));
     --shelf-row-gap: calc(var(--shelf-gap)*4.8);
     --shelf-perspective: 3000px;
     --shelves-section-pad: 50px;
     --ts-fs-wp-lg: clamp(1.2em, 1.2rem + ((1vw - 0.2em) * 0.471), 1.5em);
     --ts-fs-wp-md: clamp(0.9em, 0.9rem + ((1vw - 0.2em) * 0.157), 1em);
     --ts-fs-wp-xl: clamp(1.6em, 1.6rem + ((1vw - 0.2em) * 0.314), 1.8em);
     --ts-fs-wp-2xl: clamp(2em, 2rem + ((1vw - 0.2em) * 1.255), 2.8em);
     --shelf-plank-color: var(--_wood-surface);
     --shelf-plank-depth: 10px;
     --shelf-book-depth: 2px;
     --shelf-gap: 10px;
     --shelf-book-gutter-bottom: var(--shelf-gap);
     --shelf-plank-color: var(--_metal-surface);
     --shelf-plank-depth: 10px;
     --shelf-hover-angle: 20deg;
     --shelf-ink: #4f4d4a;
     --shelf-plank-color-bright: color-mix(in srgb, var(--shelf-plank-color), white var(--_bright-prct));
     --shelf-plank-color-bright-2: color-mix(in srgb, var(--shelf-plank-color), white calc(var(--_bright-prct)*1.3));
     --shelf-plank-color-dark: color-mix(in srgb, var(--shelf-plank-color), black var(--_dark-prct));
     --shelf-plank-color-dark-2: color-mix(in srgb, var(--shelf-plank-color), black calc(var(--_dark-prct)*1.3));
     --shelf-plank-bg-grad: linear-gradient(var(--_grad-angle), var(--shelf-plank-color-bright), var(--shelf-plank-color) 30%, var(--shelf-plank-color-dark));
     --shelf-plank-bg-grad-table: linear-gradient(var(--_grad-angle),var(--shelf-plank-color-bright-2),var(--shelf-plank-color));
     --shelf-plank-border: color-mix(in srgb,var(--shelf-plank-color),white 50%);
     /* --book-front-light-shade: linear-gradient(90deg,rgb(255 255 255 / .18) 1%,rgb(0 0 0 / .2) 1.3%,rgb(255 255 255 / .15) 5%,transparent 1.18%);
     */
     --_metal-surface: #a9adb2;
     --_wood-surface: #92714e;
     --_glass-surface: #b8d3d7;
     --_bright-prct:50%;
     --_dark-prct:28%;
     --_grad-angle:180deg;
}
:root{
   --ts-this-bg: var(--ts-0-t);

}
:where([class*="flipbook"], [class*="rea-"], [class*="shelf"]) {
  /* Base/ratio math  tokens for ts-btn and buttons  */
   --ts-this-bg: var(--ts-accent);
     --ts-on-accent: oklch(from var(--ts-accent) clamp(0, (var(--ts-on-accent-threshold) - l) * 999, 1) 0 0);
    --ts-on-accent-threshold: 0.75;

 --ts-btn-dur: var(--ts-dur-base);
  --ts-btn-size: calc(var(--ts-btn-base) * var(--ts-btn-scale));
  --ts-btn-fs-ratio: 0.28;
  --ts-btn-icon-ratio: 1.1;
  --ts-btn-base: 42;
  --ts-btn-scale: var(--ui-scale, 1);
  --ts-btn-h-ratio: 1;
  --ts-btn-pad-x-ratio: 0.45;
  --ts-btn-pad-y-ratio: 0.3;
  --ts-btn-fw: 600;
  --ts-btn-h: calc(var(--ts-btn-size) * var(--ts-btn-h-ratio) * 1px);
  --ts-btn-gap: calc(var(--ts-btn-pad-y) * var(--ts-btn-pad-x-ratio));
  --ts-btn-fs: calc(var(--ts-btn-h) * var(--ts-btn-fs-ratio));
  --ts-btn-icon-size: calc(var(--ts-btn-fs) * var(--ts-btn-icon-ratio));
  --ts-btn-lh: normal;
  --ts-btn-ls: 0.05em;
  --ts-btn-pad-x: calc(var(--ts-btn-h) * var(--ts-btn-pad-x-ratio));
  --ts-btn-pad-y: calc(var(--ts-btn-pad-x) * var(--ts-btn-pad-y-ratio));
  --ts-btn-accent: var(--ts-accent);
  --ts-btn-color: var(--ts-on-accent);
  --ts-btn-color-hover: var(--ts-on-accent);
  --ts-btn-bg-hover: color-mix(in srgb, var(--ts-this-bg), var(--ts-accent) 90%) !important;
  --ts-btn-base-transition: background var(--ts-dur-fast) var(--ts-ease-out), border-color var(--ts-dur-fast) var(--ts-ease-out), color var(--ts-dur-fast) var(--ts-ease-out), box-shadow var(--ts-dur-fast) var(--ts-ease-out);
  --ts-btn-border: var(--ts-this-bg-border);
  --ts-btn-border-hover: var(--ts-this-bg-border-hover);
  --ts-btn-border-focus: var(--ts-this-bg-border-focus);
  --ts-btn-border-active: var(--ts-this-bg-border-active);
  --ts-btn-bg: var(--ts-this-bg);
  --ts-this-bg-border: color-mix(in oklab, var(--ts-this-bg), white 6%);
  --ts-this-bg-border: color-mix(in oklab, var(--ts-this-bg), white 10%);
  --ts-this-bg-border: color-mix(in oklab, var(--ts-this-bg), var(--ts-text-primary) 12%);
  --ts-this-bg-border-0: color-mix(in oklab, var(--ts-this-bg), var(--ts-text-primary) 6%);
  --ts-this-bg-border: color-mix(in oklab, var(--ts-this-bg), currentcolor 80%);
  --ts-this-bg-border-hover: color-mix(in oklab, var(--ts-this-bg), var(--ts-text-primary) 20%);

  /* --- HOVER, ACTIVE, FOCUS, DISABLED (automatic) --- */
  --ts-this-bg-hover: color-mix(in oklab, var(--ts-this-bg), var(--ts-text-primary) 12%);
  --ts-this-bg-active: color-mix(in oklab, var(--ts-this-bg), #000000 15%);
  --ts-this-bg-focus: color-mix(in oklab, var(--ts-this-bg), var(--ts-accent, #ff540a) 20%);
  --ts-this-bg-disabled: color-mix(in oklab, var(--ts-this-bg), var(--ts-text-muted) 6%);
  

 & button {
  appearance: none;
   letter-spacing: var(--ts-btn-ls);
    line-height: var(--ts-btn-lh);
    font-size: var(--ts-btn-fs);
    font-weight: var(--ts-btn-fw)!important;
    border-radius: var(--ts-btn-radius)!important;
    height: var(--ts-btn-h);
    max-height: var(--ts-btn-h);
    min-height: var(--ts-btn-h);
    min-width: var(--ts-btn-h);
  border-radius: var(--ts-btn-radius);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-inline: var(--ts-btn-pad-x)!important;
    padding-block: var(--ts-btn-pad-y)!important;
    gap: var(--ts-btn-gap)!important;
    box-sizing: border-box;
   background-color: var(--ts-btn-bg);
  color: var(--ts-btn-color);
  border: 1px solid;
  border-color: var(--ts-btn-border);
 }
}
 .rea-responsive-shelf {
     box-sizing: border-box;
     width: 100%;
     margin-inline: auto;
     max-width: 1280px;
     background-color: transparent;
     padding: var(--shelf-pad);
}
 .rea-shelf-covers {
     display: flex;
     justify-content: var(--shelf-align, center);
     align-items: flex-end;
     gap: var(--shelf-gap);
     width: var(--shelf-content);
     width: calc(var(--shelf-content) - var(--shelf-gap));
     margin-inline: auto;
     position: relative;
     z-index: 1;
     flex-wrap: wrap;
     flex-direction: row;
}
 .rea-shelf-cover {
     flex: 0 1 var(--shelf-layout-cover-size, var(--shelf-cover-size, 18%));
     max-width: var(--shelf-layout-cover-size, var(--shelf-cover-size, 18%));
     display: inline-flex !important;
     flex-direction: column;
     flex-wrap: nowrap;
     align-items: center;
     outline: none!important;
     & > div, & > div[class*="real3dflipbook-"] {
         padding-inline: var(--shelf-book-gutter-inline, 0) !important;
         padding-bottom: var(--shelf-book-gutter-bottom, 0) !important;
         padding-top: var(--shelf-book-gutter-top, 0) !important;
         display: inline-flex !important;
         flex-direction: column;
         flex-wrap: nowrap;
         align-items: stretch;
         gap: var(--shelf-gap);
         position: relative;
         align-content: stretch;
    }
}
/*selector for the cover thumnail's image container - removed padding and added font size control token, padding spacing i set through parent flexbox gap. remove inline styles and rely on classes*/
 .rea-shelf-cover > div > div, .rea-shelf-cover > .rea-shelf-cover-thumb {
     display: block;
     position: relative;
     width: 100%;
     object-fit: cover;
     perspective: var(--shelf-perspective);
     transform-style: preserve-3d;
     & img {
         max-width: 100%;
        /* box-shadow: var(--shelf-thumb-border-shadow)!important;
        */
    }
}
 .rea-shelf-cover {
     outline: none!important;
     & > div:is([class*="real3dflipbook-"],:has(> span, > .rea-shelf-cover-text)){
         &:not(:hover) > :is(span, .rea-shelf-cover-text) {
            /* here we set the non hover opaity or non hover state styles to then set the defult or hovred styles below to avoid parental or inheritance issues,. */
             opacity: 0;
        }
    }
}
 .rea-shelf-cover > div > span, .rea-shelf-cover .rea-shelf-cover-text {
    /*this element is not meant to be fully cusomizeable for users, just toggling enable or disable for visibility. as it is only visible through hover state*/
     text-align: center;
     padding: var(--triangle-h) var(--triangle-h) !important;
     display: flex !important;
     font-size: var(--shelf-book-fs);
     background: var(--triangle-bg);
     outline: var(--triangle-border-w) solid var(--triangle-border);
     color: var(--triangle-text);
     position: absolute;
     inset: 0 0 0 0;
     bottom: calc(110% + var(--triangle-h));
     top: auto;
     min-height: fit-content;
     z-index: 1;
     flex-direction: row;
     flex-wrap: wrap;
     justify-content: center;
     align-items: center;
     outline-offset: 0px;
     transition: all 300ms ease;
     opacity: 1;
     max-width: max-content;
     white-space: normal;
    /* add a transform from the bpottom with 3d translate to make a cool effect on hover and out revealing of the text globe card */
    /* Nested Pseudo-element Rule */
     &::after {
         content: "";
         position: absolute;
         top: 100%;
         left: 50%;
         transform: translateX(-50%) translateY(-1px);
         width: var(--triangle-w);
         height: var(--triangle-h);
         background: var(--triangle-bg);
         clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
         pointer-events: none;
         z-index: 1;
    }
}
/*fixed plank foor size to make it cover visually all the books and make it dynamic through gap and a renewed tken width value*/
 .rea-shelf-plank {
     --shelf-content: 100%;
     display: block;
     width: var(--shelf-content);
     min-width: calc(var(--shelf-content) + var(--shelf-gap)*4);
     height: auto;
     margin-inline: auto;
     transform: translateY(var(--shelf-offset));
}
/* Responsive rows retain the owner's cover, tooltip and plank rules above. */
 .rea-shelf-row {
     width: var(--shelf-layout-row-width, var(--shelf-content));
     max-width: none;
}
 .rea-shelf-row {
     width: var(--shelf-content);
     max-width: calc(100% - var(--shelf-gap)*5);
     margin-inline: auto;
}
 .rea-shelf-row + .rea-shelf-row {
     margin-top: var(--shelf-row-gap);
}
 .rea-shelf-covers {
     --shelf-content: 100%;
}
 .rea-shelf-cover, .rea-shelf-cover > div {
     box-sizing: border-box;
     width: 100%;
}
 .rea-shelf-cover > div {
     padding: var(--shelf-book-gutter, 0) !important;
}
 .rea-shelf-cover img {
     display: block;
     width: 100%;
     height: auto;
}
 .rea-shelf-plank {
     max-width: unset;
}
 .rea-shelf-cover > div:not(:hover):not(:focus-within) > :is(span,.rea-shelf-cover-text) {
     opacity: 0;
     transform: translate3d(0,4px,0);
     pointer-events: none;
}
 .rea-shelf-cover > div:is(:hover,:focus-within) > :is(span,.rea-shelf-cover-text) {
     opacity: 1;
     transform: translate3d(0,0,0);
}
 .rea-responsive-shelf[data-titles="hidden"] .rea-shelf-cover > div:has(img) :is(span,.rea-shelf-cover-text) {
     display: none !important;
}
/* Keep Real3D's native text-only link when a legacy book has no thumbnail. */
 .rea-shelf-cover > div:not(:has(img)) > span {
     position: static;
     inset: auto;
     display: block !important;
     opacity: 1 !important;
     transform: none !important;
     pointer-events: auto !important;
     background: transparent;
     outline: none;
     padding: 0 !important;
     font-size: inherit;
}
 .rea-shelf-cover > div:not(:has(img)) > span::after {
     display: none;
}
 @media (prefers-reduced-motion: reduce) {
     .rea-shelf-cover span {
         transition: none;
    }
}
 .rea-shelf-covers {
     width: var(--shelf-layout-books-width, calc(100% - var(--shelf-gap)));
    /* pointer-events: none;
    */
     width: fit-content;
     max-width: 95%;
}
 .rea-shelf-plank {
     width: var(--shelf-layout-plank-width,100%);
     min-width:100%;
     margin-inline: auto;
     position:relative;
     left: auto;
     right: auto;
    /* left:var(--shelf-layout-plank-left,0);
     transform:translateY(var(--shelf-offset));
    */
}
 .rea-responsive-shelf[data-design] {
     max-width:var(--shelf-max-width-range);
     max-width: unset;
     background-color:var(--shelf-bg,transparent);
     border-block: 1px solid var(--border-color);
     padding-block: var(--shelves-section-pad);
     &[data-design]{
         max-width: var(--shelf-max-width-range);
         &>.rea-shelf-row{
             max-width:var(--shelf-max-width-range);
        }
    }
}
 .rea-shelf-cover img {
    /*box-shadow:var(--shelf-cover-shadow,var(--shelf-thumb-border-shadow)) !important;
    */
     outline: none!important;
}
 .rea-shelf-cover > div {
     cursor:pointer;
}
 html.rea-shelf-preview-document, .rea-shelf-preview-document body {
     margin:0;
     padding:0;
     background:transparent;
}
 .rea-shelf-preview-document body {
     overflow-x:hidden;
}
 [data-shelf-preview] {
     overflow:auto;
     max-width:100%;
}
 [data-shelf-preview] iframe {
     display:block;
     border:0;
     width:var(--rea-preview-width,100%);
     height:var(--rea-preview-height,400px);
}
 .rea-shelf-plank-css::before {
     content: "";
     position:absolute;
     inset:auto 0px calc(var(--shelf-plank-depth)*-1.75 + 1px) 1px;
     height:calc(var(--shelf-plank-depth)*2.75 - 1px);
     background: var(--shelf-plank-bg-grad-table);
     transform-origin:bottom;
     transform:translateY(-100%) perspective(180px) rotateX(45deg);
}
 [data-material="wood"] .rea-shelf-plank-css::before {
     background: repeating-linear-gradient(0deg, transparent 0 3px,rgb(45 20 0 / .13) 4px 5px), linear-gradient(var(--shelf-plank-color), color-mix(in srgb, var(--shelf-plank-color), white 20%));
}
 [data-material="glass"] .rea-shelf-plank-css {
     opacity:.8;
     border-bottom:1px solid var(--shelf-plank-border);
}
 .rea-shelf-cover {
    /* perspective: var(--shelf-perspective);
     */
    /*OWNER NOTE: I TOKENIZED THE VITAL STATIC VALUES FOR THE 3D HANDING OF THE BOOK ON SHELVES. LIKE THE PERSPECTIVESHARED O SEVERAL ELEMENTS. - also note that the 3d preserve property is set on several cotnainers that you missed on lmos everywhere it was needed in otdere to het the hover flipbook s on shelves working correctly. he log was set but none of them was working on hovere because the inheritable behaviour was not t on the wrapper ( perspective and transform style too). Now it works*/
    /* transform-style: preserve-3d;
     */
     outline: none!important;
}
 .rea-shelf-cover .rea-book-page1 {
     transform:translateZ(calc(var(--shelf-book-depth)*.3));
}
 .rea-shelf-cover .rea-book-page2 {
     transform:translateZ(calc(var(--shelf-book-depth)*.6));
}
 [data-book-style="3d"] .rea-shelf-cover:focus-within {
     & .rea-book-object {
         transform:rotateY(calc(var(--shelf-hover-angle)*-.8));
    }
     & .rea-book-front {
         transform:translateZ(var(--shelf-book-depth)) rotateY(calc(var(--shelf-hover-angle)*-1));
    }
}
 @media (hover:hover) {
     [data-book-style="3d"] .rea-shelf-cover:hover {
         & .rea-book-object {
             transform:rotateY(calc(var(--shelf-hover-angle)*-.8));
        }
         & .rea-book-front {
             transform:translateZ(var(--shelf-book-depth)) rotateY(calc(var(--shelf-hover-angle)*-1));
        }
         & .rea-book-page1 {
             transform:rotateY(calc(var(--shelf-hover-angle)*-.4));
        }
         & .rea-book-page2 {
             transform:rotateY(calc(var(--shelf-hover-angle)*-.7));
        }
    }
}
 [data-book-style="flat"] .rea-book-page1, [data-book-style="flat"] .rea-book-page2 {
     display:none;
}
 [data-book-style="flat"] .rea-book-front {
     transform:none;
}
 .rea-shelf-cover > [role="button"]:focus-visible {
     outline:0px none var(--shelf-thumb-border-color);
     outline-offset:5px;
}
/* Shared, container-relative geometry: saved options override defaults, never the theme. */
 .rea-responsive-shelf[data-design] {
     max-width: var(--shelf-max-width-range);
}
 .rea-responsive-shelf[data-design] > .rea-shelf-row {
     /* width:100%; */
     max-width: 85%;
}
 .rea-responsive-shelf .rea-shelf-covers {
    max-width: calc(90% - 5vmin);
    width:clamp(calc(100% - 5vmin),calc(var(--shelf-layout-books-width,85%) - 4vmin),calc(85% - 10vmin));
     min-width: auto; 
 /* i need to make a logical and harmonic growth factor for the rows of  shelves that has only few books, as the plank is too wide  for only 2 or three  books alone and the   plak with remains with the static pikel hardcoded  value from the parent one. i try to make it  addaptible to the books wwrtapper but the pixel variable keeps  groxing the planml  and it cannot be shrinked. so the books are   on a huge  empty plank.*/
}
 .rea-responsive-shelf .rea-shelf-plank {
     max-width:var(--shelf-layout-plank-width,100%);
     min-width: 0;
     max-width: var(--shelf-max-width-range);
     width: 100%;
     flex: 1 1 auto;
     left:var(--shelf-layout-plank-left,0);
     left:unset;
     margin-inline:auto;
}
 .rea-shelf-cover, .rea-shelf-cover > div {
     transform-style:preserve-3d;
     perspective:var(--shelf-perspective);
}
 .rea-standalone-cover {
     display:inline-block;
     width:min(100%,var(--rea-cover-width,220px));
     vertical-align:bottom;
     margin:1rem;
  
}
 .rea-standalone-cover > .rea-shelf-cover {
     width:100%;
     max-width:100%;
}
 .rea-standalone-cover .rea-shelf-cover > div {
     width:100%;
}
 .rea-shelf-cover > [role="button"]:focus-visible {
     outline:2px solid var(--triangle-text) !important;
     outline-offset:5px;
}
 @media (prefers-reduced-motion:reduce) {
     [data-respect-motion="true"] .rea-shelf-cover :is(.rea-book-object,.rea-book-front,.rea-book-page1,.rea-book-page2) {
         transition:none;
    }
}
/*here starts inected blocks to review*/
 .rea-standalone-cover {
     display:inline-block;
     width:min(100%,var(--rea-cover-width,fit-content));
     vertical-align:bottom;
     margin: .5rem;
     max-width: 400px!important;
     height: auto;
}
 .rea-shelf-covers {
     display: flex;
     justify-content: var(--shelf-align, center);
     align-items: flex-end;
     gap: var(--shelf-gap);
     width: var(--shelf-content);
     width: calc(var(--shelf-content) - var(--shelf-gap));
     margin-inline: auto;
     position: relative;
     z-index: 1;
     flex-wrap: wrap;
     flex-direction: row;
}
 .rea-shelf-cover {
     flex: 0 1 var(--shelf-layout-cover-size, var(--shelf-cover-size, 18%));
     max-width: var(--shelf-layout-cover-size, var(--shelf-cover-size, 18%));
     display: inline-flex !important;
     flex-direction: column;
     flex-wrap: nowrap;
     align-items: center;
     outline: none!important;
     & > div, & > div[class*="real3dflipbook-"] {
         padding-inline: var(--shelf-book-gutter-inline, 0) !important;
         padding-bottom: var(--shelf-book-gutter-bottom, 0) !important;
         padding-top: var(--shelf-book-gutter-top, 0) !important;
         display: inline-flex !important;
         flex-direction: column;
         flex-wrap: nowrap;
         align-items: stretch;
         gap: var(--shelf-gap);
         position: relative;
         align-content: stretch;
    }
}
/*selector for the cover thumnail's image container - removed padding and added font size control token, padding spacing i set through parent flexbox gap. remove inline styles and rely on classes*/
 .rea-shelf-cover > div > div, .rea-shelf-cover > .rea-shelf-cover-thumb {
     display: block;
     position: relative;
     width: 100%;
     object-fit: cover;
     perspective: var(--shelf-perspective);
     transform-style: preserve-3d;
     & img {
         max-width: 100%;
         box-shadow: var(--shelf-shadow);
         object-fit: cover;
         width: 100%!important;
         height: 100%;
         min-width: 100%;
         max-height: unset;
    }
}
 .rea-shelf-cover {
     outline: none!important;
     & > div:is([class*="real3dflipbook-"],:has(> span, > .rea-shelf-cover-text)){
         &:not(:hover) > :is(span, .rea-shelf-cover-text) {
            /* here we set the non hover opaity or non hover state styles to then set the defult or hovred styles below to avoid parental or inheritance issues,. */
             opacity: 0;
        }
    }
}
 .rea-shelf-cover > div > span, .rea-shelf-cover .rea-shelf-cover-text {
    /*this element is not meant to be fully cusomizeable for users, just toggling enable or disable for visibility. as it is only visible through hover state*/
     text-align: center;
     padding: var(--triangle-h) var(--triangle-h) !important;
     display: flex !important;
     font-size: var(--shelf-book-fs);
     background: var(--triangle-bg);
     outline: var(--triangle-border-w) solid var(--triangle-border);
     color: var(--triangle-text);
     position: absolute;
     inset: 0 0 0 0;
     bottom: calc(110% + var(--triangle-h));
     top: auto;
     min-height: fit-content;
     z-index: 1;
     flex-direction: row;
     flex-wrap: wrap;
     justify-content: center;
     align-items: center;
     outline-offset: 0px;
     transition: all 300ms ease;
     opacity: 1;
     max-width: max-content;
     white-space: normal;
    /* add a transform from the bpottom with 3d translate to make a cool effect on hover and out revealing of the text globe card */
    /* Nested Pseudo-element Rule */
     &::after {
         content: "";
         position: absolute;
         top: 100%;
         left: 50%;
         transform: translateX(-50%) translateY(-1px);
         width: var(--triangle-w);
         height: var(--triangle-h);
         background: var(--triangle-bg);
         clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
         pointer-events: none;
         z-index: 1;
    }
}
/*fixed plank foor size to make it cover visually all the books and make it dynamic through gap and a renewed tken width value*/
 .rea-shelf-plank {
     --shelf-content: 100%;
     display: block;
     width: var(--shelf-content);
     min-width: calc(var(--shelf-content) + var(--shelf-gap)*4);
     height: auto;
     margin-inline: auto;
     transform: translateY(var(--shelf-offset));
}
/* Responsive rows retain the owner's cover, tooltip and plank rules above. */
 .rea-shelf-row {
     width: var(--shelf-layout-row-width, var(--shelf-content));
     max-width: none;
}
 .rea-shelf-row {
     width: var(--shelf-content);
     max-width: calc(100% - var(--shelf-gap)*5);
     margin-inline: auto;
}
 .rea-shelf-row + .rea-shelf-row {
     margin-top: var(--shelf-row-gap);
}
 .rea-shelf-covers {
     --shelf-content: 100%;
}
 .rea-shelf-cover, .rea-shelf-cover > div {
     box-sizing: border-box;
     width: 100%;
}
 .rea-shelf-cover > div {
     padding: var(--shelf-book-gutter, 0) !important;
}
 .rea-shelf-cover img {
     display: block;
     width: 100%;
     height: auto;
}
 .rea-shelf-plank {
     max-width: unset;
}
 .rea-shelf-cover > div:not(:hover):not(:focus-within) > :is(span,.rea-shelf-cover-text) {
     opacity: 0;
     transform: translate3d(0,4px,0);
     pointer-events: none;
}
 .rea-shelf-cover > div:is(:hover,:focus-within) > :is(span,.rea-shelf-cover-text) {
     opacity: 1;
     transform: translate3d(0,0,0);
}
 .rea-responsive-shelf[data-titles="hidden"] .rea-shelf-cover > div:has(img) :is(span,.rea-shelf-cover-text) {
     display: none !important;
}
/* Keep Real3D's native text-only link when a legacy book has no thumbnail. */
 .rea-shelf-cover > div:not(:has(img)) > span {
     position: static;
     inset: auto;
     display: block !important;
     opacity: 1 !important;
     transform: none !important;
     pointer-events: auto !important;
     background: transparent;
     outline: none;
     padding: 0 !important;
     font-size: inherit;
}
 .rea-shelf-cover > div:not(:has(img)) > span::after {
     display: none;
}
 @media (prefers-reduced-motion: reduce) {
     .rea-shelf-cover span {
         transition: none;
    }
}
 .rea-shelf-covers {
     width: var(--shelf-layout-books-width, calc(100% - var(--shelf-gap)));
     /* pointer-events: none;
    */
     width: fit-content;
     /* max-width: 95%; */
}
 .rea-shelf-plank {
    /* width: var(--shelf-layout-plank-width,100%);
    */
     min-width:100%;
     margin-inline: auto;
     position:relative;
     left: auto;
     right: auto;
    /* left:var(--shelf-layout-plank-left,0);
     transform:translateY(var(--shelf-offset));
    */
}
 .rea-responsive-shelf[data-design] {
     max-width:var(--shelf-max-width-range);
     max-width: unset;
     background-color:var(--shelf-bg,transparent);
     border-block: 1px solid var(--border-color);
     padding-block: var(--shelves-section-pad);
     &[data-design]{
         display: flex !important;
         max-width: var(--shelf-max-width-range);
         flex-direction: row;
         align-items: center;
         flex-wrap: wrap;
         justify-content: center;
         align-content: stretch;
         &>.rea-shelf-row{
             display: flex !important;
             flex-direction: column;
             align-items: center;
             flex-wrap: nowrap;
             justify-content: flex-end;
             max-width:var(--shelf-max-width-range);
             flex: 0 1 auto;
             width: fit-content;
        }
    }
}
 .rea-shelf-cover img {
    /*box-shadow:var(--shelf-cover-shadow,var(--shelf-thumb-border-shadow)) !important;
    */
     outline: none!important;
}
 .rea-shelf-cover > div {
     cursor:pointer;
}
/*here ends inected blocks to review*/
 .rea-standalone-cover {
     max-width:calc(100% - 2rem);
}
 .rea-shelf-cover img {
     display:block;
     max-width:100%;
     height:auto;
}
 [data-cover-shadow] .rea-shelf-cover {
     position:relative;
}
 .rea-standalone-cover .rea-book-front {
     background:var(--rea-cover-fallback-bg,var(--shelf-bg,Canvas));
     color:var(--rea-cover-fallback-color,CanvasText);
     border-radius:var(--rea-cover-radius,1px);
}
 [data-cover-shadow="true"] .rea-shelf-cover{
  bottom: calc(var(--rea-shadow-height)*-1);
   &::before {
      content:"";
      position:absolute;
      pointer-events:none;
      left:50%;
      bottom:0;
      width:var(--rea-shadow-width);
      height:var(--rea-shadow-height);
      border-radius:50%;
      background:rgb(var(--rea-shadow-color) / var(--rea-shadow-opacity));
      filter:blur(var(--rea-shadow-blur));
      transform:translate(-50%,var(--rea-shadow-drop));
      transition:transform .35s ease,opacity .35s ease;
 }
   &:is(:hover,:focus-within)::before {
       transform:translate(-50%,var(--rea-shadow-hover-drop)) scaleX(.94);
       opacity:var(--rea-shadow-hover-opacity);
  }
 }
 [data-cover-shadow="true"] .rea-shelf-cover:is(:hover,:focus-within)::before {
     transform:translate(-50%,var(--rea-shadow-hover-drop)) scaleX(.94);
     opacity:var(--rea-shadow-hover-opacity);
}
 @media (prefers-reduced-motion:reduce) {
     [data-respect-motion="true"] .rea-shelf-cover::before {
         transition:none;
    }
}
 .rea-shelf-cover .rea-book-object {
     position:relative;
     width:100%;
     transform-style:preserve-3d;
     transform-origin:var(--_book-transform-origin,30% 50%);
     transition: transform 240ms ease;
     background-color:transparent;
     outline: none!important;
     perspective: var(--shelf-perspective);
    /*OWNER NOTE: this was done because the book was displaying a third ghost white page after the second and that was becasue the parent container tisaelf had a page displaying as well, so i turned the cotnainer wrapper object transparency and set thre third page equally as anothe thrid pge seamlessly, applying it as another selector on the after only, making it work like 1rs and second pages too. doint remove this and dont apply on paetn selector that will rtbake the entire design. */
     &:after{
         content:"";
         position:absolute;
         inset:0;
         pointer-events:none;
    }
}
 .rea-shelf-cover .rea-book-front, .rea-shelf-cover .rea-book-page1, .rea-shelf-cover .rea-book-page2 {
     transform-origin:left;
     transition:transform 280ms ease;
     width:100%;
     outline: none!important;
}
 .showcase-pdf-image, a.showcase-pdf-image {
     display:inline-flex!important;
     max-width:100%;
     height:auto;
     flex: 0 1 auto;
     padding: var(--shelf-gap,var(--ts-sp-3))!important;
     overflow: visible!important;
     & img {
         flex: 1 1 auto;
         display:inherit!important;
         width:100%!important;
         max-width:400px!important;
         height:auto!important;
         max-height:unset!important;
         object-fit: contain;
         scale: .95;
         transition: scale 300ms ease, opacity 300ms ease;
    }
     &:hover{
         img{
             scale: 1;
        }
    }
     & span[class*="image-overlay"]{
         display: none!important;
    }
}
 .rea-shelf-cover .rea-book-front, .rea-shelf-cover .rea-book-page1, .rea-shelf-cover .rea-book-page2 {
     transform-origin:left;
     transition: transform 380ms ease;
     width:100%;
     outline: none!important;
}
 .rea-shelf-cover {
     & .rea-book-front {
         outline: none!important;
         transform-origin: left;
         position:relative;
         transform: translateZ(var(--shelf-book-depth));
         backface-visibility:hidden;
         &::after {
             content:"";
             position:absolute;
             inset:0;
             pointer-events:none;
             background:var(--book-front-light-shade);
             transform: translateZ(var(--shelf-book-depth));
        }
    }
     &:not(:hover,:active,:focus,:focus-within,:focus-visible){
         --shelf-book-depth:0.5px;
    }
}
 .rea-shelf-cover .rea-book-page1, .rea-shelf-cover .rea-book-page2, .rea-shelf-cover .rea-book-object:after {
     position:absolute;
     inset:1% 0;
     height:98%;
     background-color:var(--shelf-paper);
     background-image: var(--_page-lines);
     --_page-lines: repeating-linear-gradient(0deg,var(--shelf-paper) 0 var(--_page-lines-w),var(--_page-lines-color) var(--_page-lines-w) var(--_page-lines-distance));
     --_page-lines-w: calc(var(--_page-lines-distance) - 1px);
     --_page-lines-distance: 8px;
     --_page-lines-color: color-mix(in srgb,var(--shelf-paper),var(--shelf-ink) 10%);
     --_page-shade-color: color-mix(in srgb,var(--shelf-paper),var(--shelf-ink) 20%);
     --_page-shade-shadow: inset 1em 0em 5em var(--_page-shade-color);
     --_page-border: inset -1px -1px 1px 0px rgb(0 0 0 / .11);
     box-shadow: var(--_page-border), var(--_page-shade-shadow);
}
/*FIX NOTE:NEED TO AKE THE PAGES SEPARATION EQUALLY PROPORTIONAL TO THE ROTATION AND NOT APPLYING A TRANSFOR TO EACH ONE. AND ALSO MAKLE A DYNAMIC GENERATION FOR THEM TO HAVE BETWEEN 2 AND 4 PAGES, AND ALSO AMKE AN AUTOMATIC NON CUSTOIZABLE Z INDEX AND SOLID DELAYED ON HOVER AND MOUSE OUT DELAYED ANIOMATION TRANSITIONS AND BULLETPROOF NON GLITTCHED AND Z INDEX TRANSFORM FIX. CURRENTLY IS BUGGY AND TRIS ON SOE INSTANCES. AND ON LOWER SCALES SOMETIMES BREAKS. NO SINGULAR INSTANCES FOR EACH PAGE THEY UST BE SARTLY CALCULATED AND GLOBAKL AUTOMATIC PARAMETERS FOR AL INNER PAGES. AND ALSO, THE AFTER APPLIED FOR THE BOOK OBJECT ELEMENT THAT CURRENTLY WORKS AS A LAST PAGE, SHOULD BE CURRENTLY WORK AS A BACK COVER. BUT THE ISSUE WOULD BE MAKE IT A REPLICA OF THE COVER PAGE WITHOUT ANY TETX OR ART, USING A SAMPLE OF ANY HEX COLOR REFERENCE EXTRACTED FRO THE COVER AND USING THE SAME SURFAC EORATERIAL PROPERTY AS THE FRONT COVER , AS ALSO SCALE OR GROWTH TO ,AKE IT WORK AS A BACK COVER, NOTT A LAST POAGE WITH DIFFERENT COLORT.*/
 [data-book-style="flat"] .rea-book-page1, [data-book-style="flat"] .rea-book-page2 {
     display:none;
}
 [data-book-style="flat"] .rea-book-front {
     transform:none;
}
 .rea-shelf-cover > [role="button"]:focus-visible {
     outline:2px none var(--shelf-thumb-border-color);
     outline-offset:5px;
}
 .rea-shelf-cover .rea-book-object {
     position:relative;
     width:100%;
     transform-origin:left;
     transition: transform 240ms ease;
     background-color:transparent;
     will-change: transform;
    /*OWNER NOTE: this was done because the book was displaying a third ghost white page after the second and that was becasue the parent container tisaelf had a page displaying as well, so i turned the cotnainer wrapper object transparency and set thre third page equally as anothe thrid pge seamlessly, applying it as another selector on the after only, making it work like 1rs and second pages too. doint remove this and dont apply on paetn selector that will rtbake the entire design. */
     &:after{
         content:"";
         position:absolute;
         inset:0;
         pointer-events:none;
    }
}
 .rea-responsive-shelf[data-material="metal"] {
     --shelf-plank-color: var(--_metal-surface);
}
 .rea-responsive-shelf[data-material="glass"] {
     --shelf-plank-color: var(--_glass-surface);
}
 .rea-responsive-shelf[data-material="wood"] {
     --shelf-plank-color: var(--_wood-surface);
}
 .rea-shelf-plank-css {
     height: var(--shelf-plank-depth);
     background: var(--shelf-plank-bg-grad);
     box-shadow: 0 8px 9px -5px rgb(0 0 0 / .45);
    /* isolation: isolate;
     */
}
 

/* Resolve book sizing against the shelf, never a shrink-to-fit partial row.
 * Flex still centers each incomplete row without stretching its books. */
.rea-responsive-shelf[data-design] > .rea-shelf-row {
    flex: 0 0 100%;
    width: var(--shelf-layout-row-width, 100%);
    max-width: 100%;
    min-width: 0;
}
.rea-responsive-shelf[data-design] > .rea-shelf-row > .rea-shelf-covers {
    width: var(--shelf-layout-books-width, 100%);
    max-width: 100%;
    min-width: 0;
}
.rea-responsive-shelf[data-design] .rea-shelf-cover {
    flex: 0 0 var(--shelf-layout-cover-size, var(--shelf-cover-size, 18%));
    max-width: var(--shelf-layout-cover-size, var(--shelf-cover-size, 18%));
    min-width: 0;
}
.rea-responsive-shelf[data-material="metal"] { --shelf-plank-color: var(--_metal-surface); }
.rea-responsive-shelf[data-material="glass"] { --shelf-plank-color: var(--_glass-surface); }
.rea-responsive-shelf[data-material="wood"] { --shelf-plank-color: var(--_wood-surface); }
.rea-shelf-plank-css {
    height: var(--shelf-plank-depth);
    background: var(--shelf-plank-bg-grad);
    box-shadow: 0 8px 9px -5px rgb(0 0 0 / .45);
}


/* Row breathing room belongs to the shelf, independently of the reader. */
.rea-responsive-shelf[data-design] {
    --shelf-edge-space: clamp(20px, 3vw, 48px);
    padding-inline: var(--shelf-edge-space);
}

/* Owner's single-cover surface: preserve its stacking and blur above headers. */
.single-r3d.single .rea-standalone-cover {
    max-width: unset !important;
    width: 100%;
    display: flex;
    padding: 5%;
    position: relative;
    margin: 0;
    background-color: rgb(125 125 125 / 0.05);
    border-block: 1px solid rgb(125 125 125 / 0.05);
    align-items: center;
    justify-content: center;
    z-index: 99999999;
    backdrop-filter: blur(80px);
    box-sizing: border-box;
    --shelf-perspective: 8000px;
}
.single-r3d.single .rea-standalone-cover > .rea-shelf-cover {
    flex: 0 1 420px;
    width: 100%;
    max-width: min(420px, 100%);
    min-width: 0;
}

/* The popup is a separate surface; never constrain the shelf with these rules. */
.flipbook-overlay > .flipbook-wrapper-transparent {
    width: min(100%, 1600px);
    max-width: 1600px;
    margin-inline: auto;
    inset-inline: 0;
}
.rea-reader-zoom-status {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgb(20 22 24 / .85);
    color: white;
    font: 12px/1.4 system-ui, sans-serif;
    pointer-events: auto;
}
.rea-reader-zoom-status button {
    appearance: none;
    padding: 3px 7px;
    border: 1px solid rgb(255 255 255 / .35);
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
@media (max-width: 560px) {
    .rea-reader-zoom-status {
        top: 12px;
        right: 72px;
        bottom: auto;
        left: auto;
        font-size: 11px;
    }
}

/* Owner single-page and reader styles — staging, November 21. */
#top .rea-reader-zoom-status,.flipbook-main-wrapper .rea-reader-zoom-status{
 --ts-btn-scale:.83;
 --ts-btn-fs-ratio:.42;
 --ts-btn-radius: var(--ts-radius-full, 999px);
 --ts-btn-h: calc(var(--ts-btn-size) * var(--ts-btn-h-ratio) * 1px);
 --ts-btn-size: calc(var(--ts-btn-base) * var(--ts-btn-scale));
 --ts-this-bg-border: color-mix(in srgb, var(--ts-this-bg), white 20%);
 --ts-this-bg: var(--ts-bg-1-t);
 border-radius: var(--ts-btn-radius)!important;
 position: fixed;
 bottom: 4px;
 left: 4px;
 top: auto;
 right: auto;
 z-index: 9999920;
 display: flex;
 align-items: center;
 gap: 2px;
 padding: 4px;
 border-radius: var(--ts-radius-full, 999px)!important;
 background: var(--ts-this-bg);
 border: 1px solid var(--ts-this-bg-border)!important;
 color: white;
 font: 13px/1.4 monospace, sans-serif;
 pointer-events: auto;
 box-sizing: border-box;
 display: inline-flex;
 font-size: var(--ts-btn-fs);
 backdrop-filter: blur(8px);
 flex-direction:row-reverse;
 font-family: var(--mainfont);
 & button {
  appearance: none;
  --ts-this-bg: var(--ts-bg-3);
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  letter-spacing: var(--ts-btn-ls);
  line-height: var(--ts-btn-lh);
  font-size: var(--ts-btn-fs);
  font-weight: var(--ts-btn-fw2, 700)!important;
  height: var(--ts-btn-h);
  max-height: var(--ts-btn-h);
  min-height: var(--ts-btn-h);
  min-width: var(--ts-btn-h);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-inline: var(--ts-btn-pad-x)!important;
  padding-block: var(--ts-btn-pad-y)!important;
  gap: var(--ts-btn-gap)!important;
  box-sizing: border-box;
  background-color: var(--ts-this-bg)!important;
  color: var(--ts-btn-color)!important;
  border: 1px solid;
  border-color: var(--ts-this-bg-border)!important;
  &:hover{
   --ts-this-bg: var(--ts-accent);
   --ts-btn-color: var(--ts-btn-color-hover);
  }
 }
 & output {
  display: inline-flex;
  flex: 1 1 auto;
  padding-inline: 10px;
  color:var(--ts-text-accent);
  font-weight: bold;
  font-size: 1.2em;
  word-spacing: -.5em;
  font-family: var(--mainfont);
 }
}
.flipbook-nav>span[role="button"] {
 font-size: 30px!important;
 filter: none!important;
 color: rgb(255, 255, 255);
 background: transparent!important;
 box-sizing: content-box!important;
}
/* Start Flipobook styles */
body.r3d-template-default,
body.single-r3d,
#top.r3d-template-default,
#top.single-r3d {
 & .rea-standalone-cover {
  max-width: unset !important;
  width: 100%;
  display: flex;
  padding: calc(5% + 1vmin) 0;
  position: relative;
  margin: 0;
  background-color: var(--enfold-main-color-bg);
  border-block: 1px solid var(--border-color);
  align-items: center;
  justify-content: center;
  z-index: 99999999;
  backdrop-filter: none;
  box-sizing: border-box;
  --shelf-perspective: 8000px;
  user-select: none;
  min-height: calc(100dvh - 50px);
  box-sizing: border-box;
  & div[class*="real3dflipbook"] {
   align-items: center;
   background: transparent;
   display: flex !important;
   margin: 0 auto !important;
   height: auto;
   max-height: unset;
   overflow: visible;
   padding: 0px !important;
   padding-bottom: var(--shelf-book-gutter-bottom, 0) !important;
   position: relative;
   justify-content: flex-end;
   align-content: center;
   flex-direction: column;
   flex-wrap: nowrap;
   min-height: auto;
   user-select: none;
  }
  & :is(.rea-shelf-cover,.rea-shelf-cover *,.rea-book-front,.rea-book-object ,.rea-book-object *),
  & .rea-shelf-cover .rea-book-object:after{
   --_page-shade-shadow: inset 1em 0em 5em var(--_page-shade-color);
   --_page-border: inset -1px -1px 1px 0px rgb(0 0 0 / .21);
   --_page-lines-color: color-mix(in srgb,transparent,var(--shelf-ink) 40%);
   --_page-shade-color: color-mix(in srgb,var(--shelf-paper),var(--shelf-ink) 7%);
   --_page-lines-distance: 20px;
   --_page-lines-w: calc(var(--_page-lines-distance) - 1px);
   --_page-lines: repeating-linear-gradient(0deg,var(--shelf-paper) 0 var(--_page-lines-w),var(--_page-lines-color) var(--_page-lines-w) var(--_page-lines-distance));
   & .rea-book-front {
    outline: 1px solid var(--_page-lines-color)!important;
    --shelf-shadow-inset: inset 0px 0px 2px var(--_page-lines-color);
    box-shadow: var(--shelf-shadow-inset)!important;
    --book-front-light-shade: linear-gradient(90deg,rgb(0 0 0 / .05) 0.85%, rgb(255 255 255 / .01) 2.5%,rgb(0 0 0 / .0) 4.85%,rgb(0 0 0 / 0.07) 5%,rgb(0 0 0 / .0) 75%,transparent);
    & img {
     max-width: 100%;
     object-fit: cover;
     width: 100%!important;
     height: auto;
     min-width: auto;
     max-height: unset;
    }
   }
  }
  &[data-cover-shadow="true"]{
   --shelf-book-gutter-bottom:var(--rea-shadow-height);
   --rea-shadow-height: 15px;
   & .rea-shelf-cover{}
  }
 }
}
