/* Mini Cart for WooCommerce - fake browser preview window (admin only).
   Loaded after admin.css. Ported from the PRO admin design. */

/* tab shell for the Progressive Bar tab (tab8) - same look as tab1..tab6 */
.whmcwraper div.tab8-tab { margin-top: 20px; padding-top: 11px; padding-left: 2%; }
.whmcwraper .tab-content .tab8-tab { border-radius: 16px; background: #fff; }

/* hosts: neutralise the old simple preview boxes */
.previewsidebar .menucartprev,
.previewsidebar .footercartprev,
.previewsidebar .prevnotifu {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    height: auto;
    width: 100%;
    position: relative;
}
.previewsidebar .prevnotifu { width: 100%; }

.whmc-admin-preview-window {
    width: 100%;
    max-width: 900px;
    height: 400px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #dcdcdc;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    direction: ltr;
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
}
.whmc-admin-preview-window *,
.whmc-admin-preview-window *::before,
.whmc-admin-preview-window *::after { box-sizing: border-box; }

.whmc-browser-header {
    height: 36px;
    min-height: 36px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid #ccc;
}
.whmc-browser-whmc-dots { display: flex; gap: 6px; }
.whmc-dot { width: 10px; height: 10px; border-radius: 50%; }
.whmc-dot.red { background-color: #ff5f56; }
.whmc-dot.yellow { background-color: #ffbd2e; }
.whmc-dot.green { background-color: #27c93f; }
.whmc-browser-address-bar {
    margin-left: 15px;
    background-color: #ffffff;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whmc-mock-website-body {
    flex: 1;
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    min-height: 0;
}
.whmc-mock-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #333;
}
.whmc-mock-menu { display: flex; align-items: center; gap: 18px; }
.whmc-mock-menu > span { font-size: 13px; color: #666; cursor: default; }
.whmc-mock-menu > span.active { color: #0073aa; }

.whmc-mock-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    color: #333;
    margin-left: 5px;
}
.whmc-admin-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #E91E63;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: bold;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.whmc-mock-cart-icon .gg-shopping-bag { --ggs: 1; }

.gg-shopping-bag { transform: scale(var(--ggs, 1)); }
.gg-shopping-bag,
.gg-shopping-bag::after {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid;
    border-radius: 3px;
}
.gg-shopping-bag::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 6px;
    border-bottom-left-radius: 120px;
    border-bottom-right-radius: 120px;
    border-top: 0;
    top: 2px;
    left: 3px;
}

.whmc-mock-content {
    overflow: hidden;
    position: relative;
    padding: 20px 30px;
    flex: 1;
}
/* footer floating button: default bottom-right (JS inline styles override) */
.whmc-mock-content > .shopping-cart { right: 3%; bottom: 3%; }

/* "This is a Premium Icon" notice inside the window */
.whmc-mock-content span.kkkpreview,
.whmc-mock-content span.kkkpreviewss {
    top: 6px !important;
    width: 86% !important;
    font-size: 13px !important;
    padding: 4px !important;
    z-index: 5;
}

.whmc-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.whmc-product-card { height: 120px; background-color: #f1f3f5; border-radius: 6px; border: 1px dashed #ced4da; }

/* notification tab: keep the toast inside the window */
.whmc-admin-preview-window .whmc_btm_notification { padding: 10px 20px; }

/* progressive bar */
.whmc-sticky-footer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #e75c43;
    color: #ffffff;
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
}
.whmc-sbar-content { text-align: center; line-height: 1.4; padding: 0 20px; }
.whmc-achieved-text { margin-right: 6px; }
.whmc-achieved-text strong,
.whmc-remaining-text strong { font-weight: 700; }
.whmc-close-bar-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}
.whmc-close-bar-btn:hover { opacity: 1; }
.whmc-admin-preview-window .whmc-sticky-footer-bar.whmc-preview-top {
    position: relative;
    bottom: auto;
    top: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* PRO notice on the progressive tab */
.whmc-pro-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 2% 18px 0;
    padding: 14px 18px;
    background: #fff5f5;
    border: 1px solid #f3c4c3;
    border-left: 4px solid #E24B4A;
    border-radius: 6px;
}
.whmc-pro-notice p { margin: 0; font-size: 14px; color: #3c434a; }
.whmc-pro-notice .button-primary { background: #E24B4A; border-color: #E24B4A; }
.whmc-pro-notice .button-primary:hover { background: #c93c3b; border-color: #c93c3b; }
.whmc-pro-upgrade-link { text-align: center; color: #000; }

/* ---- PRO settings ported from the PRO plugin (checkpoints editor + gifts slider design) ---- */
/* ---- reward checkpoints editor ---- */
.whmc-cp-wrap { max-width: 900px; }
.whmc-cp-row { position: relative; background: #fff; border: 1px dashed #8c8f94; border-radius: 6px; padding: 14px 16px 10px; margin: 0 0 12px; }
.whmc-cp-del { position: absolute; top: 6px; right: 8px; border: 0; background: transparent; font-size: 22px; line-height: 1; color: #b32d2e; cursor: pointer; }
.whmc-cp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.whmc-cp-f { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.whmc-cp-f input[type="text"], .whmc-cp-f input[type="number"], .whmc-cp-f select { width: 100%; max-width: none; font-weight: 400; }
.whmc-cp-f em { font-weight: 400; color: #646970; font-size: 12px; }
.whmc-cp-wide { grid-column: 1 / -1; }
.whmc-cp-enable { flex-direction: row; align-items: center; gap: 10px; }
.whmc-cp-row .whmc-cp-only-discount, .whmc-cp-row .whmc-cp-only-gift, .whmc-cp-row .whmc-cp-only-ship { display: none; }
.whmc-cp-row[data-type="discount"] .whmc-cp-only-discount, .whmc-cp-row[data-type="gift"] .whmc-cp-only-gift, .whmc-cp-row[data-type="freeshipping"] .whmc-cp-only-ship { display: flex; }
.whmc-cp-row[data-type="freeshipping"] .whmc-cp-only-ship { display: block; }
.whmc-cp-row[data-type="freeshipping"] .whmc-cp-amount { display: none; }
.whmc-cp-label input { width: 280px; }

/* Checkpoint: fixed Free Shipping row + Gifts slider design fields */
.whmc-cp-row[data-type="freeshipping"] { border-style: solid; border-color: #2271b1; background: #f6faff; }
.whmc-cp-fixedtype { display: inline-block; padding: 6px 10px; background: #e7f1fb; border-radius: 4px; color: #135e96; font-weight: 600; }
.whmc-gd-wrap { max-width: 900px; }
.whmc-gd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; background: #fff; border: 1px dashed #8c8f94; border-radius: 6px; padding: 14px 16px; }
.whmc-gd-f { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.whmc-gd-f input[type="text"], .whmc-gd-f input[type="number"] { width: 100%; max-width: none; font-weight: 400; }
.whmc-gd-f em { font-weight: 400; color: #646970; font-size: 12px; }
.whmc-gd-wide { grid-column: 1 / -1; }

p.whmcnotice { color: #8f8f8f; font-style: italic; padding-bottom: 0; }
