/* Namespaced to coexist with the product card and Slider Revolution layers. */
.nwh-ecard {
    display: block !important; position: relative; width: var(--nwh-card-width, 800px);
    max-width: 100%; padding: 6% 0; margin: 0; box-sizing: border-box;
    perspective: 2500px; cursor: pointer; touch-action: manipulation;
    background: transparent; border: 0; outline: none; white-space: normal;
    -webkit-tap-highlight-color: transparent;
}
.nwh-ecard:focus-visible { outline: 2px solid #0075c9; outline-offset: 6px; }
.nwh-ecard-book {
    position: relative; width: 100%; aspect-ratio: 2 / 1; transform-style: preserve-3d;
    transform: translateX(-25%) scale(1.2) rotateY(calc(-1 * var(--nwh-card-tilt, 5deg)));
    pointer-events: none;
}
.nwh-ecard-page { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; }
.nwh-ecard-left { left: 0; transform-origin: right center; transform: rotateY(calc(180deg - var(--nwh-card-tilt, 5deg))); z-index: 2; }
.nwh-ecard-right { left: 50%; transform-origin: left center; transform: rotateY(var(--nwh-card-tilt, 5deg)); }
.nwh-ecard-face { position: absolute; inset: 0; overflow: hidden; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 22px rgb(15 23 42 / 12%); }
.nwh-ecard .nwh-ecard-face img { display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: fill; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.nwh-ecard-cover { transform: rotateY(180deg); border-radius: 6px; }
.nwh-ecard-inside { border-radius: 6px 0 0 6px; }
.nwh-ecard-message { border-radius: 0 6px 6px 0; }
.nwh-ecard.is-ready .nwh-ecard-book, .nwh-ecard.is-ready .nwh-ecard-left { transition: transform var(--nwh-card-duration, 1.2s) ease-in-out; }
.nwh-ecard.is-intro { --nwh-card-duration: 2.8s; }
.nwh-ecard.is-open .nwh-ecard-book { transform: translateX(0) scale(1) rotateY(calc(-1 * var(--nwh-card-tilt, 5deg))); }
.nwh-ecard.is-open .nwh-ecard-left { transform: rotateY(calc(-1 * var(--nwh-card-tilt, 5deg))); }
@media (prefers-reduced-motion: reduce) {
    .nwh-ecard.is-ready .nwh-ecard-book, .nwh-ecard.is-ready .nwh-ecard-left { transition: none; }
}
