.asctp-box {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(0,0,0,.12);
    padding: 18px;
    font-family: inherit;
    color: #1d1d1d;
    border: 1px solid rgba(0,0,0,.08);
}

.asctp-floating {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    width: min(380px, calc(100vw - 32px));
}

.asctp-inline {
    position: relative;
    width: 100%;
    margin: 0 0 18px;
}

.asctp-box.is-loading {
    opacity: .72;
    pointer-events: none;
}

.asctp-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #f3f3f3;
    color: #222;
    cursor: pointer;
    line-height: 1;
    font-size: 20px;
}

.asctp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 28px;
    margin-bottom: 8px;
}

.asctp-inline .asctp-header {
    padding-right: 0;
}

.asctp-title {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
}

.asctp-badge {
    flex: 0 0 auto;
    background: #1d1d1d;
    color: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    font-size: 14px;
}

.asctp-message {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 12px;
}

.asctp-message p {
    margin: 0;
}

.asctp-ajax-message {
    display: none;
    margin: 8px 0 10px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;
}

.asctp-ajax-message.is-error,
.asctp-ajax-message.is-success {
    display: block;
}

.asctp-ajax-message.is-error {
    background: #fff2f2;
    border: 1px solid #ffd1d1;
}

.asctp-ajax-message.is-success {
    background: #f2fff5;
    border: 1px solid #ccefd4;
}

.asctp-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eeeeee;
    margin: 10px 0 14px;
}

.asctp-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #1d1d1d;
    transition: width .25s ease;
}

.asctp-products {
    display: grid;
    gap: 10px;
}

.asctp-inline .asctp-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asctp-product {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 8px;
    background: #fafafa;
}

.asctp-inline .asctp-product {
    grid-template-columns: 72px 1fr;
}

.asctp-product.is-selected {
    border-color: #1d1d1d;
    background: #fff;
}

.asctp-product-image img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.asctp-inline .asctp-product-image img {
    width: 72px;
    height: 72px;
}

.asctp-product-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 7px;
}

.asctp-add-product {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #1d1d1d;
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.asctp-add-product:disabled {
    opacity: .55;
    cursor: default;
}

@media (max-width: 900px) {
    .asctp-inline .asctp-products {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .asctp-floating {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        padding: 16px;
    }
}
