.am-sales-booster-widget .box {
    background-color: rgb(228, 245, 254);
    border-radius: 0.5rem;
    padding: 0.75rem;
    width: 100%;
}

.am-sales-booster-widget .inline-stack {
    display: flex;
    flex-wrap: nowrap;
    align-items: start;
    gap: 0.5rem;
}

.am-sales-booster-widget .inline-stack svg {
    flex-shrink: 0;
}

.am-sales-booster-widget .icon {
    width: 21px;
    height: 20px;
}

.am-sales-booster-widget .progress-container {
    position: relative;
    width: 100%;
    background-color: rgb(200, 200, 200);
    border-radius: 0.5rem;
    height: 8px;
    margin-top: 8px;
}

.am-sales-booster-widget .progress-bar {
    background-color: rgb(48, 48, 48);
    display: block;
    height: 100%;
    border-radius: 0.5rem;
    width: 0;
    transition: width 0.5s;
}

.am-sales-booster-widget .progress-label {
    font-size: 14px;
    color: rgb(48, 48, 48);
    font-weight: bold;
    text-align: center;
    margin-top: 4px;
}

.AmBooster-message {
    line-height: 1;
    display: block;
}

.AmBooster-Button--pressable {
    cursor: pointer;
}

.AmBooster-Button--pressable span {
    display: inline-block;
}

.AmBooster-Button--pressable:active span {
    transform: translateY(1px);
}

.AmBooster-Button--textAlignCenter {
    justify-content: center;
    text-align: center;
}

.AmBooster-Button--sizeSlim {
    min-height: 28px;
    min-width: 32px;
    padding: 6px 12px;
}

.AmBooster-Button {
    border:none;
    border-radius: 8px;
}

.AmBooster-Button > span {
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}

.AmBooster-modal--wrapper {
    position: fixed;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
    z-index: 1001;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
}

.AmBooster-modal--content {
    width: 100%;
    max-width: 510px;
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 20px;
    text-align: center;
    max-height: calc(100vh - 20px);
    overflow: auto;
}

.AmBooster-modal--title {
    font-family: Inter, sans-serif;
    font-weight: 450;
    font-size: 20px;
    letter-spacing: 0;
    text-align: center;
    line-height: 1;
}

.AmBooster-modal--items-list {
    margin-top: 20px;
    gap: 8px;
    display: grid;
    width: 100%;
    margin-bottom: 20px;
}


.AmBooster-modal--items-item {
    padding: 5px;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    border: 1px solid rgba(160, 160, 160, 1);
}

.AmBooster-modal--items-item.selected {
    border-color: black;
}

.AmBooster-modal--items-item-info {
    display: flex;
    gap: 12px;
}

.AmBooster-modal--close {
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

.AmBooster-modal--items-item-thumbnail {
    min-width: 90px;
    min-height: 90px;
    max-width: 90px;
    max-height: 90px;
    border: none;
    border-radius: 8px;
    background-color: rgba(220, 237, 247, 1);
}

.AmBooster-modal--items-text-wrapper {
    display: flex;
    margin-right: 30px;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 4px;
}

.AmBooster-modal--items-item-name {
    font-family: Inter, sans-serif;
    text-align: start;
    margin: 8px 0 0;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0;
}

.AmBooster-modal--items-item-description {
    font-family: Inter, sans-serif;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    text-align: start;
    letter-spacing: 0;
}

.AmBooster-modal--items-item-description p {
    margin: 0;
    padding: 0;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.AmBooster-modal--items-item-status::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><rect x="0.5" y="0.5" width="19" height="19" rx="9.5" stroke="%23A0A0A0"/><clipPath id="clip0_16_6517"><rect width="20" height="20" rx="10" fill="white"/></clipPath></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.product-form__ambooster-widgets-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 44rem;
    width: 100%;
}

.minicart-form__ambooster-widgets-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-form__ambooster-widgets-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}

.AmBooster-modal--items-item.selected  .AmBooster-modal--items-item-status::after{
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><rect width="20" height="20" rx="10" fill="%23303030"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.0379 6.52459C15.404 6.8907 15.404 7.4843 15.0379 7.85041L9.41291 13.4754C9.0468 13.8415 8.4532 13.8415 8.08709 13.4754L5.27459 10.6629C4.90847 10.2968 4.90847 9.7032 5.27459 9.33709C5.6407 8.97097 6.2343 8.97097 6.60041 9.33709L8.75 11.4867L13.7121 6.52459C14.0782 6.15847 14.6718 6.15847 15.0379 6.52459Z" fill="white"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.mt05 {
    margin-top: 0.5rem;
}

/* Themes Compatibility */
.minicart-form__ambooster-widgets-wrapper.Horizon,
.minicart-form__ambooster-widgets-wrapper.Tinker,
.minicart-form__ambooster-widgets-wrapper.Vessel,
.minicart-form__ambooster-widgets-wrapper.Dwell,
.minicart-form__ambooster-widgets-wrapper.Atelier,
.minicart-form__ambooster-widgets-wrapper.Heritage,
.minicart-form__ambooster-widgets-wrapper.Pitch,
.minicart-form__ambooster-widgets-wrapper.Fabric,
.minicart-form__ambooster-widgets-wrapper.Ritual,
.minicart-form__ambooster-widgets-wrapper.Savor {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.cart-form__ambooster-widgets-wrapper.Savor,
.cart-form__ambooster-widgets-wrapper.Tinker,
.cart-form__ambooster-widgets-wrapper.Vessel,
.cart-form__ambooster-widgets-wrapper.Dwell,
.cart-form__ambooster-widgets-wrapper.Atelier,
.cart-form__ambooster-widgets-wrapper.Heritage,
.cart-form__ambooster-widgets-wrapper.Pitch,
.cart-form__ambooster-widgets-wrapper.Fabric,
.cart-form__ambooster-widgets-wrapper.Ritual,
.cart-form__ambooster-widgets-wrapper.Horizon {
    margin-bottom: 0;
}

.product-form__ambooster-widgets-wrapper.Trade {
    max-width: unset;
    margin-bottom: 2rem;
}

.am-checkout-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}
.am-checkout-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}