/* =========================
   ADMIN LAYOUT
========================= */
.wbm-layout {
    display: flex;
    gap: 30px;
}

.wbm-left {
    flex: 1;
    max-width: 650px;
}

.wbm-right {
    width: 300px;
}

#wbm-preview-box {
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 20px;
    height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   BADGE WRAPPER
========================= */
.wbm-badge-wrap {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    z-index: 9999;
    pointer-events: none;
}

/* =========================
   Woo Shop Image Padding
========================= */
.product-loop .product-thumb img {
    padding-top: 8px;
}



/* =========================
   BADGE CORE
========================= */
.wbm-badge {

    /* LINE HEIGHT CONTROL ONLY */
    --wbm-line-height: 15px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    text-align: center;
    font-weight: 500;
    color: #fff;

    /* IMPORTANT FIX */
    font-size: inherit;

    /* LOCK spacing */
    line-height: var(--wbm-line-height) !important;

    padding: 6px 16px;
    margin: 0;

    border-radius: 0;
    border-top-right-radius: 20px;

    box-sizing: border-box;

    word-break: break-word;
    overflow: hidden;
}


/* =========================
   TEXT NORMALIZATION (WITHOUT BREAKING FONT SIZE)
========================= */
.wbm-badge *,
.wbm-text *,
#wbm-preview-badge * {

    /* ONLY control spacing */
    line-height: var(--wbm-line-height) !important;

    /* remove unwanted spacing */
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================
   REMOVE BLOCK ELEMENT GAPS
========================= */
.wbm-badge p {
    display: inline !important;
}


/* =========================
   PREVIEW (ADMIN)
========================= */
#wbm-preview-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    text-align: center;
    color: #fff;
}


/* =========================
   WOOCOMMERCE POSITION FIX
========================= */
.woocommerce ul.products li.product,
.woocommerce div.product div.images {
    position: relative;
}