/* Apply trane-badge-frame to the image-only container, and
   trane-badge-overlay to its sibling Elementor Shortcode widget. */
.trane-badge-frame { position: relative !important; }
.trane-badge-frame .elementor-widget-shortcode.trane-badge-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 5;
    pointer-events: none;
    border-radius: inherit;
    overflow: hidden;
}
.trane-badge-overlay > .elementor-widget-container,
.trane-badge-overlay > .elementor-widget-container > .elementor-shortcode,
.trane-badge-overlay > .elementor-shortcode {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}
.trane-badges {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
    pointer-events: none;
    border-radius: inherit;
}
.trane-badge {
    display: inline-block;
    background: var(--trane-badge-bg, #F6F3EC);
    color: var(--trane-badge-fg, #625646);
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: var(--trane-badge-font-size, 10px);
    font-weight: 400;
    line-height: 1.3;
    max-width: 100%;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}
.trane-badges.trane-badges--sold {
    background: rgba(24, 28, 32, 0.48);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.trane-badges--sold > .trane-badge {
    background: transparent;
    color: #FFFFFF;
    border-radius: 0;
    padding: 0;
    font-family: inherit;
    font-size: var(--trane-sold-font-size, 40px);
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}
.trane-image-frame { position: relative; width: 100%; }
.trane-image-link { position: relative; display: block; border-radius: inherit; }
.trane-image-frame .trane-product-image { display: block; width: 100%; height: auto; }
.trane-image-frame > .trane-badges,
.trane-image-link > .trane-badges {
    position: absolute;
    inset: 0;
    z-index: 5;
}
@media (max-width: 480px) {
    .trane-badge { padding: 7px 9px; }
    .trane-badges--sold > .trane-badge { padding: 0; }
}
