/* default properties */
#uwpmc-cart-sidebar h1,
#uwpmc-cart-sidebar h2,
#uwpmc-cart-sidebar h3,
#uwpmc-cart-sidebar h4,
#uwpmc-cart-sidebar h5,
#uwpmc-cart-sidebar h6 {
    margin: 0;
    font-weight: 300;
    padding: 0;
    width: auto !important;
}

#uwpmc-cart-sidebar p {
    margin: 0;
    padding: 0;
}

#uwpmc-cart-sidebar span {
    font-weight: normal !important;
}

#uwpmc-cart-sidebar .variation {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin: 8px 0 0 0;
}

#uwpmc-cart-sidebar button {
    padding: 0;
    margin: 0;
    line-height: 1.618;
    font-weight: 600;
    letter-spacing: 0;
    min-height: 0;
    text-transform: none;
}

#uwpmc-cart-sidebar input {
    padding: 0;
    margin: 0;
    height: auto;
    line-height: 1.5em;
}

#uwpmc-cart-sidebar input:focus {
    outline: none !important;
}

#uwpmc-cart-sidebar button:focus {
    outline: none !important;
}

/*color for price*/
#uwpmc-cart-sidebar .amount {
    color: inherit !important;
}

/* widget */
.uwpmc-widget-container {
    position: fixed;
    z-index: 100000;
    line-height: 1;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 0 16px -8px;
}

.uwpmc-widget-qty {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    background-color: inherit;
    font-size: 14px !important;
    top: 8px;
    left: 0;
    right: 0;
    bottom: 0;
    font-family: sans-serif !important;
    font-weight: 600 !important;
}

.uwpmc-widget-svg {
    height: 42px;
    width: 42px;
}

.uwpmc-widget {
    height: 48px !important;
    width: 48px !important;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.uwpmc-widget:hover {
    animation: widget-container 0.6s;
}

/* sidebar styles */
#uwpmc-cart-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100000;
    cursor: default;
}

.uwpmc-sidebar {
    position: fixed;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#uwpmc-message {
    position: absolute;
    font-size: 16px;
    padding: 4px 12px;
    min-height: 42px;
    width: 94%;
    display: flex;
    align-items: center;
    border-left: 3px solid !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-color: rgba(0, 0, 0, .15) !important;
    z-index: 2;
    margin: 6px 10px;
}

#uwpmc-message .woocommerce-message {
    margin: 0;
    padding: 0;
    background-color: inherit;
    color: inherit;
    border: 0;
}

#uwpmc-message .woocommerce-message::before {
    position: relative;
    top: 0;
    left: 0;
    color: inherit;
}

.uwpmc-error {
    background-color: #e2401c;
    color: #ffffff;
}

.uwpmc-success {
    background-color: #0f834d;
    color: #ffffff;
}

.uwpmc-goal-range {
    margin: 6px 10px 10px 10px !important;
    position: relative;
    overflow: hidden;
    width: 94% !important;
    height: 6px !important;
    cursor: pointer;
    border-radius: 12px;
    -webkit-appearance: none;
}

.uwpmc-goal-range::-moz-range-track {
    height: 100%;
    background: #ddd;
}

/* Firefox */
.uwpmc-goal-range::-moz-range-thumb {
    -webkit-appearance: none !important;
    box-shadow: -400px 0 0 400px currentColor !important;
    height: 0 !important;
    width: 0 !important;
    border: none !important;
}

/* Chrome and Safari */
.uwpmc-goal-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 0 !important;
    width: 0 !important;
    box-shadow: -400px 0 0 400px currentColor !important;
    border: none !important;
}

/* Chrome and Safari */
.uwpmc-goal-range::-webkit-slider-runnable-track {
    height: 100%;
    background: #ddd;
}

.uwpmc-header {
    margin: 12px 12px 6px 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
    gap: 8px;
}

.uwpmc-body {
    display: flex;
    flex-direction: column;
    flex: auto 1 1;
    overflow-y: hidden;
}

.uwpmc-cart-block {
    display: flex;
    flex-direction: column;
    flex: auto 1 1;
    overflow-y: hidden;
}

.uwpmc-cart-contents {
    flex: auto 1 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 6px 12px;
}

/* Carousel container */
.uwpmc-banners {
    width: 100%;
    min-height: 42px;
    overflow-x: scroll;
    box-shadow: 0 0 2px -1px;
    display: flex;
    transition: transform 0.5s ease;
}

/* Individual slide */
.uwpmc-banner {
    flex: 0 0 auto;
    width: 100%;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.uwpmc-banner img {
    height: 42px !important;
    object-fit: cover;
    width: 100% !important;
    max-width: initial !important;
}

.uwpmc-banner p {
    margin: 0;
    font-size: 18px;
    text-align: center;
}

.uwpmc-goal-text {
    display: inline-block;
    line-height: 1.5em;
    margin: 6px 10px;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

.uwpmc-related-products {
    display: flex;
    overflow: auto;
    padding: 0 8px 4px 8px;
    gap: 6px;
    scroll-margin: 1rem;
}

.uwpmc-related-product-row {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-width: 276px;
    max-width: 278px;
    border: 1px solid #64748b;
    border-radius: 4px;
}

.uwpmc-related-product {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-color: transparent !important;
    border: none !important;
}

.uwpmc-recommended-items-section {
    border-right: none !important;
    border-left: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
}

.uwpmc-recommended-item {
    text-align: center;
    padding: 4px 0 !important;
    width: 100% !important;
    margin-top: auto !important;
    max-width: 276px !important;
    border: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.uwpmc-offers-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: auto;
    margin: 6px 12px;
    flex: auto 1 1;
}

.uwpmc-items {
    display: flex;
    flex-direction: column;
    flex: auto 1 1;
    overflow: auto;
    outline: none;
}

.uwpmc-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    padding: 12px;
    line-height: 1;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
}

.uwpmc-item-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.uwpmc-item-title {
    width: auto;
    font-weight: 500;
    margin-bottom: 5px;
    word-break: break-word;
}

.uwpmc-item-price {
    width: auto;
}

.uwpmc-quantity-minus,
.uwpmc-quantity-plus {
    text-align: center;
    padding: 4px !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: inherit !important;
    display: flex;
    align-items: center;
    opacity: 0.8;
    justify-content: center;
    cursor: pointer;
}

.uwpmc-quantity-input {
    height: 24px;
    width: 26px !important;
    text-align: center;
    padding: 3px !important;
    font-size: 12px;
    color: inherit !important;
    background-color: inherit !important;
    box-shadow: none !important;
    border-radius: 4px 0 0 4px;
    line-height: 0.2em !important;
    border: none !important;
}

/* Chrome, Safari, Edge, Opera */
.uwpmc-quantity-input::-webkit-outer-spin-button,
.uwpmc-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.uwpmc-quantity-input[type=number] {
    -moz-appearance: textfield !important;
}

.uwpmc-quantity-input:focus {
    outline: none !important;
}

.uwpmc-cart-totals {
    display: flex;
    flex-direction: column;
    margin: 6px 12px 6px 12px;
}

.uwpmc-coupon-section {
    border: none !important;
    padding: 10px 10px 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: none !important;
}

#uwpmc-cart-sidebar img {
    width: 54px;
    height: 54px;
    max-width: max-content;
}

#uwpmc-coupon-badge {
    margin: 5px 0;
    align-items: center;
    line-height: 1;
    background: inherit;
    border: thin solid currentColor;
}

#uwpmc-coupon-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
}

#uwpmc-coupon-input {
    width: 100%;
    padding: 2px 10px !important;
    box-shadow: none !important;
    border-radius: 4px;
    background-color: #ffffff;
    border-width: thin;
    border-style: solid;
    font-size: 16px;
}

.uwpmc-totals-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0 10px 0;
    font-weight: 600;
    border: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-top: none !important;
}

.uwpmc-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 48px;
}

.uwpmc-action {
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.618;
}

.uwpmc-actions-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
    gap: 8px;
    padding: 10px 10px 0;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    border-top: 1px solid currentColor;
}

.uwpmc-tabs {
    margin: 0 12px 12px 12px;
    border-radius: 0 0 6px 6px !important;
}

.uwpmc-tab-button {
    padding: 6px !important;
    width: 50%;
    outline: none;
    color: inherit;
    background-color: inherit;
    border: none;
    filter: brightness(100%);
}

.uwpmc-offers-block .cuw-offer .cuw-container {
    margin: 12px !important;
}

.uwpmc-offers-block .cuw-offer .cuw-product-quantity .quantity-input {
    display: inline-flex !important;
    flex-direction: row-reverse;
}

.upw-mc-theme-2 .uwpmc-offers-block .cuw-offer .cuw-product-price {
    color: #4d4d4d;
}

.uwpmc-offers-block .cuw-offer .cuw-product-image img {
    height: 100% !important;
    width: 100% !important;
}

.uwpmc-tab-button:focus {
    outline: none;
}

.uwpmc-action:hover {
    filter: brightness(125%);
}

.uwpmc-tab-button:hover {
    filter: saturate(0.5);
    background-color: inherit !important;
    color: inherit !important;
}

.uwpmc-quantity-plus:hover {
    filter: saturate(0.5);
}

.uwpmc-quantity-minus:hover {
    filter: saturate(0.5);
}

.uwpmc-remove-item:hover {
    background-color: #d5d5d5;
    border-color: #d5d5d5;
    color: #333333;
    border-radius: 4px;
}

#uwpmc-remove-coupon:hover {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

#uwpmc-close-cart:hover {
    animation: closeCartAnimation 0.4s;
}

@keyframes closeCartAnimation {
    100% {
        transform: rotate(100deg);
    }
}

.uwpmc-active-page {
    border-top: 3px solid !important;
    padding-top: 3px !important;
}

/* custom scrollbar */
.uwpmc-sidebar ::-webkit-scrollbar {
    height: 14px;
    width: 14px;
}

.uwpmc-sidebar ::-webkit-scrollbar-thumb {
    border: 4px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    border-radius: 9999px;
    background-color: #5C5C5C;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.uwpmc-banners::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.uwpmc-banners {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

@keyframes widget-container {
    0% {
        transform: rotate(0);
    }
    35% {
        transform: rotate(30deg);
    }
    70% {
        transform: rotate(-30deg);
    }
    100% {
        transform: rotate(0);
    }
}

/* Mobile responsive */
@media screen and (max-width: 480px) {
    .uwpmc-sidebar {
        width: 100% !important;
    }

    .uwpmc-item {
        gap: 12px;
    }

    .uwpmc-widget, .uwpmc-widget-svg {
        height: 48px !important;
        width: 48px !important;
    }
}
