/* Self-contained New Customizable 24h promise. Does not alter product image layout. */
.afiwai-product-card.afc-has-promise-24h{position:relative}
.afiwai-product-card.afc-has-promise-24h .afiwai-preview-badge{display:none!important}
.afiwai-product-card .afc-promise-24h-badge{
 position:absolute!important;top:12px!important;left:12px!important;z-index:8!important;
 display:flex!important;align-items:center!important;gap:6px!important;
 width:max-content!important;max-width:calc(100% - 80px)!important;
 height:43px!important;min-height:43px!important;padding:5px 9px!important;margin:0!important;
 border:1px solid rgba(255,255,255,.32)!important;border-radius:14px!important;
 background:var(--afc-promise-bg,#F05A00)!important;
 color:var(--afc-promise-text,#fff)!important;box-shadow:0 6px 13px rgba(128,40,0,.22)!important;
 pointer-events:none!important;box-sizing:border-box!important;
}
.afiwai-product-card .afc-promise-24h-icon{
 display:block!important;position:static!important;width:23px!important;height:23px!important;
 min-width:23px!important;max-width:23px!important;min-height:23px!important;max-height:23px!important;
 object-fit:contain!important;opacity:1!important;visibility:visible!important;transform:none!important;
 border:0!important;background:transparent!important;box-shadow:none!important;
}
.afiwai-product-card .afc-promise-24h-content{
 display:flex!important;flex-direction:column!important;gap:1px!important;
 color:var(--afc-promise-text,#fff)!important;line-height:1.05!important;white-space:nowrap!important;
}
.afiwai-product-card .afc-promise-24h-content strong{
 color:var(--afc-promise-text,#fff)!important;font-size:9px!important;font-weight:800!important;letter-spacing:.035em!important;
 text-transform:uppercase!important;line-height:1.1!important;
}
.afiwai-product-card .afc-promise-24h-content span{
 color:var(--afc-promise-text,#fff)!important;font-size:10px!important;font-weight:800!important;line-height:1.1!important;
}
@media(max-width:640px){.afiwai-product-card .afc-promise-24h-badge{top:8px!important;left:8px!important;padding:4px 7px!important;gap:5px!important}}

/* Alternative for physically stocked products whose customization is not 24h-eligible. */
.afiwai-product-card .afc-promise-24h-badge--variable{
 background:var(--afc-promise-bg,#0064C0)!important;
 border-color:rgba(255,255,255,.40)!important;
 box-shadow:0 6px 13px rgba(8,53,70,.22)!important;
 max-width:min(225px,calc(100% - 80px))!important;
}
.afiwai-product-card .afc-promise-24h-badge--variable .afc-promise-24h-content{
 white-space:normal!important;
}
.afiwai-product-card .afc-promise-24h-badge--variable .afc-promise-24h-content span{
 font-size:10px!important;
 line-height:1.18!important;
}

.afiwai-product-card .afc-promise-24h-badge--variable .afc-promise-24h-icon{flex:none!important;align-self:center!important}

/* Stock depleted: distinct restocking badge, never stacked with stocked states. */
.afiwai-product-card .afc-promise-24h-badge--restock{
 background:var(--afc-promise-bg,#7C3AED)!important;
 box-shadow:0 6px 13px rgba(24,40,58,.20)!important;
 max-width:min(225px,calc(100% - 80px))!important;
}
.afiwai-product-card .afc-promise-24h-badge--restock .afc-promise-24h-content{
 white-space:normal!important;
}
.afiwai-product-card .afc-promise-24h-badge--restock .afc-promise-24h-content span{
 line-height:1.18!important;
}

/* 0.63.86 — standard height and automatically matching glyph colors. */
.afiwai-product-card .afc-promise-24h-badge{
 height:43px!important;min-height:43px!important;max-height:43px!important;
 align-items:center!important;overflow:hidden!important;
}
.afiwai-product-card .afc-promise-24h-icon{
 position:relative!important;display:inline-block!important;
 width:25px!important;height:25px!important;min-width:25px!important;
 min-height:25px!important;max-width:25px!important;max-height:25px!important;
 flex:0 0 25px!important;align-self:center!important;
 border-radius:50%!important;background:#fff!important;
}
.afiwai-product-card .afc-promise-24h-icon::before{
 content:"";position:absolute;inset:2px;
 background:var(--afc-promise-bg,#F05A00);
 -webkit-mask-image:var(--afc-promise-icon-url,none);
 mask-image:var(--afc-promise-icon-url,none);
 -webkit-mask-position:center;mask-position:center;
 -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
 -webkit-mask-size:contain;mask-size:contain;
}
.afiwai-product-card .afc-promise-24h-badge--restock .afc-promise-24h-content{white-space:nowrap!important}
.afiwai-product-card .afc-promise-24h-badge--restock .afc-promise-24h-content strong{font-size:9px!important;letter-spacing:0!important}
@media(max-width:640px){
 .afiwai-product-card .afc-promise-24h-badge{height:43px!important;min-height:43px!important;max-height:43px!important}
}

/* 0.63.88 — all six availability badges have identical height. */
.afiwai-product-card .afc-promise-24h-badge{height:43px!important;min-height:43px!important;max-height:43px!important;max-width:calc(100% - 20px)!important}
.afiwai-product-card .afc-promise-24h-badge--last,
.afiwai-product-card .afc-promise-24h-badge--order,
.afiwai-product-card .afc-promise-24h-badge--unavailable{white-space:nowrap!important}
.afiwai-product-card .afc-promise-24h-icon[hidden]{display:none!important}
.afiwai-product-card .afc-promise-24h-badge--restock .afc-promise-24h-content strong{font-size:8.5px!important}
