/* ===== Drag & drop layout editor (side cart preview) ===== */
.whmc-le-toolbar { margin: 0 0 8px; padding: 8px 10px; background: #fff; border-radius: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.whmc-le-toolbar .dashicons { vertical-align: text-bottom; width: 16px; height: 16px; font-size: 16px; }
.whmc-le-hint { flex: 1 1 100%; font-size: 12px; color: #50575e; line-height: 1.4; }
.whmc-le-hint.is-dirty { color: #b32d2e; font-weight: 600; }
.whmc-le-hidden { display: none !important; }

.whmc-le-on .whmc-zone { position: relative; min-height: 38px; outline: 2px dashed #a5b4fc; outline-offset: -2px; }
.whmc-le-on .whmc-zone-top { display: block !important; }
.whmc-le-on .whmc-zone::after { content: attr(data-label); position: absolute; right: 4px; top: 2px; font: 600 9px/1 sans-serif; color: #6366f1; text-transform: uppercase; letter-spacing: .5px; pointer-events: none; z-index: 40; }
.whmc-le-on .whmc-blk { position: relative; outline: 1px dashed #818cf8; outline-offset: -1px; }
.whmc-le-on .whmc-iblk { position: relative; outline: 1px dotted #f59e0b; outline-offset: 1px; }
.whmc-le-on .whmc-il-col { min-width: 26px; min-height: 26px; outline: 1px dashed #fcd34d; }
.whmc-le-on .whmc-il-col-empty { display: flex !important; }
.whmc-le-on .whmc-il-empty { display: none !important; }

.whmc-handle { position: absolute; top: 0; left: 0; z-index: 60; display: inline-flex; align-items: center; gap: 2px; padding: 2px 5px 2px 2px; background: #4f46e5; color: #fff; font: 600 10px/1.2 sans-serif; border-radius: 0 0 4px 0; cursor: grab; white-space: nowrap; text-transform: none; }
.whmc-handle .dashicons { width: 12px; height: 12px; font-size: 12px; }
.whmc-handle-item { background: #f59e0b; padding: 1px; border-radius: 0 0 3px 0; }
.whmc-handle:active { cursor: grabbing; }

.whmc-ph { background: #e0e7ff; border: 2px dashed #6366f1; min-height: 28px; box-sizing: border-box; visibility: visible !important; }
.ui-sortable-helper { box-shadow: 0 8px 24px rgba(0,0,0,.25); background: #fff; opacity: .92; z-index: 999999 !important; }

/* ===== Layout editor: large pop-up window ===== */
.whmc-le-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .65); z-index: 100000; }
body.whmc-le-open { overflow: hidden; }
.previewsidebar.menucagd.whmc-le-on { position: fixed !important; z-index: 100001; top: 3vh; bottom: 3vh; left: 0; right: 0; margin: 0 auto !important; width: min(680px, 94vw); max-width: none; padding: 0 18px 18px !important; background: #f3f4f6; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.45); overflow-y: auto; }
.whmc-le-on .whmc-le-toolbar { position: sticky; top: 0; z-index: 100; margin: 0 -18px 12px; padding: 12px 18px; border-radius: 10px 10px 0 0; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.whmc-le-on p.seefrotns { display: none; }
.whmc-le-on #pm_menu { max-width: 620px !important; width: 100%; height: auto !important; max-height: none !important; margin: 0 auto; }
.whmc-le-on .whmc-cart-item-wrap { height: auto !important; max-height: none !important; overflow: visible !important; }
.whmc-le-on .whmc-bottom-part { height: auto !important; max-height: none !important; overflow: visible !important; }
/* more air so nothing overlaps */
.whmc-le-on .whmc-zone { padding-top: 16px; padding-bottom: 8px; min-height: 56px; }
.whmc-le-on .whmc-blk { margin: 10px 0; padding-top: 20px; }
.whmc-le-on .whmc-iblk { margin: 4px 0; padding-top: 14px; }
.whmc-le-on .whmc-il-col { padding: 4px; min-width: 44px; }
.whmc-le-on .whmc-cart-items-inner { gap: 14px; }
.whmc-le-on .whmc-handle { font-size: 11px; padding: 3px 7px 3px 3px; }

/* ===== Layout editor: remove (x) / restore ===== */
.whmc-removed { display: none !important; }
.whmc-handle .whmc-x { margin: 0 0 0 6px; padding: 0 5px; min-height: 0; height: 16px; line-height: 14px; border: 0; border-radius: 3px; background: rgba(255,255,255,.25); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.whmc-handle .whmc-x:hover { background: #dc2626; }
.whmc-handle-item .whmc-x { margin-left: 2px; height: 14px; line-height: 12px; padding: 0 4px; font-size: 12px; }
.whmc-le-tray { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.whmc-restore { border: 1px dashed #6366f1; background: #eef2ff; color: #3730a3; border-radius: 12px; padding: 2px 10px; cursor: pointer; font-size: 12px; }
.whmc-restore:hover { background: #4f46e5; color: #fff; }

/* ===== Template gallery ===== */
.whmc-tpl-bar { margin: 0 0 8px; padding: 8px 10px; background: #fff; border-radius: 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.whmc-tpl-bar .dashicons { vertical-align: text-bottom; width: 16px; height: 16px; font-size: 16px; }
.whmc-tpl-note { font-size: 12px; color: #50575e; }
body.whmc-tpl-open-body { overflow: hidden; }
.whmc-tpl-modal { position: fixed; inset: 0; z-index: 100100; background: rgba(15,23,42,.7); display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; }
.whmc-tpl-window { background: #f3f4f6; width: min(1100px, 96vw); max-height: 94vh; border-radius: 12px; display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0,0,0,.5); overflow: hidden; }
.whmc-tpl-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.whmc-tpl-head h2 { margin: 0; font-size: 18px; }
.whmc-tpl-close { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #6b7280; }
.whmc-tpl-grid { padding: 18px 20px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.whmc-tpl-card { background: #fff; border: 2px solid transparent; border-radius: 10px; padding: 10px; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.whmc-tpl-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.whmc-tpl-card.is-selected { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.2); }
.whmc-tpl-mock { border: 1px solid; border-radius: 8px; overflow: hidden; pointer-events: none; }
.whmc-tpl-meta { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.whmc-tpl-meta b { font-size: 14px; }
.whmc-tpl-meta small { color: #6b7280; line-height: 1.35; }
.whmc-tpl-tag { align-self: flex-start; font-size: 11px; background: #eef2ff; color: #3730a3; padding: 1px 8px; border-radius: 10px; }
.whmc-tpl-foot { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 20px; background: #fff; border-top: 1px solid #e5e7eb; }
.whmc-tpl-warn { margin-right: auto; font-size: 12px; color: #50575e; }

/* ===== Drag & drop layout (only active when a layout is saved) ===== */
#pm_menu .whmc-zone-top { flex: 0 0 auto; }
#pm_menu .whmc-zone-top:empty { display: none; }
#pm_menu .whmc-zone > .whmc-custom-html:empty { display: none; }
#pm_menu .whmc-bottom-part.whmc-zone { box-sizing: border-box; }

.whmc-cart-items-inner.whmc-il-on { align-items: flex-start; gap: 10px; }
.whmc-cart-items-inner.whmc-il-on > .whmc-item-desc-wrap { flex: 1 1 0; min-width: 0; width: auto; }
.whmc-il-on .whmc-il-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; box-sizing: border-box; }
.whmc-il-on .whmc-il-mid { flex: 1 1 0; width: auto; padding: 0; }
.whmc-il-on .whmc-il-left,
.whmc-il-on .whmc-il-right { flex: 0 0 auto; }
.whmc-il-on .whmc-il-left { max-width: 40%; }
.whmc-il-on .whmc-il-col-empty { display: none; }
.whmc-il-on .whmc-il-empty { display: none; }
.whmc-il-on .whmc-il-col > .whmimagewrapper { width: 84px; max-width: 100%; }
.whmc-il-on .whmc-il-right { align-items: flex-end; }
.whmc-il-on .whmc-il-col > .whmcsavevalus,
.whmc-il-on .whmc-il-col > .slavebt { text-align: inherit; }



/* ---- panel settings: tidy layout (replaces the first version) ---- */
.whmc-panel-row th{width:210px;vertical-align:top;padding-top:14px}
.whmc-panel-row .whmc-subhead,.whmc_rewradbar th {
    width: 100%;
    background: #e6f9fb;
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1d2327;
    border-left: 4px solid #2271b1;
    padding: 8px 0 8px 10px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.whmc-panel-row td:empty{display:none}
.whmc-pv-row th{display:none}
.whmc-pv-row td{display:block;padding:0}
.whmc-bgf{background:#f6f7f7;border:1px solid #dcdcde;border-radius:8px;padding:12px 14px;max-width:520px}
.whmc-bgf-line{display:flex;align-items:center;gap:10px;margin:0 0 10px;flex-wrap:wrap}
.whmc-bgf-lbl{width:110px;font-weight:600;font-size:13px;margin:0}
.whmc-bgf-line select{min-width:200px}
.whmc-bgf-line .wp-picker-container{margin:0}
.whmc-bgf-thumb{width:54px;height:54px;border:1px solid #ccd0d4;border-radius:6px;background:#fff center/contain no-repeat}
.whmc-bgf-common{border-top:1px dashed #c3c4c7;padding-top:10px;margin-top:4px}
.whmc-bgf-opv{min-width:38px;font-weight:600}
.whmc-bgf-op{width:200px}
/* live preview card */
.whmc-pv{max-width:340px;margin:0 0 12px}
.whmc-pv-cap{font-size:11px;font-weight:700;text-transform:uppercase;color:#2271b1;margin-bottom:6px}
.whmc-pv-box{height:300px;border:1px solid #cfd2d6;border-radius:10px;overflow:hidden;background:#ebebeb;padding:0 0 8px}
.whmc-pv-title{background:#fff;padding:12px;text-align:center;font-size:14px;border-bottom:1px solid #d3d3d3;margin-bottom:8px;color:#212121}
.whmc-pv-card{display:flex;align-items:center;gap:10px;background:#fff;margin:0 8px 8px;padding:8px;border-radius:6px}
.whmc-pv-img{width:44px;height:44px;border-radius:5px;background:#dfe3e8;flex:none}
.whmc-pv-nm{flex:1;display:flex;flex-direction:column;gap:3px;font-size:13px}
.whmc-pv-nm a{font-weight:600;text-decoration:underline;color:#212121}
.whmc-pv-price{font-weight:400;color:#212121}
.whmc-pv-btn{display:inline-block;background:#1e73be;color:#fff;font-size:10px;text-transform:uppercase;padding:9px 12px;border-radius:5px}
.whmc-pv-ship .whmc-pv-box{background:#fff;padding:16px}
.whmc-pv-txt{font-size:13px;margin-bottom:10px;color:#3a3a3a}
.whmc-pv-field{border:1px solid #c3c4c7;border-radius:5px;padding:8px;margin-bottom:12px;font-size:13px;background:transparent;color:#3a3a3a}

/* fourth product-row column + column resizing */

.whmc-le-on .whmc-il-rz { flex: 0 0 8px; align-self: stretch; cursor: col-resize; background: #c7d2fe; border-radius: 4px; min-height: 30px; position: relative; }
.whmc-le-on .whmc-il-rz:hover, body.whmc-il-resizing .whmc-il-rz { background: #6366f1; }
body.whmc-il-resizing { cursor: col-resize; user-select: none; }


/* ===== Free plugin: locked PRO tools (Design panel, notice, gallery) ===== */
.whmc-pro-design-ui { margin: 0 0 8px; }
.whmc-pro-design-ui .whmc-le-toolbar,
.whmc-pro-design-ui .whmc-tpl-bar { margin: 0 0 8px; }
.whmc-pro-design-ui .whmcnewspro,
.whmc-tpl-head .whmc-pro-modal-badge { margin-left: 4px; }
.whmc-pro-lock { cursor: pointer; }
.whmc-pro-modal { position: fixed; inset: 0; z-index: 100200; background: rgba(15,23,42,.65); display: flex; align-items: center; justify-content: center; padding: 20px; }
.whmc-pro-modal-box { position: relative; background: #fff; border-radius: 12px; padding: 30px 32px 26px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.whmc-pro-modal-box h3 { margin: 12px 0 8px; font-size: 18px; }
.whmc-pro-modal-box p { margin: 0 0 18px; color: #50575e; font-size: 14px; line-height: 1.5; }
.whmc-pro-modal-x { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #6b7280; }
.whmc-pro-modal-badge { display: inline-block; background: #E24B4A; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 2px 9px; border-radius: 4px; vertical-align: middle; }
.whmc-pro-modal-box .button-primary { background: #E24B4A; border-color: #E24B4A; }
.whmc-pro-modal-box .button-primary:hover { background: #c93c3b; border-color: #c93c3b; }
.whmc-tpl-body { display: flex; min-height: 0; flex: 1; overflow: hidden; }
/* the preview column holds the design panel above the cart */
.whmc-preview-col .previewsidebar { position: relative; }

/* PRO settings are hidden until the "Display Pro" switch is on */
body.whmc-hide-pro tr.whmc-pro-field,
body.whmc-hide-pro .whmc-pro-nav { display: none !important; }

/* preview: PRO parts of the side cart stay hidden until "Display Pro" is on */
body.whmc-hide-pro .whmc-fp .whmcwscsbbarerat,
body.whmc-hide-pro .whmc-fp .whmcrewrdbarbtmend,
body.whmc-hide-pro .whmc-fp .whmc-gifts-section,
body.whmc-hide-pro .whmc-fp .whmc-bought-count-badge,
body.whmc-hide-pro .whmc-fp .whmc-select-option-btn,
body.whmc-hide-pro .whmc-fp .jfstocmange,
body.whmc-hide-pro .whmc-fp .whmc-item-qty,
body.whmc-hide-pro .whmc-fp .whmc-sale-time-badge,
body.whmc-hide-pro .whmc-fp .couplonfield,
body.whmc-hide-pro .whmc-fp .whmcdicamountswrap,
body.whmc-hide-pro .whmc-fp .shippinfrescla,
body.whmc-hide-pro .whmc-fp .taxrates,
body.whmc-hide-pro .whmc-fp .whmc-cart-discount-wrap,
body.whmc-hide-pro .whmc-fp .mcfwc-estimated-delivery,
body.whmc-hide-pro .whmc-fp .whmc-related-products,
body.whmc-hide-pro .whmc-fp .whmc-clear-cart,
body.whmc-hide-pro .whmc-fp .whmc-custom-html { display: none !important; }

/* item delete button: trash icon on the right of the item title (not the round cross on the left) */

.whmc-fp .cart-item-data-title .whmc-remove { display: block; }

/* ---- rules the PRO admin.css has for the side cart preview (item layout, badges, zones) ---- */
.whmc-zone.whmc-zone-top {
	position: relative;
}
.whmc-bought-count-badge {
	padding: 2px 10px; background: #f7f7f7; color: #000000; border-radius: 10px;
}
.whmc-le-on .whmc-zone {
	position: relative; min-height: 38px; outline: 2px dashed #a5b4fc; outline-offset: -2px;
}
.whmc-le-on .whmc-zone {
	padding-top: 16px; padding-bottom: 8px; min-height: 56px;
}
.whmc-le-on .whmc-zone-top {
	display: block !important;
}
.whmc-le-on .whmc-zone::after {
	content: attr(data-label); position: absolute; right: 4px; top: 2px; font: 600 9px/1 sans-serif; color: #6366f1; text-transform: uppercase; letter-spacing: .5px; pointer-events: none; z-index: 40;
}
.whmc-le-on .whmc-il-col {
	min-width: 26px; min-height: 26px; outline: 1px dashed #fcd34d;
}
.whmc-le-on .whmc-il-col {
	padding: 4px; min-width: 44px;
}
.whmc-le-on .whmc-il-col-empty {
	display: flex !important;
}
.whmc-le-on .whmc-il-empty {
	display: none !important;
}
.whmc-le-on #pm_menu {
	max-width: 620px !important; width: 100%; height: auto !important; max-height: none !important; margin: 0 auto;
}
.whmc-le-on .whmc-cart-item-wrap {
	height: auto !important; max-height: none !important; overflow: visible !important;
}
.whmc-le-on .whmc-bottom-part {
	height: auto !important; max-height: none !important; overflow: visible !important;
}
.whmc-le-on .whmc-cart-items-inner {
	gap: 14px;
}
#pm_menu .whmc-zone-top {
	flex: 0 0 auto;
}
#pm_menu .whmc-zone-top:empty {
	display: none;
}
#pm_menu .whmc-zone > .whmc-custom-html:empty {
	display: none;
}
#pm_menu .whmc-bottom-part.whmc-zone {
	box-sizing: border-box;
}
.whmc-cart-items-inner.whmc-il-on {
	align-items: flex-start; gap: 10px;
}
.whmc-cart-items-inner.whmc-il-on > .whmc-item-desc-wrap {
	flex: 1 1 0; min-width: 0; width: auto;
}
.whmc-il-on .whmc-il-col {
	display: flex; flex-direction: column; gap: 4px; min-width: 0; box-sizing: border-box;
}
.whmc-il-on .whmc-il-mid {
	flex: 1 1 0; width: auto; padding: 0;
}
.whmc-il-on .whmc-il-left, .whmc-il-on .whmc-il-right {
	flex: 0 0 auto;
}
.whmc-il-on .whmc-il-left {
	max-width: 40%;
}
.whmc-il-on .whmc-il-col-empty {
	display: none;
}
.whmc-il-on .whmc-il-empty {
	display: none;
}
.whmc-il-on .whmc-il-col > .whmimagewrapper {
	width: 84px; max-width: 100%;
}
.whmc-il-on .whmc-il-right {
	align-items: flex-end;
}

.whmc-il-on .whmc-il-col > .whmcsavevalus, .whmc-il-on .whmc-il-col > .slavebt {
	text-align: inherit;
}
.whmc-le-on .whmc-il-rz {
	flex: 0 0 8px; align-self: stretch; cursor: col-resize; background: #c7d2fe; border-radius: 4px; min-height: 30px; position: relative;
}
.whmc-le-on .whmc-il-rz:hover, body.whmc-il-resizing .whmc-il-rz {
	background: #6366f1;
}
body.whmc-il-resizing {
	cursor: col-resize; user-select: none;
}

/* delete button is an in-flow trash icon (right side), never floated over the product image */

.whmc-fp .whmc-item-price { white-space: nowrap; }

/* item list is never cut by a fixed height; quantity box always stays one row */
.whmc-fp #pm_menu .whmc-cart-item-wrap,
.whmc-fp #pm_menu .whmc-scroll-mid > .whmc-cart-item-wrap,
.whmc-fp #pm_menu .whmc-scroll-mid > .whmc-bottom-part { height: auto !important; max-height: none !important; }
.whmc-fp #pm_menu .whmc-item-qty { display: inline-flex; flex-direction: row !important; flex-wrap: nowrap !important; width: fit-content !important; height: auto !important; align-items: stretch; }
.whmc-fp #pm_menu .whmc-item-qty > * { flex: 0 0 auto; }
