/* Product detail actions stay inside the product column at every viewport. */
.hicret-product-actions {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.hicret-product-actions__quantity {
    flex: 0 0 150px;
    margin: 0;
    max-width: 150px;
    min-width: 0;
}

.hicret-product-actions__quantity > .border {
    min-height: 48px;
}

.hicret-product-actions__quantity input {
    min-width: 0;
    text-align: center;
    width: 100%;
}

.hicret-product-actions__buttons {
    display: flex;
    flex: 1 1 360px;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.hicret-product-actions__buttons > .btn {
    align-items: center;
    display: inline-flex;
    flex: 1 1 190px;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    max-width: 100%;
    min-height: 48px;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: .75rem 1rem !important;
    text-align: center;
    white-space: normal;
}

.hicret-product-actions__buttons > .btn > span {
    min-width: 0;
}

.hicret-product-actions__whatsapp {
    background-color: #198754;
    border-color: #198754;
}

.hicret-product-actions__whatsapp:hover,
.hicret-product-actions__whatsapp:focus {
    background-color: #146c43;
    border-color: #146c43;
    color: #fff;
}

@media (max-width: 767px) {
    .hicret-product-actions {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hicret-product-actions__quantity,
    .hicret-product-actions__buttons {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
    }

    .hicret-product-actions__quantity > .border {
        width: 100%;
    }

    .hicret-product-actions__buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .hicret-product-actions__buttons > .btn {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hicret-product-actions__buttons > .btn {
        transition: none;
    }
}
