@font-face{font-family:rosBadgeBai;src:url('../fonts/BaiJamjuree-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
.ros-badge-reflect{isolation:isolate;contain:paint}
.ros-sale-badge,.ros-sale-badge-preview,#ros-original-badge-preview-wrap{isolation:isolate;position:relative;display:inline-flex;overflow:hidden;line-height:1;pointer-events:none}
.ros-sale-badge{position:absolute;right:8px;top:78px;width:64px;height:34px;z-index:3;transform:none}
#ros-step-3 .ros-sale-badge,#ros-step-3 .ros-sale-badge *{box-sizing:border-box!important;font-family:rosBadgeBai,'Bai Jamjuree',sans-serif!important;font-synthesis:none!important}
#ros-step-3 .ros-sale-badge{padding:0!important;margin:0!important;border:0!important;background:transparent!important;line-height:1!important}
.repair-card:has(.ros-sale-badge) .repair-tag-original{right:80px!important}
.ros-sale-badge img,.ros-sale-badge-preview img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
#ros-step-3 .repair-card .ros-sale-badge img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
html body #ros-step-3 .repair-card .repair-tag-original img,
html body #ros-step-3 .repair-card .ros-sale-badge img{opacity:1!important;filter:none!important}
.ros-sale-badge-preview{width:120px;height:64px}
.ros-3d-exp-label .ros-sale-badge,.ros-3d-exp-mobile-item .ros-sale-badge{position:relative;inset:auto;width:48px;height:48px;flex:0 0 48px}
.ros-3d-exp-original.ros-badge-reflect,.ros-3d-exp-mobile-original.ros-badge-reflect{isolation:isolate;overflow:hidden}
.ros-badge-reflect::before{content:none}
.ros-badge-reflect::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;mask:var(--ros-badge-mask) center/100% 100% no-repeat;-webkit-mask:var(--ros-badge-mask) center/100% 100% no-repeat;background:linear-gradient(115deg,transparent 34%,#b9f3ff44 42%,#ffffffee 49%,#ffffff99 51%,#ffd8fa55 58%,transparent 66%);background-size:250% 100%;background-position:var(--ros-badge-shine,50%) 50%}
/* Keep the price panel clear of the sale badge without moving its text. */
html body #ros-step-3 .repair-card:has(.ros-sale-badge) .repair-badge.discounted{padding-top:2px!important;padding-bottom:0!important}
/* Discounted prices have an extra line: keep the original badge below them. */
html.ros-has-wizard body.ros-wizard-active #ros-step-3 .repair-card:has(> .repair-badge.discounted) .ros-desc-row > .repair-tag-original{top:78px!important}
.ros-sale-badge-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;font-family:rosBadgeBai,'Bai Jamjuree',sans-serif;font-weight:700;color:#252338;background:#dac9ff;clip-path:polygon(50% 0%,60% 7%,72% 4%,78% 15%,90% 18%,92% 30%,100% 40%,94% 50%,100% 61%,92% 70%,90% 83%,77% 85%,71% 96%,60% 93%,50% 100%,40% 93%,28% 96%,22% 85%,10% 82%,8% 70%,0% 60%,6% 50%,0% 39%,8% 30%,10% 17%,23% 15%,29% 4%,40% 7%)}
.ros-sale-badge-fallback strong{font-size:22px;font-weight:700}.ros-sale-badge-fallback small{font-size:8px;font-weight:700}
.repair-card .badge-price .badge-old{font-size:.65em;opacity:.8;display:block;text-decoration:line-through!important}.repair-card .badge-price .badge-new{text-decoration:none!important;background:none!important;color:inherit!important}
@media(max-width:600px){.repair-card .ros-sale-badge{right:8px;top:64px;width:60px;height:32px}}
@media(prefers-reduced-motion:reduce){.ros-badge-reflect::after{display:none}}

/* Sale-Preise bleiben auch in markierten Zeilen als eigene Spalte erkennbar. */
#ros-repair-table .tabulator-cell[tabulator-field="sale_price"],
#ros-general-repair-table .tabulator-cell[tabulator-field="sale_price"]{position:relative;box-shadow:inset 0 0 0 9999px rgba(216,160,224,.13)}
#ros-repair-table .tabulator-cell[tabulator-field="sale_price"]::before,
#ros-general-repair-table .tabulator-cell[tabulator-field="sale_price"]::before{content:'SALE';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:rosBadgeBai,'Bai Jamjuree',sans-serif;font-size:16px;font-weight:700;letter-spacing:2px;color:rgba(142,92,164,.13);pointer-events:none}
#ros-repair-table .tabulator-cell[tabulator-field="sale_price"].tabulator-editing::before,
#ros-general-repair-table .tabulator-cell[tabulator-field="sale_price"].tabulator-editing::before{display:none}
