/*
 * PartsDone Ajax Cart Drawer 1.1.3
 * Marker: PD_AJAX_CART_FINAL_AUDITED_V1_1_3
 */

.pd-ajax-cart-loading {
    cursor: progress !important;
}

.pd-ajax-cart-loading::after {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    content: "";
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 9999px;
    animation: pd-ajax-cart-spin .7s linear infinite;
}

@keyframes pd-ajax-cart-spin {
    to {
        transform: rotate(360deg);
    }
}

/*
 * Positioning only. The active Magento/Hyva theme continues to own the
 * full message design: width, colors, borders, padding, typography, icon,
 * spacing, and close button.
 *
 * Higher specificity intentionally overrides the theme's normal sticky
 * page-message position without changing any visual message rules.
 */
.page.messages.pd-cart-toast-region,
.page.messages.pd-cart-toast-region:popover-open {
    position: fixed;
    z-index: 2147483000;
    inset: var(--pd-cart-message-top, 0px) 0 auto;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: inherit;
    pointer-events: none;
}

.page.messages.pd-cart-toast-region::backdrop {
    display: none;
    background: transparent;
}

.pd-cart-toast-region section,
.pd-cart-toast-region .w-full,
.pd-cart-toast-region .messages {
    pointer-events: none;
}

.pd-cart-toast-region .message,
.pd-cart-toast-region .message button,
.pd-cart-toast-region .message a {
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .pd-ajax-cart-loading::after {
        animation-duration: 1.4s;
    }
}
