.ahura-cart-widget {
    width: 100%;
}

.ahura-cart-widget.is-loading {
    opacity: .5;
    pointer-events: none;
    transition: opacity .2s ease;
}

.ahura-cart-editor-note {
    padding: 12px 16px;
    border: 1px dashed #c3c4c7;
    border-radius: 4px;
    color: #646970;
    font-size: 13px;
    text-align: center;
}

/* Buttons */
.ahura-cart-update-wrap,
.ahura-cart-apply-wrap,
.ahura-cart-checkout-wrap,
.ahura-cart-shop-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ahura-cart-widget .ahura-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.ahura-cart-btn-icon {
    display: inline-flex;
    line-height: 1;
}

.ahura-cart-btn-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.ahura-cart-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Cart items */
.ahura-cart-items .woocommerce-notices-wrapper:not(:empty) {
    margin-bottom: 20px;
}

.ahura-cart-items-scroll {
    width: 100%;
    overflow-x: auto;
}

.ahura-cart-items-table {
    width: 100%;
    margin: 0;
    border: 0 solid #e5e5e5;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.ahura-cart-items-table th,
.ahura-cart-items-table td {
    padding: 14px 12px;
    border: 0 solid #e5e5e5;
    text-align: start;
    vertical-align: middle;
}

.ahura-cart-items-table thead th {
    font-weight: bold;
}

.ahura-cart-borders-rows .ahura-cart-items-table th,
.ahura-cart-borders-rows .ahura-cart-items-table td {
    border-bottom-width: 1px;
}

.ahura-cart-borders-all .ahura-cart-items-table {
    border-width: 1px;
}

.ahura-cart-borders-all .ahura-cart-items-table th,
.ahura-cart-borders-all .ahura-cart-items-table td {
    border-width: 0 0 1px 1px;
}

.ahura-cart-items-table .ahura-cart-col-remove,
.ahura-cart-items-table .ahura-cart-col-thumbnail {
    width: 1%;
}

.ahura-cart-col-thumbnail a {
    display: inline-flex;
}

.ahura-cart-col-thumbnail img {
    display: block;
    width: 80px;
    max-width: none;
    height: auto;
}

.ahura-cart-col-price,
.ahura-cart-col-subtotal {
    white-space: nowrap;
}

.ahura-cart-col-price del {
    opacity: .6;
}

.ahura-cart-col-price ins {
    text-decoration: none;
}

.ahura-cart-item-name a {
    text-decoration: none;
}

.ahura-cart-col-name .variation,
.ahura-cart-item-sku,
.ahura-cart-col-name .backorder_notification {
    margin: 4px 0 0;
    font-size: .85em;
    opacity: .8;
}

.ahura-cart-col-name .variation dt,
.ahura-cart-col-name .variation dd,
.ahura-cart-col-name .variation p {
    display: inline;
    margin: 0;
}

.ahura-cart-remove-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    color: #a00;
    text-decoration: none;
}

.ahura-cart-remove-item svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.ahura-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ahura-cart-qty input.qty {
    width: 60px;
    height: 36px;
    margin: 0;
    padding: 4px;
    text-align: center;
    box-shadow: none;
    -moz-appearance: textfield;
}

.ahura-cart-qty input.qty::-webkit-outer-spin-button,
.ahura-cart-qty input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ahura-cart-qty.has-buttons input.qty {
    width: 44px;
}

.ahura-cart-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.ahura-cart-items-form > .ahura-cart-update-wrap {
    margin-top: 20px;
}

@media (max-width: 767px) {
    .ahura-cart-stack-mobile .ahura-cart-items-table thead {
        display: none;
    }

    .ahura-cart-stack-mobile .ahura-cart-items-table,
    .ahura-cart-stack-mobile .ahura-cart-items-table tbody,
    .ahura-cart-stack-mobile .ahura-cart-items-table tr,
    .ahura-cart-stack-mobile .ahura-cart-items-table td {
        display: block;
        width: 100%;
    }

    .ahura-cart-stack-mobile .ahura-cart-items-table tr {
        position: relative;
        padding: 8px 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .ahura-cart-stack-mobile .ahura-cart-items-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-width: 0;
        padding: 6px 0;
        text-align: end;
    }

    .ahura-cart-stack-mobile .ahura-cart-items-table td[data-title]:not([data-title=""])::before {
        content: attr(data-title);
        font-weight: bold;
        text-align: start;
    }

    .ahura-cart-stack-mobile .ahura-cart-items-table td.ahura-cart-col-remove {
        position: absolute;
        top: 8px;
        inset-inline-end: 0;
        width: auto;
        padding: 0;
    }

    .ahura-cart-stack-mobile .ahura-cart-items-table td.ahura-cart-col-thumbnail {
        justify-content: center;
    }

    .ahura-cart-stack-mobile .ahura-cart-items-table td.ahura-cart-col-thumbnail::before {
        content: none;
    }
}

/* Coupon */
.ahura-cart-coupon-title {
    margin-bottom: 10px;
    font-weight: bold;
}

.ahura-cart-coupon-description {
    margin-bottom: 10px;
}

.ahura-cart-coupon-fields {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.ahura-cart-coupon-input {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.ahura-cart-coupon-fields .ahura-cart-apply-wrap {
    flex: 0 0 auto;
}

/* Totals */
.ahura-cart-totals-title {
    margin: 0 0 15px;
}

.ahura-cart-totals-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

.ahura-cart-totals-table tbody {
    display: block;
}

.ahura-cart-totals-table tr {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px 16px;
    padding: 12px 0;
    border: 0 solid #e5e5e5;
    border-bottom-width: 1px;
}

.ahura-cart-totals-table tr:last-child {
    border-bottom-width: 0;
}

.ahura-cart-totals-table th,
.ahura-cart-totals-table td {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    text-align: start;
}

.ahura-cart-totals-table th {
    font-weight: normal;
}

.ahura-cart-totals-table td {
    text-align: end;
}

.ahura-cart-totals-table .order-total th,
.ahura-cart-totals-table .order-total td {
    font-weight: bold;
}

.ahura-cart-totals-table .woocommerce-shipping-methods {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ahura-cart-totals-table .woocommerce-shipping-destination,
.ahura-cart-totals-table .woocommerce-shipping-calculator {
    margin: 6px 0 0;
    font-size: .9em;
}

.ahura-cart-remove-coupon {
    font-size: .85em;
    text-decoration: none;
}

.ahura-cart-totals .ahura-cart-checkout-wrap {
    margin-top: 20px;
}

/* Checkout button */
.ahura-cart-checkout-total {
    margin-inline-start: 8px;
}

/* Cross-sells */
.ahura-cart-cross-sells-title {
    margin: 0 0 20px;
}

.ahura-cart-cross-sells ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}

.ahura-cart-cross-sells ul.products::before,
.ahura-cart-cross-sells ul.products::after {
    content: none;
}

.ahura-cart-cross-sells ul.products > li.product {
    width: auto;
    max-width: none;
    margin: 0;
    float: none;
}

/* Empty cart */
.ahura-cart-empty {
    text-align: center;
}

.ahura-cart-empty-icon {
    margin-bottom: 15px;
    font-size: 60px;
    line-height: 1;
}

.ahura-cart-empty-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.ahura-cart-empty-message {
    margin-bottom: 20px;
}

.ahura-cart-empty .ahura-cart-shop-wrap {
    align-items: center;
}
