.pea_mini_cart_main_wrapper {
    position: relative;
    display: inline-block;
    font-family: Arial, sans-serif;
}

.pea_mini_cart_button_icon svg {
    width: 24px;
    height: 24px;
    fill: black;
}

.pea_mini_cart_button_wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;

}

.pea_mini_cart_button_text {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.pea_mini_cart_button_icon_wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pea_mini_cart_badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #fff;
}

.pea_mini_cart_content_wrapper {
    position: absolute;
    top: 100%;
    /* left: 0; */
    background-color: white;
    min-width: 300px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 15px;
    margin-top: 5px;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.pea_mini_cart_subtotal_amount {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.pea_mini_cart_content_wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);

}


.pea_mini_cart_heading {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}


.pea_mini_cart_items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.pea_mini_cart_item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}


.pea_mini_cart_item_image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.pea_mini_cart_item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.pea_mini_cart_item_info {
    flex: 1;
}


.pea_mini_cart_item_name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    margin-bottom: 4px;
}

.pea_mini_cart_item_price {
    font-size: 13px;
    color: #6b7280;
    display: block;
    margin-bottom: 8px;
}


.pea_mini_cart_qty_control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.pea_mini_cart_qty_control button {
    width: 28px;
    height: 28px;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
}

.pea_mini_cart_qty_control button:hover {
    background: #e5e7eb;
}

.pea_mini_cart_qty_value {
    min-width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    padding: 0 4px;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    line-height: 28px;
}


.pea_mini_cart_item_remove {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    font-size: 12px;
}

.pea_mini_cart_item_remove svg {
    width: 16px;
    height: 16px;
    fill: #9ca3af;
}

.pea_mini_cart_item_remove:hover {
    color: #ef4444;
}

.pea_mini_cart_item_remove:hover svg {
    fill: #ef4444;
}

.pea_mini_cart_subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
    margin-top: 14px;
    border-top: 1px solid #e5e7eb;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}


.pea_mini_cart_buttons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.pea_mini_cart_view_cart,
.pea_mini_cart_checkout {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    display: block;
}

.pea_mini_cart_view_cart:active,
.pea_mini_cart_checkout:active {
    transform: scale(0.98);
}


.pea_mini_cart_view_cart {
    background: #1f2937;
    color: #ffffff;
}

.pea_mini_cart_view_cart:hover {
    opacity: 0.85;
}


.pea_mini_cart_checkout {
    background: #4f46e5;
    color: #ffffff;
}

.pea_mini_cart_checkout:hover {
    opacity: 0.85;
}

.pea_mini_cart_items {
    overflow: auto;
}

.pea_mini_cart_empty {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: #6b7280;
}