.box-image,
.product-images,
.product-gallery,
.woocommerce-product-gallery,
.woocommerce-loop-product__link,
.wc-block-components-product-image,
.wc-block-grid__product-image,
.wp-block-woocommerce-product-image,
.product-thumbnail,
.woocommerce ul.products li.product,
li.product,
.type-product,
.product-small,
.product-main {
    position: relative;
}

.rd-sync-wrap {
    position: absolute !important;
    inset: 0 !important;
    z-index: 9 !important;
    pointer-events: none !important;
    display: block !important;
}

.rd-fallback-badge-data {
    position: absolute !important;
    inset: 0 !important;
    z-index: 9 !important;
    pointer-events: none !important;
    display: block !important;
}

.rd-badge {
    position: absolute !important;
    z-index: 9 !important;
    display: inline-block !important;
    padding: var(--rd-pad-y, 0.4em) var(--rd-pad-x, 0.8em);
    font-size: var(--rd-font-size, 13px);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    margin: 0 !important;
    box-sizing: border-box;
}

.rd-badge-pos-top-left { top: calc(var(--rd-offset-y, 10px) + var(--rd-stack-offset, 0px)) !important; left: var(--rd-offset-x, 10px) !important; right: auto !important; bottom: auto !important; transform: scale(var(--rd-scale, 1)) !important; transform-origin: top left !important; }
.rd-badge-pos-top-center { top: calc(var(--rd-offset-y, 10px) + var(--rd-stack-offset, 0px)) !important; left: calc(50% + var(--rd-offset-x, 0px)) !important; right: auto !important; bottom: auto !important; transform: translateX(-50%) scale(var(--rd-scale, 1)) !important; transform-origin: top center !important; }
.rd-badge-pos-top-right { top: calc(var(--rd-offset-y, 10px) + var(--rd-stack-offset, 0px)) !important; right: var(--rd-offset-x, 10px) !important; left: auto !important; bottom: auto !important; transform: scale(var(--rd-scale, 1)) !important; transform-origin: top right !important; }
.rd-badge-pos-middle-left { top: calc(50% + var(--rd-offset-y, 0px) + var(--rd-stack-offset, 0px)) !important; left: var(--rd-offset-x, 10px) !important; right: auto !important; bottom: auto !important; transform: translateY(-50%) scale(var(--rd-scale, 1)) !important; transform-origin: center left !important; }
.rd-badge-pos-middle-center { top: calc(50% + var(--rd-offset-y, 0px) + var(--rd-stack-offset, 0px)) !important; left: calc(50% + var(--rd-offset-x, 0px)) !important; right: auto !important; bottom: auto !important; transform: translate(-50%, -50%) scale(var(--rd-scale, 1)) !important; transform-origin: center center !important; }
.rd-badge-pos-middle-right { top: calc(50% + var(--rd-offset-y, 0px) + var(--rd-stack-offset, 0px)) !important; right: var(--rd-offset-x, 10px) !important; left: auto !important; bottom: auto !important; transform: translateY(-50%) scale(var(--rd-scale, 1)) !important; transform-origin: center right !important; }
.rd-badge-pos-bottom-left { bottom: calc(var(--rd-offset-y, 10px) + var(--rd-stack-offset, 0px)) !important; left: var(--rd-offset-x, 10px) !important; right: auto !important; top: auto !important; transform: scale(var(--rd-scale, 1)) !important; transform-origin: bottom left !important; }
.rd-badge-pos-bottom-center { bottom: calc(var(--rd-offset-y, 10px) + var(--rd-stack-offset, 0px)) !important; left: calc(50% + var(--rd-offset-x, 0px)) !important; right: auto !important; top: auto !important; transform: translateX(-50%) scale(var(--rd-scale, 1)) !important; transform-origin: bottom center !important; }
.rd-badge-pos-bottom-right { bottom: calc(var(--rd-offset-y, 10px) + var(--rd-stack-offset, 0px)) !important; right: var(--rd-offset-x, 10px) !important; left: auto !important; top: auto !important; transform: scale(var(--rd-scale, 1)) !important; transform-origin: bottom right !important; }

.rd-shape-pill { border-radius: var(--rd-radius, 99px); }
.rd-shape-rounded { border-radius: var(--rd-radius, 4px); }
.rd-shape-square { border-radius: var(--rd-radius, 0); }
.rd-shape-ribbon { border-radius: var(--rd-radius, 0); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.rd-shape-label { border-radius: var(--rd-radius, 4px) 0 0 var(--rd-radius, 4px); margin-right: 9px !important; }
.rd-shape-label::after {
    content: "";
    position: absolute;
    top: 0;
    right: -9px;
    width: 18px;
    height: 100%;
    background: inherit;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.rd-shape-label.rd-badge-pos-top-right,
.rd-shape-label.rd-badge-pos-middle-right,
.rd-shape-label.rd-badge-pos-bottom-right {
    border-radius: 0 var(--rd-radius, 4px) var(--rd-radius, 4px) 0;
    margin-left: 9px !important;
    margin-right: 0 !important;
}
.rd-shape-label.rd-badge-pos-top-right::after,
.rd-shape-label.rd-badge-pos-middle-right::after,
.rd-shape-label.rd-badge-pos-bottom-right::after {
    left: -9px;
    right: auto;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.rd-shape-corner {
    width: 72px;
    height: 72px;
    padding: 7px 6px !important;
    border-radius: var(--rd-radius, 0);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    display: inline-flex !important;
    align-items: flex-start;
    justify-content: flex-start;
    white-space: normal;
    text-align: left;
    line-height: 1.05;
}
.rd-shape-corner.rd-badge-pos-top-right,
.rd-shape-corner.rd-badge-pos-middle-right {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    justify-content: flex-end;
    text-align: right;
}
.rd-shape-corner.rd-badge-pos-bottom-left {
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    align-items: flex-end;
}
.rd-shape-corner.rd-badge-pos-bottom-right {
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
}
.rd-shape-diagonal {
    border-radius: var(--rd-radius, 0);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    min-width: 88px;
    text-align: center;
}
.rd-shape-burst {
    border-radius: var(--rd-radius, 50%);
    width: max(5.5em, 66px);
    height: max(5.5em, 66px);
    min-width: 66px;
    min-height: 66px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.9em !important;
    text-align: center;
    white-space: pre-line;
    overflow: hidden;
    line-height: 1.02;
    word-break: normal;
    clip-path: polygon(50% 0%, 61% 24%, 88% 12%, 76% 39%, 100% 50%, 76% 61%, 88% 88%, 61% 76%, 50% 100%, 39% 76%, 12% 88%, 24% 61%, 0% 50%, 24% 39%, 12% 12%, 39% 24%);
}
.rd-shape-discount-stack {
    display: inline-flex !important;
    flex-direction: column;
    align-items: stretch;
    min-width: 84px;
    padding: 0 !important;
    background: transparent !important;
    color: var(--rd-badge-text-color, inherit);
    text-align: center;
    white-space: normal;
    filter: drop-shadow(0 2px 3px rgba(15,23,42,0.14));
}
.rd-shape-discount-stack .rd-badge-line {
    display: block;
    position: relative;
    padding: 3px 8px;
    color: inherit;
    background: var(--rd-main-color, currentColor);
}
.rd-shape-discount-stack .rd-badge-line-1 {
    background: var(--rd-main-color, #1f4f8f);
    font-size: 2.1em;
    font-weight: 800;
    line-height: 1.05;
    padding-top: 10px;
    padding-bottom: 0;
}
.rd-shape-discount-stack .rd-badge-line-2 {
    background: var(--rd-accent-color, #3b82f6);
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}
.rd-shape-discount-stack .rd-badge-line-2::before,
.rd-shape-discount-stack .rd-badge-line-2::after {
    content: "";
    position: absolute;
    top: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}
.rd-shape-discount-stack .rd-badge-line-2::before {
    left: -10px;
    border-right: 10px solid var(--rd-accent-color, #3b82f6);
}
.rd-shape-discount-stack .rd-badge-line-2::after {
    right: -10px;
    border-left: 10px solid var(--rd-accent-color, #3b82f6);
}
.rd-shape-discount-stack .rd-badge-line-3 {
    background: var(--rd-bottom-color, #1f4f8f);
    font-size: 1em;
    font-weight: 500;
    line-height: 1.15;
    padding-top: 8px;
    padding-bottom: 12px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.rd-shape-text-banner {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    width: max-content;
    min-width: 0;
    max-width: min(320px, 90vw);
    padding: var(--rd-pad-y, 0.65em) var(--rd-pad-x, 1.1em) !important;
    border-radius: var(--rd-radius, 0);
    text-align: center;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.02;
    box-shadow: 0 2px 3px rgba(15,23,42,0.08);
}
.rd-shape-text-banner .rd-badge-line {
    display: block;
}
.rd-shape-text-block {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    width: max-content;
    min-width: 0;
    max-width: min(280px, 88vw);
    padding: var(--rd-pad-y, 0.45em) var(--rd-pad-x, 0.9em) !important;
    border-radius: var(--rd-radius, 4px);
    text-align: left;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.12;
    box-shadow: 0 2px 4px rgba(15,23,42,0.1);
}
.rd-shape-text-block .rd-badge-line {
    display: block;
}
.rd-shape-text-chip {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    max-width: min(280px, 88vw);
    padding: var(--rd-pad-y, 0.55em) var(--rd-pad-x, 1em) !important;
    border-radius: var(--rd-radius, 999px);
    border: 1px solid rgba(255,255,255,0.24);
    text-align: center;
    white-space: normal;
    line-height: 1.08;
    box-shadow: 0 10px 24px rgba(15,23,42,0.22);
}
.rd-shape-text-chip .rd-badge-line {
    display: block;
}
.rd-shape-text-chip .rd-badge-line-1 {
    font-weight: 800;
    text-transform: uppercase;
}
.rd-shape-text-chip .rd-badge-line-2 {
    font-size: 0.86em;
    opacity: 0.84;
}
.rd-shape-text-card {
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 150px;
    max-width: min(300px, 88vw);
    padding: var(--rd-pad-y, 0.75em) var(--rd-pad-x, 1em) !important;
    border-radius: var(--rd-radius, 6px);
    border-left: 4px solid var(--rd-accent-color, #2563eb);
    outline: 1px solid rgba(15,23,42,0.08);
    text-align: left;
    white-space: normal;
    line-height: 1.16;
    box-shadow: 0 12px 26px rgba(15,23,42,0.14);
}
.rd-shape-text-card .rd-badge-line {
    display: block;
}
.rd-shape-text-card .rd-badge-line-1 {
    font-weight: 800;
}
.rd-shape-text-card .rd-badge-line-2 {
    margin-top: 0.2em;
    font-size: 0.88em;
    opacity: 0.74;
}
.rd-shape-text-split {
    display: inline-flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-width: 150px;
    max-width: min(300px, 88vw);
    padding: 0 !important;
    border-radius: var(--rd-radius, 6px);
    overflow: hidden;
    text-align: center;
    white-space: normal;
    line-height: 1.08;
    box-shadow: 0 10px 22px rgba(15,23,42,0.18);
}
.rd-shape-text-split .rd-badge-line {
    display: block;
    padding: 0.45em var(--rd-pad-x, 1.05em);
}
.rd-shape-text-split .rd-badge-line-1 {
    background: var(--rd-main-color, #0f766e);
    font-weight: 800;
    text-transform: uppercase;
}
.rd-shape-text-split .rd-badge-line-2 {
    background: var(--rd-accent-color, #2dd4bf);
    color: var(--rd-bottom-color, #134e4a);
    font-size: 0.9em;
    font-weight: 700;
}
.rd-shape-feature-notes {
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    max-width: min(170px, 84vw);
    padding: 0 !important;
    background: transparent !important;
    text-align: left;
    text-transform: none;
    white-space: normal;
    line-height: 1.08;
    filter: drop-shadow(0 6px 12px rgba(15,23,42,0.18));
}
.rd-shape-feature-notes .rd-badge-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: var(--rd-pad-y, 0.35em) var(--rd-pad-x, 0.65em);
    border-radius: var(--rd-radius, 999px);
    background: var(--rd-main-color, #0f766e);
    color: var(--rd-badge-text-color, #ffffff);
    border: 1px solid rgba(255,255,255,0.26);
    font-weight: 800;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.rd-shape-feature-notes .rd-badge-line::before {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: 0.46em;
    height: 0.46em;
    border-radius: 999px;
    background: var(--rd-accent-color, #a7f3d0);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.22);
}
.rd-shape-feature-notes.rd-feature-notes-multi {
    gap: 1px;
    width: fit-content;
    min-width: 0;
    max-width: min(168px, 82vw);
    padding: calc(var(--rd-pad-y, 0.35em) + 0.08em) calc(var(--rd-pad-x, 0.65em) + 0.02em) !important;
    border-radius: 13px;
    background: var(--rd-main-color, #0f766e) !important;
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 5px 14px rgba(15,23,42,0.13);
    filter: none;
}
.rd-shape-feature-notes.rd-feature-notes-multi .rd-badge-line {
    width: 100%;
    min-width: 0;
    padding: 0.08em 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1.08;
    gap: 0.42em;
}
.rd-shape-feature-notes.rd-feature-notes-multi .rd-badge-line::before {
    width: 0.34em;
    height: 0.34em;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
}
.rd-shape-glow { border-radius: var(--rd-radius, 8px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.rd-shape-minimalist { border: 2px solid currentColor; background: transparent !important; border-radius: var(--rd-radius, 4px); }
.rd-shape-image {
    width: var(--rd-image-width, 80px) !important;
    max-width: min(var(--rd-image-width, 80px), 90%) !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .rd-badge.rd-mobile-scale { font-size: var(--rd-mobile-size, 10px); }
    .rd-badge.rd-mobile-hide { display: none !important; }
}
