/* Minimal cart drawer styles for Shopify Storefront */
.swp-cart {
    bottom: 0;
    height: 100%;
    left: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    width: 100vw;
    z-index: 999999;
}

.swp-cart-overlay {
    background: rgba(0, 0, 0, 0.6);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.28s ease;
}

.swp-cart-inner {
    background: #fff;
    box-shadow: -16px 0 30px rgba(0, 0, 0, 0.15);
    height: 100%;
    max-width: 100vw;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(102%);
    transition: transform 0.28s ease;
    width: 400px;
}

.swp-cart-is-open .swp-cart-inner {
    pointer-events: auto;
    transform: translateX(0);
}

.swp-cart-is-open .swp-cart-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.swp-cart-is-open {
    overflow: hidden;
}

.swp-cart-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

.swp-cart-header {
    margin-bottom: 8px;
}

.swp-cart-header-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.swp-cart-title {
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
}

body:not(.elementor-editor-active) .swp-cart .swp-cart-close-button,
body:not(.elementor-editor-active) .wps-cart .swp-cart-close-button,
body:not(.elementor-editor-active) #swp-cart .swp-cart-close-button,
body:not(.elementor-editor-active) button.swp-cart-close-button {
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    color: #222 !important;
    cursor: pointer;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    padding: 0 4px !important;
    text-decoration: none !important;
    text-transform: none !important;
}

.swp-cart-contents {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.sf-cart-updating-indicator {
    align-items: center;
    color: #333;
    display: inline-flex;
    font-size: 13px;
    font-weight: 500;
    gap: 8px;
    margin: 0 0 10px;
}

.sf-cart-updating-spinner {
    animation: sf-cart-updating-spin 0.8s linear infinite;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 999px;
    border-top-color: #222;
    display: inline-block;
    height: 14px;
    width: 14px;
}

@keyframes sf-cart-updating-spin {
    100% {
        transform: rotate(360deg);
    }
}

.swp-cart-lineitem {
    border-bottom: 1px solid #e3e3e3;
    padding: 10px 0 26px;
    position: relative;
}

.swp-cart-lineitem-inner {
    display: flex;
    gap: 10px;
}

.swp-cart-img {
    background-position: center;
    background-size: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 0 0 52px;
    height: 52px;
    width: 52px;
}

.swp-cart-lineitem-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.sf-cart-line-meta {
    color: #575757;
    font-size: 13px;
    margin-top: 4px;
}

.sf-cart-line-qty {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin-top: 4px;
}

body:not(.elementor-editor-active) .swp-cart .sf-cart-qty-btn,
body:not(.elementor-editor-active) .wps-cart .sf-cart-qty-btn,
body:not(.elementor-editor-active) #swp-cart .sf-cart-qty-btn {
    appearance: none;
    background: #fff;
    border: 1px solid #cfcfcf !important;
    border-radius: 4px;
    color: #111 !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 700 !important;
    height: 24px;
    line-height: 1 !important;
    min-width: 24px;
    padding: 0 !important;
    text-align: center;
}

.sf-cart-qty-value {
    color: #111;
    font-size: 13px;
    font-weight: 600;
    min-width: 12px;
    text-align: center;
}

.sf-cart-qty-updating {
    align-items: center;
    display: inline-flex;
    height: 16px;
    margin-left: 4px;
    width: 16px;
}

.sf-cart-qty-updating .spinner {
    animation: sf-spinner-rotate 1.4s linear infinite;
    display: block;
    height: 16px;
    width: 16px;
}

.sf-cart-qty-updating .spinner .path {
    animation: sf-spinner-dash 1.4s ease-in-out infinite;
    stroke: #666;
    stroke-linecap: round;
}

@keyframes sf-spinner-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sf-spinner-dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -124;
    }
}

body:not(.elementor-editor-active) .swp-cart .sf-cart-lineitem.is-updating-qty .sf-cart-qty-btn,
body:not(.elementor-editor-active) .wps-cart .sf-cart-lineitem.is-updating-qty .sf-cart-qty-btn,
body:not(.elementor-editor-active) #swp-cart .sf-cart-lineitem.is-updating-qty .sf-cart-qty-btn {
    cursor: wait;
    opacity: 0.55;
}

.sf-cart-line-price {
    color: #111;
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
}

body:not(.elementor-editor-active) .swp-cart .swp-cart-lineitem-remove,
body:not(.elementor-editor-active) .wps-cart .swp-cart-lineitem-remove,
body:not(.elementor-editor-active) #swp-cart .swp-cart-lineitem-remove,
body:not(.elementor-editor-active) button.swp-cart-lineitem-remove {
    align-items: center;
    appearance: none;
    background-color: transparent;
    border: 0 !important;
    border-radius: 0;
    bottom: 20px;
    color: transparent !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 0 !important;
    font-weight: 400 !important;
    justify-content: center;
    line-height: 1 !important;
    min-height: 28px;
    min-width: 28px;
    padding: 4px !important;
    position: absolute;
    right: 0;
    text-decoration: none !important;
    text-transform: none !important;
    transition: opacity 0.2s ease;
}

body:not(.elementor-editor-active) .swp-cart .swp-cart-lineitem-remove::before,
body:not(.elementor-editor-active) .wps-cart .swp-cart-lineitem-remove::before,
body:not(.elementor-editor-active) #swp-cart .swp-cart-lineitem-remove::before,
body:not(.elementor-editor-active) button.swp-cart-lineitem-remove::before {
    background: center / contain no-repeat url("icon-trash.svg");
    content: "";
    display: block;
    height: 1.5rem;
    width: 1.5rem;
}

body:not(.elementor-editor-active) .swp-cart .swp-cart-lineitem-remove:hover,
body:not(.elementor-editor-active) .wps-cart .swp-cart-lineitem-remove:hover,
body:not(.elementor-editor-active) #swp-cart .swp-cart-lineitem-remove:hover,
body:not(.elementor-editor-active) button.swp-cart-lineitem-remove:hover {
    opacity: 0.7;
}

body:not(.elementor-editor-active) .swp-cart .swp-cart-lineitem-remove.is-removing,
body:not(.elementor-editor-active) .wps-cart .swp-cart-lineitem-remove.is-removing,
body:not(.elementor-editor-active) #swp-cart .swp-cart-lineitem-remove.is-removing,
body:not(.elementor-editor-active) button.swp-cart-lineitem-remove.is-removing {
    cursor: wait;
    opacity: 0.8;
}

body:not(.elementor-editor-active) .swp-cart .swp-cart-lineitem-remove.is-removing::before,
body:not(.elementor-editor-active) .wps-cart .swp-cart-lineitem-remove.is-removing::before,
body:not(.elementor-editor-active) #swp-cart .swp-cart-lineitem-remove.is-removing::before,
body:not(.elementor-editor-active) button.swp-cart-lineitem-remove.is-removing::before {
    animation: sf-cart-remove-spin 0.8s linear infinite;
    background: none;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border-top-color: rgba(0, 0, 0, 0.85);
    box-sizing: border-box;
    content: "";
    display: block;
    height: 1.25rem;
    width: 1.25rem;
}

@keyframes sf-cart-remove-spin {
    to {
        transform: rotate(360deg);
    }
}

.swp-cart-footer {
    border-top: 1px solid #ddd;
    padding-top: 12px;
}

.sf-cart-footer-row {
    align-items: center;
    display: flex;
    font-size: 15px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sf-cart-checkout-note {
    color: #575757;
    font-size: 12px;
    line-height: 1.4;
    margin: 2px 0 0;
    text-align: center;
}

.sf-cart-footer-actions {
    display: grid;
    gap: 8px;
}

body:not(.elementor-editor-active) .swp-cart .sf-cart-checkout-btn,
body:not(.elementor-editor-active) .wps-cart .sf-cart-checkout-btn,
body:not(.elementor-editor-active) #swp-cart .sf-cart-checkout-btn,
body:not(.elementor-editor-active) button.sf-cart-checkout-btn {
    appearance: none;
    background: #111 !important;
    border: 0 !important;
    color: #fff !important;
    cursor: pointer;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 12px 14px !important;
    text-decoration: none !important;
    text-transform: none !important;
    width: 100%;
}

body:not(.elementor-editor-active) .swp-cart .sf-cart-continue-btn,
body:not(.elementor-editor-active) .wps-cart .sf-cart-continue-btn,
body:not(.elementor-editor-active) #swp-cart .sf-cart-continue-btn,
body:not(.elementor-editor-active) button.sf-cart-continue-btn {
    appearance: none;
    background: #fff !important;
    border: 1px solid #cfcfcf !important;
    color: #111 !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 11px 14px !important;
    text-decoration: none !important;
    text-transform: none !important;
    width: 100%;
}

body:not(.elementor-editor-active) .swp-cart .sf-cart-continue-btn:hover,
body:not(.elementor-editor-active) .wps-cart .sf-cart-continue-btn:hover,
body:not(.elementor-editor-active) #swp-cart .sf-cart-continue-btn:hover {
    background: #f5f5f5 !important;
}

body:not(.elementor-editor-active) .swp-cart .sf-cart-checkout-btn:disabled,
body:not(.elementor-editor-active) .wps-cart .sf-cart-checkout-btn:disabled,
body:not(.elementor-editor-active) #swp-cart .sf-cart-checkout-btn:disabled,
body:not(.elementor-editor-active) button.sf-cart-checkout-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

body:not(.elementor-editor-active) .swp-cart .sf-cart-checkout-btn.is-loading,
body:not(.elementor-editor-active) .wps-cart .sf-cart-checkout-btn.is-loading,
body:not(.elementor-editor-active) #swp-cart .sf-cart-checkout-btn.is-loading,
body:not(.elementor-editor-active) button.sf-cart-checkout-btn.is-loading {
    align-items: center;
    cursor: wait;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
}

body:not(.elementor-editor-active) .swp-cart .sf-cart-checkout-btn.is-loading::before,
body:not(.elementor-editor-active) .wps-cart .sf-cart-checkout-btn.is-loading::before,
body:not(.elementor-editor-active) #swp-cart .sf-cart-checkout-btn.is-loading::before,
body:not(.elementor-editor-active) button.sf-cart-checkout-btn.is-loading::before {
    animation: sf-cart-checkout-spin 0.8s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: rgba(255, 255, 255, 1);
    content: "";
    display: inline-block;
    height: 14px;
    width: 14px;
}

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

.sf-cart-empty {
    color: #575757;
    font-size: 15px;
    padding: 28px 0;
    text-align: center;
}

@media (max-width: 640px) {
    .swp-cart-inner {
        width: 100vw;
    }
}

.sf-wps-cart-icon-btn {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    line-height: 1;
    overflow: visible;
    padding: 0;
    position: relative;
}

.sf-wps-cart-icon-image {
    display: block;
    height: 24px;
    object-fit: contain;
    width: 24px;
}

.sf-wps-cart-icon-fallback {
    color: #111;
    font-size: 14px;
    font-weight: 600;
}

.sf-wps-cart-count {
    align-items: center;
    background: #111;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    height: 18px;
    justify-content: center;
    min-width: 18px;
    padding: 0 5px;
    position: absolute;
    right: -9px;
    top: -6px;
    z-index: 2;
}

.sf-wps-cart-count.is-empty {
    opacity: 0.5;
}
