.acm-promo-badges {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
}

.acm-catalog-promo-badges {
    position: absolute;
    z-index: 1;
    right: 8px;
    top: 8px;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    max-width: calc(100% - 16px);
    pointer-events: none;
}

.acm-catalog-promo-badge {
    display: inline-block;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 5px;
    background: #e9674b;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.acm-promo-badges[hidden],
.acm-promo-badge[hidden] {
    display: none !important;
}

.single-product .acm-promo-badge {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: #e9674b;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.acm-promo-box {
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid #e0e3e5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(20, 24, 28, 0.05);
}

.acm-promo-box h3 {
    margin: 0 0 16px;
    font-size: 19px;
    font-weight: 700;
}

.acm-promo-list {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.acm-promo-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 12px;
    border: 1px solid #eceeef;
    border-radius: 8px;
    background: #fafbfb;
}

.acm-promo-applied__details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.acm-promo-code-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 5px;
    background: #e9674b;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.acm-promo-percent {
    color: #3f4549;
    font-size: 14px;
    font-weight: 700;
}

.acm-promo-applied__saving {
    color: #28704f;
    font-size: 13px;
}

.acm-promo-applied__saving strong {
    font-weight: 700;
}

.acm-promo-remove-form {
    margin: 0;
}

.acm-promo-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #edf6f0;
    color: #244b37;
    font-size: 15px;
}

.acm-promo-total span {
    color: #28704f;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.acm-promo-remove {
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #8f1b13;
    cursor: pointer;
    text-decoration: underline;
}

.acm-promo-apply-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.acm-promo-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acm-promo-controls input[type="text"] {
    flex: 1 1 180px;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfd4d7;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    font-size: 15px;
}

.acm-promo-controls input[type="text"]:focus {
    border-color: #e9674b;
    outline: 2px solid rgba(233, 103, 75, 0.18);
    outline-offset: 1px;
}

.acm-promo-controls .button {
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid #e9674b;
    border-radius: 6px;
    background: #e9674b;
    color: #fff;
    font-weight: 700;
}

.acm-promo-controls .button:hover {
    border-color: #cf5136;
    background: #cf5136;
    color: #fff;
}

.wc-block-components-product-details li:has(.acm-cart-promo-item) {
    margin-top: 8px;
    padding: 9px 11px;
    border-radius: 7px;
    background: #fff6f2;
}

.wc-block-components-product-details li:has(.acm-cart-promo-item) .wc-block-components-product-details__name {
    display: block;
    margin-bottom: 5px;
    color: #6a625e;
    font-size: 12px;
    font-weight: 700;
}

.acm-cart-promo-item {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 10px;
}

.acm-cart-promo-item__code {
    color: #ad422d;
    font-size: 13px;
    font-weight: 800;
}

.acm-cart-promo-item__saving {
    color: #28704f;
    font-size: 13px;
    font-weight: 600;
}

.wc-block-cart .wc-block-cart-item__prices {
    display: flex !important;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 4px;
    margin: 5px 0 8px;
    color: #62676b;
    font-size: 14px;
}

.wc-block-cart .wc-block-cart-item__prices::before {
    content: "Ціна за одиницю: ";
    font-weight: 600;
}

.wc-block-cart .wc-block-cart-item__prices .wc-block-components-product-price {
    display: inline-block !important;
    margin: 0;
}

.wc-block-cart .wc-block-cart-item__total {
    font-weight: 700;
}

html:lang(en) .wc-block-cart .wc-block-cart-item__prices::before {
    content: "Unit price: ";
}

.wc-block-components-totals-fees__fee .wc-block-components-totals-item__label,
.wc-block-components-totals-fees__fee .wc-block-components-totals-item__value {
    color: #28704f;
}

@media (max-width: 600px) {
    .acm-catalog-promo-badge {
        font-size: 13px;
    }

    .single-product .acm-promo-badge {
        font-size: 15px;
        padding: 10px 14px;
    }

    .acm-promo-box {
        padding: 14px;
    }

    .acm-promo-list li {
        grid-template-columns: minmax(0, 1fr);
    }

    .acm-promo-remove-form {
        justify-self: start;
    }

    .acm-promo-controls .button {
        width: 100%;
    }

    .acm-promo-total {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
