/* ==========================================================================
   Admin side cart preview.
   front-preview.css is the front end stylesheet scoped to ".whmc-fp"; this file only
   turns the "fixed drawer" of the shop into a box that sits inside the settings page.
   Nothing about the DESIGN is changed here.
   ========================================================================== */
.whmc-preview-col { background: #8f9096; padding: 10px; border-radius: 6px; }
.whmc-fp { position: sticky; top:0px; display: block; }
.whmc-fp .whmc-fp-wrapper { position: relative; width: 100%; }

.whmc-fp #pm_menu,
.whmc-fp #pm_menu.pm_open {
    position: relative !important;
    left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
    transform: none !important;
    -webkit-animation: none !important; animation: none !important;
    visibility: visible !important; opacity: 1 !important;
    width: 100% !important;
    max-width: var(--menu-width, 420px);
    height: min(700px, calc(100vh - 110px)) !important;
    margin: 0 auto !important;
    z-index: 1;
    overflow: hidden;
    box-sizing: border-box;
    border: 0;
}
/* the slide-in panels (coupon list / shipping) live inside the drawer, hidden until opened */
.whmc-fp .whmc-coupon, .whmc-fp .whmc-modal { z-index: 20; }
.whmc-fp .whmc-coupon.sidecartright, .whmc-fp .whmc-modal.sidecartright { transform: none; }

/* the preview is not clickable like the shop, so links must not look like they navigate */
.whmc-fp a { cursor: default; }
.whmc-fp .whmc-sgeested-drawer { display: none; }

/* drag & drop edit mode (see whmc-layout-admin.js) keeps working on the same markup */
.whmc-fp .whmc-remove, .whmc-fp .whmc-qty-chng { cursor: default; }

/* ---- things the shop's theme/WooCommerce CSS normally provide, missing in the admin ---- */
.whmc-fp img { max-width: 100%; height: auto; }
.whmc-fp .whmimagewrapper img { display: block; width: 100%; height: auto; }
.whmc-fp .whmc-gift-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* header + progress bar must never be clipped by a wrapper */
.whmc-fp .whmc-progress-track, .whmc-fp .whmcwscsbbarerat, .whmc-fp .whmc-progress-bar-container { overflow: visible; }
